diff options
author | 2021-08-12 21:03:24 +0200 | |
---|---|---|
committer | 2021-08-12 21:03:24 +0200 | |
commit | 98263a7de64269898a2f81207e38943b5c8e8653 (patch) | |
tree | 743c90f109a6c5d27832d1dcef2388d939f0f77a /vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_source | |
parent | Text duplication fix (#137) (diff) | |
download | gotosocial-98263a7de64269898a2f81207e38943b5c8e8653.tar.xz |
Grand test fixup (#138)
* start fixing up tests
* fix up tests + automate with drone
* fiddle with linting
* messing about with drone.yml
* some more fiddling
* hmmm
* add cache
* add vendor directory
* verbose
* ci updates
* update some little things
* update sig
Diffstat (limited to 'vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_source')
3 files changed, 3306 insertions, 0 deletions
diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_source/gen_doc.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_source/gen_doc.go new file mode 100644 index 000000000..689076beb --- /dev/null +++ b/vendor/github.com/go-fed/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/github.com/go-fed/activity/streams/impl/activitystreams/property_source/gen_pkg.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_source/gen_pkg.go new file mode 100644 index 000000000..3ed50bcbe --- /dev/null +++ b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_source/gen_pkg.go @@ -0,0 +1,265 @@ +// Code generated by astool. DO NOT EDIT. + +package propertysource + +import vocab "github.com/go-fed/activity/streams/vocab" + +var mgr privateManager + +// privateManager abstracts the code-generated manager that provides access to +// concrete implementations. +type privateManager interface { + // DeserializeAcceptActivityStreams returns the deserialization method for + // the "ActivityStreamsAccept" non-functional property in the + // vocabulary "ActivityStreams" + DeserializeAcceptActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAccept, error) + // DeserializeActivityActivityStreams returns the deserialization method + // for the "ActivityStreamsActivity" non-functional property in the + // vocabulary "ActivityStreams" + DeserializeActivityActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsActivity, error) + // DeserializeAddActivityStreams returns the deserialization method for + // the "ActivityStreamsAdd" non-functional property in the vocabulary + // "ActivityStreams" + DeserializeAddActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAdd, error) + // DeserializeAnnounceActivityStreams returns the deserialization method + // for the "ActivityStreamsAnnounce" non-functional property in the + // vocabulary "ActivityStreams" + DeserializeAnnounceActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAnnounce, error) + // DeserializeApplicationActivityStreams returns the deserialization + // method for the "ActivityStreamsApplication" non-functional property + // in the vocabulary "ActivityStreams" + DeserializeApplicationActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsApplication, error) + // DeserializeArriveActivityStreams returns the deserialization method for + // the "ActivityStreamsArrive" non-functional property in the + // vocabulary "ActivityStreams" + DeserializeArriveActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsArrive, error) + // DeserializeArticleActivityStreams returns the deserialization method + // for the "ActivityStreamsArticle" non-functional property in the + // vocabulary "ActivityStreams" + DeserializeArticleActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsArticle, error) + // DeserializeAudioActivityStreams returns the deserialization method for + // the "ActivityStreamsAudio" non-functional property in the + // vocabulary "ActivityStreams" + DeserializeAudioActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAudio, error) + // DeserializeBlockActivityStreams returns the deserialization method for + // the "ActivityStreamsBlock" non-functional property in the + // vocabulary "ActivityStreams" + DeserializeBlockActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsBlock, error) + // DeserializeBranchForgeFed returns the deserialization method for the + // "ForgeFedBranch" non-functional property in the vocabulary + // "ForgeFed" + DeserializeBranchForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedBranch, error) + // DeserializeCollectionActivityStreams returns the deserialization method + // for the "ActivityStreamsCollection" non-functional property in the + // vocabulary "ActivityStreams" + DeserializeCollectionActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsCollection, error) + // DeserializeCollectionPageActivityStreams returns the deserialization + // method for the "ActivityStreamsCollectionPage" non-functional + // property in the vocabulary "ActivityStreams" + DeserializeCollectionPageActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsCollectionPage, error) + // DeserializeCommitForgeFed returns the deserialization method for the + // "ForgeFedCommit" non-functional property in the vocabulary + // "ForgeFed" + DeserializeCommitForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedCommit, error) + // DeserializeCreateActivityStreams returns the deserialization method for + // the "ActivityStreamsCreate" non-functional property in the + // vocabulary "ActivityStreams" + DeserializeCreateActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsCreate, error) + // DeserializeDeleteActivityStreams returns the deserialization method for + // the "ActivityStreamsDelete" non-functional property in the + // vocabulary "ActivityStreams" + DeserializeDeleteActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsDelete, error) + // DeserializeDislikeActivityStreams returns the deserialization method + // for the "ActivityStreamsDislike" non-functional property in the + // vocabulary "ActivityStreams" + DeserializeDislikeActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsDislike, error) + // DeserializeDocumentActivityStreams returns the deserialization method + // for the "ActivityStreamsDocument" non-functional property in the + // vocabulary "ActivityStreams" + DeserializeDocumentActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsDocument, error) + // DeserializeEmojiToot returns the deserialization method for the + // "TootEmoji" non-functional property in the vocabulary "Toot" + DeserializeEmojiToot() func(map[string]interface{}, map[string]string) (vocab.TootEmoji, error) + // DeserializeEventActivityStreams returns the deserialization method for + // the "ActivityStreamsEvent" non-functional property in the + // vocabulary "ActivityStreams" + DeserializeEventActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsEvent, error) + // DeserializeFlagActivityStreams returns the deserialization method for + // the "ActivityStreamsFlag" non-functional property in the vocabulary + // "ActivityStreams" + DeserializeFlagActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsFlag, error) + // DeserializeFollowActivityStreams returns the deserialization method for + // the "ActivityStreamsFollow" non-functional property in the + // vocabulary "ActivityStreams" + DeserializeFollowActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsFollow, error) + // DeserializeGroupActivityStreams returns the deserialization method for + // the "ActivityStreamsGroup" non-functional property in the + // vocabulary "ActivityStreams" + DeserializeGroupActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsGroup, error) + // DeserializeIdentityProofToot returns the deserialization method for the + // "TootIdentityProof" non-functional property in the vocabulary "Toot" + DeserializeIdentityProofToot() func(map[string]interface{}, map[string]string) (vocab.TootIdentityProof, error) + // DeserializeIgnoreActivityStreams returns the deserialization method for + // the "ActivityStreamsIgnore" non-functional property in the + // vocabulary "ActivityStreams" + DeserializeIgnoreActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsIgnore, error) + // DeserializeImageActivityStreams returns the deserialization method for + // the "ActivityStreamsImage" non-functional property in the + // vocabulary "ActivityStreams" + DeserializeImageActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsImage, error) + // DeserializeIntransitiveActivityActivityStreams returns the + // deserialization method for the + // "ActivityStreamsIntransitiveActivity" non-functional property in + // the vocabulary "ActivityStreams" + DeserializeIntransitiveActivityActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsIntransitiveActivity, error) + // DeserializeInviteActivityStreams returns the deserialization method for + // the "ActivityStreamsInvite" non-functional property in the + // vocabulary "ActivityStreams" + DeserializeInviteActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsInvite, error) + // DeserializeJoinActivityStreams returns the deserialization method for + // the "ActivityStreamsJoin" non-functional property in the vocabulary + // "ActivityStreams" + DeserializeJoinActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsJoin, error) + // DeserializeLeaveActivityStreams returns the deserialization method for + // the "ActivityStreamsLeave" non-functional property in the + // vocabulary "ActivityStreams" + DeserializeLeaveActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLeave, error) + // DeserializeLikeActivityStreams returns the deserialization method for + // the "ActivityStreamsLike" non-functional property in the vocabulary + // "ActivityStreams" + DeserializeLikeActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLike, error) + // DeserializeLinkActivityStreams returns the deserialization method for + // the "ActivityStreamsLink" non-functional property in the vocabulary + // "ActivityStreams" + DeserializeLinkActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLink, error) + // DeserializeListenActivityStreams returns the deserialization method for + // the "ActivityStreamsListen" non-functional property in the + // vocabulary "ActivityStreams" + DeserializeListenActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsListen, error) + // DeserializeMentionActivityStreams returns the deserialization method + // for the "ActivityStreamsMention" non-functional property in the + // vocabulary "ActivityStreams" + DeserializeMentionActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsMention, error) + // DeserializeMoveActivityStreams returns the deserialization method for + // the "ActivityStreamsMove" non-functional property in the vocabulary + // "ActivityStreams" + DeserializeMoveActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsMove, error) + // DeserializeNoteActivityStreams returns the deserialization method for + // the "ActivityStreamsNote" non-functional property in the vocabulary + // "ActivityStreams" + DeserializeNoteActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsNote, error) + // DeserializeObjectActivityStreams returns the deserialization method for + // the "ActivityStreamsObject" non-functional property in the + // vocabulary "ActivityStreams" + DeserializeObjectActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsObject, error) + // DeserializeOfferActivityStreams returns the deserialization method for + // the "ActivityStreamsOffer" non-functional property in the + // vocabulary "ActivityStreams" + DeserializeOfferActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsOffer, error) + // DeserializeOrderedCollectionActivityStreams returns the deserialization + // method for the "ActivityStreamsOrderedCollection" non-functional + // property in the vocabulary "ActivityStreams" + DeserializeOrderedCollectionActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsOrderedCollection, error) + // DeserializeOrderedCollectionPageActivityStreams returns the + // deserialization method for the + // "ActivityStreamsOrderedCollectionPage" non-functional property in + // the vocabulary "ActivityStreams" + DeserializeOrderedCollectionPageActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsOrderedCollectionPage, error) + // DeserializeOrganizationActivityStreams returns the deserialization + // method for the "ActivityStreamsOrganization" non-functional + // property in the vocabulary "ActivityStreams" + DeserializeOrganizationActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsOrganization, error) + // DeserializePageActivityStreams returns the deserialization method for + // the "ActivityStreamsPage" non-functional property in the vocabulary + // "ActivityStreams" + DeserializePageActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsPage, error) + // DeserializePersonActivityStreams returns the deserialization method for + // the "ActivityStreamsPerson" non-functional property in the + // vocabulary "ActivityStreams" + DeserializePersonActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsPerson, error) + // DeserializePlaceActivityStreams returns the deserialization method for + // the "ActivityStreamsPlace" non-functional property in the + // vocabulary "ActivityStreams" + DeserializePlaceActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsPlace, error) + // DeserializeProfileActivityStreams returns the deserialization method + // for the "ActivityStreamsProfile" non-functional property in the + // vocabulary "ActivityStreams" + DeserializeProfileActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsProfile, error) + // DeserializePushForgeFed returns the deserialization method for the + // "ForgeFedPush" non-functional property in the vocabulary "ForgeFed" + DeserializePushForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedPush, error) + // DeserializeQuestionActivityStreams returns the deserialization method + // for the "ActivityStreamsQuestion" non-functional property in the + // vocabulary "ActivityStreams" + DeserializeQuestionActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsQuestion, error) + // DeserializeReadActivityStreams returns the deserialization method for + // the "ActivityStreamsRead" non-functional property in the vocabulary + // "ActivityStreams" + DeserializeReadActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsRead, error) + // DeserializeRejectActivityStreams returns the deserialization method for + // the "ActivityStreamsReject" non-functional property in the + // vocabulary "ActivityStreams" + DeserializeRejectActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsReject, error) + // DeserializeRelationshipActivityStreams returns the deserialization + // method for the "ActivityStreamsRelationship" non-functional + // property in the vocabulary "ActivityStreams" + DeserializeRelationshipActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsRelationship, error) + // DeserializeRemoveActivityStreams returns the deserialization method for + // the "ActivityStreamsRemove" non-functional property in the + // vocabulary "ActivityStreams" + DeserializeRemoveActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsRemove, error) + // DeserializeRepositoryForgeFed returns the deserialization method for + // the "ForgeFedRepository" non-functional property in the vocabulary + // "ForgeFed" + DeserializeRepositoryForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedRepository, error) + // DeserializeServiceActivityStreams returns the deserialization method + // for the "ActivityStreamsService" non-functional property in the + // vocabulary "ActivityStreams" + DeserializeServiceActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsService, error) + // DeserializeTentativeAcceptActivityStreams returns the deserialization + // method for the "ActivityStreamsTentativeAccept" non-functional + // property in the vocabulary "ActivityStreams" + DeserializeTentativeAcceptActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTentativeAccept, error) + // DeserializeTentativeRejectActivityStreams returns the deserialization + // method for the "ActivityStreamsTentativeReject" non-functional + // property in the vocabulary "ActivityStreams" + DeserializeTentativeRejectActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTentativeReject, error) + // DeserializeTicketDependencyForgeFed returns the deserialization method + // for the "ForgeFedTicketDependency" non-functional property in the + // vocabulary "ForgeFed" + DeserializeTicketDependencyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTicketDependency, error) + // DeserializeTicketForgeFed returns the deserialization method for the + // "ForgeFedTicket" non-functional property in the vocabulary + // "ForgeFed" + DeserializeTicketForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTicket, error) + // DeserializeTombstoneActivityStreams returns the deserialization method + // for the "ActivityStreamsTombstone" non-functional property in the + // vocabulary "ActivityStreams" + DeserializeTombstoneActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTombstone, error) + // DeserializeTravelActivityStreams returns the deserialization method for + // the "ActivityStreamsTravel" non-functional property in the + // vocabulary "ActivityStreams" + DeserializeTravelActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTravel, error) + // DeserializeUndoActivityStreams returns the deserialization method for + // the "ActivityStreamsUndo" non-functional property in the vocabulary + // "ActivityStreams" + DeserializeUndoActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsUndo, error) + // DeserializeUpdateActivityStreams returns the deserialization method for + // the "ActivityStreamsUpdate" non-functional property in the + // vocabulary "ActivityStreams" + DeserializeUpdateActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsUpdate, error) + // DeserializeVideoActivityStreams returns the deserialization method for + // the "ActivityStreamsVideo" non-functional property in the + // vocabulary "ActivityStreams" + DeserializeVideoActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsVideo, error) + // DeserializeViewActivityStreams returns the deserialization method for + // the "ActivityStreamsView" non-functional property in the vocabulary + // "ActivityStreams" + DeserializeViewActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsView, error) +} + +// SetManager sets the manager package-global variable. For internal use only, do +// not use as part of Application behavior. Must be called at golang init time. +func SetManager(m privateManager) { + mgr = m +} diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_source/gen_property_activitystreams_source.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_source/gen_property_activitystreams_source.go new file mode 100644 index 000000000..35acec7c3 --- /dev/null +++ b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_source/gen_property_activitystreams_source.go @@ -0,0 +1,3024 @@ +// Code generated by astool. DO NOT EDIT. + +package propertysource + +import ( + "fmt" + vocab "github.com/go-fed/activity/streams/vocab" + "net/url" +) + +// ActivityStreamsSourceProperty is the functional property "source". It is +// permitted to be one of multiple value types. At most, one type of value can +// be present, or none at all. Setting a value will clear the other types of +// values so that only one of the 'Is' methods will return true. It is +// possible to clear all values, so that this property is empty. +type ActivityStreamsSourceProperty struct { + activitystreamsObjectMember vocab.ActivityStreamsObject + activitystreamsLinkMember vocab.ActivityStreamsLink + activitystreamsAcceptMember vocab.ActivityStreamsAccept + activitystreamsActivityMember vocab.ActivityStreamsActivity + activitystreamsAddMember vocab.ActivityStreamsAdd + activitystreamsAnnounceMember vocab.ActivityStreamsAnnounce + activitystreamsApplicationMember vocab.ActivityStreamsApplication + activitystreamsArriveMember vocab.ActivityStreamsArrive + activitystreamsArticleMember vocab.ActivityStreamsArticle + activitystreamsAudioMember vocab.ActivityStreamsAudio + activitystreamsBlockMember vocab.ActivityStreamsBlock + forgefedBranchMember vocab.ForgeFedBranch + activitystreamsCollectionMember vocab.ActivityStreamsCollection + activitystreamsCollectionPageMember vocab.ActivityStreamsCollectionPage + forgefedCommitMember vocab.ForgeFedCommit + activitystreamsCreateMember vocab.ActivityStreamsCreate + activitystreamsDeleteMember vocab.ActivityStreamsDelete + activitystreamsDislikeMember vocab.ActivityStreamsDislike + activitystreamsDocumentMember vocab.ActivityStreamsDocument + tootEmojiMember vocab.TootEmoji + activitystreamsEventMember vocab.ActivityStreamsEvent + activitystreamsFlagMember vocab.ActivityStreamsFlag + activitystreamsFollowMember vocab.ActivityStreamsFollow + activitystreamsGroupMember vocab.ActivityStreamsGroup + tootIdentityProofMember vocab.TootIdentityProof + activitystreamsIgnoreMember vocab.ActivityStreamsIgnore + activitystreamsImageMember vocab.ActivityStreamsImage + activitystreamsIntransitiveActivityMember vocab.ActivityStreamsIntransitiveActivity + activitystreamsInviteMember vocab.ActivityStreamsInvite + activitystreamsJoinMember vocab.ActivityStreamsJoin + activitystreamsLeaveMember vocab.ActivityStreamsLeave + activitystreamsLikeMember vocab.ActivityStreamsLike + activitystreamsListenMember vocab.ActivityStreamsListen + activitystreamsMentionMember vocab.ActivityStreamsMention + activitystreamsMoveMember vocab.ActivityStreamsMove + activitystreamsNoteMember vocab.ActivityStreamsNote + activitystreamsOfferMember vocab.ActivityStreamsOffer + activitystreamsOrderedCollectionMember vocab.ActivityStreamsOrderedCollection + activitystreamsOrderedCollectionPageMember vocab.ActivityStreamsOrderedCollectionPage + activitystreamsOrganizationMember vocab.ActivityStreamsOrganization + activitystreamsPageMember vocab.ActivityStreamsPage + activitystreamsPersonMember vocab.ActivityStreamsPerson + activitystreamsPlaceMember vocab.ActivityStreamsPlace + activitystreamsProfileMember vocab.ActivityStreamsProfile + forgefedPushMember vocab.ForgeFedPush + activitystreamsQuestionMember vocab.ActivityStreamsQuestion + activitystreamsReadMember vocab.ActivityStreamsRead + activitystreamsRejectMember vocab.ActivityStreamsReject + activitystreamsRelationshipMember vocab.ActivityStreamsRelationship + activitystreamsRemoveMember vocab.ActivityStreamsRemove + forgefedRepositoryMember vocab.ForgeFedRepository + activitystreamsServiceMember vocab.ActivityStreamsService + activitystreamsTentativeAcceptMember vocab.ActivityStreamsTentativeAccept + activitystreamsTentativeRejectMember vocab.ActivityStreamsTentativeReject + forgefedTicketMember vocab.ForgeFedTicket + forgefedTicketDependencyMember vocab.ForgeFedTicketDependency + activitystreamsTombstoneMember vocab.ActivityStreamsTombstone + activitystreamsTravelMember vocab.ActivityStreamsTravel + activitystreamsUndoMember vocab.ActivityStreamsUndo + activitystreamsUpdateMember vocab.ActivityStreamsUpdate + activitystreamsVideoMember vocab.ActivityStreamsVideo + activitystreamsViewMember vocab.ActivityStreamsView + unknown interface{} + iri *url.URL + alias string +} + +// DeserializeSourceProperty creates a "source" property from an interface +// representation that has been unmarshalled from a text or binary format. +func DeserializeSourceProperty(m map[string]interface{}, aliasMap map[string]string) (*ActivityStreamsSourceProperty, error) { + alias := "" + if a, ok := aliasMap["https://www.w3.org/ns/activitystreams"]; ok { + alias = a + } + propName := "source" + if len(alias) > 0 { + // Use alias both to find the property, and set within the property. + propName = fmt.Sprintf("%s:%s", alias, "source") + } + i, ok := m[propName] + + if ok { + if s, ok := i.(string); ok { + u, err := url.Parse(s) + // If error exists, don't error out -- skip this and treat as unknown string ([]byte) at worst + // Also, if no scheme exists, don't treat it as a URL -- net/url is greedy + if err == nil && len(u.Scheme) > 0 { + this := &ActivityStreamsSourceProperty{ + alias: alias, + iri: u, + } + return this, nil + } + } + if m, ok := i.(map[string]interface{}); ok { + if v, err := mgr.DeserializeObjectActivityStreams()(m, aliasMap); err == nil { + this := &ActivityStreamsSourceProperty{ + activitystreamsObjectMember: v, + alias: alias, + } + return this, nil + } else if v, err := mgr.DeserializeLinkActivityStreams()(m, aliasMap); err == nil { + this := &ActivityStreamsSourceProperty{ + activitystreamsLinkMember: v, + alias: alias, + } + return this, nil + } else if v, err := mgr.DeserializeAcceptActivityStreams()(m, aliasMap); err == nil { + this := &ActivityStreamsSourceProperty{ + activitystreamsAcceptMember: v, + alias: alias, + } + return this, nil + } else if v, err := mgr.DeserializeActivityActivityStreams()(m, aliasMap); err == nil { + this := &ActivityStreamsSourceProperty{ + activitystreamsActivityMember: v, + alias: alias, + } + return this, nil + } else if v, err := mgr.DeserializeAddActivityStreams()(m, aliasMap); err == nil { + this := &ActivityStreamsSourceProperty{ + activitystreamsAddMember: v, + alias: alias, + } + return this, nil + } else if v, err := mgr.DeserializeAnnounceActivityStreams()(m, aliasMap); err == nil { + this := &ActivityStreamsSourceProperty{ + activitystreamsAnnounceMember: v, + alias: alias, + } + return this, nil + } else if v, err := mgr.DeserializeApplicationActivityStreams()(m, aliasMap); err == nil { + this := &ActivityStreamsSourceProperty{ + activitystreamsApplicationMember: v, + alias: alias, + } + return this, nil + } else if v, err := mgr.DeserializeArriveActivityStreams()(m, aliasMap); err == nil { + this := &ActivityStreamsSourceProperty{ + activitystreamsArriveMember: v, + alias: alias, + } + return this, nil + } else if v, err := mgr.DeserializeArticleActivityStreams()(m, aliasMap); err == nil { + this := &ActivityStreamsSourceProperty{ + activitystreamsArticleMember: v, + alias: alias, + } + return this, nil + } else if v, err := mgr.DeserializeAudioActivityStreams()(m, aliasMap); err == nil { + this := &ActivityStreamsSourceProperty{ + activitystreamsAudioMember: v, + alias: alias, + } + return this, nil + } else if v, err := mgr.DeserializeBlockActivityStreams()(m, aliasMap); err == nil { + this := &ActivityStreamsSourceProperty{ + activitystreamsBlockMember: v, + alias: alias, + } + return this, nil + } else if v, err := mgr.DeserializeBranchForgeFed()(m, aliasMap); err == nil { + this := &ActivityStreamsSourceProperty{ + alias: alias, + forgefedBranchMember: v, + } + return this, nil + } else if v, err := mgr.DeserializeCollectionActivityStreams()(m, aliasMap); err == nil { + this := &ActivityStreamsSourceProperty{ + activitystreamsCollectionMember: v, + alias: alias, + } + return this, nil + } else if v, err := mgr.DeserializeCollectionPageActivityStreams()(m, aliasMap); err == nil { + this := &ActivityStreamsSourceProperty{ + activitystreamsCollectionPageMember: v, + alias: alias, + } + return this, nil + } else if v, err := mgr.DeserializeCommitForgeFed()(m, aliasMap); err == nil { + this := &ActivityStreamsSourceProperty{ + alias: alias, + forgefedCommitMember: v, + } + return this, nil + } else if v, err := mgr.DeserializeCreateActivityStreams()(m, aliasMap); err == nil { + this := &ActivityStreamsSourceProperty{ + activitystreamsCreateMember: v, + alias: alias, + } + return this, nil + } else if v, err := mgr.DeserializeDeleteActivityStreams()(m, aliasMap); err == nil { + this := &ActivityStreamsSourceProperty{ + activitystreamsDeleteMember: v, + alias: alias, + } + return this, nil + } else if v, err := mgr.DeserializeDislikeActivityStreams()(m, aliasMap); err == nil { + this := &ActivityStreamsSourceProperty{ + activitystreamsDislikeMember: v, + alias: alias, + } + return this, nil + } else if v, err := mgr.DeserializeDocumentActivityStreams()(m, aliasMap); err == nil { + this := &ActivityStreamsSourceProperty{ + activitystreamsDocumentMember: v, + alias: alias, + } + return this, nil + } else if v, err := mgr.DeserializeEmojiToot()(m, aliasMap); err == nil { + this := &ActivityStreamsSourceProperty{ + alias: alias, + tootEmojiMember: v, + } + return this, nil + } else if v, err := mgr.DeserializeEventActivityStreams()(m, aliasMap); err == nil { + this := &ActivityStreamsSourceProperty{ + activitystreamsEventMember: v, + alias: alias, + } + return this, nil + } else if v, err := mgr.DeserializeFlagActivityStreams()(m, aliasMap); err == nil { + this := &ActivityStreamsSourceProperty{ + activitystreamsFlagMember: v, + alias: alias, + } + return this, nil + } else if v, err := mgr.DeserializeFollowActivityStreams()(m, aliasMap); err == nil { + this := &ActivityStreamsSourceProperty{ + activitystreamsFollowMember: v, + alias: alias, + } + return this, nil + } else if v, err := mgr.DeserializeGroupActivityStreams()(m, aliasMap); err == nil { + this := &ActivityStreamsSourceProperty{ + activitystreamsGroupMember: v, + alias: alias, + } + return this, nil + } else if v, err := mgr.DeserializeIdentityProofToot()(m, aliasMap); err == nil { + this := &ActivityStreamsSourceProperty{ + alias: alias, + tootIdentityProofMember: v, + } + return this, nil + } else if v, err := mgr.DeserializeIgnoreActivityStreams()(m, aliasMap); err == nil { + this := &ActivityStreamsSourceProperty{ + activitystreamsIgnoreMember: v, + alias: alias, + } + return this, nil + } else if v, err := mgr.DeserializeImageActivityStreams()(m, aliasMap); err == nil { + this := &ActivityStreamsSourceProperty{ + activitystreamsImageMember: v, + alias: alias, + } + return this, nil + } else if v, err := mgr.DeserializeIntransitiveActivityActivityStreams()(m, aliasMap); err == nil { + this := &ActivityStreamsSourceProperty{ + activitystreamsIntransitiveActivityMember: v, + alias: alias, + } + return this, nil + } else if v, err := mgr.DeserializeInviteActivityStreams()(m, aliasMap); err == nil { + this := &ActivityStreamsSourceProperty{ + activitystreamsInviteMember: v, + alias: alias, + } + return this, nil + } else if v, err := mgr.DeserializeJoinActivityStreams()(m, aliasMap); err == nil { + this := &ActivityStreamsSourceProperty{ + activitystreamsJoinMember: v, + alias: alias, + } + return this, nil + } else if v, err := mgr.DeserializeLeaveActivityStreams()(m, aliasMap); err == nil { + this := &ActivityStreamsSourceProperty{ + activitystreamsLeaveMember: v, + alias: alias, + } + return this, nil + } else if v, err := mgr.DeserializeLikeActivityStreams()(m, aliasMap); err == nil { + this := &ActivityStreamsSourceProperty{ + activitystreamsLikeMember: v, + alias: alias, + } + return this, nil + } else if v, err := mgr.DeserializeListenActivityStreams()(m, aliasMap); err == nil { + this := &ActivityStreamsSourceProperty{ + activitystreamsListenMember: v, + alias: alias, + } + return this, nil + } else if v, err := mgr.DeserializeMentionActivityStreams()(m, aliasMap); err == nil { + this := &ActivityStreamsSourceProperty{ + activitystreamsMentionMember: v, + alias: alias, + } + return this, nil + } else if v, err := mgr.DeserializeMoveActivityStreams()(m, aliasMap); err == nil { + this := &ActivityStreamsSourceProperty{ + activitystreamsMoveMember: v, + alias: alias, + } + return this, nil + } else if v, err := mgr.DeserializeNoteActivityStreams()(m, aliasMap); err == nil { + this := &ActivityStreamsSourceProperty{ + activitystreamsNoteMember: v, + alias: alias, + } + return this, nil + } else if v, err := mgr.DeserializeOfferActivityStreams()(m, aliasMap); err == nil { + this := &ActivityStreamsSourceProperty{ + activitystreamsOfferMember: v, + alias: alias, + } + return this, nil + } else if v, err := mgr.DeserializeOrderedCollectionActivityStreams()(m, aliasMap); err == nil { + this := &ActivityStreamsSourceProperty{ + activitystreamsOrderedCollectionMember: v, + alias: alias, + } + return this, nil + } else if v, err := mgr.DeserializeOrderedCollectionPageActivityStreams()(m, aliasMap); err == nil { + this := &ActivityStreamsSourceProperty{ + activitystreamsOrderedCollectionPageMember: v, + alias: alias, + } + return this, nil + } else if v, err := mgr.DeserializeOrganizationActivityStreams()(m, aliasMap); err == nil { + this := &ActivityStreamsSourceProperty{ + activitystreamsOrganizationMember: v, + alias: alias, + } + return this, nil + } else if v, err := mgr.DeserializePageActivityStreams()(m, aliasMap); err == nil { + this := &ActivityStreamsSourceProperty{ + activitystreamsPageMember: v, + alias: alias, + } + return this, nil + } else if v, err := mgr.DeserializePersonActivityStreams()(m, aliasMap); err == nil { + this := &ActivityStreamsSourceProperty{ + activitystreamsPersonMember: v, + alias: alias, + } + return this, nil + } else if v, err := mgr.DeserializePlaceActivityStreams()(m, aliasMap); err == nil { + this := &ActivityStreamsSourceProperty{ + activitystreamsPlaceMember: v, + alias: alias, + } + return this, nil + } else if v, err := mgr.DeserializeProfileActivityStreams()(m, aliasMap); err == nil { + this := &ActivityStreamsSourceProperty{ + activitystreamsProfileMember: v, + alias: alias, + } + return this, nil + } else if v, err := mgr.DeserializePushForgeFed()(m, aliasMap); err == nil { + this := &ActivityStreamsSourceProperty{ + alias: alias, + forgefedPushMember: v, + } + return this, nil + } else if v, err := mgr.DeserializeQuestionActivityStreams()(m, aliasMap); err == nil { + this := &ActivityStreamsSourceProperty{ + activitystreamsQuestionMember: v, + alias: alias, + } + return this, nil + } else if v, err := mgr.DeserializeReadActivityStreams()(m, aliasMap); err == nil { + this := &ActivityStreamsSourceProperty{ + activitystreamsReadMember: v, + alias: alias, + } + return this, nil + } else if v, err := mgr.DeserializeRejectActivityStreams()(m, aliasMap); err == nil { + this := &ActivityStreamsSourceProperty{ + activitystreamsRejectMember: v, + alias: alias, + } + return this, nil + } else if v, err := mgr.DeserializeRelationshipActivityStreams()(m, aliasMap); err == nil { + this := &ActivityStreamsSourceProperty{ + activitystreamsRelationshipMember: v, + alias: alias, + } + return this, nil + } else if v, err := mgr.DeserializeRemoveActivityStreams()(m, aliasMap); err == nil { + this := &ActivityStreamsSourceProperty{ + activitystreamsRemoveMember: v, + alias: alias, + } + return this, nil + } else if v, err := mgr.DeserializeRepositoryForgeFed()(m, aliasMap); err == nil { + this := &ActivityStreamsSourceProperty{ + alias: alias, + forgefedRepositoryMember: v, + } + return this, nil + } else if v, err := mgr.DeserializeServiceActivityStreams()(m, aliasMap); err == nil { + this := &ActivityStreamsSourceProperty{ + activitystreamsServiceMember: v, + alias: alias, + } + return this, nil + } else if v, err := mgr.DeserializeTentativeAcceptActivityStreams()(m, aliasMap); err == nil { + this := &ActivityStreamsSourceProperty{ + activitystreamsTentativeAcceptMember: v, + alias: alias, + } + return this, nil + } else if v, err := mgr.DeserializeTentativeRejectActivityStreams()(m, aliasMap); err == nil { + this := &ActivityStreamsSourceProperty{ + activitystreamsTentativeRejectMember: v, + alias: alias, + } + return this, nil + } else if v, err := mgr.DeserializeTicketForgeFed()(m, aliasMap); err == nil { + this := &ActivityStreamsSourceProperty{ + alias: alias, + forgefedTicketMember: v, + } + return this, nil + } else if v, err := mgr.DeserializeTicketDependencyForgeFed()(m, aliasMap); err == nil { + this := &ActivityStreamsSourceProperty{ + alias: alias, + forgefedTicketDependencyMember: v, + } + return this, nil + } else if v, err := mgr.DeserializeTombstoneActivityStreams()(m, aliasMap); err == nil { + this := &ActivityStreamsSourceProperty{ + activitystreamsTombstoneMember: v, + alias: alias, + } + return this, nil + } else if v, err := mgr.DeserializeTravelActivityStreams()(m, aliasMap); err == nil { + this := &ActivityStreamsSourceProperty{ + activitystreamsTravelMember: v, + alias: alias, + } + return this, nil + } else if v, err := mgr.DeserializeUndoActivityStreams()(m, aliasMap); err == nil { + this := &ActivityStreamsSourceProperty{ + activitystreamsUndoMember: v, + alias: alias, + } + return this, nil + } else if v, err := mgr.DeserializeUpdateActivityStreams()(m, aliasMap); err == nil { + this := &ActivityStreamsSourceProperty{ + activitystreamsUpdateMember: v, + alias: alias, + } + return this, nil + } else if v, err := mgr.DeserializeVideoActivityStreams()(m, aliasMap); err == nil { + this := &ActivityStreamsSourceProperty{ + activitystreamsVideoMember: v, + alias: alias, + } + return this, nil + } else if v, err := mgr.DeserializeViewActivityStreams()(m, aliasMap); err == nil { + this := &ActivityStreamsSourceProperty{ + activitystreamsViewMember: v, + alias: alias, + } + return this, nil + } + } + this := &ActivityStreamsSourceProperty{ + alias: alias, + unknown: i, + } + return this, nil + } + return nil, nil +} + +// NewActivityStreamsSourceProperty creates a new source property. +func NewActivityStreamsSourceProperty() *ActivityStreamsSourceProperty { + return &ActivityStreamsSourceProperty{alias: ""} +} + +// Clear ensures no value of this property is set. Calling HasAny or any of the +// 'Is' methods afterwards will return false. +func (this *ActivityStreamsSourceProperty) Clear() { + this.activitystreamsObjectMember = nil + this.activitystreamsLinkMember = nil + this.activitystreamsAcceptMember = nil + this.activitystreamsActivityMember = nil + this.activitystreamsAddMember = nil + this.activitystreamsAnnounceMember = nil + this.activitystreamsApplicationMember = nil + this.activitystreamsArriveMember = nil + this.activitystreamsArticleMember = nil + this.activitystreamsAudioMember = nil + this.activitystreamsBlockMember = nil + this.forgefedBranchMember = nil + this.activitystreamsCollectionMember = nil + this.activitystreamsCollectionPageMember = nil + this.forgefedCommitMember = nil + this.activitystreamsCreateMember = nil + this.activitystreamsDeleteMember = nil + this.activitystreamsDislikeMember = nil + this.activitystreamsDocumentMember = nil + this.tootEmojiMember = nil + this.activitystreamsEventMember = nil + this.activitystreamsFlagMember = nil + this.activitystreamsFollowMember = nil + this.activitystreamsGroupMember = nil + this.tootIdentityProofMember = nil + this.activitystreamsIgnoreMember = nil + this.activitystreamsImageMember = nil + this.activitystreamsIntransitiveActivityMember = nil + this.activitystreamsInviteMember = nil + this.activitystreamsJoinMember = nil + this.activitystreamsLeaveMember = nil + this.activitystreamsLikeMember = nil + this.activitystreamsListenMember = nil + this.activitystreamsMentionMember = nil + this.activitystreamsMoveMember = nil + this.activitystreamsNoteMember = nil + this.activitystreamsOfferMember = nil + this.activitystreamsOrderedCollectionMember = nil + this.activitystreamsOrderedCollectionPageMember = nil + this.activitystreamsOrganizationMember = nil + this.activitystreamsPageMember = nil + this.activitystreamsPersonMember = nil + this.activitystreamsPlaceMember = nil + this.activitystreamsProfileMember = nil + this.forgefedPushMember = nil + this.activitystreamsQuestionMember = nil + this.activitystreamsReadMember = nil + this.activitystreamsRejectMember = nil + this.activitystreamsRelationshipMember = nil + this.activitystreamsRemoveMember = nil + this.forgefedRepositoryMember = nil + this.activitystreamsServiceMember = nil + this.activitystreamsTentativeAcceptMember = nil + this.activitystreamsTentativeRejectMember = nil + this.forgefedTicketMember = nil + this.forgefedTicketDependencyMember = nil + this.activitystreamsTombstoneMember = nil + this.activitystreamsTravelMember = nil + this.activitystreamsUndoMember = nil + this.activitystreamsUpdateMember = nil + this.activitystreamsVideoMember = nil + this.activitystreamsViewMember = nil + this.unknown = nil + this.iri = nil +} + +// GetActivityStreamsAccept returns the value of this property. When +// IsActivityStreamsAccept returns false, GetActivityStreamsAccept will return +// an arbitrary value. +func (this ActivityStreamsSourceProperty) GetActivityStreamsAccept() vocab.ActivityStreamsAccept { + return this.activitystreamsAcceptMember +} + +// GetActivityStreamsActivity returns the value of this property. When +// IsActivityStreamsActivity returns false, GetActivityStreamsActivity will +// return an arbitrary value. +func (this ActivityStreamsSourceProperty) GetActivityStreamsActivity() vocab.ActivityStreamsActivity { + return this.activitystreamsActivityMember +} + +// GetActivityStreamsAdd returns the value of this property. When +// IsActivityStreamsAdd returns false, GetActivityStreamsAdd will return an +// arbitrary value. +func (this ActivityStreamsSourceProperty) GetActivityStreamsAdd() vocab.ActivityStreamsAdd { + return this.activitystreamsAddMember +} + +// GetActivityStreamsAnnounce returns the value of this property. When +// IsActivityStreamsAnnounce returns false, GetActivityStreamsAnnounce will +// return an arbitrary value. +func (this ActivityStreamsSourceProperty) GetActivityStreamsAnnounce() vocab.ActivityStreamsAnnounce { + return this.activitystreamsAnnounceMember +} + +// GetActivityStreamsApplication returns the value of this property. When +// IsActivityStreamsApplication returns false, GetActivityStreamsApplication +// will return an arbitrary value. +func (this ActivityStreamsSourceProperty) GetActivityStreamsApplication() vocab.ActivityStreamsApplication { + return this.activitystreamsApplicationMember +} + +// GetActivityStreamsArrive returns the value of this property. When +// IsActivityStreamsArrive returns false, GetActivityStreamsArrive will return +// an arbitrary value. +func (this ActivityStreamsSourceProperty) GetActivityStreamsArrive() vocab.ActivityStreamsArrive { + return this.activitystreamsArriveMember +} + +// GetActivityStreamsArticle returns the value of this property. When +// IsActivityStreamsArticle returns false, GetActivityStreamsArticle will +// return an arbitrary value. +func (this ActivityStreamsSourceProperty) GetActivityStreamsArticle() vocab.ActivityStreamsArticle { + return this.activitystreamsArticleMember +} + +// GetActivityStreamsAudio returns the value of this property. When +// IsActivityStreamsAudio returns false, GetActivityStreamsAudio will return +// an arbitrary value. +func (this ActivityStreamsSourceProperty) GetActivityStreamsAudio() vocab.ActivityStreamsAudio { + return this.activitystreamsAudioMember +} + +// GetActivityStreamsBlock returns the value of this property. When +// IsActivityStreamsBlock returns false, GetActivityStreamsBlock will return +// an arbitrary value. +func (this ActivityStreamsSourceProperty) GetActivityStreamsBlock() vocab.ActivityStreamsBlock { + return this.activitystreamsBlockMember +} + +// GetActivityStreamsCollection returns the value of this property. When +// IsActivityStreamsCollection returns false, GetActivityStreamsCollection +// will return an arbitrary value. +func (this ActivityStreamsSourceProperty) GetActivityStreamsCollection() vocab.ActivityStreamsCollection { + return this.activitystreamsCollectionMember +} + +// GetActivityStreamsCollectionPage returns the value of this property. When +// IsActivityStreamsCollectionPage returns false, +// GetActivityStreamsCollectionPage will return an arbitrary value. +func (this ActivityStreamsSourceProperty) GetActivityStreamsCollectionPage() vocab.ActivityStreamsCollectionPage { + return this.activitystreamsCollectionPageMember +} + +// GetActivityStreamsCreate returns the value of this property. When +// IsActivityStreamsCreate returns false, GetActivityStreamsCreate will return +// an arbitrary value. +func (this ActivityStreamsSourceProperty) GetActivityStreamsCreate() vocab.ActivityStreamsCreate { + return this.activitystreamsCreateMember +} + +// GetActivityStreamsDelete returns the value of this property. When +// IsActivityStreamsDelete returns false, GetActivityStreamsDelete will return +// an arbitrary value. +func (this ActivityStreamsSourceProperty) GetActivityStreamsDelete() vocab.ActivityStreamsDelete { + return this.activitystreamsDeleteMember +} + +// GetActivityStreamsDislike returns the value of this property. When +// IsActivityStreamsDislike returns false, GetActivityStreamsDislike will +// return an arbitrary value. +func (this ActivityStreamsSourceProperty) GetActivityStreamsDislike() vocab.ActivityStreamsDislike { + return this.activitystreamsDislikeMember +} + +// GetActivityStreamsDocument returns the value of this property. When +// IsActivityStreamsDocument returns false, GetActivityStreamsDocument will +// return an arbitrary value. +func (this ActivityStreamsSourceProperty) GetActivityStreamsDocument() vocab.ActivityStreamsDocument { + return this.activitystreamsDocumentMember +} + +// GetActivityStreamsEvent returns the value of this property. When +// IsActivityStreamsEvent returns false, GetActivityStreamsEvent will return +// an arbitrary value. +func (this ActivityStreamsSourceProperty) GetActivityStreamsEvent() vocab.ActivityStreamsEvent { + return this.activitystreamsEventMember +} + +// GetActivityStreamsFlag returns the value of this property. When +// IsActivityStreamsFlag returns false, GetActivityStreamsFlag will return an +// arbitrary value. +func (this ActivityStreamsSourceProperty) GetActivityStreamsFlag() vocab.ActivityStreamsFlag { + return this.activitystreamsFlagMember +} + +// GetActivityStreamsFollow returns the value of this property. When +// IsActivityStreamsFollow returns false, GetActivityStreamsFollow will return +// an arbitrary value. +func (this ActivityStreamsSourceProperty) GetActivityStreamsFollow() vocab.ActivityStreamsFollow { + return this.activitystreamsFollowMember +} + +// GetActivityStreamsGroup returns the value of this property. When +// IsActivityStreamsGroup returns false, GetActivityStreamsGroup will return +// an arbitrary value. +func (this ActivityStreamsSourceProperty) GetActivityStreamsGroup() vocab.ActivityStreamsGroup { + return this.activitystreamsGroupMember +} + +// GetActivityStreamsIgnore returns the value of this property. When +// IsActivityStreamsIgnore returns false, GetActivityStreamsIgnore will return +// an arbitrary value. +func (this ActivityStreamsSourceProperty) GetActivityStreamsIgnore() vocab.ActivityStreamsIgnore { + return this.activitystreamsIgnoreMember +} + +// GetActivityStreamsImage returns the value of this property. When +// IsActivityStreamsImage returns false, GetActivityStreamsImage will return +// an arbitrary value. +func (this ActivityStreamsSourceProperty) GetActivityStreamsImage() vocab.ActivityStreamsImage { + return this.activitystreamsImageMember +} + +// GetActivityStreamsIntransitiveActivity returns the value of this property. When +// IsActivityStreamsIntransitiveActivity returns false, +// GetActivityStreamsIntransitiveActivity will return an arbitrary value. +func (this ActivityStreamsSourceProperty) GetActivityStreamsIntransitiveActivity() vocab.ActivityStreamsIntransitiveActivity { + return this.activitystreamsIntransitiveActivityMember +} + +// GetActivityStreamsInvite returns the value of this property. When +// IsActivityStreamsInvite returns false, GetActivityStreamsInvite will return +// an arbitrary value. +func (this ActivityStreamsSourceProperty) GetActivityStreamsInvite() vocab.ActivityStreamsInvite { + return this.activitystreamsInviteMember +} + +// GetActivityStreamsJoin returns the value of this property. When +// IsActivityStreamsJoin returns false, GetActivityStreamsJoin will return an +// arbitrary value. +func (this ActivityStreamsSourceProperty) GetActivityStreamsJoin() vocab.ActivityStreamsJoin { + return this.activitystreamsJoinMember +} + +// GetActivityStreamsLeave returns the value of this property. When +// IsActivityStreamsLeave returns false, GetActivityStreamsLeave will return +// an arbitrary value. +func (this ActivityStreamsSourceProperty) GetActivityStreamsLeave() vocab.ActivityStreamsLeave { + return this.activitystreamsLeaveMember +} + +// GetActivityStreamsLike returns the value of this property. When +// IsActivityStreamsLike returns false, GetActivityStreamsLike will return an +// arbitrary value. +func (this ActivityStreamsSourceProperty) GetActivityStreamsLike() vocab.ActivityStreamsLike { + return this.activitystreamsLikeMember +} + +// GetActivityStreamsLink returns the value of this property. When +// IsActivityStreamsLink returns false, GetActivityStreamsLink will return an +// arbitrary value. +func (this ActivityStreamsSourceProperty) GetActivityStreamsLink() vocab.ActivityStreamsLink { + return this.activitystreamsLinkMember +} + +// GetActivityStreamsListen returns the value of this property. When +// IsActivityStreamsListen returns false, GetActivityStreamsListen will return +// an arbitrary value. +func (this ActivityStreamsSourceProperty) GetActivityStreamsListen() vocab.ActivityStreamsListen { + return this.activitystreamsListenMember +} + +// GetActivityStreamsMention returns the value of this property. When +// IsActivityStreamsMention returns false, GetActivityStreamsMention will +// return an arbitrary value. +func (this ActivityStreamsSourceProperty) GetActivityStreamsMention() vocab.ActivityStreamsMention { + return this.activitystreamsMentionMember +} + +// GetActivityStreamsMove returns the value of this property. When +// IsActivityStreamsMove returns false, GetActivityStreamsMove will return an +// arbitrary value. +func (this ActivityStreamsSourceProperty) GetActivityStreamsMove() vocab.ActivityStreamsMove { + return this.activitystreamsMoveMember +} + +// GetActivityStreamsNote returns the value of this property. When +// IsActivityStreamsNote returns false, GetActivityStreamsNote will return an +// arbitrary value. +func (this ActivityStreamsSourceProperty) GetActivityStreamsNote() vocab.ActivityStreamsNote { + return this.activitystreamsNoteMember +} + +// GetActivityStreamsObject returns the value of this property. When +// IsActivityStreamsObject returns false, GetActivityStreamsObject will return +// an arbitrary value. +func (this ActivityStreamsSourceProperty) GetActivityStreamsObject() vocab.ActivityStreamsObject { + return this.activitystreamsObjectMember +} + +// GetActivityStreamsOffer returns the value of this property. When +// IsActivityStreamsOffer returns false, GetActivityStreamsOffer will return +// an arbitrary value. +func (this ActivityStreamsSourceProperty) GetActivityStreamsOffer() vocab.ActivityStreamsOffer { + return this.activitystreamsOfferMember +} + +// GetActivityStreamsOrderedCollection returns the value of this property. When +// IsActivityStreamsOrderedCollection returns false, +// GetActivityStreamsOrderedCollection will return an arbitrary value. +func (this ActivityStreamsSourceProperty) GetActivityStreamsOrderedCollection() vocab.ActivityStreamsOrderedCollection { + return this.activitystreamsOrderedCollectionMember +} + +// GetActivityStreamsOrderedCollectionPage returns the value of this property. +// When IsActivityStreamsOrderedCollectionPage returns false, +// GetActivityStreamsOrderedCollectionPage will return an arbitrary value. +func (this ActivityStreamsSourceProperty) GetActivityStreamsOrderedCollectionPage() vocab.ActivityStreamsOrderedCollectionPage { + return this.activitystreamsOrderedCollectionPageMember +} + +// GetActivityStreamsOrganization returns the value of this property. When +// IsActivityStreamsOrganization returns false, GetActivityStreamsOrganization +// will return an arbitrary value. +func (this ActivityStreamsSourceProperty) GetActivityStreamsOrganization() vocab.ActivityStreamsOrganization { + return this.activitystreamsOrganizationMember +} + +// GetActivityStreamsPage returns the value of this property. When +// IsActivityStreamsPage returns false, GetActivityStreamsPage will return an +// arbitrary value. +func (this ActivityStreamsSourceProperty) GetActivityStreamsPage() vocab.ActivityStreamsPage { + return this.activitystreamsPageMember +} + +// GetActivityStreamsPerson returns the value of this property. When +// IsActivityStreamsPerson returns false, GetActivityStreamsPerson will return +// an arbitrary value. +func (this ActivityStreamsSourceProperty) GetActivityStreamsPerson() vocab.ActivityStreamsPerson { + return this.activitystreamsPersonMember +} + +// GetActivityStreamsPlace returns the value of this property. When +// IsActivityStreamsPlace returns false, GetActivityStreamsPlace will return +// an arbitrary value. +func (this ActivityStreamsSourceProperty) GetActivityStreamsPlace() vocab.ActivityStreamsPlace { + return this.activitystreamsPlaceMember +} + +// GetActivityStreamsProfile returns the value of this property. When +// IsActivityStreamsProfile returns false, GetActivityStreamsProfile will +// return an arbitrary value. +func (this ActivityStreamsSourceProperty) GetActivityStreamsProfile() vocab.ActivityStreamsProfile { + return this.activitystreamsProfileMember +} + +// GetActivityStreamsQuestion returns the value of this property. When +// IsActivityStreamsQuestion returns false, GetActivityStreamsQuestion will +// return an arbitrary value. +func (this ActivityStreamsSourceProperty) GetActivityStreamsQuestion() vocab.ActivityStreamsQuestion { + return this.activitystreamsQuestionMember +} + +// GetActivityStreamsRead returns the value of this property. When +// IsActivityStreamsRead returns false, GetActivityStreamsRead will return an +// arbitrary value. +func (this ActivityStreamsSourceProperty) GetActivityStreamsRead() vocab.ActivityStreamsRead { + return this.activitystreamsReadMember +} + +// GetActivityStreamsReject returns the value of this property. When +// IsActivityStreamsReject returns false, GetActivityStreamsReject will return +// an arbitrary value. +func (this ActivityStreamsSourceProperty) GetActivityStreamsReject() vocab.ActivityStreamsReject { + return this.activitystreamsRejectMember +} + +// GetActivityStreamsRelationship returns the value of this property. When +// IsActivityStreamsRelationship returns false, GetActivityStreamsRelationship +// will return an arbitrary value. +func (this ActivityStreamsSourceProperty) GetActivityStreamsRelationship() vocab.ActivityStreamsRelationship { + return this.activitystreamsRelationshipMember +} + +// GetActivityStreamsRemove returns the value of this property. When +// IsActivityStreamsRemove returns false, GetActivityStreamsRemove will return +// an arbitrary value. +func (this ActivityStreamsSourceProperty) GetActivityStreamsRemove() vocab.ActivityStreamsRemove { + return this.activitystreamsRemoveMember +} + +// GetActivityStreamsService returns the value of this property. When +// IsActivityStreamsService returns false, GetActivityStreamsService will +// return an arbitrary value. +func (this ActivityStreamsSourceProperty) GetActivityStreamsService() vocab.ActivityStreamsService { + return this.activitystreamsServiceMember +} + +// GetActivityStreamsTentativeAccept returns the value of this property. When +// IsActivityStreamsTentativeAccept returns false, +// GetActivityStreamsTentativeAccept will return an arbitrary value. +func (this ActivityStreamsSourceProperty) GetActivityStreamsTentativeAccept() vocab.ActivityStreamsTentativeAccept { + return this.activitystreamsTentativeAcceptMember +} + +// GetActivityStreamsTentativeReject returns the value of this property. When +// IsActivityStreamsTentativeReject returns false, +// GetActivityStreamsTentativeReject will return an arbitrary value. +func (this ActivityStreamsSourceProperty) GetActivityStreamsTentativeReject() vocab.ActivityStreamsTentativeReject { + return this.activitystreamsTentativeRejectMember +} + +// GetActivityStreamsTombstone returns the value of this property. When +// IsActivityStreamsTombstone returns false, GetActivityStreamsTombstone will +// return an arbitrary value. +func (this ActivityStreamsSourceProperty) GetActivityStreamsTombstone() vocab.ActivityStreamsTombstone { + return this.activitystreamsTombstoneMember +} + +// GetActivityStreamsTravel returns the value of this property. When +// IsActivityStreamsTravel returns false, GetActivityStreamsTravel will return +// an arbitrary value. +func (this ActivityStreamsSourceProperty) GetActivityStreamsTravel() vocab.ActivityStreamsTravel { + return this.activitystreamsTravelMember +} + +// GetActivityStreamsUndo returns the value of this property. When +// IsActivityStreamsUndo returns false, GetActivityStreamsUndo will return an +// arbitrary value. +func (this ActivityStreamsSourceProperty) GetActivityStreamsUndo() vocab.ActivityStreamsUndo { + return this.activitystreamsUndoMember +} + +// GetActivityStreamsUpdate returns the value of this property. When +// IsActivityStreamsUpdate returns false, GetActivityStreamsUpdate will return +// an arbitrary value. +func (this ActivityStreamsSourceProperty) GetActivityStreamsUpdate() vocab.ActivityStreamsUpdate { + return this.activitystreamsUpdateMember +} + +// GetActivityStreamsVideo returns the value of this property. When +// IsActivityStreamsVideo returns false, GetActivityStreamsVideo will return +// an arbitrary value. +func (this ActivityStreamsSourceProperty) GetActivityStreamsVideo() vocab.ActivityStreamsVideo { + return this.activitystreamsVideoMember +} + +// GetActivityStreamsView returns the value of this property. When +// IsActivityStreamsView returns false, GetActivityStreamsView will return an +// arbitrary value. +func (this ActivityStreamsSourceProperty) GetActivityStreamsView() vocab.ActivityStreamsView { + return this.activitystreamsViewMember +} + +// GetForgeFedBranch returns the value of this property. When IsForgeFedBranch +// returns false, GetForgeFedBranch will return an arbitrary value. +func (this ActivityStreamsSourceProperty) GetForgeFedBranch() vocab.ForgeFedBranch { + return this.forgefedBranchMember +} + +// GetForgeFedCommit returns the value of this property. When IsForgeFedCommit +// returns false, GetForgeFedCommit will return an arbitrary value. +func (this ActivityStreamsSourceProperty) GetForgeFedCommit() vocab.ForgeFedCommit { + return this.forgefedCommitMember +} + +// GetForgeFedPush returns the value of this property. When IsForgeFedPush returns +// false, GetForgeFedPush will return an arbitrary value. +func (this ActivityStreamsSourceProperty) GetForgeFedPush() vocab.ForgeFedPush { + return this.forgefedPushMember +} + +// GetForgeFedRepository returns the value of this property. When +// IsForgeFedRepository returns false, GetForgeFedRepository will return an +// arbitrary value. +func (this ActivityStreamsSourceProperty) GetForgeFedRepository() vocab.ForgeFedRepository { + return this.forgefedRepositoryMember +} + +// GetForgeFedTicket returns the value of this property. When IsForgeFedTicket +// returns false, GetForgeFedTicket will return an arbitrary value. +func (this ActivityStreamsSourceProperty) GetForgeFedTicket() vocab.ForgeFedTicket { + return this.forgefedTicketMember +} + +// GetForgeFedTicketDependency returns the value of this property. When +// IsForgeFedTicketDependency returns false, GetForgeFedTicketDependency will +// return an arbitrary value. +func (this ActivityStreamsSourceProperty) GetForgeFedTicketDependency() vocab.ForgeFedTicketDependency { + return this.forgefedTicketDependencyMember +} + +// GetIRI returns the IRI of this property. When IsIRI returns false, GetIRI will +// return an arbitrary value. +func (this ActivityStreamsSourceProperty) GetIRI() *url.URL { + return this.iri +} + +// GetTootEmoji returns the value of this property. When IsTootEmoji returns +// false, GetTootEmoji will return an arbitrary value. +func (this ActivityStreamsSourceProperty) GetTootEmoji() vocab.TootEmoji { + return this.tootEmojiMember +} + +// GetTootIdentityProof returns the value of this property. When +// IsTootIdentityProof returns false, GetTootIdentityProof will return an +// arbitrary value. +func (this ActivityStreamsSourceProperty) GetTootIdentityProof() vocab.TootIdentityProof { + return this.tootIdentityProofMember +} + +// GetType returns the value in this property as a Type. Returns nil if the value +// is not an ActivityStreams type, such as an IRI or another value. +func (this ActivityStreamsSourceProperty) GetType() vocab.Type { + if this.IsActivityStreamsObject() { + return this.GetActivityStreamsObject() + } + if this.IsActivityStreamsLink() { + return this.GetActivityStreamsLink() + } + if this.IsActivityStreamsAccept() { + return this.GetActivityStreamsAccept() + } + if this.IsActivityStreamsActivity() { + return this.GetActivityStreamsActivity() + } + if this.IsActivityStreamsAdd() { + return this.GetActivityStreamsAdd() + } + if this.IsActivityStreamsAnnounce() { + return this.GetActivityStreamsAnnounce() + } + if this.IsActivityStreamsApplication() { + return this.GetActivityStreamsApplication() + } + if this.IsActivityStreamsArrive() { + return this.GetActivityStreamsArrive() + } + if this.IsActivityStreamsArticle() { + return this.GetActivityStreamsArticle() + } + if this.IsActivityStreamsAudio() { + return this.GetActivityStreamsAudio() + } + if this.IsActivityStreamsBlock() { + return this.GetActivityStreamsBlock() + } + if this.IsForgeFedBranch() { + return this.GetForgeFedBranch() + } + if this.IsActivityStreamsCollection() { + return this.GetActivityStreamsCollection() + } + if this.IsActivityStreamsCollectionPage() { + return this.GetActivityStreamsCollectionPage() + } + if this.IsForgeFedCommit() { + return this.GetForgeFedCommit() + } + if this.IsActivityStreamsCreate() { + return this.GetActivityStreamsCreate() + } + if this.IsActivityStreamsDelete() { + return this.GetActivityStreamsDelete() + } + if this.IsActivityStreamsDislike() { + return this.GetActivityStreamsDislike() + } + if this.IsActivityStreamsDocument() { + return this.GetActivityStreamsDocument() + } + if this.IsTootEmoji() { + return this.GetTootEmoji() + } + if this.IsActivityStreamsEvent() { + return this.GetActivityStreamsEvent() + } + if this.IsActivityStreamsFlag() { + return this.GetActivityStreamsFlag() + } + if this.IsActivityStreamsFollow() { + return this.GetActivityStreamsFollow() + } + if this.IsActivityStreamsGroup() { + return this.GetActivityStreamsGroup() + } + if this.IsTootIdentityProof() { + return this.GetTootIdentityProof() + } + if this.IsActivityStreamsIgnore() { + return this.GetActivityStreamsIgnore() + } + if this.IsActivityStreamsImage() { + return this.GetActivityStreamsImage() + } + if this.IsActivityStreamsIntransitiveActivity() { + return this.GetActivityStreamsIntransitiveActivity() + } + if this.IsActivityStreamsInvite() { + return this.GetActivityStreamsInvite() + } + if this.IsActivityStreamsJoin() { + return this.GetActivityStreamsJoin() + } + if this.IsActivityStreamsLeave() { + return this.GetActivityStreamsLeave() + } + if this.IsActivityStreamsLike() { + return this.GetActivityStreamsLike() + } + if this.IsActivityStreamsListen() { + return this.GetActivityStreamsListen() + } + if this.IsActivityStreamsMention() { + return this.GetActivityStreamsMention() + } + if this.IsActivityStreamsMove() { + return this.GetActivityStreamsMove() + } + if this.IsActivityStreamsNote() { + return this.GetActivityStreamsNote() + } + if this.IsActivityStreamsOffer() { + return this.GetActivityStreamsOffer() + } + if this.IsActivityStreamsOrderedCollection() { + return this.GetActivityStreamsOrderedCollection() + } + if this.IsActivityStreamsOrderedCollectionPage() { + return this.GetActivityStreamsOrderedCollectionPage() + } + if this.IsActivityStreamsOrganization() { + return this.GetActivityStreamsOrganization() + } + if this.IsActivityStreamsPage() { + return this.GetActivityStreamsPage() + } + if this.IsActivityStreamsPerson() { + return this.GetActivityStreamsPerson() + } + if this.IsActivityStreamsPlace() { + return this.GetActivityStreamsPlace() + } + if this.IsActivityStreamsProfile() { + return this.GetActivityStreamsProfile() + } + if this.IsForgeFedPush() { + return this.GetForgeFedPush() + } + if this.IsActivityStreamsQuestion() { + return this.GetActivityStreamsQuestion() + } + if this.IsActivityStreamsRead() { + return this.GetActivityStreamsRead() + } + if this.IsActivityStreamsReject() { + return this.GetActivityStreamsReject() + } + if this.IsActivityStreamsRelationship() { + return this.GetActivityStreamsRelationship() + } + if this.IsActivityStreamsRemove() { + return this.GetActivityStreamsRemove() + } + if this.IsForgeFedRepository() { + return this.GetForgeFedRepository() + } + if this.IsActivityStreamsService() { + return this.GetActivityStreamsService() + } + if this.IsActivityStreamsTentativeAccept() { + return this.GetActivityStreamsTentativeAccept() + } + if this.IsActivityStreamsTentativeReject() { + return this.GetActivityStreamsTentativeReject() + } + if this.IsForgeFedTicket() { + return this.GetForgeFedTicket() + } + if this.IsForgeFedTicketDependency() { + return this.GetForgeFedTicketDependency() + } + if this.IsActivityStreamsTombstone() { + return this.GetActivityStreamsTombstone() + } + if this.IsActivityStreamsTravel() { + return this.GetActivityStreamsTravel() + } + if this.IsActivityStreamsUndo() { + return this.GetActivityStreamsUndo() + } + if this.IsActivityStreamsUpdate() { + return this.GetActivityStreamsUpdate() + } + if this.IsActivityStreamsVideo() { + return this.GetActivityStreamsVideo() + } + if this.IsActivityStreamsView() { + return this.GetActivityStreamsView() + } + + return nil +} + +// HasAny returns true if any of the different values is set. +func (this ActivityStreamsSourceProperty) HasAny() bool { + return this.IsActivityStreamsObject() || + this.IsActivityStreamsLink() || + this.IsActivityStreamsAccept() || + this.IsActivityStreamsActivity() || + this.IsActivityStreamsAdd() || + this.IsActivityStreamsAnnounce() || + this.IsActivityStreamsApplication() || + this.IsActivityStreamsArrive() || + this.IsActivityStreamsArticle() || + this.IsActivityStreamsAudio() || + this.IsActivityStreamsBlock() || + this.IsForgeFedBranch() || + this.IsActivityStreamsCollection() || + this.IsActivityStreamsCollectionPage() || + this.IsForgeFedCommit() || + this.IsActivityStreamsCreate() || + this.IsActivityStreamsDelete() || + this.IsActivityStreamsDislike() || + this.IsActivityStreamsDocument() || + this.IsTootEmoji() || + this.IsActivityStreamsEvent() || + this.IsActivityStreamsFlag() || + this.IsActivityStreamsFollow() || + this.IsActivityStreamsGroup() || + this.IsTootIdentityProof() || + this.IsActivityStreamsIgnore() || + this.IsActivityStreamsImage() || + this.IsActivityStreamsIntransitiveActivity() || + this.IsActivityStreamsInvite() || + this.IsActivityStreamsJoin() || + this.IsActivityStreamsLeave() || + this.IsActivityStreamsLike() || + this.IsActivityStreamsListen() || + this.IsActivityStreamsMention() || + this.IsActivityStreamsMove() || + this.IsActivityStreamsNote() || + this.IsActivityStreamsOffer() || + this.IsActivityStreamsOrderedCollection() || + this.IsActivityStreamsOrderedCollectionPage() || + this.IsActivityStreamsOrganization() || + this.IsActivityStreamsPage() || + this.IsActivityStreamsPerson() || + this.IsActivityStreamsPlace() || + this.IsActivityStreamsProfile() || + this.IsForgeFedPush() || + this.IsActivityStreamsQuestion() || + this.IsActivityStreamsRead() || + this.IsActivityStreamsReject() || + this.IsActivityStreamsRelationship() || + this.IsActivityStreamsRemove() || + this.IsForgeFedRepository() || + this.IsActivityStreamsService() || + this.IsActivityStreamsTentativeAccept() || + this.IsActivityStreamsTentativeReject() || + this.IsForgeFedTicket() || + this.IsForgeFedTicketDependency() || + this.IsActivityStreamsTombstone() || + this.IsActivityStreamsTravel() || + this.IsActivityStreamsUndo() || + this.IsActivityStreamsUpdate() || + this.IsActivityStreamsVideo() || + this.IsActivityStreamsView() || + this.iri != nil +} + +// IsActivityStreamsAccept returns true if this property has a type of "Accept". +// When true, use the GetActivityStreamsAccept and SetActivityStreamsAccept +// methods to access and set this property. +func (this ActivityStreamsSourceProperty) IsActivityStreamsAccept() bool { + return this.activitystreamsAcceptMember != nil +} + +// IsActivityStreamsActivity returns true if this property has a type of +// "Activity". When true, use the GetActivityStreamsActivity and +// SetActivityStreamsActivity methods to access and set this property. +func (this ActivityStreamsSourceProperty) IsActivityStreamsActivity() bool { + return this.activitystreamsActivityMember != nil +} + +// IsActivityStreamsAdd returns true if this property has a type of "Add". When +// true, use the GetActivityStreamsAdd and SetActivityStreamsAdd methods to +// access and set this property. +func (this ActivityStreamsSourceProperty) IsActivityStreamsAdd() bool { + return this.activitystreamsAddMember != nil +} + +// IsActivityStreamsAnnounce returns true if this property has a type of +// "Announce". When true, use the GetActivityStreamsAnnounce and +// SetActivityStreamsAnnounce methods to access and set this property. +func (this ActivityStreamsSourceProperty) IsActivityStreamsAnnounce() bool { + return this.activitystreamsAnnounceMember != nil +} + +// IsActivityStreamsApplication returns true if this property has a type of +// "Application". When true, use the GetActivityStreamsApplication and +// SetActivityStreamsApplication methods to access and set this property. +func (this ActivityStreamsSourceProperty) IsActivityStreamsApplication() bool { + return this.activitystreamsApplicationMember != nil +} + +// IsActivityStreamsArrive returns true if this property has a type of "Arrive". +// When true, use the GetActivityStreamsArrive and SetActivityStreamsArrive +// methods to access and set this property. +func (this ActivityStreamsSourceProperty) IsActivityStreamsArrive() bool { + return this.activitystreamsArriveMember != nil +} + +// IsActivityStreamsArticle returns true if this property has a type of "Article". +// When true, use the GetActivityStreamsArticle and SetActivityStreamsArticle +// methods to access and set this property. +func (this ActivityStreamsSourceProperty) IsActivityStreamsArticle() bool { + return this.activitystreamsArticleMember != nil +} + +// IsActivityStreamsAudio returns true if this property has a type of "Audio". +// When true, use the GetActivityStreamsAudio and SetActivityStreamsAudio +// methods to access and set this property. +func (this ActivityStreamsSourceProperty) IsActivityStreamsAudio() bool { + return this.activitystreamsAudioMember != nil +} + +// IsActivityStreamsBlock returns true if this property has a type of "Block". +// When true, use the GetActivityStreamsBlock and SetActivityStreamsBlock +// methods to access and set this property. +func (this ActivityStreamsSourceProperty) IsActivityStreamsBlock() bool { + return this.activitystreamsBlockMember != nil +} + +// IsActivityStreamsCollection returns true if this property has a type of +// "Collection". When true, use the GetActivityStreamsCollection and +// SetActivityStreamsCollection methods to access and set this property. +func (this ActivityStreamsSourceProperty) IsActivityStreamsCollection() bool { + return this.activitystreamsCollectionMember != nil +} + +// IsActivityStreamsCollectionPage returns true if this property has a type of +// "CollectionPage". When true, use the GetActivityStreamsCollectionPage and +// SetActivityStreamsCollectionPage methods to access and set this property. +func (this ActivityStreamsSourceProperty) IsActivityStreamsCollectionPage() bool { + return this.activitystreamsCollectionPageMember != nil +} + +// IsActivityStreamsCreate returns true if this property has a type of "Create". +// When true, use the GetActivityStreamsCreate and SetActivityStreamsCreate +// methods to access and set this property. +func (this ActivityStreamsSourceProperty) IsActivityStreamsCreate() bool { + return this.activitystreamsCreateMember != nil +} + +// IsActivityStreamsDelete returns true if this property has a type of "Delete". +// When true, use the GetActivityStreamsDelete and SetActivityStreamsDelete +// methods to access and set this property. +func (this ActivityStreamsSourceProperty) IsActivityStreamsDelete() bool { + return this.activitystreamsDeleteMember != nil +} + +// IsActivityStreamsDislike returns true if this property has a type of "Dislike". +// When true, use the GetActivityStreamsDislike and SetActivityStreamsDislike +// methods to access and set this property. +func (this ActivityStreamsSourceProperty) IsActivityStreamsDislike() bool { + return this.activitystreamsDislikeMember != nil +} + +// IsActivityStreamsDocument returns true if this property has a type of +// "Document". When true, use the GetActivityStreamsDocument and +// SetActivityStreamsDocument methods to access and set this property. +func (this ActivityStreamsSourceProperty) IsActivityStreamsDocument() bool { + return this.activitystreamsDocumentMember != nil +} + +// IsActivityStreamsEvent returns true if this property has a type of "Event". +// When true, use the GetActivityStreamsEvent and SetActivityStreamsEvent +// methods to access and set this property. +func (this ActivityStreamsSourceProperty) IsActivityStreamsEvent() bool { + return this.activitystreamsEventMember != nil +} + +// IsActivityStreamsFlag returns true if this property has a type of "Flag". When +// true, use the GetActivityStreamsFlag and SetActivityStreamsFlag methods to +// access and set this property. +func (this ActivityStreamsSourceProperty) IsActivityStreamsFlag() bool { + return this.activitystreamsFlagMember != nil +} + +// IsActivityStreamsFollow returns true if this property has a type of "Follow". +// When true, use the GetActivityStreamsFollow and SetActivityStreamsFollow +// methods to access and set this property. +func (this ActivityStreamsSourceProperty) IsActivityStreamsFollow() bool { + return this.activitystreamsFollowMember != nil +} + +// IsActivityStreamsGroup returns true if this property has a type of "Group". +// When true, use the GetActivityStreamsGroup and SetActivityStreamsGroup +// methods to access and set this property. +func (this ActivityStreamsSourceProperty) IsActivityStreamsGroup() bool { + return this.activitystreamsGroupMember != nil +} + +// IsActivityStreamsIgnore returns true if this property has a type of "Ignore". +// When true, use the GetActivityStreamsIgnore and SetActivityStreamsIgnore +// methods to access and set this property. +func (this ActivityStreamsSourceProperty) IsActivityStreamsIgnore() bool { + return this.activitystreamsIgnoreMember != nil +} + +// IsActivityStreamsImage returns true if this property has a type of "Image". +// When true, use the GetActivityStreamsImage and SetActivityStreamsImage +// methods to access and set this property. +func (this ActivityStreamsSourceProperty) IsActivityStreamsImage() bool { + return this.activitystreamsImageMember != nil +} + +// IsActivityStreamsIntransitiveActivity returns true if this property has a type +// of "IntransitiveActivity". When true, use the +// GetActivityStreamsIntransitiveActivity and +// SetActivityStreamsIntransitiveActivity methods to access and set this +// property. +func (this ActivityStreamsSourceProperty) IsActivityStreamsIntransitiveActivity() bool { + return this.activitystreamsIntransitiveActivityMember != nil +} + +// IsActivityStreamsInvite returns true if this property has a type of "Invite". +// When true, use the GetActivityStreamsInvite and SetActivityStreamsInvite +// methods to access and set this property. +func (this ActivityStreamsSourceProperty) IsActivityStreamsInvite() bool { + return this.activitystreamsInviteMember != nil +} + +// IsActivityStreamsJoin returns true if this property has a type of "Join". When +// true, use the GetActivityStreamsJoin and SetActivityStreamsJoin methods to +// access and set this property. +func (this ActivityStreamsSourceProperty) IsActivityStreamsJoin() bool { + return this.activitystreamsJoinMember != nil +} + +// IsActivityStreamsLeave returns true if this property has a type of "Leave". +// When true, use the GetActivityStreamsLeave and SetActivityStreamsLeave +// methods to access and set this property. +func (this ActivityStreamsSourceProperty) IsActivityStreamsLeave() bool { + return this.activitystreamsLeaveMember != nil +} + +// IsActivityStreamsLike returns true if this property has a type of "Like". When +// true, use the GetActivityStreamsLike and SetActivityStreamsLike methods to +// access and set this property. +func (this ActivityStreamsSourceProperty) IsActivityStreamsLike() bool { + return this.activitystreamsLikeMember != nil +} + +// IsActivityStreamsLink returns true if this property has a type of "Link". When +// true, use the GetActivityStreamsLink and SetActivityStreamsLink methods to +// access and set this property. +func (this ActivityStreamsSourceProperty) IsActivityStreamsLink() bool { + return this.activitystreamsLinkMember != nil +} + +// IsActivityStreamsListen returns true if this property has a type of "Listen". +// When true, use the GetActivityStreamsListen and SetActivityStreamsListen +// methods to access and set this property. +func (this ActivityStreamsSourceProperty) IsActivityStreamsListen() bool { + return this.activitystreamsListenMember != nil +} + +// IsActivityStreamsMention returns true if this property has a type of "Mention". +// When true, use the GetActivityStreamsMention and SetActivityStreamsMention +// methods to access and set this property. +func (this ActivityStreamsSourceProperty) IsActivityStreamsMention() bool { + return this.activitystreamsMentionMember != nil +} + +// IsActivityStreamsMove returns true if this property has a type of "Move". When +// true, use the GetActivityStreamsMove and SetActivityStreamsMove methods to +// access and set this property. +func (this ActivityStreamsSourceProperty) IsActivityStreamsMove() bool { + return this.activitystreamsMoveMember != nil +} + +// IsActivityStreamsNote returns true if this property has a type of "Note". When +// true, use the GetActivityStreamsNote and SetActivityStreamsNote methods to +// access and set this property. +func (this ActivityStreamsSourceProperty) IsActivityStreamsNote() bool { + return this.activitystreamsNoteMember != nil +} + +// IsActivityStreamsObject returns true if this property has a type of "Object". +// When true, use the GetActivityStreamsObject and SetActivityStreamsObject +// methods to access and set this property. +func (this ActivityStreamsSourceProperty) IsActivityStreamsObject() bool { + return this.activitystreamsObjectMember != nil +} + +// IsActivityStreamsOffer returns true if this property has a type of "Offer". +// When true, use the GetActivityStreamsOffer and SetActivityStreamsOffer +// methods to access and set this property. +func (this ActivityStreamsSourceProperty) IsActivityStreamsOffer() bool { + return this.activitystreamsOfferMember != nil +} + +// IsActivityStreamsOrderedCollection returns true if this property has a type of +// "OrderedCollection". When true, use the GetActivityStreamsOrderedCollection +// and SetActivityStreamsOrderedCollection methods to access and set this +// property. +func (this ActivityStreamsSourceProperty) IsActivityStreamsOrderedCollection() bool { + return this.activitystreamsOrderedCollectionMember != nil +} + +// IsActivityStreamsOrderedCollectionPage returns true if this property has a type +// of "OrderedCollectionPage". When true, use the +// GetActivityStreamsOrderedCollectionPage and +// SetActivityStreamsOrderedCollectionPage methods to access and set this +// property. +func (this ActivityStreamsSourceProperty) IsActivityStreamsOrderedCollectionPage() bool { + return this.activitystreamsOrderedCollectionPageMember != nil +} + +// IsActivityStreamsOrganization returns true if this property has a type of +// "Organization". When true, use the GetActivityStreamsOrganization and +// SetActivityStreamsOrganization methods to access and set this property. +func (this ActivityStreamsSourceProperty) IsActivityStreamsOrganization() bool { + return this.activitystreamsOrganizationMember != nil +} + +// IsActivityStreamsPage returns true if this property has a type of "Page". When +// true, use the GetActivityStreamsPage and SetActivityStreamsPage methods to +// access and set this property. +func (this ActivityStreamsSourceProperty) IsActivityStreamsPage() bool { + return this.activitystreamsPageMember != nil +} + +// IsActivityStreamsPerson returns true if this property has a type of "Person". +// When true, use the GetActivityStreamsPerson and SetActivityStreamsPerson +// methods to access and set this property. +func (this ActivityStreamsSourceProperty) IsActivityStreamsPerson() bool { + return this.activitystreamsPersonMember != nil +} + +// IsActivityStreamsPlace returns true if this property has a type of "Place". +// When true, use the GetActivityStreamsPlace and SetActivityStreamsPlace +// methods to access and set this property. +func (this ActivityStreamsSourceProperty) IsActivityStreamsPlace() bool { + return this.activitystreamsPlaceMember != nil +} + +// IsActivityStreamsProfile returns true if this property has a type of "Profile". +// When true, use the GetActivityStreamsProfile and SetActivityStreamsProfile +// methods to access and set this property. +func (this ActivityStreamsSourceProperty) IsActivityStreamsProfile() bool { + return this.activitystreamsProfileMember != nil +} + +// IsActivityStreamsQuestion returns true if this property has a type of +// "Question". When true, use the GetActivityStreamsQuestion and +// SetActivityStreamsQuestion methods to access and set this property. +func (this ActivityStreamsSourceProperty) IsActivityStreamsQuestion() bool { + return this.activitystreamsQuestionMember != nil +} + +// IsActivityStreamsRead returns true if this property has a type of "Read". When +// true, use the GetActivityStreamsRead and SetActivityStreamsRead methods to +// access and set this property. +func (this ActivityStreamsSourceProperty) IsActivityStreamsRead() bool { + return this.activitystreamsReadMember != nil +} + +// IsActivityStreamsReject returns true if this property has a type of "Reject". +// When true, use the GetActivityStreamsReject and SetActivityStreamsReject +// methods to access and set this property. +func (this ActivityStreamsSourceProperty) IsActivityStreamsReject() bool { + return this.activitystreamsRejectMember != nil +} + +// IsActivityStreamsRelationship returns true if this property has a type of +// "Relationship". When true, use the GetActivityStreamsRelationship and +// SetActivityStreamsRelationship methods to access and set this property. +func (this ActivityStreamsSourceProperty) IsActivityStreamsRelationship() bool { + return this.activitystreamsRelationshipMember != nil +} + +// IsActivityStreamsRemove returns true if this property has a type of "Remove". +// When true, use the GetActivityStreamsRemove and SetActivityStreamsRemove +// methods to access and set this property. +func (this ActivityStreamsSourceProperty) IsActivityStreamsRemove() bool { + return this.activitystreamsRemoveMember != nil +} + +// IsActivityStreamsService returns true if this property has a type of "Service". +// When true, use the GetActivityStreamsService and SetActivityStreamsService +// methods to access and set this property. +func (this ActivityStreamsSourceProperty) IsActivityStreamsService() bool { + return this.activitystreamsServiceMember != nil +} + +// IsActivityStreamsTentativeAccept returns true if this property has a type of +// "TentativeAccept". When true, use the GetActivityStreamsTentativeAccept and +// SetActivityStreamsTentativeAccept methods to access and set this property. +func (this ActivityStreamsSourceProperty) IsActivityStreamsTentativeAccept() bool { + return this.activitystreamsTentativeAcceptMember != nil +} + +// IsActivityStreamsTentativeReject returns true if this property has a type of +// "TentativeReject". When true, use the GetActivityStreamsTentativeReject and +// SetActivityStreamsTentativeReject methods to access and set this property. +func (this ActivityStreamsSourceProperty) IsActivityStreamsTentativeReject() bool { + return this.activitystreamsTentativeRejectMember != nil +} + +// IsActivityStreamsTombstone returns true if this property has a type of +// "Tombstone". When true, use the GetActivityStreamsTombstone and +// SetActivityStreamsTombstone methods to access and set this property. +func (this ActivityStreamsSourceProperty) IsActivityStreamsTombstone() bool { + return this.activitystreamsTombstoneMember != nil +} + +// IsActivityStreamsTravel returns true if this property has a type of "Travel". +// When true, use the GetActivityStreamsTravel and SetActivityStreamsTravel +// methods to access and set this property. +func (this ActivityStreamsSourceProperty) IsActivityStreamsTravel() bool { + return this.activitystreamsTravelMember != nil +} + +// IsActivityStreamsUndo returns true if this property has a type of "Undo". When +// true, use the GetActivityStreamsUndo and SetActivityStreamsUndo methods to +// access and set this property. +func (this ActivityStreamsSourceProperty) IsActivityStreamsUndo() bool { + return this.activitystreamsUndoMember != nil +} + +// IsActivityStreamsUpdate returns true if this property has a type of "Update". +// When true, use the GetActivityStreamsUpdate and SetActivityStreamsUpdate +// methods to access and set this property. +func (this ActivityStreamsSourceProperty) IsActivityStreamsUpdate() bool { + return this.activitystreamsUpdateMember != nil +} + +// IsActivityStreamsVideo returns true if this property has a type of "Video". +// When true, use the GetActivityStreamsVideo and SetActivityStreamsVideo +// methods to access and set this property. +func (this ActivityStreamsSourceProperty) IsActivityStreamsVideo() bool { + return this.activitystreamsVideoMember != nil +} + +// IsActivityStreamsView returns true if this property has a type of "View". When +// true, use the GetActivityStreamsView and SetActivityStreamsView methods to +// access and set this property. +func (this ActivityStreamsSourceProperty) IsActivityStreamsView() bool { + return this.activitystreamsViewMember != nil +} + +// IsForgeFedBranch returns true if this property has a type of "Branch". When +// true, use the GetForgeFedBranch and SetForgeFedBranch methods to access and +// set this property. +func (this ActivityStreamsSourceProperty) IsForgeFedBranch() bool { + return this.forgefedBranchMember != nil +} + +// IsForgeFedCommit returns true if this property has a type of "Commit". When +// true, use the GetForgeFedCommit and SetForgeFedCommit methods to access and +// set this property. +func (this ActivityStreamsSourceProperty) IsForgeFedCommit() bool { + return this.forgefedCommitMember != nil +} + +// IsForgeFedPush returns true if this property has a type of "Push". When true, +// use the GetForgeFedPush and SetForgeFedPush methods to access and set this +// property. +func (this ActivityStreamsSourceProperty) IsForgeFedPush() bool { + return this.forgefedPushMember != nil +} + +// IsForgeFedRepository returns true if this property has a type of "Repository". +// When true, use the GetForgeFedRepository and SetForgeFedRepository methods +// to access and set this property. +func (this ActivityStreamsSourceProperty) IsForgeFedRepository() bool { + return this.forgefedRepositoryMember != nil +} + +// IsForgeFedTicket returns true if this property has a type of "Ticket". When +// true, use the GetForgeFedTicket and SetForgeFedTicket methods to access and +// set this property. +func (this ActivityStreamsSourceProperty) IsForgeFedTicket() bool { + return this.forgefedTicketMember != nil +} + +// IsForgeFedTicketDependency returns true if this property has a type of +// "TicketDependency". When true, use the GetForgeFedTicketDependency and +// SetForgeFedTicketDependency methods to access and set this property. +func (this ActivityStreamsSourceProperty) IsForgeFedTicketDependency() bool { + return this.forgefedTicketDependencyMember != nil +} + +// IsIRI returns true if this property is an IRI. When true, use GetIRI and SetIRI +// to access and set this property +func (this ActivityStreamsSourceProperty) IsIRI() bool { + return this.iri != nil +} + +// IsTootEmoji returns true if this property has a type of "Emoji". When true, use +// the GetTootEmoji and SetTootEmoji methods to access and set this property. +func (this ActivityStreamsSourceProperty) IsTootEmoji() bool { + return this.tootEmojiMember != nil +} + +// IsTootIdentityProof returns true if this property has a type of +// "IdentityProof". When true, use the GetTootIdentityProof and +// SetTootIdentityProof methods to access and set this property. +func (this ActivityStreamsSourceProperty) IsTootIdentityProof() bool { + return this.tootIdentityProofMember != nil +} + +// JSONLDContext returns the JSONLD URIs required in the context string for this +// property and the specific values that are set. The value in the map is the +// alias used to import the property's value or values. +func (this ActivityStreamsSourceProperty) JSONLDContext() map[string]string { + m := map[string]string{"https://www.w3.org/ns/activitystreams": this.alias} + var child map[string]string + if this.IsActivityStreamsObject() { + child = this.GetActivityStreamsObject().JSONLDContext() + } else if this.IsActivityStreamsLink() { + child = this.GetActivityStreamsLink().JSONLDContext() + } else if this.IsActivityStreamsAccept() { + child = this.GetActivityStreamsAccept().JSONLDContext() + } else if this.IsActivityStreamsActivity() { + child = this.GetActivityStreamsActivity().JSONLDContext() + } else if this.IsActivityStreamsAdd() { + child = this.GetActivityStreamsAdd().JSONLDContext() + } else if this.IsActivityStreamsAnnounce() { + child = this.GetActivityStreamsAnnounce().JSONLDContext() + } else if this.IsActivityStreamsApplication() { + child = this.GetActivityStreamsApplication().JSONLDContext() + } else if this.IsActivityStreamsArrive() { + child = this.GetActivityStreamsArrive().JSONLDContext() + } else if this.IsActivityStreamsArticle() { + child = this.GetActivityStreamsArticle().JSONLDContext() + } else if this.IsActivityStreamsAudio() { + child = this.GetActivityStreamsAudio().JSONLDContext() + } else if this.IsActivityStreamsBlock() { + child = this.GetActivityStreamsBlock().JSONLDContext() + } else if this.IsForgeFedBranch() { + child = this.GetForgeFedBranch().JSONLDContext() + } else if this.IsActivityStreamsCollection() { + child = this.GetActivityStreamsCollection().JSONLDContext() + } else if this.IsActivityStreamsCollectionPage() { + child = this.GetActivityStreamsCollectionPage().JSONLDContext() + } else if this.IsForgeFedCommit() { + child = this.GetForgeFedCommit().JSONLDContext() + } else if this.IsActivityStreamsCreate() { + child = this.GetActivityStreamsCreate().JSONLDContext() + } else if this.IsActivityStreamsDelete() { + child = this.GetActivityStreamsDelete().JSONLDContext() + } else if this.IsActivityStreamsDislike() { + child = this.GetActivityStreamsDislike().JSONLDContext() + } else if this.IsActivityStreamsDocument() { + child = this.GetActivityStreamsDocument().JSONLDContext() + } else if this.IsTootEmoji() { + child = this.GetTootEmoji().JSONLDContext() + } else if this.IsActivityStreamsEvent() { + child = this.GetActivityStreamsEvent().JSONLDContext() + } else if this.IsActivityStreamsFlag() { + child = this.GetActivityStreamsFlag().JSONLDContext() + } else if this.IsActivityStreamsFollow() { + child = this.GetActivityStreamsFollow().JSONLDContext() + } else if this.IsActivityStreamsGroup() { + child = this.GetActivityStreamsGroup().JSONLDContext() + } else if this.IsTootIdentityProof() { + child = this.GetTootIdentityProof().JSONLDContext() + } else if this.IsActivityStreamsIgnore() { + child = this.GetActivityStreamsIgnore().JSONLDContext() + } else if this.IsActivityStreamsImage() { + child = this.GetActivityStreamsImage().JSONLDContext() + } else if this.IsActivityStreamsIntransitiveActivity() { + child = this.GetActivityStreamsIntransitiveActivity().JSONLDContext() + } else if this.IsActivityStreamsInvite() { + child = this.GetActivityStreamsInvite().JSONLDContext() + } else if this.IsActivityStreamsJoin() { + child = this.GetActivityStreamsJoin().JSONLDContext() + } else if this.IsActivityStreamsLeave() { + child = this.GetActivityStreamsLeave().JSONLDContext() + } else if this.IsActivityStreamsLike() { + child = this.GetActivityStreamsLike().JSONLDContext() + } else if this.IsActivityStreamsListen() { + child = this.GetActivityStreamsListen().JSONLDContext() + } else if this.IsActivityStreamsMention() { + child = this.GetActivityStreamsMention().JSONLDContext() + } else if this.IsActivityStreamsMove() { + child = this.GetActivityStreamsMove().JSONLDContext() + } else if this.IsActivityStreamsNote() { + child = this.GetActivityStreamsNote().JSONLDContext() + } else if this.IsActivityStreamsOffer() { + child = this.GetActivityStreamsOffer().JSONLDContext() + } else if this.IsActivityStreamsOrderedCollection() { + child = this.GetActivityStreamsOrderedCollection().JSONLDContext() + } else if this.IsActivityStreamsOrderedCollectionPage() { + child = this.GetActivityStreamsOrderedCollectionPage().JSONLDContext() + } else if this.IsActivityStreamsOrganization() { + child = this.GetActivityStreamsOrganization().JSONLDContext() + } else if this.IsActivityStreamsPage() { + child = this.GetActivityStreamsPage().JSONLDContext() + } else if this.IsActivityStreamsPerson() { + child = this.GetActivityStreamsPerson().JSONLDContext() + } else if this.IsActivityStreamsPlace() { + child = this.GetActivityStreamsPlace().JSONLDContext() + } else if this.IsActivityStreamsProfile() { + child = this.GetActivityStreamsProfile().JSONLDContext() + } else if this.IsForgeFedPush() { + child = this.GetForgeFedPush().JSONLDContext() + } else if this.IsActivityStreamsQuestion() { + child = this.GetActivityStreamsQuestion().JSONLDContext() + } else if this.IsActivityStreamsRead() { + child = this.GetActivityStreamsRead().JSONLDContext() + } else if this.IsActivityStreamsReject() { + child = this.GetActivityStreamsReject().JSONLDContext() + } else if this.IsActivityStreamsRelationship() { + child = this.GetActivityStreamsRelationship().JSONLDContext() + } else if this.IsActivityStreamsRemove() { + child = this.GetActivityStreamsRemove().JSONLDContext() + } else if this.IsForgeFedRepository() { + child = this.GetForgeFedRepository().JSONLDContext() + } else if this.IsActivityStreamsService() { + child = this.GetActivityStreamsService().JSONLDContext() + } else if this.IsActivityStreamsTentativeAccept() { + child = this.GetActivityStreamsTentativeAccept().JSONLDContext() + } else if this.IsActivityStreamsTentativeReject() { + child = this.GetActivityStreamsTentativeReject().JSONLDContext() + } else if this.IsForgeFedTicket() { + child = this.GetForgeFedTicket().JSONLDContext() + } else if this.IsForgeFedTicketDependency() { + child = this.GetForgeFedTicketDependency().JSONLDContext() + } else if this.IsActivityStreamsTombstone() { + child = this.GetActivityStreamsTombstone().JSONLDContext() + } else if this.IsActivityStreamsTravel() { + child = this.GetActivityStreamsTravel().JSONLDContext() + } else if this.IsActivityStreamsUndo() { + child = this.GetActivityStreamsUndo().JSONLDContext() + } else if this.IsActivityStreamsUpdate() { + child = this.GetActivityStreamsUpdate().JSONLDContext() + } else if this.IsActivityStreamsVideo() { + child = this.GetActivityStreamsVideo().JSONLDContext() + } else if this.IsActivityStreamsView() { + child = this.GetActivityStreamsView().JSONLDContext() + } + /* + Since the literal maps in this function are determined at + code-generation time, this loop should not overwrite an existing key with a + new value. + */ + for k, v := range child { + m[k] = v + } + return m +} + +// KindIndex computes an arbitrary value for indexing this kind of value. This is +// a leaky API detail only for folks looking to replace the go-fed +// implementation. Applications should not use this method. +func (this ActivityStreamsSourceProperty) KindIndex() int { + if this.IsActivityStreamsObject() { + return 0 + } + if this.IsActivityStreamsLink() { + return 1 + } + if this.IsActivityStreamsAccept() { + return 2 + } + if this.IsActivityStreamsActivity() { + return 3 + } + if this.IsActivityStreamsAdd() { + return 4 + } + if this.IsActivityStreamsAnnounce() { + return 5 + } + if this.IsActivityStreamsApplication() { + return 6 + } + if this.IsActivityStreamsArrive() { + return 7 + } + if this.IsActivityStreamsArticle() { + return 8 + } + if this.IsActivityStreamsAudio() { + return 9 + } + if this.IsActivityStreamsBlock() { + return 10 + } + if this.IsForgeFedBranch() { + return 11 + } + if this.IsActivityStreamsCollection() { + return 12 + } + if this.IsActivityStreamsCollectionPage() { + return 13 + } + if this.IsForgeFedCommit() { + return 14 + } + if this.IsActivityStreamsCreate() { + return 15 + } + if this.IsActivityStreamsDelete() { + return 16 + } + if this.IsActivityStreamsDislike() { + return 17 + } + if this.IsActivityStreamsDocument() { + return 18 + } + if this.IsTootEmoji() { + return 19 + } + if this.IsActivityStreamsEvent() { + return 20 + } + if this.IsActivityStreamsFlag() { + return 21 + } + if this.IsActivityStreamsFollow() { + return 22 + } + if this.IsActivityStreamsGroup() { + return 23 + } + if this.IsTootIdentityProof() { + return 24 + } + if this.IsActivityStreamsIgnore() { + return 25 + } + if this.IsActivityStreamsImage() { + return 26 + } + if this.IsActivityStreamsIntransitiveActivity() { + return 27 + } + if this.IsActivityStreamsInvite() { + return 28 + } + if this.IsActivityStreamsJoin() { + return 29 + } + if this.IsActivityStreamsLeave() { + return 30 + } + if this.IsActivityStreamsLike() { + return 31 + } + if this.IsActivityStreamsListen() { + return 32 + } + if this.IsActivityStreamsMention() { + return 33 + } + if this.IsActivityStreamsMove() { + return 34 + } + if this.IsActivityStreamsNote() { + return 35 + } + if this.IsActivityStreamsOffer() { + return 36 + } + if this.IsActivityStreamsOrderedCollection() { + return 37 + } + if this.IsActivityStreamsOrderedCollectionPage() { + return 38 + } + if this.IsActivityStreamsOrganization() { + return 39 + } + if this.IsActivityStreamsPage() { + return 40 + } + if this.IsActivityStreamsPerson() { + return 41 + } + if this.IsActivityStreamsPlace() { + return 42 + } + if this.IsActivityStreamsProfile() { + return 43 + } + if this.IsForgeFedPush() { + return 44 + } + if this.IsActivityStreamsQuestion() { + return 45 + } + if this.IsActivityStreamsRead() { + return 46 + } + if this.IsActivityStreamsReject() { + return 47 + } + if this.IsActivityStreamsRelationship() { + return 48 + } + if this.IsActivityStreamsRemove() { + return 49 + } + if this.IsForgeFedRepository() { + return 50 + } + if this.IsActivityStreamsService() { + return 51 + } + if this.IsActivityStreamsTentativeAccept() { + return 52 + } + if this.IsActivityStreamsTentativeReject() { + return 53 + } + if this.IsForgeFedTicket() { + return 54 + } + if this.IsForgeFedTicketDependency() { + return 55 + } + if this.IsActivityStreamsTombstone() { + return 56 + } + if this.IsActivityStreamsTravel() { + return 57 + } + if this.IsActivityStreamsUndo() { + return 58 + } + if this.IsActivityStreamsUpdate() { + return 59 + } + if this.IsActivityStreamsVideo() { + return 60 + } + if this.IsActivityStreamsView() { + return 61 + } + if this.IsIRI() { + return -2 + } + return -1 +} + +// LessThan compares two instances of this property with an arbitrary but stable +// comparison. Applications should not use this because it is only meant to +// help alternative implementations to go-fed to be able to normalize +// nonfunctional properties. +func (this ActivityStreamsSourceProperty) LessThan(o vocab.ActivityStreamsSourceProperty) bool { + idx1 := this.KindIndex() + idx2 := o.KindIndex() + if idx1 < idx2 { + return true + } else if idx1 > idx2 { + return false + } else if this.IsActivityStreamsObject() { + return this.GetActivityStreamsObject().LessThan(o.GetActivityStreamsObject()) + } else if this.IsActivityStreamsLink() { + return this.GetActivityStreamsLink().LessThan(o.GetActivityStreamsLink()) + } else if this.IsActivityStreamsAccept() { + return this.GetActivityStreamsAccept().LessThan(o.GetActivityStreamsAccept()) + } else if this.IsActivityStreamsActivity() { + return this.GetActivityStreamsActivity().LessThan(o.GetActivityStreamsActivity()) + } else if this.IsActivityStreamsAdd() { + return this.GetActivityStreamsAdd().LessThan(o.GetActivityStreamsAdd()) + } else if this.IsActivityStreamsAnnounce() { + return this.GetActivityStreamsAnnounce().LessThan(o.GetActivityStreamsAnnounce()) + } else if this.IsActivityStreamsApplication() { + return this.GetActivityStreamsApplication().LessThan(o.GetActivityStreamsApplication()) + } else if this.IsActivityStreamsArrive() { + return this.GetActivityStreamsArrive().LessThan(o.GetActivityStreamsArrive()) + } else if this.IsActivityStreamsArticle() { + return this.GetActivityStreamsArticle().LessThan(o.GetActivityStreamsArticle()) + } else if this.IsActivityStreamsAudio() { + return this.GetActivityStreamsAudio().LessThan(o.GetActivityStreamsAudio()) + } else if this.IsActivityStreamsBlock() { + return this.GetActivityStreamsBlock().LessThan(o.GetActivityStreamsBlock()) + } else if this.IsForgeFedBranch() { + return this.GetForgeFedBranch().LessThan(o.GetForgeFedBranch()) + } else if this.IsActivityStreamsCollection() { + return this.GetActivityStreamsCollection().LessThan(o.GetActivityStreamsCollection()) + } else if this.IsActivityStreamsCollectionPage() { + return this.GetActivityStreamsCollectionPage().LessThan(o.GetActivityStreamsCollectionPage()) + } else if this.IsForgeFedCommit() { + return this.GetForgeFedCommit().LessThan(o.GetForgeFedCommit()) + } else if this.IsActivityStreamsCreate() { + return this.GetActivityStreamsCreate().LessThan(o.GetActivityStreamsCreate()) + } else if this.IsActivityStreamsDelete() { + return this.GetActivityStreamsDelete().LessThan(o.GetActivityStreamsDelete()) + } else if this.IsActivityStreamsDislike() { + return this.GetActivityStreamsDislike().LessThan(o.GetActivityStreamsDislike()) + } else if this.IsActivityStreamsDocument() { + return this.GetActivityStreamsDocument().LessThan(o.GetActivityStreamsDocument()) + } else if this.IsTootEmoji() { + return this.GetTootEmoji().LessThan(o.GetTootEmoji()) + } else if this.IsActivityStreamsEvent() { + return this.GetActivityStreamsEvent().LessThan(o.GetActivityStreamsEvent()) + } else if this.IsActivityStreamsFlag() { + return this.GetActivityStreamsFlag().LessThan(o.GetActivityStreamsFlag()) + } else if this.IsActivityStreamsFollow() { + return this.GetActivityStreamsFollow().LessThan(o.GetActivityStreamsFollow()) + } else if this.IsActivityStreamsGroup() { + return this.GetActivityStreamsGroup().LessThan(o.GetActivityStreamsGroup()) + } else if this.IsTootIdentityProof() { + return this.GetTootIdentityProof().LessThan(o.GetTootIdentityProof()) + } else if this.IsActivityStreamsIgnore() { + return this.GetActivityStreamsIgnore().LessThan(o.GetActivityStreamsIgnore()) + } else if this.IsActivityStreamsImage() { + return this.GetActivityStreamsImage().LessThan(o.GetActivityStreamsImage()) + } else if this.IsActivityStreamsIntransitiveActivity() { + return this.GetActivityStreamsIntransitiveActivity().LessThan(o.GetActivityStreamsIntransitiveActivity()) + } else if this.IsActivityStreamsInvite() { + return this.GetActivityStreamsInvite().LessThan(o.GetActivityStreamsInvite()) + } else if this.IsActivityStreamsJoin() { + return this.GetActivityStreamsJoin().LessThan(o.GetActivityStreamsJoin()) + } else if this.IsActivityStreamsLeave() { + return this.GetActivityStreamsLeave().LessThan(o.GetActivityStreamsLeave()) + } else if this.IsActivityStreamsLike() { + return this.GetActivityStreamsLike().LessThan(o.GetActivityStreamsLike()) + } else if this.IsActivityStreamsListen() { + return this.GetActivityStreamsListen().LessThan(o.GetActivityStreamsListen()) + } else if this.IsActivityStreamsMention() { + return this.GetActivityStreamsMention().LessThan(o.GetActivityStreamsMention()) + } else if this.IsActivityStreamsMove() { + return this.GetActivityStreamsMove().LessThan(o.GetActivityStreamsMove()) + } else if this.IsActivityStreamsNote() { + return this.GetActivityStreamsNote().LessThan(o.GetActivityStreamsNote()) + } else if this.IsActivityStreamsOffer() { + return this.GetActivityStreamsOffer().LessThan(o.GetActivityStreamsOffer()) + } else if this.IsActivityStreamsOrderedCollection() { + return this.GetActivityStreamsOrderedCollection().LessThan(o.GetActivityStreamsOrderedCollection()) + } else if this.IsActivityStreamsOrderedCollectionPage() { + return this.GetActivityStreamsOrderedCollectionPage().LessThan(o.GetActivityStreamsOrderedCollectionPage()) + } else if this.IsActivityStreamsOrganization() { + return this.GetActivityStreamsOrganization().LessThan(o.GetActivityStreamsOrganization()) + } else if this.IsActivityStreamsPage() { + return this.GetActivityStreamsPage().LessThan(o.GetActivityStreamsPage()) + } else if this.IsActivityStreamsPerson() { + return this.GetActivityStreamsPerson().LessThan(o.GetActivityStreamsPerson()) + } else if this.IsActivityStreamsPlace() { + return this.GetActivityStreamsPlace().LessThan(o.GetActivityStreamsPlace()) + } else if this.IsActivityStreamsProfile() { + return this.GetActivityStreamsProfile().LessThan(o.GetActivityStreamsProfile()) + } else if this.IsForgeFedPush() { + return this.GetForgeFedPush().LessThan(o.GetForgeFedPush()) + } else if this.IsActivityStreamsQuestion() { + return this.GetActivityStreamsQuestion().LessThan(o.GetActivityStreamsQuestion()) + } else if this.IsActivityStreamsRead() { + return this.GetActivityStreamsRead().LessThan(o.GetActivityStreamsRead()) + } else if this.IsActivityStreamsReject() { + return this.GetActivityStreamsReject().LessThan(o.GetActivityStreamsReject()) + } else if this.IsActivityStreamsRelationship() { + return this.GetActivityStreamsRelationship().LessThan(o.GetActivityStreamsRelationship()) + } else if this.IsActivityStreamsRemove() { + return this.GetActivityStreamsRemove().LessThan(o.GetActivityStreamsRemove()) + } else if this.IsForgeFedRepository() { + return this.GetForgeFedRepository().LessThan(o.GetForgeFedRepository()) + } else if this.IsActivityStreamsService() { + return this.GetActivityStreamsService().LessThan(o.GetActivityStreamsService()) + } else if this.IsActivityStreamsTentativeAccept() { + return this.GetActivityStreamsTentativeAccept().LessThan(o.GetActivityStreamsTentativeAccept()) + } else if this.IsActivityStreamsTentativeReject() { + return this.GetActivityStreamsTentativeReject().LessThan(o.GetActivityStreamsTentativeReject()) + } else if this.IsForgeFedTicket() { + return this.GetForgeFedTicket().LessThan(o.GetForgeFedTicket()) + } else if this.IsForgeFedTicketDependency() { + return this.GetForgeFedTicketDependency().LessThan(o.GetForgeFedTicketDependency()) + } else if this.IsActivityStreamsTombstone() { + return this.GetActivityStreamsTombstone().LessThan(o.GetActivityStreamsTombstone()) + } else if this.IsActivityStreamsTravel() { + return this.GetActivityStreamsTravel().LessThan(o.GetActivityStreamsTravel()) + } else if this.IsActivityStreamsUndo() { + return this.GetActivityStreamsUndo().LessThan(o.GetActivityStreamsUndo()) + } else if this.IsActivityStreamsUpdate() { + return this.GetActivityStreamsUpdate().LessThan(o.GetActivityStreamsUpdate()) + } else if this.IsActivityStreamsVideo() { + return this.GetActivityStreamsVideo().LessThan(o.GetActivityStreamsVideo()) + } else if this.IsActivityStreamsView() { + return this.GetActivityStreamsView().LessThan(o.GetActivityStreamsView()) + } else if this.IsIRI() { + return this.iri.String() < o.GetIRI().String() + } + return false +} + +// Name returns the name of this property: "source". +func (this ActivityStreamsSourceProperty) Name() string { + if len(this.alias) > 0 { + return this.alias + ":" + "source" + } else { + return "source" + } +} + +// Serialize converts this into an interface representation suitable for +// marshalling into a text or binary format. Applications should not need this +// function as most typical use cases serialize types instead of individual +// properties. It is exposed for alternatives to go-fed implementations to use. +func (this ActivityStreamsSourceProperty) Serialize() (interface{}, error) { + if this.IsActivityStreamsObject() { + return this.GetActivityStreamsObject().Serialize() + } else if this.IsActivityStreamsLink() { + return this.GetActivityStreamsLink().Serialize() + } else if this.IsActivityStreamsAccept() { + return this.GetActivityStreamsAccept().Serialize() + } else if this.IsActivityStreamsActivity() { + return this.GetActivityStreamsActivity().Serialize() + } else if this.IsActivityStreamsAdd() { + return this.GetActivityStreamsAdd().Serialize() + } else if this.IsActivityStreamsAnnounce() { + return this.GetActivityStreamsAnnounce().Serialize() + } else if this.IsActivityStreamsApplication() { + return this.GetActivityStreamsApplication().Serialize() + } else if this.IsActivityStreamsArrive() { + return this.GetActivityStreamsArrive().Serialize() + } else if this.IsActivityStreamsArticle() { + return this.GetActivityStreamsArticle().Serialize() + } else if this.IsActivityStreamsAudio() { + return this.GetActivityStreamsAudio().Serialize() + } else if this.IsActivityStreamsBlock() { + return this.GetActivityStreamsBlock().Serialize() + } else if this.IsForgeFedBranch() { + return this.GetForgeFedBranch().Serialize() + } else if this.IsActivityStreamsCollection() { + return this.GetActivityStreamsCollection().Serialize() + } else if this.IsActivityStreamsCollectionPage() { + return this.GetActivityStreamsCollectionPage().Serialize() + } else if this.IsForgeFedCommit() { + return this.GetForgeFedCommit().Serialize() + } else if this.IsActivityStreamsCreate() { + return this.GetActivityStreamsCreate().Serialize() + } else if this.IsActivityStreamsDelete() { + return this.GetActivityStreamsDelete().Serialize() + } else if this.IsActivityStreamsDislike() { + return this.GetActivityStreamsDislike().Serialize() + } else if this.IsActivityStreamsDocument() { + return this.GetActivityStreamsDocument().Serialize() + } else if this.IsTootEmoji() { + return this.GetTootEmoji().Serialize() + } else if this.IsActivityStreamsEvent() { + return this.GetActivityStreamsEvent().Serialize() + } else if this.IsActivityStreamsFlag() { + return this.GetActivityStreamsFlag().Serialize() + } else if this.IsActivityStreamsFollow() { + return this.GetActivityStreamsFollow().Serialize() + } else if this.IsActivityStreamsGroup() { + return this.GetActivityStreamsGroup().Serialize() + } else if this.IsTootIdentityProof() { + return this.GetTootIdentityProof().Serialize() + } else if this.IsActivityStreamsIgnore() { + return this.GetActivityStreamsIgnore().Serialize() + } else if this.IsActivityStreamsImage() { + return this.GetActivityStreamsImage().Serialize() + } else if this.IsActivityStreamsIntransitiveActivity() { + return this.GetActivityStreamsIntransitiveActivity().Serialize() + } else if this.IsActivityStreamsInvite() { + return this.GetActivityStreamsInvite().Serialize() + } else if this.IsActivityStreamsJoin() { + return this.GetActivityStreamsJoin().Serialize() + } else if this.IsActivityStreamsLeave() { + return this.GetActivityStreamsLeave().Serialize() + } else if this.IsActivityStreamsLike() { + return this.GetActivityStreamsLike().Serialize() + } else if this.IsActivityStreamsListen() { + return this.GetActivityStreamsListen().Serialize() + } else if this.IsActivityStreamsMention() { + return this.GetActivityStreamsMention().Serialize() + } else if this.IsActivityStreamsMove() { + return this.GetActivityStreamsMove().Serialize() + } else if this.IsActivityStreamsNote() { + return this.GetActivityStreamsNote().Serialize() + } else if this.IsActivityStreamsOffer() { + return this.GetActivityStreamsOffer().Serialize() + } else if this.IsActivityStreamsOrderedCollection() { + return this.GetActivityStreamsOrderedCollection().Serialize() + } else if this.IsActivityStreamsOrderedCollectionPage() { + return this.GetActivityStreamsOrderedCollectionPage().Serialize() + } else if this.IsActivityStreamsOrganization() { + return this.GetActivityStreamsOrganization().Serialize() + } else if this.IsActivityStreamsPage() { + return this.GetActivityStreamsPage().Serialize() + } else if this.IsActivityStreamsPerson() { + return this.GetActivityStreamsPerson().Serialize() + } else if this.IsActivityStreamsPlace() { + return this.GetActivityStreamsPlace().Serialize() + } else if this.IsActivityStreamsProfile() { + return this.GetActivityStreamsProfile().Serialize() + } else if this.IsForgeFedPush() { + return this.GetForgeFedPush().Serialize() + } else if this.IsActivityStreamsQuestion() { + return this.GetActivityStreamsQuestion().Serialize() + } else if this.IsActivityStreamsRead() { + return this.GetActivityStreamsRead().Serialize() + } else if this.IsActivityStreamsReject() { + return this.GetActivityStreamsReject().Serialize() + } else if this.IsActivityStreamsRelationship() { + return this.GetActivityStreamsRelationship().Serialize() + } else if this.IsActivityStreamsRemove() { + return this.GetActivityStreamsRemove().Serialize() + } else if this.IsForgeFedRepository() { + return this.GetForgeFedRepository().Serialize() + } else if this.IsActivityStreamsService() { + return this.GetActivityStreamsService().Serialize() + } else if this.IsActivityStreamsTentativeAccept() { + return this.GetActivityStreamsTentativeAccept().Serialize() + } else if this.IsActivityStreamsTentativeReject() { + return this.GetActivityStreamsTentativeReject().Serialize() + } else if this.IsForgeFedTicket() { + return this.GetForgeFedTicket().Serialize() + } else if this.IsForgeFedTicketDependency() { + return this.GetForgeFedTicketDependency().Serialize() + } else if this.IsActivityStreamsTombstone() { + return this.GetActivityStreamsTombstone().Serialize() + } else if this.IsActivityStreamsTravel() { + return this.GetActivityStreamsTravel().Serialize() + } else if this.IsActivityStreamsUndo() { + return this.GetActivityStreamsUndo().Serialize() + } else if this.IsActivityStreamsUpdate() { + return this.GetActivityStreamsUpdate().Serialize() + } else if this.IsActivityStreamsVideo() { + return this.GetActivityStreamsVideo().Serialize() + } else if this.IsActivityStreamsView() { + return this.GetActivityStreamsView().Serialize() + } else if this.IsIRI() { + return this.iri.String(), nil + } + return this.unknown, nil +} + +// SetActivityStreamsAccept sets the value of this property. Calling +// IsActivityStreamsAccept afterwards returns true. +func (this *ActivityStreamsSourceProperty) SetActivityStreamsAccept(v vocab.ActivityStreamsAccept) { + this.Clear() + this.activitystreamsAcceptMember = v +} + +// SetActivityStreamsActivity sets the value of this property. Calling +// IsActivityStreamsActivity afterwards returns true. +func (this *ActivityStreamsSourceProperty) SetActivityStreamsActivity(v vocab.ActivityStreamsActivity) { + this.Clear() + this.activitystreamsActivityMember = v +} + +// SetActivityStreamsAdd sets the value of this property. Calling +// IsActivityStreamsAdd afterwards returns true. +func (this *ActivityStreamsSourceProperty) SetActivityStreamsAdd(v vocab.ActivityStreamsAdd) { + this.Clear() + this.activitystreamsAddMember = v +} + +// SetActivityStreamsAnnounce sets the value of this property. Calling +// IsActivityStreamsAnnounce afterwards returns true. +func (this *ActivityStreamsSourceProperty) SetActivityStreamsAnnounce(v vocab.ActivityStreamsAnnounce) { + this.Clear() + this.activitystreamsAnnounceMember = v +} + +// SetActivityStreamsApplication sets the value of this property. Calling +// IsActivityStreamsApplication afterwards returns true. +func (this *ActivityStreamsSourceProperty) SetActivityStreamsApplication(v vocab.ActivityStreamsApplication) { + this.Clear() + this.activitystreamsApplicationMember = v +} + +// SetActivityStreamsArrive sets the value of this property. Calling +// IsActivityStreamsArrive afterwards returns true. +func (this *ActivityStreamsSourceProperty) SetActivityStreamsArrive(v vocab.ActivityStreamsArrive) { + this.Clear() + this.activitystreamsArriveMember = v +} + +// SetActivityStreamsArticle sets the value of this property. Calling +// IsActivityStreamsArticle afterwards returns true. +func (this *ActivityStreamsSourceProperty) SetActivityStreamsArticle(v vocab.ActivityStreamsArticle) { + this.Clear() + this.activitystreamsArticleMember = v +} + +// SetActivityStreamsAudio sets the value of this property. Calling +// IsActivityStreamsAudio afterwards returns true. +func (this *ActivityStreamsSourceProperty) SetActivityStreamsAudio(v vocab.ActivityStreamsAudio) { + this.Clear() + this.activitystreamsAudioMember = v +} + +// SetActivityStreamsBlock sets the value of this property. Calling +// IsActivityStreamsBlock afterwards returns true. +func (this *ActivityStreamsSourceProperty) SetActivityStreamsBlock(v vocab.ActivityStreamsBlock) { + this.Clear() + this.activitystreamsBlockMember = v +} + +// SetActivityStreamsCollection sets the value of this property. Calling +// IsActivityStreamsCollection afterwards returns true. +func (this *ActivityStreamsSourceProperty) SetActivityStreamsCollection(v vocab.ActivityStreamsCollection) { + this.Clear() + this.activitystreamsCollectionMember = v +} + +// SetActivityStreamsCollectionPage sets the value of this property. Calling +// IsActivityStreamsCollectionPage afterwards returns true. +func (this *ActivityStreamsSourceProperty) SetActivityStreamsCollectionPage(v vocab.ActivityStreamsCollectionPage) { + this.Clear() + this.activitystreamsCollectionPageMember = v +} + +// SetActivityStreamsCreate sets the value of this property. Calling +// IsActivityStreamsCreate afterwards returns true. +func (this *ActivityStreamsSourceProperty) SetActivityStreamsCreate(v vocab.ActivityStreamsCreate) { + this.Clear() + this.activitystreamsCreateMember = v +} + +// SetActivityStreamsDelete sets the value of this property. Calling +// IsActivityStreamsDelete afterwards returns true. +func (this *ActivityStreamsSourceProperty) SetActivityStreamsDelete(v vocab.ActivityStreamsDelete) { + this.Clear() + this.activitystreamsDeleteMember = v +} + +// SetActivityStreamsDislike sets the value of this property. Calling +// IsActivityStreamsDislike afterwards returns true. +func (this *ActivityStreamsSourceProperty) SetActivityStreamsDislike(v vocab.ActivityStreamsDislike) { + this.Clear() + this.activitystreamsDislikeMember = v +} + +// SetActivityStreamsDocument sets the value of this property. Calling +// IsActivityStreamsDocument afterwards returns true. +func (this *ActivityStreamsSourceProperty) SetActivityStreamsDocument(v vocab.ActivityStreamsDocument) { + this.Clear() + this.activitystreamsDocumentMember = v +} + +// SetActivityStreamsEvent sets the value of this property. Calling +// IsActivityStreamsEvent afterwards returns true. +func (this *ActivityStreamsSourceProperty) SetActivityStreamsEvent(v vocab.ActivityStreamsEvent) { + this.Clear() + this.activitystreamsEventMember = v +} + +// SetActivityStreamsFlag sets the value of this property. Calling +// IsActivityStreamsFlag afterwards returns true. +func (this *ActivityStreamsSourceProperty) SetActivityStreamsFlag(v vocab.ActivityStreamsFlag) { + this.Clear() + this.activitystreamsFlagMember = v +} + +// SetActivityStreamsFollow sets the value of this property. Calling +// IsActivityStreamsFollow afterwards returns true. +func (this *ActivityStreamsSourceProperty) SetActivityStreamsFollow(v vocab.ActivityStreamsFollow) { + this.Clear() + this.activitystreamsFollowMember = v +} + +// SetActivityStreamsGroup sets the value of this property. Calling +// IsActivityStreamsGroup afterwards returns true. +func (this *ActivityStreamsSourceProperty) SetActivityStreamsGroup(v vocab.ActivityStreamsGroup) { + this.Clear() + this.activitystreamsGroupMember = v +} + +// SetActivityStreamsIgnore sets the value of this property. Calling +// IsActivityStreamsIgnore afterwards returns true. +func (this *ActivityStreamsSourceProperty) SetActivityStreamsIgnore(v vocab.ActivityStreamsIgnore) { + this.Clear() + this.activitystreamsIgnoreMember = v +} + +// SetActivityStreamsImage sets the value of this property. Calling +// IsActivityStreamsImage afterwards returns true. +func (this *ActivityStreamsSourceProperty) SetActivityStreamsImage(v vocab.ActivityStreamsImage) { + this.Clear() + this.activitystreamsImageMember = v +} + +// SetActivityStreamsIntransitiveActivity sets the value of this property. Calling +// IsActivityStreamsIntransitiveActivity afterwards returns true. +func (this *ActivityStreamsSourceProperty) SetActivityStreamsIntransitiveActivity(v vocab.ActivityStreamsIntransitiveActivity) { + this.Clear() + this.activitystreamsIntransitiveActivityMember = v +} + +// SetActivityStreamsInvite sets the value of this property. Calling +// IsActivityStreamsInvite afterwards returns true. +func (this *ActivityStreamsSourceProperty) SetActivityStreamsInvite(v vocab.ActivityStreamsInvite) { + this.Clear() + this.activitystreamsInviteMember = v +} + +// SetActivityStreamsJoin sets the value of this property. Calling +// IsActivityStreamsJoin afterwards returns true. +func (this *ActivityStreamsSourceProperty) SetActivityStreamsJoin(v vocab.ActivityStreamsJoin) { + this.Clear() + this.activitystreamsJoinMember = v +} + +// SetActivityStreamsLeave sets the value of this property. Calling +// IsActivityStreamsLeave afterwards returns true. +func (this *ActivityStreamsSourceProperty) SetActivityStreamsLeave(v vocab.ActivityStreamsLeave) { + this.Clear() + this.activitystreamsLeaveMember = v +} + +// SetActivityStreamsLike sets the value of this property. Calling +// IsActivityStreamsLike afterwards returns true. +func (this *ActivityStreamsSourceProperty) SetActivityStreamsLike(v vocab.ActivityStreamsLike) { + this.Clear() + this.activitystreamsLikeMember = v +} + +// SetActivityStreamsLink sets the value of this property. Calling +// IsActivityStreamsLink afterwards returns true. +func (this *ActivityStreamsSourceProperty) SetActivityStreamsLink(v vocab.ActivityStreamsLink) { + this.Clear() + this.activitystreamsLinkMember = v +} + +// SetActivityStreamsListen sets the value of this property. Calling +// IsActivityStreamsListen afterwards returns true. +func (this *ActivityStreamsSourceProperty) SetActivityStreamsListen(v vocab.ActivityStreamsListen) { + this.Clear() + this.activitystreamsListenMember = v +} + +// SetActivityStreamsMention sets the value of this property. Calling +// IsActivityStreamsMention afterwards returns true. +func (this *ActivityStreamsSourceProperty) SetActivityStreamsMention(v vocab.ActivityStreamsMention) { + this.Clear() + this.activitystreamsMentionMember = v +} + +// SetActivityStreamsMove sets the value of this property. Calling +// IsActivityStreamsMove afterwards returns true. +func (this *ActivityStreamsSourceProperty) SetActivityStreamsMove(v vocab.ActivityStreamsMove) { + this.Clear() + this.activitystreamsMoveMember = v +} + +// SetActivityStreamsNote sets the value of this property. Calling +// IsActivityStreamsNote afterwards returns true. +func (this *ActivityStreamsSourceProperty) SetActivityStreamsNote(v vocab.ActivityStreamsNote) { + this.Clear() + this.activitystreamsNoteMember = v +} + +// SetActivityStreamsObject sets the value of this property. Calling +// IsActivityStreamsObject afterwards returns true. +func (this *ActivityStreamsSourceProperty) SetActivityStreamsObject(v vocab.ActivityStreamsObject) { + this.Clear() + this.activitystreamsObjectMember = v +} + +// SetActivityStreamsOffer sets the value of this property. Calling +// IsActivityStreamsOffer afterwards returns true. +func (this *ActivityStreamsSourceProperty) SetActivityStreamsOffer(v vocab.ActivityStreamsOffer) { + this.Clear() + this.activitystreamsOfferMember = v +} + +// SetActivityStreamsOrderedCollection sets the value of this property. Calling +// IsActivityStreamsOrderedCollection afterwards returns true. +func (this *ActivityStreamsSourceProperty) SetActivityStreamsOrderedCollection(v vocab.ActivityStreamsOrderedCollection) { + this.Clear() + this.activitystreamsOrderedCollectionMember = v +} + +// SetActivityStreamsOrderedCollectionPage sets the value of this property. +// Calling IsActivityStreamsOrderedCollectionPage afterwards returns true. +func (this *ActivityStreamsSourceProperty) SetActivityStreamsOrderedCollectionPage(v vocab.ActivityStreamsOrderedCollectionPage) { + this.Clear() + this.activitystreamsOrderedCollectionPageMember = v +} + +// SetActivityStreamsOrganization sets the value of this property. Calling +// IsActivityStreamsOrganization afterwards returns true. +func (this *ActivityStreamsSourceProperty) SetActivityStreamsOrganization(v vocab.ActivityStreamsOrganization) { + this.Clear() + this.activitystreamsOrganizationMember = v +} + +// SetActivityStreamsPage sets the value of this property. Calling +// IsActivityStreamsPage afterwards returns true. +func (this *ActivityStreamsSourceProperty) SetActivityStreamsPage(v vocab.ActivityStreamsPage) { + this.Clear() + this.activitystreamsPageMember = v +} + +// SetActivityStreamsPerson sets the value of this property. Calling +// IsActivityStreamsPerson afterwards returns true. +func (this *ActivityStreamsSourceProperty) SetActivityStreamsPerson(v vocab.ActivityStreamsPerson) { + this.Clear() + this.activitystreamsPersonMember = v +} + +// SetActivityStreamsPlace sets the value of this property. Calling +// IsActivityStreamsPlace afterwards returns true. +func (this *ActivityStreamsSourceProperty) SetActivityStreamsPlace(v vocab.ActivityStreamsPlace) { + this.Clear() + this.activitystreamsPlaceMember = v +} + +// SetActivityStreamsProfile sets the value of this property. Calling +// IsActivityStreamsProfile afterwards returns true. +func (this *ActivityStreamsSourceProperty) SetActivityStreamsProfile(v vocab.ActivityStreamsProfile) { + this.Clear() + this.activitystreamsProfileMember = v +} + +// SetActivityStreamsQuestion sets the value of this property. Calling +// IsActivityStreamsQuestion afterwards returns true. +func (this *ActivityStreamsSourceProperty) SetActivityStreamsQuestion(v vocab.ActivityStreamsQuestion) { + this.Clear() + this.activitystreamsQuestionMember = v +} + +// SetActivityStreamsRead sets the value of this property. Calling +// IsActivityStreamsRead afterwards returns true. +func (this *ActivityStreamsSourceProperty) SetActivityStreamsRead(v vocab.ActivityStreamsRead) { + this.Clear() + this.activitystreamsReadMember = v +} + +// SetActivityStreamsReject sets the value of this property. Calling +// IsActivityStreamsReject afterwards returns true. +func (this *ActivityStreamsSourceProperty) SetActivityStreamsReject(v vocab.ActivityStreamsReject) { + this.Clear() + this.activitystreamsRejectMember = v +} + +// SetActivityStreamsRelationship sets the value of this property. Calling +// IsActivityStreamsRelationship afterwards returns true. +func (this *ActivityStreamsSourceProperty) SetActivityStreamsRelationship(v vocab.ActivityStreamsRelationship) { + this.Clear() + this.activitystreamsRelationshipMember = v +} + +// SetActivityStreamsRemove sets the value of this property. Calling +// IsActivityStreamsRemove afterwards returns true. +func (this *ActivityStreamsSourceProperty) SetActivityStreamsRemove(v vocab.ActivityStreamsRemove) { + this.Clear() + this.activitystreamsRemoveMember = v +} + +// SetActivityStreamsService sets the value of this property. Calling +// IsActivityStreamsService afterwards returns true. +func (this *ActivityStreamsSourceProperty) SetActivityStreamsService(v vocab.ActivityStreamsService) { + this.Clear() + this.activitystreamsServiceMember = v +} + +// SetActivityStreamsTentativeAccept sets the value of this property. Calling +// IsActivityStreamsTentativeAccept afterwards returns true. +func (this *ActivityStreamsSourceProperty) SetActivityStreamsTentativeAccept(v vocab.ActivityStreamsTentativeAccept) { + this.Clear() + this.activitystreamsTentativeAcceptMember = v +} + +// SetActivityStreamsTentativeReject sets the value of this property. Calling +// IsActivityStreamsTentativeReject afterwards returns true. +func (this *ActivityStreamsSourceProperty) SetActivityStreamsTentativeReject(v vocab.ActivityStreamsTentativeReject) { + this.Clear() + this.activitystreamsTentativeRejectMember = v +} + +// SetActivityStreamsTombstone sets the value of this property. Calling +// IsActivityStreamsTombstone afterwards returns true. +func (this *ActivityStreamsSourceProperty) SetActivityStreamsTombstone(v vocab.ActivityStreamsTombstone) { + this.Clear() + this.activitystreamsTombstoneMember = v +} + +// SetActivityStreamsTravel sets the value of this property. Calling +// IsActivityStreamsTravel afterwards returns true. +func (this *ActivityStreamsSourceProperty) SetActivityStreamsTravel(v vocab.ActivityStreamsTravel) { + this.Clear() + this.activitystreamsTravelMember = v +} + +// SetActivityStreamsUndo sets the value of this property. Calling +// IsActivityStreamsUndo afterwards returns true. +func (this *ActivityStreamsSourceProperty) SetActivityStreamsUndo(v vocab.ActivityStreamsUndo) { + this.Clear() + this.activitystreamsUndoMember = v +} + +// SetActivityStreamsUpdate sets the value of this property. Calling +// IsActivityStreamsUpdate afterwards returns true. +func (this *ActivityStreamsSourceProperty) SetActivityStreamsUpdate(v vocab.ActivityStreamsUpdate) { + this.Clear() + this.activitystreamsUpdateMember = v +} + +// SetActivityStreamsVideo sets the value of this property. Calling +// IsActivityStreamsVideo afterwards returns true. +func (this *ActivityStreamsSourceProperty) SetActivityStreamsVideo(v vocab.ActivityStreamsVideo) { + this.Clear() + this.activitystreamsVideoMember = v +} + +// SetActivityStreamsView sets the value of this property. Calling +// IsActivityStreamsView afterwards returns true. +func (this *ActivityStreamsSourceProperty) SetActivityStreamsView(v vocab.ActivityStreamsView) { + this.Clear() + this.activitystreamsViewMember = v +} + +// SetForgeFedBranch sets the value of this property. Calling IsForgeFedBranch +// afterwards returns true. +func (this *ActivityStreamsSourceProperty) SetForgeFedBranch(v vocab.ForgeFedBranch) { + this.Clear() + this.forgefedBranchMember = v +} + +// SetForgeFedCommit sets the value of this property. Calling IsForgeFedCommit +// afterwards returns true. +func (this *ActivityStreamsSourceProperty) SetForgeFedCommit(v vocab.ForgeFedCommit) { + this.Clear() + this.forgefedCommitMember = v +} + +// SetForgeFedPush sets the value of this property. Calling IsForgeFedPush +// afterwards returns true. +func (this *ActivityStreamsSourceProperty) SetForgeFedPush(v vocab.ForgeFedPush) { + this.Clear() + this.forgefedPushMember = v +} + +// SetForgeFedRepository sets the value of this property. Calling +// IsForgeFedRepository afterwards returns true. +func (this *ActivityStreamsSourceProperty) SetForgeFedRepository(v vocab.ForgeFedRepository) { + this.Clear() + this.forgefedRepositoryMember = v +} + +// SetForgeFedTicket sets the value of this property. Calling IsForgeFedTicket +// afterwards returns true. +func (this *ActivityStreamsSourceProperty) SetForgeFedTicket(v vocab.ForgeFedTicket) { + this.Clear() + this.forgefedTicketMember = v +} + +// SetForgeFedTicketDependency sets the value of this property. Calling +// IsForgeFedTicketDependency afterwards returns true. +func (this *ActivityStreamsSourceProperty) SetForgeFedTicketDependency(v vocab.ForgeFedTicketDependency) { + this.Clear() + this.forgefedTicketDependencyMember = v +} + +// SetIRI sets the value of this property. Calling IsIRI afterwards returns true. +func (this *ActivityStreamsSourceProperty) SetIRI(v *url.URL) { + this.Clear() + this.iri = v +} + +// SetTootEmoji sets the value of this property. Calling IsTootEmoji afterwards +// returns true. +func (this *ActivityStreamsSourceProperty) SetTootEmoji(v vocab.TootEmoji) { + this.Clear() + this.tootEmojiMember = v +} + +// SetTootIdentityProof sets the value of this property. Calling +// IsTootIdentityProof afterwards returns true. +func (this *ActivityStreamsSourceProperty) SetTootIdentityProof(v vocab.TootIdentityProof) { + this.Clear() + this.tootIdentityProofMember = v +} + +// SetType attempts to set the property for the arbitrary type. Returns an error +// if it is not a valid type to set on this property. +func (this *ActivityStreamsSourceProperty) SetType(t vocab.Type) error { + if v, ok := t.(vocab.ActivityStreamsObject); ok { + this.SetActivityStreamsObject(v) + return nil + } + if v, ok := t.(vocab.ActivityStreamsLink); ok { + this.SetActivityStreamsLink(v) + return nil + } + if v, ok := t.(vocab.ActivityStreamsAccept); ok { + this.SetActivityStreamsAccept(v) + return nil + } + if v, ok := t.(vocab.ActivityStreamsActivity); ok { + this.SetActivityStreamsActivity(v) + return nil + } + if v, ok := t.(vocab.ActivityStreamsAdd); ok { + this.SetActivityStreamsAdd(v) + return nil + } + if v, ok := t.(vocab.ActivityStreamsAnnounce); ok { + this.SetActivityStreamsAnnounce(v) + return nil + } + if v, ok := t.(vocab.ActivityStreamsApplication); ok { + this.SetActivityStreamsApplication(v) + return nil + } + if v, ok := t.(vocab.ActivityStreamsArrive); ok { + this.SetActivityStreamsArrive(v) + return nil + } + if v, ok := t.(vocab.ActivityStreamsArticle); ok { + this.SetActivityStreamsArticle(v) + return nil + } + if v, ok := t.(vocab.ActivityStreamsAudio); ok { + this.SetActivityStreamsAudio(v) + return nil + } + if v, ok := t.(vocab.ActivityStreamsBlock); ok { + this.SetActivityStreamsBlock(v) + return nil + } + if v, ok := t.(vocab.ForgeFedBranch); ok { + this.SetForgeFedBranch(v) + return nil + } + if v, ok := t.(vocab.ActivityStreamsCollection); ok { + this.SetActivityStreamsCollection(v) + return nil + } + if v, ok := t.(vocab.ActivityStreamsCollectionPage); ok { + this.SetActivityStreamsCollectionPage(v) + return nil + } + if v, ok := t.(vocab.ForgeFedCommit); ok { + this.SetForgeFedCommit(v) + return nil + } + if v, ok := t.(vocab.ActivityStreamsCreate); ok { + this.SetActivityStreamsCreate(v) + return nil + } + if v, ok := t.(vocab.ActivityStreamsDelete); ok { + this.SetActivityStreamsDelete(v) + return nil + } + if v, ok := t.(vocab.ActivityStreamsDislike); ok { + this.SetActivityStreamsDislike(v) + return nil + } + if v, ok := t.(vocab.ActivityStreamsDocument); ok { + this.SetActivityStreamsDocument(v) + return nil + } + if v, ok := t.(vocab.TootEmoji); ok { + this.SetTootEmoji(v) + return nil + } + if v, ok := t.(vocab.ActivityStreamsEvent); ok { + this.SetActivityStreamsEvent(v) + return nil + } + if v, ok := t.(vocab.ActivityStreamsFlag); ok { + this.SetActivityStreamsFlag(v) + return nil + } + if v, ok := t.(vocab.ActivityStreamsFollow); ok { + this.SetActivityStreamsFollow(v) + return nil + } + if v, ok := t.(vocab.ActivityStreamsGroup); ok { + this.SetActivityStreamsGroup(v) + return nil + } + if v, ok := t.(vocab.TootIdentityProof); ok { + this.SetTootIdentityProof(v) + return nil + } + if v, ok := t.(vocab.ActivityStreamsIgnore); ok { + this.SetActivityStreamsIgnore(v) + return nil + } + if v, ok := t.(vocab.ActivityStreamsImage); ok { + this.SetActivityStreamsImage(v) + return nil + } + if v, ok := t.(vocab.ActivityStreamsIntransitiveActivity); ok { + this.SetActivityStreamsIntransitiveActivity(v) + return nil + } + if v, ok := t.(vocab.ActivityStreamsInvite); ok { + this.SetActivityStreamsInvite(v) + return nil + } + if v, ok := t.(vocab.ActivityStreamsJoin); ok { + this.SetActivityStreamsJoin(v) + return nil + } + if v, ok := t.(vocab.ActivityStreamsLeave); ok { + this.SetActivityStreamsLeave(v) + return nil + } + if v, ok := t.(vocab.ActivityStreamsLike); ok { + this.SetActivityStreamsLike(v) + return nil + } + if v, ok := t.(vocab.ActivityStreamsListen); ok { + this.SetActivityStreamsListen(v) + return nil + } + if v, ok := t.(vocab.ActivityStreamsMention); ok { + this.SetActivityStreamsMention(v) + return nil + } + if v, ok := t.(vocab.ActivityStreamsMove); ok { + this.SetActivityStreamsMove(v) + return nil + } + if v, ok := t.(vocab.ActivityStreamsNote); ok { + this.SetActivityStreamsNote(v) + return nil + } + if v, ok := t.(vocab.ActivityStreamsOffer); ok { + this.SetActivityStreamsOffer(v) + return nil + } + if v, ok := t.(vocab.ActivityStreamsOrderedCollection); ok { + this.SetActivityStreamsOrderedCollection(v) + return nil + } + if v, ok := t.(vocab.ActivityStreamsOrderedCollectionPage); ok { + this.SetActivityStreamsOrderedCollectionPage(v) + return nil + } + if v, ok := t.(vocab.ActivityStreamsOrganization); ok { + this.SetActivityStreamsOrganization(v) + return nil + } + if v, ok := t.(vocab.ActivityStreamsPage); ok { + this.SetActivityStreamsPage(v) + return nil + } + if v, ok := t.(vocab.ActivityStreamsPerson); ok { + this.SetActivityStreamsPerson(v) + return nil + } + if v, ok := t.(vocab.ActivityStreamsPlace); ok { + this.SetActivityStreamsPlace(v) + return nil + } + if v, ok := t.(vocab.ActivityStreamsProfile); ok { + this.SetActivityStreamsProfile(v) + return nil + } + if v, ok := t.(vocab.ForgeFedPush); ok { + this.SetForgeFedPush(v) + return nil + } + if v, ok := t.(vocab.ActivityStreamsQuestion); ok { + this.SetActivityStreamsQuestion(v) + return nil + } + if v, ok := t.(vocab.ActivityStreamsRead); ok { + this.SetActivityStreamsRead(v) + return nil + } + if v, ok := t.(vocab.ActivityStreamsReject); ok { + this.SetActivityStreamsReject(v) + return nil + } + if v, ok := t.(vocab.ActivityStreamsRelationship); ok { + this.SetActivityStreamsRelationship(v) + return nil + } + if v, ok := t.(vocab.ActivityStreamsRemove); ok { + this.SetActivityStreamsRemove(v) + return nil + } + if v, ok := t.(vocab.ForgeFedRepository); ok { + this.SetForgeFedRepository(v) + return nil + } + if v, ok := t.(vocab.ActivityStreamsService); ok { + this.SetActivityStreamsService(v) + return nil + } + if v, ok := t.(vocab.ActivityStreamsTentativeAccept); ok { + this.SetActivityStreamsTentativeAccept(v) + return nil + } + if v, ok := t.(vocab.ActivityStreamsTentativeReject); ok { + this.SetActivityStreamsTentativeReject(v) + return nil + } + if v, ok := t.(vocab.ForgeFedTicket); ok { + this.SetForgeFedTicket(v) + return nil + } + if v, ok := t.(vocab.ForgeFedTicketDependency); ok { + this.SetForgeFedTicketDependency(v) + return nil + } + if v, ok := t.(vocab.ActivityStreamsTombstone); ok { + this.SetActivityStreamsTombstone(v) + return nil + } + if v, ok := t.(vocab.ActivityStreamsTravel); ok { + this.SetActivityStreamsTravel(v) + return nil + } + if v, ok := t.(vocab.ActivityStreamsUndo); ok { + this.SetActivityStreamsUndo(v) + return nil + } + if v, ok := t.(vocab.ActivityStreamsUpdate); ok { + this.SetActivityStreamsUpdate(v) + return nil + } + if v, ok := t.(vocab.ActivityStreamsVideo); ok { + this.SetActivityStreamsVideo(v) + return nil + } + if v, ok := t.(vocab.ActivityStreamsView); ok { + this.SetActivityStreamsView(v) + return nil + } + + return fmt.Errorf("illegal type to set on source property: %T", t) +} |