diff --git a/streams/gen_consts.go b/streams/gen_consts.go index 5609c5e..5af2c6d 100644 --- a/streams/gen_consts.go +++ b/streams/gen_consts.go @@ -29,12 +29,18 @@ var ActivityStreamsAudioName string = "Audio" // ActivityStreamsBlockName is the string literal of the name for the Block type in the ActivityStreams vocabulary. var ActivityStreamsBlockName string = "Block" +// ForgeFedBranchName is the string literal of the name for the Branch type in the ForgeFed vocabulary. +var ForgeFedBranchName string = "Branch" + // ActivityStreamsCollectionName is the string literal of the name for the Collection type in the ActivityStreams vocabulary. var ActivityStreamsCollectionName string = "Collection" // ActivityStreamsCollectionPageName is the string literal of the name for the CollectionPage type in the ActivityStreams vocabulary. var ActivityStreamsCollectionPageName string = "CollectionPage" +// ForgeFedCommitName is the string literal of the name for the Commit type in the ForgeFed vocabulary. +var ForgeFedCommitName string = "Commit" + // ActivityStreamsCreateName is the string literal of the name for the Create type in the ActivityStreams vocabulary. var ActivityStreamsCreateName string = "Create" @@ -131,6 +137,9 @@ var ActivityStreamsProfileName string = "Profile" // W3IDSecurityV1PublicKeyName is the string literal of the name for the PublicKey type in the W3IDSecurityV1 vocabulary. var W3IDSecurityV1PublicKeyName string = "PublicKey" +// ForgeFedPushName is the string literal of the name for the Push type in the ForgeFed vocabulary. +var ForgeFedPushName string = "Push" + // ActivityStreamsQuestionName is the string literal of the name for the Question type in the ActivityStreams vocabulary. var ActivityStreamsQuestionName string = "Question" @@ -146,6 +155,9 @@ var ActivityStreamsRelationshipName string = "Relationship" // ActivityStreamsRemoveName is the string literal of the name for the Remove type in the ActivityStreams vocabulary. var ActivityStreamsRemoveName string = "Remove" +// ForgeFedRepositoryName is the string literal of the name for the Repository type in the ForgeFed vocabulary. +var ForgeFedRepositoryName string = "Repository" + // ActivityStreamsServiceName is the string literal of the name for the Service type in the ActivityStreams vocabulary. var ActivityStreamsServiceName string = "Service" @@ -155,6 +167,12 @@ var ActivityStreamsTentativeAcceptName string = "TentativeAccept" // ActivityStreamsTentativeRejectName is the string literal of the name for the TentativeReject type in the ActivityStreams vocabulary. var ActivityStreamsTentativeRejectName string = "TentativeReject" +// ForgeFedTicketName is the string literal of the name for the Ticket type in the ForgeFed vocabulary. +var ForgeFedTicketName string = "Ticket" + +// ForgeFedTicketDependencyName is the string literal of the name for the TicketDependency type in the ForgeFed vocabulary. +var ForgeFedTicketDependencyName string = "TicketDependency" + // ActivityStreamsTombstoneName is the string literal of the name for the Tombstone type in the ActivityStreams vocabulary. var ActivityStreamsTombstoneName string = "Tombstone" @@ -185,6 +203,9 @@ var ActivityStreamsAltitudePropertyName string = "altitude" // ActivityStreamsAnyOfPropertyName is the string literal of the name for the anyOf property in the ActivityStreams vocabulary. var ActivityStreamsAnyOfPropertyName string = "anyOf" +// ForgeFedAssignedToPropertyName is the string literal of the name for the assignedTo property in the ForgeFed vocabulary. +var ForgeFedAssignedToPropertyName string = "assignedTo" + // ActivityStreamsAttachmentPropertyName is the string literal of the name for the attachment property in the ActivityStreams vocabulary. var ActivityStreamsAttachmentPropertyName string = "attachment" @@ -209,6 +230,12 @@ var ActivityStreamsCcPropertyName string = "cc" // ActivityStreamsClosedPropertyName is the string literal of the name for the closed property in the ActivityStreams vocabulary. var ActivityStreamsClosedPropertyName string = "closed" +// ForgeFedCommittedPropertyName is the string literal of the name for the committed property in the ForgeFed vocabulary. +var ForgeFedCommittedPropertyName string = "committed" + +// ForgeFedCommittedByPropertyName is the string literal of the name for the committedBy property in the ForgeFed vocabulary. +var ForgeFedCommittedByPropertyName string = "committedBy" + // ActivityStreamsContentPropertyName is the string literal of the name for the content property in the ActivityStreams vocabulary. var ActivityStreamsContentPropertyName string = "content" @@ -224,21 +251,48 @@ var ActivityStreamsCurrentPropertyName string = "current" // ActivityStreamsDeletedPropertyName is the string literal of the name for the deleted property in the ActivityStreams vocabulary. var ActivityStreamsDeletedPropertyName string = "deleted" +// ForgeFedDependantsPropertyName is the string literal of the name for the dependants property in the ForgeFed vocabulary. +var ForgeFedDependantsPropertyName string = "dependants" + +// ForgeFedDependedByPropertyName is the string literal of the name for the dependedBy property in the ForgeFed vocabulary. +var ForgeFedDependedByPropertyName string = "dependedBy" + +// ForgeFedDependenciesPropertyName is the string literal of the name for the dependencies property in the ForgeFed vocabulary. +var ForgeFedDependenciesPropertyName string = "dependencies" + +// ForgeFedDependsOnPropertyName is the string literal of the name for the dependsOn property in the ForgeFed vocabulary. +var ForgeFedDependsOnPropertyName string = "dependsOn" + // ActivityStreamsDescribesPropertyName is the string literal of the name for the describes property in the ActivityStreams vocabulary. var ActivityStreamsDescribesPropertyName string = "describes" +// ForgeFedDescriptionPropertyName is the string literal of the name for the description property in the ForgeFed vocabulary. +var ForgeFedDescriptionPropertyName string = "description" + // TootDiscoverablePropertyName is the string literal of the name for the discoverable property in the Toot vocabulary. var TootDiscoverablePropertyName string = "discoverable" // ActivityStreamsDurationPropertyName is the string literal of the name for the duration property in the ActivityStreams vocabulary. var ActivityStreamsDurationPropertyName string = "duration" +// ForgeFedEarlyItemsPropertyName is the string literal of the name for the earlyItems property in the ForgeFed vocabulary. +var ForgeFedEarlyItemsPropertyName string = "earlyItems" + // ActivityStreamsEndTimePropertyName is the string literal of the name for the endTime property in the ActivityStreams vocabulary. var ActivityStreamsEndTimePropertyName string = "endTime" // TootFeaturedPropertyName is the string literal of the name for the featured property in the Toot vocabulary. var TootFeaturedPropertyName string = "featured" +// ForgeFedFilesAddedPropertyName is the string literal of the name for the filesAdded property in the ForgeFed vocabulary. +var ForgeFedFilesAddedPropertyName string = "filesAdded" + +// ForgeFedFilesModifiedPropertyName is the string literal of the name for the filesModified property in the ForgeFed vocabulary. +var ForgeFedFilesModifiedPropertyName string = "filesModified" + +// ForgeFedFilesRemovedPropertyName is the string literal of the name for the filesRemoved property in the ForgeFed vocabulary. +var ForgeFedFilesRemovedPropertyName string = "filesRemoved" + // ActivityStreamsFirstPropertyName is the string literal of the name for the first property in the ActivityStreams vocabulary. var ActivityStreamsFirstPropertyName string = "first" @@ -248,12 +302,18 @@ var ActivityStreamsFollowersPropertyName string = "followers" // ActivityStreamsFollowingPropertyName is the string literal of the name for the following property in the ActivityStreams vocabulary. var ActivityStreamsFollowingPropertyName string = "following" +// ForgeFedForksPropertyName is the string literal of the name for the forks property in the ForgeFed vocabulary. +var ForgeFedForksPropertyName string = "forks" + // ActivityStreamsFormerTypePropertyName is the string literal of the name for the formerType property in the ActivityStreams vocabulary. var ActivityStreamsFormerTypePropertyName string = "formerType" // ActivityStreamsGeneratorPropertyName is the string literal of the name for the generator property in the ActivityStreams vocabulary. var ActivityStreamsGeneratorPropertyName string = "generator" +// ForgeFedHashPropertyName is the string literal of the name for the hash property in the ForgeFed vocabulary. +var ForgeFedHashPropertyName string = "hash" + // ActivityStreamsHeightPropertyName is the string literal of the name for the height property in the ActivityStreams vocabulary. var ActivityStreamsHeightPropertyName string = "height" @@ -278,6 +338,9 @@ var ActivityStreamsInboxPropertyName string = "inbox" // ActivityStreamsInstrumentPropertyName is the string literal of the name for the instrument property in the ActivityStreams vocabulary. var ActivityStreamsInstrumentPropertyName string = "instrument" +// ForgeFedIsResolvedPropertyName is the string literal of the name for the isResolved property in the ForgeFed vocabulary. +var ForgeFedIsResolvedPropertyName string = "isResolved" + // ActivityStreamsItemsPropertyName is the string literal of the name for the items property in the ActivityStreams vocabulary. var ActivityStreamsItemsPropertyName string = "items" @@ -356,6 +419,9 @@ var ActivityStreamsPublishedPropertyName string = "published" // ActivityStreamsRadiusPropertyName is the string literal of the name for the radius property in the ActivityStreams vocabulary. var ActivityStreamsRadiusPropertyName string = "radius" +// ForgeFedRefPropertyName is the string literal of the name for the ref property in the ForgeFed vocabulary. +var ForgeFedRefPropertyName string = "ref" + // ActivityStreamsRelPropertyName is the string literal of the name for the rel property in the ActivityStreams vocabulary. var ActivityStreamsRelPropertyName string = "rel" @@ -404,12 +470,21 @@ var ActivityStreamsTagPropertyName string = "tag" // ActivityStreamsTargetPropertyName is the string literal of the name for the target property in the ActivityStreams vocabulary. var ActivityStreamsTargetPropertyName string = "target" +// ForgeFedTeamPropertyName is the string literal of the name for the team property in the ForgeFed vocabulary. +var ForgeFedTeamPropertyName string = "team" + +// ForgeFedTicketsTrackedByPropertyName is the string literal of the name for the ticketsTrackedBy property in the ForgeFed vocabulary. +var ForgeFedTicketsTrackedByPropertyName string = "ticketsTrackedBy" + // ActivityStreamsToPropertyName is the string literal of the name for the to property in the ActivityStreams vocabulary. var ActivityStreamsToPropertyName string = "to" // ActivityStreamsTotalItemsPropertyName is the string literal of the name for the totalItems property in the ActivityStreams vocabulary. var ActivityStreamsTotalItemsPropertyName string = "totalItems" +// ForgeFedTracksTicketsForPropertyName is the string literal of the name for the tracksTicketsFor property in the ForgeFed vocabulary. +var ForgeFedTracksTicketsForPropertyName string = "tracksTicketsFor" + // ActivityStreamsUnitsPropertyName is the string literal of the name for the units property in the ActivityStreams vocabulary. var ActivityStreamsUnitsPropertyName string = "units" diff --git a/streams/gen_init.go b/streams/gen_init.go index 671f3f5..e4ba33c 100644 --- a/streams/gen_init.go +++ b/streams/gen_init.go @@ -128,6 +128,31 @@ import ( typeupdate "github.com/go-fed/activity/streams/impl/activitystreams/type_update" typevideo "github.com/go-fed/activity/streams/impl/activitystreams/type_video" typeview "github.com/go-fed/activity/streams/impl/activitystreams/type_view" + propertyassignedto "github.com/go-fed/activity/streams/impl/forgefed/property_assignedto" + propertycommitted "github.com/go-fed/activity/streams/impl/forgefed/property_committed" + propertycommittedby "github.com/go-fed/activity/streams/impl/forgefed/property_committedby" + propertydependants "github.com/go-fed/activity/streams/impl/forgefed/property_dependants" + propertydependedby "github.com/go-fed/activity/streams/impl/forgefed/property_dependedby" + propertydependencies "github.com/go-fed/activity/streams/impl/forgefed/property_dependencies" + propertydependson "github.com/go-fed/activity/streams/impl/forgefed/property_dependson" + propertydescription "github.com/go-fed/activity/streams/impl/forgefed/property_description" + propertyearlyitems "github.com/go-fed/activity/streams/impl/forgefed/property_earlyitems" + propertyfilesadded "github.com/go-fed/activity/streams/impl/forgefed/property_filesadded" + propertyfilesmodified "github.com/go-fed/activity/streams/impl/forgefed/property_filesmodified" + propertyfilesremoved "github.com/go-fed/activity/streams/impl/forgefed/property_filesremoved" + propertyforks "github.com/go-fed/activity/streams/impl/forgefed/property_forks" + propertyhash "github.com/go-fed/activity/streams/impl/forgefed/property_hash" + propertyisresolved "github.com/go-fed/activity/streams/impl/forgefed/property_isresolved" + propertyref "github.com/go-fed/activity/streams/impl/forgefed/property_ref" + propertyteam "github.com/go-fed/activity/streams/impl/forgefed/property_team" + propertyticketstrackedby "github.com/go-fed/activity/streams/impl/forgefed/property_ticketstrackedby" + propertytracksticketsfor "github.com/go-fed/activity/streams/impl/forgefed/property_tracksticketsfor" + typebranch "github.com/go-fed/activity/streams/impl/forgefed/type_branch" + typecommit "github.com/go-fed/activity/streams/impl/forgefed/type_commit" + typepush "github.com/go-fed/activity/streams/impl/forgefed/type_push" + typerepository "github.com/go-fed/activity/streams/impl/forgefed/type_repository" + typeticket "github.com/go-fed/activity/streams/impl/forgefed/type_ticket" + typeticketdependency "github.com/go-fed/activity/streams/impl/forgefed/type_ticketdependency" propertyblurhash "github.com/go-fed/activity/streams/impl/toot/property_blurhash" propertydiscoverable "github.com/go-fed/activity/streams/impl/toot/property_discoverable" propertyfeatured "github.com/go-fed/activity/streams/impl/toot/property_featured" @@ -280,6 +305,31 @@ func init() { typeupdate.SetManager(mgr) typevideo.SetManager(mgr) typeview.SetManager(mgr) + propertyassignedto.SetManager(mgr) + propertycommitted.SetManager(mgr) + propertycommittedby.SetManager(mgr) + propertydependants.SetManager(mgr) + propertydependedby.SetManager(mgr) + propertydependencies.SetManager(mgr) + propertydependson.SetManager(mgr) + propertydescription.SetManager(mgr) + propertyearlyitems.SetManager(mgr) + propertyfilesadded.SetManager(mgr) + propertyfilesmodified.SetManager(mgr) + propertyfilesremoved.SetManager(mgr) + propertyforks.SetManager(mgr) + propertyhash.SetManager(mgr) + propertyisresolved.SetManager(mgr) + propertyref.SetManager(mgr) + propertyteam.SetManager(mgr) + propertyticketstrackedby.SetManager(mgr) + propertytracksticketsfor.SetManager(mgr) + typebranch.SetManager(mgr) + typecommit.SetManager(mgr) + typepush.SetManager(mgr) + typerepository.SetManager(mgr) + typeticket.SetManager(mgr) + typeticketdependency.SetManager(mgr) propertyblurhash.SetManager(mgr) propertydiscoverable.SetManager(mgr) propertyfeatured.SetManager(mgr) @@ -346,6 +396,12 @@ func init() { typeupdate.SetTypePropertyConstructor(NewJSONLDTypeProperty) typevideo.SetTypePropertyConstructor(NewJSONLDTypeProperty) typeview.SetTypePropertyConstructor(NewJSONLDTypeProperty) + typebranch.SetTypePropertyConstructor(NewJSONLDTypeProperty) + typecommit.SetTypePropertyConstructor(NewJSONLDTypeProperty) + typepush.SetTypePropertyConstructor(NewJSONLDTypeProperty) + typerepository.SetTypePropertyConstructor(NewJSONLDTypeProperty) + typeticket.SetTypePropertyConstructor(NewJSONLDTypeProperty) + typeticketdependency.SetTypePropertyConstructor(NewJSONLDTypeProperty) typeemoji.SetTypePropertyConstructor(NewJSONLDTypeProperty) typeidentityproof.SetTypePropertyConstructor(NewJSONLDTypeProperty) typepublickey.SetTypePropertyConstructor(NewJSONLDTypeProperty) diff --git a/streams/gen_json_resolver.go b/streams/gen_json_resolver.go index f2e2b88..0c6773d 100644 --- a/streams/gen_json_resolver.go +++ b/streams/gen_json_resolver.go @@ -49,10 +49,14 @@ func NewJSONResolver(callbacks ...interface{}) (*JSONResolver, error) { // Do nothing, this callback has a correct signature. case func(context.Context, vocab.ActivityStreamsBlock) error: // Do nothing, this callback has a correct signature. + case func(context.Context, vocab.ForgeFedBranch) error: + // Do nothing, this callback has a correct signature. case func(context.Context, vocab.ActivityStreamsCollection) error: // Do nothing, this callback has a correct signature. case func(context.Context, vocab.ActivityStreamsCollectionPage) error: // Do nothing, this callback has a correct signature. + case func(context.Context, vocab.ForgeFedCommit) error: + // Do nothing, this callback has a correct signature. case func(context.Context, vocab.ActivityStreamsCreate) error: // Do nothing, this callback has a correct signature. case func(context.Context, vocab.ActivityStreamsDelete) error: @@ -117,6 +121,8 @@ func NewJSONResolver(callbacks ...interface{}) (*JSONResolver, error) { // Do nothing, this callback has a correct signature. case func(context.Context, vocab.W3IDSecurityV1PublicKey) error: // Do nothing, this callback has a correct signature. + case func(context.Context, vocab.ForgeFedPush) error: + // Do nothing, this callback has a correct signature. case func(context.Context, vocab.ActivityStreamsQuestion) error: // Do nothing, this callback has a correct signature. case func(context.Context, vocab.ActivityStreamsRead) error: @@ -127,12 +133,18 @@ func NewJSONResolver(callbacks ...interface{}) (*JSONResolver, error) { // Do nothing, this callback has a correct signature. case func(context.Context, vocab.ActivityStreamsRemove) error: // Do nothing, this callback has a correct signature. + case func(context.Context, vocab.ForgeFedRepository) error: + // Do nothing, this callback has a correct signature. case func(context.Context, vocab.ActivityStreamsService) error: // Do nothing, this callback has a correct signature. case func(context.Context, vocab.ActivityStreamsTentativeAccept) error: // Do nothing, this callback has a correct signature. case func(context.Context, vocab.ActivityStreamsTentativeReject) error: // Do nothing, this callback has a correct signature. + case func(context.Context, vocab.ForgeFedTicket) error: + // Do nothing, this callback has a correct signature. + case func(context.Context, vocab.ForgeFedTicketDependency) error: + // Do nothing, this callback has a correct signature. case func(context.Context, vocab.ActivityStreamsTombstone) error: // Do nothing, this callback has a correct signature. case func(context.Context, vocab.ActivityStreamsTravel) error: @@ -224,6 +236,13 @@ func (this JSONResolver) Resolve(ctx context.Context, m map[string]interface{}) if len(ActivityStreamsAlias) > 0 { ActivityStreamsAlias += ":" } + ForgeFedAlias, ok := aliasMap["https://forgefed.peers.community/ns"] + if !ok { + ForgeFedAlias = aliasMap["http://forgefed.peers.community/ns"] + } + if len(ForgeFedAlias) > 0 { + ForgeFedAlias += ":" + } TootAlias, ok := aliasMap["https://joinmastodon.org/ns"] if !ok { TootAlias = aliasMap["http://joinmastodon.org/ns"] @@ -338,6 +357,17 @@ func (this JSONResolver) Resolve(ctx context.Context, m map[string]interface{}) } } return ErrNoCallbackMatch + } else if typeString == ForgeFedAlias+"Branch" { + v, err := mgr.DeserializeBranchForgeFed()(m, aliasMap) + if err != nil { + return err + } + for _, i := range this.callbacks { + if fn, ok := i.(func(context.Context, vocab.ForgeFedBranch) error); ok { + return fn(ctx, v) + } + } + return ErrNoCallbackMatch } else if typeString == ActivityStreamsAlias+"Collection" { v, err := mgr.DeserializeCollectionActivityStreams()(m, aliasMap) if err != nil { @@ -360,6 +390,17 @@ func (this JSONResolver) Resolve(ctx context.Context, m map[string]interface{}) } } return ErrNoCallbackMatch + } else if typeString == ForgeFedAlias+"Commit" { + v, err := mgr.DeserializeCommitForgeFed()(m, aliasMap) + if err != nil { + return err + } + for _, i := range this.callbacks { + if fn, ok := i.(func(context.Context, vocab.ForgeFedCommit) error); ok { + return fn(ctx, v) + } + } + return ErrNoCallbackMatch } else if typeString == ActivityStreamsAlias+"Create" { v, err := mgr.DeserializeCreateActivityStreams()(m, aliasMap) if err != nil { @@ -712,6 +753,17 @@ func (this JSONResolver) Resolve(ctx context.Context, m map[string]interface{}) } } return ErrNoCallbackMatch + } else if typeString == ForgeFedAlias+"Push" { + v, err := mgr.DeserializePushForgeFed()(m, aliasMap) + if err != nil { + return err + } + for _, i := range this.callbacks { + if fn, ok := i.(func(context.Context, vocab.ForgeFedPush) error); ok { + return fn(ctx, v) + } + } + return ErrNoCallbackMatch } else if typeString == ActivityStreamsAlias+"Question" { v, err := mgr.DeserializeQuestionActivityStreams()(m, aliasMap) if err != nil { @@ -767,6 +819,17 @@ func (this JSONResolver) Resolve(ctx context.Context, m map[string]interface{}) } } return ErrNoCallbackMatch + } else if typeString == ForgeFedAlias+"Repository" { + v, err := mgr.DeserializeRepositoryForgeFed()(m, aliasMap) + if err != nil { + return err + } + for _, i := range this.callbacks { + if fn, ok := i.(func(context.Context, vocab.ForgeFedRepository) error); ok { + return fn(ctx, v) + } + } + return ErrNoCallbackMatch } else if typeString == ActivityStreamsAlias+"Service" { v, err := mgr.DeserializeServiceActivityStreams()(m, aliasMap) if err != nil { @@ -800,6 +863,28 @@ func (this JSONResolver) Resolve(ctx context.Context, m map[string]interface{}) } } return ErrNoCallbackMatch + } else if typeString == ForgeFedAlias+"Ticket" { + v, err := mgr.DeserializeTicketForgeFed()(m, aliasMap) + if err != nil { + return err + } + for _, i := range this.callbacks { + if fn, ok := i.(func(context.Context, vocab.ForgeFedTicket) error); ok { + return fn(ctx, v) + } + } + return ErrNoCallbackMatch + } else if typeString == ForgeFedAlias+"TicketDependency" { + v, err := mgr.DeserializeTicketDependencyForgeFed()(m, aliasMap) + if err != nil { + return err + } + for _, i := range this.callbacks { + if fn, ok := i.(func(context.Context, vocab.ForgeFedTicketDependency) error); ok { + return fn(ctx, v) + } + } + return ErrNoCallbackMatch } else if typeString == ActivityStreamsAlias+"Tombstone" { v, err := mgr.DeserializeTombstoneActivityStreams()(m, aliasMap) if err != nil { diff --git a/streams/gen_manager.go b/streams/gen_manager.go index 3429469..aab758b 100644 --- a/streams/gen_manager.go +++ b/streams/gen_manager.go @@ -128,6 +128,31 @@ import ( typeupdate "github.com/go-fed/activity/streams/impl/activitystreams/type_update" typevideo "github.com/go-fed/activity/streams/impl/activitystreams/type_video" typeview "github.com/go-fed/activity/streams/impl/activitystreams/type_view" + propertyassignedto "github.com/go-fed/activity/streams/impl/forgefed/property_assignedto" + propertycommitted "github.com/go-fed/activity/streams/impl/forgefed/property_committed" + propertycommittedby "github.com/go-fed/activity/streams/impl/forgefed/property_committedby" + propertydependants "github.com/go-fed/activity/streams/impl/forgefed/property_dependants" + propertydependedby "github.com/go-fed/activity/streams/impl/forgefed/property_dependedby" + propertydependencies "github.com/go-fed/activity/streams/impl/forgefed/property_dependencies" + propertydependson "github.com/go-fed/activity/streams/impl/forgefed/property_dependson" + propertydescription "github.com/go-fed/activity/streams/impl/forgefed/property_description" + propertyearlyitems "github.com/go-fed/activity/streams/impl/forgefed/property_earlyitems" + propertyfilesadded "github.com/go-fed/activity/streams/impl/forgefed/property_filesadded" + propertyfilesmodified "github.com/go-fed/activity/streams/impl/forgefed/property_filesmodified" + propertyfilesremoved "github.com/go-fed/activity/streams/impl/forgefed/property_filesremoved" + propertyforks "github.com/go-fed/activity/streams/impl/forgefed/property_forks" + propertyhash "github.com/go-fed/activity/streams/impl/forgefed/property_hash" + propertyisresolved "github.com/go-fed/activity/streams/impl/forgefed/property_isresolved" + propertyref "github.com/go-fed/activity/streams/impl/forgefed/property_ref" + propertyteam "github.com/go-fed/activity/streams/impl/forgefed/property_team" + propertyticketstrackedby "github.com/go-fed/activity/streams/impl/forgefed/property_ticketstrackedby" + propertytracksticketsfor "github.com/go-fed/activity/streams/impl/forgefed/property_tracksticketsfor" + typebranch "github.com/go-fed/activity/streams/impl/forgefed/type_branch" + typecommit "github.com/go-fed/activity/streams/impl/forgefed/type_commit" + typepush "github.com/go-fed/activity/streams/impl/forgefed/type_push" + typerepository "github.com/go-fed/activity/streams/impl/forgefed/type_repository" + typeticket "github.com/go-fed/activity/streams/impl/forgefed/type_ticket" + typeticketdependency "github.com/go-fed/activity/streams/impl/forgefed/type_ticketdependency" propertyid "github.com/go-fed/activity/streams/impl/jsonld/property_id" propertytype "github.com/go-fed/activity/streams/impl/jsonld/property_type" propertyblurhash "github.com/go-fed/activity/streams/impl/toot/property_blurhash" @@ -294,6 +319,19 @@ func (this Manager) DeserializeArticleActivityStreams() func(map[string]interfac } } +// DeserializeAssignedToPropertyForgeFed returns the deserialization method for +// the "ForgeFedAssignedToProperty" non-functional property in the vocabulary +// "ForgeFed" +func (this Manager) DeserializeAssignedToPropertyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedAssignedToProperty, error) { + return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ForgeFedAssignedToProperty, error) { + i, err := propertyassignedto.DeserializeAssignedToProperty(m, aliasMap) + if i == nil { + return nil, err + } + return i, err + } +} + // DeserializeAttachmentPropertyActivityStreams returns the deserialization method // for the "ActivityStreamsAttachmentProperty" non-functional property in the // vocabulary "ActivityStreams" @@ -384,6 +422,18 @@ func (this Manager) DeserializeBlurhashPropertyToot() func(map[string]interface{ } } +// DeserializeBranchForgeFed returns the deserialization method for the +// "ForgeFedBranch" non-functional property in the vocabulary "ForgeFed" +func (this Manager) DeserializeBranchForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedBranch, error) { + return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ForgeFedBranch, error) { + i, err := typebranch.DeserializeBranch(m, aliasMap) + if i == nil { + return nil, err + } + return i, err + } +} + // DeserializeBtoPropertyActivityStreams returns the deserialization method for // the "ActivityStreamsBtoProperty" non-functional property in the vocabulary // "ActivityStreams" @@ -449,6 +499,44 @@ func (this Manager) DeserializeCollectionPageActivityStreams() func(map[string]i } } +// DeserializeCommitForgeFed returns the deserialization method for the +// "ForgeFedCommit" non-functional property in the vocabulary "ForgeFed" +func (this Manager) DeserializeCommitForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedCommit, error) { + return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ForgeFedCommit, error) { + i, err := typecommit.DeserializeCommit(m, aliasMap) + if i == nil { + return nil, err + } + return i, err + } +} + +// DeserializeCommittedByPropertyForgeFed returns the deserialization method for +// the "ForgeFedCommittedByProperty" non-functional property in the vocabulary +// "ForgeFed" +func (this Manager) DeserializeCommittedByPropertyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedCommittedByProperty, error) { + return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ForgeFedCommittedByProperty, error) { + i, err := propertycommittedby.DeserializeCommittedByProperty(m, aliasMap) + if i == nil { + return nil, err + } + return i, err + } +} + +// DeserializeCommittedPropertyForgeFed returns the deserialization method for the +// "ForgeFedCommittedProperty" non-functional property in the vocabulary +// "ForgeFed" +func (this Manager) DeserializeCommittedPropertyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedCommittedProperty, error) { + return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ForgeFedCommittedProperty, error) { + i, err := propertycommitted.DeserializeCommittedProperty(m, aliasMap) + if i == nil { + return nil, err + } + return i, err + } +} + // DeserializeContentPropertyActivityStreams returns the deserialization method // for the "ActivityStreamsContentProperty" non-functional property in the // vocabulary "ActivityStreams" @@ -527,6 +615,58 @@ func (this Manager) DeserializeDeletedPropertyActivityStreams() func(map[string] } } +// DeserializeDependantsPropertyForgeFed returns the deserialization method for +// the "ForgeFedDependantsProperty" non-functional property in the vocabulary +// "ForgeFed" +func (this Manager) DeserializeDependantsPropertyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedDependantsProperty, error) { + return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ForgeFedDependantsProperty, error) { + i, err := propertydependants.DeserializeDependantsProperty(m, aliasMap) + if i == nil { + return nil, err + } + return i, err + } +} + +// DeserializeDependedByPropertyForgeFed returns the deserialization method for +// the "ForgeFedDependedByProperty" non-functional property in the vocabulary +// "ForgeFed" +func (this Manager) DeserializeDependedByPropertyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedDependedByProperty, error) { + return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ForgeFedDependedByProperty, error) { + i, err := propertydependedby.DeserializeDependedByProperty(m, aliasMap) + if i == nil { + return nil, err + } + return i, err + } +} + +// DeserializeDependenciesPropertyForgeFed returns the deserialization method for +// the "ForgeFedDependenciesProperty" non-functional property in the +// vocabulary "ForgeFed" +func (this Manager) DeserializeDependenciesPropertyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedDependenciesProperty, error) { + return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ForgeFedDependenciesProperty, error) { + i, err := propertydependencies.DeserializeDependenciesProperty(m, aliasMap) + if i == nil { + return nil, err + } + return i, err + } +} + +// DeserializeDependsOnPropertyForgeFed returns the deserialization method for the +// "ForgeFedDependsOnProperty" non-functional property in the vocabulary +// "ForgeFed" +func (this Manager) DeserializeDependsOnPropertyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedDependsOnProperty, error) { + return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ForgeFedDependsOnProperty, error) { + i, err := propertydependson.DeserializeDependsOnProperty(m, aliasMap) + if i == nil { + return nil, err + } + return i, err + } +} + // DeserializeDescribesPropertyActivityStreams returns the deserialization method // for the "ActivityStreamsDescribesProperty" non-functional property in the // vocabulary "ActivityStreams" @@ -540,6 +680,19 @@ func (this Manager) DeserializeDescribesPropertyActivityStreams() func(map[strin } } +// DeserializeDescriptionPropertyForgeFed returns the deserialization method for +// the "ForgeFedDescriptionProperty" non-functional property in the vocabulary +// "ForgeFed" +func (this Manager) DeserializeDescriptionPropertyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedDescriptionProperty, error) { + return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ForgeFedDescriptionProperty, error) { + i, err := propertydescription.DeserializeDescriptionProperty(m, aliasMap) + if i == nil { + return nil, err + } + return i, err + } +} + // DeserializeDiscoverablePropertyToot returns the deserialization method for the // "TootDiscoverableProperty" non-functional property in the vocabulary "Toot" func (this Manager) DeserializeDiscoverablePropertyToot() func(map[string]interface{}, map[string]string) (vocab.TootDiscoverableProperty, error) { @@ -591,6 +744,19 @@ func (this Manager) DeserializeDurationPropertyActivityStreams() func(map[string } } +// DeserializeEarlyItemsPropertyForgeFed returns the deserialization method for +// the "ForgeFedEarlyItemsProperty" non-functional property in the vocabulary +// "ForgeFed" +func (this Manager) DeserializeEarlyItemsPropertyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedEarlyItemsProperty, error) { + return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ForgeFedEarlyItemsProperty, error) { + i, err := propertyearlyitems.DeserializeEarlyItemsProperty(m, aliasMap) + if i == nil { + return nil, err + } + return i, err + } +} + // DeserializeEmojiToot returns the deserialization method for the "TootEmoji" // non-functional property in the vocabulary "Toot" func (this Manager) DeserializeEmojiToot() func(map[string]interface{}, map[string]string) (vocab.TootEmoji, error) { @@ -641,6 +807,45 @@ func (this Manager) DeserializeFeaturedPropertyToot() func(map[string]interface{ } } +// DeserializeFilesAddedPropertyForgeFed returns the deserialization method for +// the "ForgeFedFilesAddedProperty" non-functional property in the vocabulary +// "ForgeFed" +func (this Manager) DeserializeFilesAddedPropertyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedFilesAddedProperty, error) { + return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ForgeFedFilesAddedProperty, error) { + i, err := propertyfilesadded.DeserializeFilesAddedProperty(m, aliasMap) + if i == nil { + return nil, err + } + return i, err + } +} + +// DeserializeFilesModifiedPropertyForgeFed returns the deserialization method for +// the "ForgeFedFilesModifiedProperty" non-functional property in the +// vocabulary "ForgeFed" +func (this Manager) DeserializeFilesModifiedPropertyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedFilesModifiedProperty, error) { + return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ForgeFedFilesModifiedProperty, error) { + i, err := propertyfilesmodified.DeserializeFilesModifiedProperty(m, aliasMap) + if i == nil { + return nil, err + } + return i, err + } +} + +// DeserializeFilesRemovedPropertyForgeFed returns the deserialization method for +// the "ForgeFedFilesRemovedProperty" non-functional property in the +// vocabulary "ForgeFed" +func (this Manager) DeserializeFilesRemovedPropertyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedFilesRemovedProperty, error) { + return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ForgeFedFilesRemovedProperty, error) { + i, err := propertyfilesremoved.DeserializeFilesRemovedProperty(m, aliasMap) + if i == nil { + return nil, err + } + return i, err + } +} + // DeserializeFirstPropertyActivityStreams returns the deserialization method for // the "ActivityStreamsFirstProperty" non-functional property in the // vocabulary "ActivityStreams" @@ -706,6 +911,18 @@ func (this Manager) DeserializeFollowingPropertyActivityStreams() func(map[strin } } +// DeserializeForksPropertyForgeFed returns the deserialization method for the +// "ForgeFedForksProperty" non-functional property in the vocabulary "ForgeFed" +func (this Manager) DeserializeForksPropertyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedForksProperty, error) { + return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ForgeFedForksProperty, error) { + i, err := propertyforks.DeserializeForksProperty(m, aliasMap) + if i == nil { + return nil, err + } + return i, err + } +} + // DeserializeFormerTypePropertyActivityStreams returns the deserialization method // for the "ActivityStreamsFormerTypeProperty" non-functional property in the // vocabulary "ActivityStreams" @@ -745,6 +962,18 @@ func (this Manager) DeserializeGroupActivityStreams() func(map[string]interface{ } } +// DeserializeHashPropertyForgeFed returns the deserialization method for the +// "ForgeFedHashProperty" non-functional property in the vocabulary "ForgeFed" +func (this Manager) DeserializeHashPropertyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedHashProperty, error) { + return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ForgeFedHashProperty, error) { + i, err := propertyhash.DeserializeHashProperty(m, aliasMap) + if i == nil { + return nil, err + } + return i, err + } +} + // DeserializeHeightPropertyActivityStreams returns the deserialization method for // the "ActivityStreamsHeightProperty" non-functional property in the // vocabulary "ActivityStreams" @@ -925,6 +1154,19 @@ func (this Manager) DeserializeInviteActivityStreams() func(map[string]interface } } +// DeserializeIsResolvedPropertyForgeFed returns the deserialization method for +// the "ForgeFedIsResolvedProperty" non-functional property in the vocabulary +// "ForgeFed" +func (this Manager) DeserializeIsResolvedPropertyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedIsResolvedProperty, error) { + return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ForgeFedIsResolvedProperty, error) { + i, err := propertyisresolved.DeserializeIsResolvedProperty(m, aliasMap) + if i == nil { + return nil, err + } + return i, err + } +} + // DeserializeItemsPropertyActivityStreams returns the deserialization method for // the "ActivityStreamsItemsProperty" non-functional property in the // vocabulary "ActivityStreams" @@ -1458,6 +1700,18 @@ func (this Manager) DeserializePublishedPropertyActivityStreams() func(map[strin } } +// DeserializePushForgeFed returns the deserialization method for the +// "ForgeFedPush" non-functional property in the vocabulary "ForgeFed" +func (this Manager) DeserializePushForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedPush, error) { + return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ForgeFedPush, error) { + i, err := typepush.DeserializePush(m, aliasMap) + if i == nil { + return nil, err + } + return i, err + } +} + // DeserializeQuestionActivityStreams returns the deserialization method for the // "ActivityStreamsQuestion" non-functional property in the vocabulary // "ActivityStreams" @@ -1497,6 +1751,18 @@ func (this Manager) DeserializeReadActivityStreams() func(map[string]interface{} } } +// DeserializeRefPropertyForgeFed returns the deserialization method for the +// "ForgeFedRefProperty" non-functional property in the vocabulary "ForgeFed" +func (this Manager) DeserializeRefPropertyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedRefProperty, error) { + return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ForgeFedRefProperty, error) { + i, err := propertyref.DeserializeRefProperty(m, aliasMap) + if i == nil { + return nil, err + } + return i, err + } +} + // DeserializeRejectActivityStreams returns the deserialization method for the // "ActivityStreamsReject" non-functional property in the vocabulary // "ActivityStreams" @@ -1575,6 +1841,18 @@ func (this Manager) DeserializeRepliesPropertyActivityStreams() func(map[string] } } +// DeserializeRepositoryForgeFed returns the deserialization method for the +// "ForgeFedRepository" non-functional property in the vocabulary "ForgeFed" +func (this Manager) DeserializeRepositoryForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedRepository, error) { + return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ForgeFedRepository, error) { + i, err := typerepository.DeserializeRepository(m, aliasMap) + if i == nil { + return nil, err + } + return i, err + } +} + // DeserializeResultPropertyActivityStreams returns the deserialization method for // the "ActivityStreamsResultProperty" non-functional property in the // vocabulary "ActivityStreams" @@ -1744,6 +2022,18 @@ func (this Manager) DeserializeTargetPropertyActivityStreams() func(map[string]i } } +// DeserializeTeamPropertyForgeFed returns the deserialization method for the +// "ForgeFedTeamProperty" non-functional property in the vocabulary "ForgeFed" +func (this Manager) DeserializeTeamPropertyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTeamProperty, error) { + return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ForgeFedTeamProperty, error) { + i, err := propertyteam.DeserializeTeamProperty(m, aliasMap) + if i == nil { + return nil, err + } + return i, err + } +} + // DeserializeTentativeAcceptActivityStreams returns the deserialization method // for the "ActivityStreamsTentativeAccept" non-functional property in the // vocabulary "ActivityStreams" @@ -1770,6 +2060,44 @@ func (this Manager) DeserializeTentativeRejectActivityStreams() func(map[string] } } +// DeserializeTicketDependencyForgeFed returns the deserialization method for the +// "ForgeFedTicketDependency" non-functional property in the vocabulary +// "ForgeFed" +func (this Manager) DeserializeTicketDependencyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTicketDependency, error) { + return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ForgeFedTicketDependency, error) { + i, err := typeticketdependency.DeserializeTicketDependency(m, aliasMap) + if i == nil { + return nil, err + } + return i, err + } +} + +// DeserializeTicketForgeFed returns the deserialization method for the +// "ForgeFedTicket" non-functional property in the vocabulary "ForgeFed" +func (this Manager) DeserializeTicketForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTicket, error) { + return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ForgeFedTicket, error) { + i, err := typeticket.DeserializeTicket(m, aliasMap) + if i == nil { + return nil, err + } + return i, err + } +} + +// DeserializeTicketsTrackedByPropertyForgeFed returns the deserialization method +// for the "ForgeFedTicketsTrackedByProperty" non-functional property in the +// vocabulary "ForgeFed" +func (this Manager) DeserializeTicketsTrackedByPropertyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTicketsTrackedByProperty, error) { + return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ForgeFedTicketsTrackedByProperty, error) { + i, err := propertyticketstrackedby.DeserializeTicketsTrackedByProperty(m, aliasMap) + if i == nil { + return nil, err + } + return i, err + } +} + // DeserializeToPropertyActivityStreams returns the deserialization method for the // "ActivityStreamsToProperty" non-functional property in the vocabulary // "ActivityStreams" @@ -1809,6 +2137,19 @@ func (this Manager) DeserializeTotalItemsPropertyActivityStreams() func(map[stri } } +// DeserializeTracksTicketsForPropertyForgeFed returns the deserialization method +// for the "ForgeFedTracksTicketsForProperty" non-functional property in the +// vocabulary "ForgeFed" +func (this Manager) DeserializeTracksTicketsForPropertyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTracksTicketsForProperty, error) { + return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ForgeFedTracksTicketsForProperty, error) { + i, err := propertytracksticketsfor.DeserializeTracksTicketsForProperty(m, aliasMap) + if i == nil { + return nil, err + } + return i, err + } +} + // DeserializeTravelActivityStreams returns the deserialization method for the // "ActivityStreamsTravel" non-functional property in the vocabulary // "ActivityStreams" diff --git a/streams/gen_pkg_forgefed_disjoint.go b/streams/gen_pkg_forgefed_disjoint.go new file mode 100644 index 0000000..d6299f7 --- /dev/null +++ b/streams/gen_pkg_forgefed_disjoint.go @@ -0,0 +1,49 @@ +// Code generated by astool. DO NOT EDIT. + +package streams + +import ( + typebranch "github.com/go-fed/activity/streams/impl/forgefed/type_branch" + typecommit "github.com/go-fed/activity/streams/impl/forgefed/type_commit" + typepush "github.com/go-fed/activity/streams/impl/forgefed/type_push" + typerepository "github.com/go-fed/activity/streams/impl/forgefed/type_repository" + typeticket "github.com/go-fed/activity/streams/impl/forgefed/type_ticket" + typeticketdependency "github.com/go-fed/activity/streams/impl/forgefed/type_ticketdependency" + vocab "github.com/go-fed/activity/streams/vocab" +) + +// ForgeFedBranchIsDisjointWith returns true if Branch is disjoint with the +// other's type. +func ForgeFedBranchIsDisjointWith(other vocab.Type) bool { + return typebranch.BranchIsDisjointWith(other) +} + +// ForgeFedCommitIsDisjointWith returns true if Commit is disjoint with the +// other's type. +func ForgeFedCommitIsDisjointWith(other vocab.Type) bool { + return typecommit.CommitIsDisjointWith(other) +} + +// ForgeFedPushIsDisjointWith returns true if Push is disjoint with the other's +// type. +func ForgeFedPushIsDisjointWith(other vocab.Type) bool { + return typepush.PushIsDisjointWith(other) +} + +// ForgeFedRepositoryIsDisjointWith returns true if Repository is disjoint with +// the other's type. +func ForgeFedRepositoryIsDisjointWith(other vocab.Type) bool { + return typerepository.RepositoryIsDisjointWith(other) +} + +// ForgeFedTicketIsDisjointWith returns true if Ticket is disjoint with the +// other's type. +func ForgeFedTicketIsDisjointWith(other vocab.Type) bool { + return typeticket.TicketIsDisjointWith(other) +} + +// ForgeFedTicketDependencyIsDisjointWith returns true if TicketDependency is +// disjoint with the other's type. +func ForgeFedTicketDependencyIsDisjointWith(other vocab.Type) bool { + return typeticketdependency.TicketDependencyIsDisjointWith(other) +} diff --git a/streams/gen_pkg_forgefed_extendedby.go b/streams/gen_pkg_forgefed_extendedby.go new file mode 100644 index 0000000..2a70d7a --- /dev/null +++ b/streams/gen_pkg_forgefed_extendedby.go @@ -0,0 +1,55 @@ +// Code generated by astool. DO NOT EDIT. + +package streams + +import ( + typebranch "github.com/go-fed/activity/streams/impl/forgefed/type_branch" + typecommit "github.com/go-fed/activity/streams/impl/forgefed/type_commit" + typepush "github.com/go-fed/activity/streams/impl/forgefed/type_push" + typerepository "github.com/go-fed/activity/streams/impl/forgefed/type_repository" + typeticket "github.com/go-fed/activity/streams/impl/forgefed/type_ticket" + typeticketdependency "github.com/go-fed/activity/streams/impl/forgefed/type_ticketdependency" + vocab "github.com/go-fed/activity/streams/vocab" +) + +// ForgeFedBranchIsExtendedBy returns true if the other's type extends from +// Branch. Note that it returns false if the types are the same; see the +// "IsOrExtends" variant instead. +func ForgeFedBranchIsExtendedBy(other vocab.Type) bool { + return typebranch.BranchIsExtendedBy(other) +} + +// ForgeFedCommitIsExtendedBy returns true if the other's type extends from +// Commit. Note that it returns false if the types are the same; see the +// "IsOrExtends" variant instead. +func ForgeFedCommitIsExtendedBy(other vocab.Type) bool { + return typecommit.CommitIsExtendedBy(other) +} + +// ForgeFedPushIsExtendedBy returns true if the other's type extends from Push. +// Note that it returns false if the types are the same; see the "IsOrExtends" +// variant instead. +func ForgeFedPushIsExtendedBy(other vocab.Type) bool { + return typepush.PushIsExtendedBy(other) +} + +// ForgeFedRepositoryIsExtendedBy returns true if the other's type extends from +// Repository. Note that it returns false if the types are the same; see the +// "IsOrExtends" variant instead. +func ForgeFedRepositoryIsExtendedBy(other vocab.Type) bool { + return typerepository.RepositoryIsExtendedBy(other) +} + +// ForgeFedTicketIsExtendedBy returns true if the other's type extends from +// Ticket. Note that it returns false if the types are the same; see the +// "IsOrExtends" variant instead. +func ForgeFedTicketIsExtendedBy(other vocab.Type) bool { + return typeticket.TicketIsExtendedBy(other) +} + +// ForgeFedTicketDependencyIsExtendedBy returns true if the other's type extends +// from TicketDependency. Note that it returns false if the types are the +// same; see the "IsOrExtends" variant instead. +func ForgeFedTicketDependencyIsExtendedBy(other vocab.Type) bool { + return typeticketdependency.TicketDependencyIsExtendedBy(other) +} diff --git a/streams/gen_pkg_forgefed_extends.go b/streams/gen_pkg_forgefed_extends.go new file mode 100644 index 0000000..2118ba3 --- /dev/null +++ b/streams/gen_pkg_forgefed_extends.go @@ -0,0 +1,48 @@ +// Code generated by astool. DO NOT EDIT. + +package streams + +import ( + typebranch "github.com/go-fed/activity/streams/impl/forgefed/type_branch" + typecommit "github.com/go-fed/activity/streams/impl/forgefed/type_commit" + typepush "github.com/go-fed/activity/streams/impl/forgefed/type_push" + typerepository "github.com/go-fed/activity/streams/impl/forgefed/type_repository" + typeticket "github.com/go-fed/activity/streams/impl/forgefed/type_ticket" + typeticketdependency "github.com/go-fed/activity/streams/impl/forgefed/type_ticketdependency" + vocab "github.com/go-fed/activity/streams/vocab" +) + +// ForgeFedForgeFedBranchExtends returns true if Branch extends from the other's +// type. +func ForgeFedForgeFedBranchExtends(other vocab.Type) bool { + return typebranch.ForgeFedBranchExtends(other) +} + +// ForgeFedForgeFedCommitExtends returns true if Commit extends from the other's +// type. +func ForgeFedForgeFedCommitExtends(other vocab.Type) bool { + return typecommit.ForgeFedCommitExtends(other) +} + +// ForgeFedForgeFedPushExtends returns true if Push extends from the other's type. +func ForgeFedForgeFedPushExtends(other vocab.Type) bool { + return typepush.ForgeFedPushExtends(other) +} + +// ForgeFedForgeFedRepositoryExtends returns true if Repository extends from the +// other's type. +func ForgeFedForgeFedRepositoryExtends(other vocab.Type) bool { + return typerepository.ForgeFedRepositoryExtends(other) +} + +// ForgeFedForgeFedTicketExtends returns true if Ticket extends from the other's +// type. +func ForgeFedForgeFedTicketExtends(other vocab.Type) bool { + return typeticket.ForgeFedTicketExtends(other) +} + +// ForgeFedForgeFedTicketDependencyExtends returns true if TicketDependency +// extends from the other's type. +func ForgeFedForgeFedTicketDependencyExtends(other vocab.Type) bool { + return typeticketdependency.ForgeFedTicketDependencyExtends(other) +} diff --git a/streams/gen_pkg_forgefed_isorextends.go b/streams/gen_pkg_forgefed_isorextends.go new file mode 100644 index 0000000..96d4455 --- /dev/null +++ b/streams/gen_pkg_forgefed_isorextends.go @@ -0,0 +1,49 @@ +// Code generated by astool. DO NOT EDIT. + +package streams + +import ( + typebranch "github.com/go-fed/activity/streams/impl/forgefed/type_branch" + typecommit "github.com/go-fed/activity/streams/impl/forgefed/type_commit" + typepush "github.com/go-fed/activity/streams/impl/forgefed/type_push" + typerepository "github.com/go-fed/activity/streams/impl/forgefed/type_repository" + typeticket "github.com/go-fed/activity/streams/impl/forgefed/type_ticket" + typeticketdependency "github.com/go-fed/activity/streams/impl/forgefed/type_ticketdependency" + vocab "github.com/go-fed/activity/streams/vocab" +) + +// IsOrExtendsForgeFedBranch returns true if the other provided type is the Branch +// type or extends from the Branch type. +func IsOrExtendsForgeFedBranch(other vocab.Type) bool { + return typebranch.IsOrExtendsBranch(other) +} + +// IsOrExtendsForgeFedCommit returns true if the other provided type is the Commit +// type or extends from the Commit type. +func IsOrExtendsForgeFedCommit(other vocab.Type) bool { + return typecommit.IsOrExtendsCommit(other) +} + +// IsOrExtendsForgeFedPush returns true if the other provided type is the Push +// type or extends from the Push type. +func IsOrExtendsForgeFedPush(other vocab.Type) bool { + return typepush.IsOrExtendsPush(other) +} + +// IsOrExtendsForgeFedRepository returns true if the other provided type is the +// Repository type or extends from the Repository type. +func IsOrExtendsForgeFedRepository(other vocab.Type) bool { + return typerepository.IsOrExtendsRepository(other) +} + +// IsOrExtendsForgeFedTicket returns true if the other provided type is the Ticket +// type or extends from the Ticket type. +func IsOrExtendsForgeFedTicket(other vocab.Type) bool { + return typeticket.IsOrExtendsTicket(other) +} + +// IsOrExtendsForgeFedTicketDependency returns true if the other provided type is +// the TicketDependency type or extends from the TicketDependency type. +func IsOrExtendsForgeFedTicketDependency(other vocab.Type) bool { + return typeticketdependency.IsOrExtendsTicketDependency(other) +} diff --git a/streams/gen_pkg_forgefed_property_constructors.go b/streams/gen_pkg_forgefed_property_constructors.go new file mode 100644 index 0000000..d8921cb --- /dev/null +++ b/streams/gen_pkg_forgefed_property_constructors.go @@ -0,0 +1,126 @@ +// Code generated by astool. DO NOT EDIT. + +package streams + +import ( + propertyassignedto "github.com/go-fed/activity/streams/impl/forgefed/property_assignedto" + propertycommitted "github.com/go-fed/activity/streams/impl/forgefed/property_committed" + propertycommittedby "github.com/go-fed/activity/streams/impl/forgefed/property_committedby" + propertydependants "github.com/go-fed/activity/streams/impl/forgefed/property_dependants" + propertydependedby "github.com/go-fed/activity/streams/impl/forgefed/property_dependedby" + propertydependencies "github.com/go-fed/activity/streams/impl/forgefed/property_dependencies" + propertydependson "github.com/go-fed/activity/streams/impl/forgefed/property_dependson" + propertydescription "github.com/go-fed/activity/streams/impl/forgefed/property_description" + propertyearlyitems "github.com/go-fed/activity/streams/impl/forgefed/property_earlyitems" + propertyfilesadded "github.com/go-fed/activity/streams/impl/forgefed/property_filesadded" + propertyfilesmodified "github.com/go-fed/activity/streams/impl/forgefed/property_filesmodified" + propertyfilesremoved "github.com/go-fed/activity/streams/impl/forgefed/property_filesremoved" + propertyforks "github.com/go-fed/activity/streams/impl/forgefed/property_forks" + propertyhash "github.com/go-fed/activity/streams/impl/forgefed/property_hash" + propertyisresolved "github.com/go-fed/activity/streams/impl/forgefed/property_isresolved" + propertyref "github.com/go-fed/activity/streams/impl/forgefed/property_ref" + propertyteam "github.com/go-fed/activity/streams/impl/forgefed/property_team" + propertyticketstrackedby "github.com/go-fed/activity/streams/impl/forgefed/property_ticketstrackedby" + propertytracksticketsfor "github.com/go-fed/activity/streams/impl/forgefed/property_tracksticketsfor" + vocab "github.com/go-fed/activity/streams/vocab" +) + +// NewForgeFedForgeFedAssignedToProperty creates a new ForgeFedAssignedToProperty +func NewForgeFedAssignedToProperty() vocab.ForgeFedAssignedToProperty { + return propertyassignedto.NewForgeFedAssignedToProperty() +} + +// NewForgeFedForgeFedCommittedProperty creates a new ForgeFedCommittedProperty +func NewForgeFedCommittedProperty() vocab.ForgeFedCommittedProperty { + return propertycommitted.NewForgeFedCommittedProperty() +} + +// NewForgeFedForgeFedCommittedByProperty creates a new ForgeFedCommittedByProperty +func NewForgeFedCommittedByProperty() vocab.ForgeFedCommittedByProperty { + return propertycommittedby.NewForgeFedCommittedByProperty() +} + +// NewForgeFedForgeFedDependantsProperty creates a new ForgeFedDependantsProperty +func NewForgeFedDependantsProperty() vocab.ForgeFedDependantsProperty { + return propertydependants.NewForgeFedDependantsProperty() +} + +// NewForgeFedForgeFedDependedByProperty creates a new ForgeFedDependedByProperty +func NewForgeFedDependedByProperty() vocab.ForgeFedDependedByProperty { + return propertydependedby.NewForgeFedDependedByProperty() +} + +// NewForgeFedForgeFedDependenciesProperty creates a new +// ForgeFedDependenciesProperty +func NewForgeFedDependenciesProperty() vocab.ForgeFedDependenciesProperty { + return propertydependencies.NewForgeFedDependenciesProperty() +} + +// NewForgeFedForgeFedDependsOnProperty creates a new ForgeFedDependsOnProperty +func NewForgeFedDependsOnProperty() vocab.ForgeFedDependsOnProperty { + return propertydependson.NewForgeFedDependsOnProperty() +} + +// NewForgeFedForgeFedDescriptionProperty creates a new ForgeFedDescriptionProperty +func NewForgeFedDescriptionProperty() vocab.ForgeFedDescriptionProperty { + return propertydescription.NewForgeFedDescriptionProperty() +} + +// NewForgeFedForgeFedEarlyItemsProperty creates a new ForgeFedEarlyItemsProperty +func NewForgeFedEarlyItemsProperty() vocab.ForgeFedEarlyItemsProperty { + return propertyearlyitems.NewForgeFedEarlyItemsProperty() +} + +// NewForgeFedForgeFedFilesAddedProperty creates a new ForgeFedFilesAddedProperty +func NewForgeFedFilesAddedProperty() vocab.ForgeFedFilesAddedProperty { + return propertyfilesadded.NewForgeFedFilesAddedProperty() +} + +// NewForgeFedForgeFedFilesModifiedProperty creates a new +// ForgeFedFilesModifiedProperty +func NewForgeFedFilesModifiedProperty() vocab.ForgeFedFilesModifiedProperty { + return propertyfilesmodified.NewForgeFedFilesModifiedProperty() +} + +// NewForgeFedForgeFedFilesRemovedProperty creates a new +// ForgeFedFilesRemovedProperty +func NewForgeFedFilesRemovedProperty() vocab.ForgeFedFilesRemovedProperty { + return propertyfilesremoved.NewForgeFedFilesRemovedProperty() +} + +// NewForgeFedForgeFedForksProperty creates a new ForgeFedForksProperty +func NewForgeFedForksProperty() vocab.ForgeFedForksProperty { + return propertyforks.NewForgeFedForksProperty() +} + +// NewForgeFedForgeFedHashProperty creates a new ForgeFedHashProperty +func NewForgeFedHashProperty() vocab.ForgeFedHashProperty { + return propertyhash.NewForgeFedHashProperty() +} + +// NewForgeFedForgeFedIsResolvedProperty creates a new ForgeFedIsResolvedProperty +func NewForgeFedIsResolvedProperty() vocab.ForgeFedIsResolvedProperty { + return propertyisresolved.NewForgeFedIsResolvedProperty() +} + +// NewForgeFedForgeFedRefProperty creates a new ForgeFedRefProperty +func NewForgeFedRefProperty() vocab.ForgeFedRefProperty { + return propertyref.NewForgeFedRefProperty() +} + +// NewForgeFedForgeFedTeamProperty creates a new ForgeFedTeamProperty +func NewForgeFedTeamProperty() vocab.ForgeFedTeamProperty { + return propertyteam.NewForgeFedTeamProperty() +} + +// NewForgeFedForgeFedTicketsTrackedByProperty creates a new +// ForgeFedTicketsTrackedByProperty +func NewForgeFedTicketsTrackedByProperty() vocab.ForgeFedTicketsTrackedByProperty { + return propertyticketstrackedby.NewForgeFedTicketsTrackedByProperty() +} + +// NewForgeFedForgeFedTracksTicketsForProperty creates a new +// ForgeFedTracksTicketsForProperty +func NewForgeFedTracksTicketsForProperty() vocab.ForgeFedTracksTicketsForProperty { + return propertytracksticketsfor.NewForgeFedTracksTicketsForProperty() +} diff --git a/streams/gen_pkg_forgefed_type_constructors.go b/streams/gen_pkg_forgefed_type_constructors.go new file mode 100644 index 0000000..78b5950 --- /dev/null +++ b/streams/gen_pkg_forgefed_type_constructors.go @@ -0,0 +1,43 @@ +// Code generated by astool. DO NOT EDIT. + +package streams + +import ( + typebranch "github.com/go-fed/activity/streams/impl/forgefed/type_branch" + typecommit "github.com/go-fed/activity/streams/impl/forgefed/type_commit" + typepush "github.com/go-fed/activity/streams/impl/forgefed/type_push" + typerepository "github.com/go-fed/activity/streams/impl/forgefed/type_repository" + typeticket "github.com/go-fed/activity/streams/impl/forgefed/type_ticket" + typeticketdependency "github.com/go-fed/activity/streams/impl/forgefed/type_ticketdependency" + vocab "github.com/go-fed/activity/streams/vocab" +) + +// NewForgeFedBranch creates a new ForgeFedBranch +func NewForgeFedBranch() vocab.ForgeFedBranch { + return typebranch.NewForgeFedBranch() +} + +// NewForgeFedCommit creates a new ForgeFedCommit +func NewForgeFedCommit() vocab.ForgeFedCommit { + return typecommit.NewForgeFedCommit() +} + +// NewForgeFedPush creates a new ForgeFedPush +func NewForgeFedPush() vocab.ForgeFedPush { + return typepush.NewForgeFedPush() +} + +// NewForgeFedRepository creates a new ForgeFedRepository +func NewForgeFedRepository() vocab.ForgeFedRepository { + return typerepository.NewForgeFedRepository() +} + +// NewForgeFedTicket creates a new ForgeFedTicket +func NewForgeFedTicket() vocab.ForgeFedTicket { + return typeticket.NewForgeFedTicket() +} + +// NewForgeFedTicketDependency creates a new ForgeFedTicketDependency +func NewForgeFedTicketDependency() vocab.ForgeFedTicketDependency { + return typeticketdependency.NewForgeFedTicketDependency() +} diff --git a/streams/gen_resolver_utils.go b/streams/gen_resolver_utils.go index f4a7df0..30eae3f 100644 --- a/streams/gen_resolver_utils.go +++ b/streams/gen_resolver_utils.go @@ -73,12 +73,18 @@ func ToType(c context.Context, m map[string]interface{}) (t vocab.Type, err erro }, func(ctx context.Context, i vocab.ActivityStreamsBlock) error { t = i return nil + }, func(ctx context.Context, i vocab.ForgeFedBranch) error { + t = i + return nil }, func(ctx context.Context, i vocab.ActivityStreamsCollection) error { t = i return nil }, func(ctx context.Context, i vocab.ActivityStreamsCollectionPage) error { t = i return nil + }, func(ctx context.Context, i vocab.ForgeFedCommit) error { + t = i + return nil }, func(ctx context.Context, i vocab.ActivityStreamsCreate) error { t = i return nil @@ -175,6 +181,9 @@ func ToType(c context.Context, m map[string]interface{}) (t vocab.Type, err erro }, func(ctx context.Context, i vocab.W3IDSecurityV1PublicKey) error { t = i return nil + }, func(ctx context.Context, i vocab.ForgeFedPush) error { + t = i + return nil }, func(ctx context.Context, i vocab.ActivityStreamsQuestion) error { t = i return nil @@ -190,6 +199,9 @@ func ToType(c context.Context, m map[string]interface{}) (t vocab.Type, err erro }, func(ctx context.Context, i vocab.ActivityStreamsRemove) error { t = i return nil + }, func(ctx context.Context, i vocab.ForgeFedRepository) error { + t = i + return nil }, func(ctx context.Context, i vocab.ActivityStreamsService) error { t = i return nil @@ -199,6 +211,12 @@ func ToType(c context.Context, m map[string]interface{}) (t vocab.Type, err erro }, func(ctx context.Context, i vocab.ActivityStreamsTentativeReject) error { t = i return nil + }, func(ctx context.Context, i vocab.ForgeFedTicket) error { + t = i + return nil + }, func(ctx context.Context, i vocab.ForgeFedTicketDependency) error { + t = i + return nil }, func(ctx context.Context, i vocab.ActivityStreamsTombstone) error { t = i return nil diff --git a/streams/gen_type_predicated_resolver.go b/streams/gen_type_predicated_resolver.go index a943592..6199b6c 100644 --- a/streams/gen_type_predicated_resolver.go +++ b/streams/gen_type_predicated_resolver.go @@ -47,10 +47,14 @@ func NewTypePredicatedResolver(delegate Resolver, predicate interface{}) (*TypeP // Do nothing, this predicate has a correct signature. case func(context.Context, vocab.ActivityStreamsBlock) (bool, error): // Do nothing, this predicate has a correct signature. + case func(context.Context, vocab.ForgeFedBranch) (bool, error): + // Do nothing, this predicate has a correct signature. case func(context.Context, vocab.ActivityStreamsCollection) (bool, error): // Do nothing, this predicate has a correct signature. case func(context.Context, vocab.ActivityStreamsCollectionPage) (bool, error): // Do nothing, this predicate has a correct signature. + case func(context.Context, vocab.ForgeFedCommit) (bool, error): + // Do nothing, this predicate has a correct signature. case func(context.Context, vocab.ActivityStreamsCreate) (bool, error): // Do nothing, this predicate has a correct signature. case func(context.Context, vocab.ActivityStreamsDelete) (bool, error): @@ -115,6 +119,8 @@ func NewTypePredicatedResolver(delegate Resolver, predicate interface{}) (*TypeP // Do nothing, this predicate has a correct signature. case func(context.Context, vocab.W3IDSecurityV1PublicKey) (bool, error): // Do nothing, this predicate has a correct signature. + case func(context.Context, vocab.ForgeFedPush) (bool, error): + // Do nothing, this predicate has a correct signature. case func(context.Context, vocab.ActivityStreamsQuestion) (bool, error): // Do nothing, this predicate has a correct signature. case func(context.Context, vocab.ActivityStreamsRead) (bool, error): @@ -125,12 +131,18 @@ func NewTypePredicatedResolver(delegate Resolver, predicate interface{}) (*TypeP // Do nothing, this predicate has a correct signature. case func(context.Context, vocab.ActivityStreamsRemove) (bool, error): // Do nothing, this predicate has a correct signature. + case func(context.Context, vocab.ForgeFedRepository) (bool, error): + // Do nothing, this predicate has a correct signature. case func(context.Context, vocab.ActivityStreamsService) (bool, error): // Do nothing, this predicate has a correct signature. case func(context.Context, vocab.ActivityStreamsTentativeAccept) (bool, error): // Do nothing, this predicate has a correct signature. case func(context.Context, vocab.ActivityStreamsTentativeReject) (bool, error): // Do nothing, this predicate has a correct signature. + case func(context.Context, vocab.ForgeFedTicket) (bool, error): + // Do nothing, this predicate has a correct signature. + case func(context.Context, vocab.ForgeFedTicketDependency) (bool, error): + // Do nothing, this predicate has a correct signature. case func(context.Context, vocab.ActivityStreamsTombstone) (bool, error): // Do nothing, this predicate has a correct signature. case func(context.Context, vocab.ActivityStreamsTravel) (bool, error): @@ -261,6 +273,17 @@ func (this TypePredicatedResolver) Apply(ctx context.Context, o ActivityStreamsI } else { return false, ErrPredicateUnmatched } + } else if o.VocabularyURI() == "https://forgefed.peers.community/ns" && o.GetTypeName() == "Branch" { + if fn, ok := this.predicate.(func(context.Context, vocab.ForgeFedBranch) (bool, error)); ok { + if v, ok := o.(vocab.ForgeFedBranch); ok { + predicatePasses, err = fn(ctx, v) + } else { + // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code. + return false, errCannotTypeAssertType + } + } else { + return false, ErrPredicateUnmatched + } } else if o.VocabularyURI() == "https://www.w3.org/ns/activitystreams" && o.GetTypeName() == "Collection" { if fn, ok := this.predicate.(func(context.Context, vocab.ActivityStreamsCollection) (bool, error)); ok { if v, ok := o.(vocab.ActivityStreamsCollection); ok { @@ -283,6 +306,17 @@ func (this TypePredicatedResolver) Apply(ctx context.Context, o ActivityStreamsI } else { return false, ErrPredicateUnmatched } + } else if o.VocabularyURI() == "https://forgefed.peers.community/ns" && o.GetTypeName() == "Commit" { + if fn, ok := this.predicate.(func(context.Context, vocab.ForgeFedCommit) (bool, error)); ok { + if v, ok := o.(vocab.ForgeFedCommit); ok { + predicatePasses, err = fn(ctx, v) + } else { + // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code. + return false, errCannotTypeAssertType + } + } else { + return false, ErrPredicateUnmatched + } } else if o.VocabularyURI() == "https://www.w3.org/ns/activitystreams" && o.GetTypeName() == "Create" { if fn, ok := this.predicate.(func(context.Context, vocab.ActivityStreamsCreate) (bool, error)); ok { if v, ok := o.(vocab.ActivityStreamsCreate); ok { @@ -635,6 +669,17 @@ func (this TypePredicatedResolver) Apply(ctx context.Context, o ActivityStreamsI } else { return false, ErrPredicateUnmatched } + } else if o.VocabularyURI() == "https://forgefed.peers.community/ns" && o.GetTypeName() == "Push" { + if fn, ok := this.predicate.(func(context.Context, vocab.ForgeFedPush) (bool, error)); ok { + if v, ok := o.(vocab.ForgeFedPush); ok { + predicatePasses, err = fn(ctx, v) + } else { + // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code. + return false, errCannotTypeAssertType + } + } else { + return false, ErrPredicateUnmatched + } } else if o.VocabularyURI() == "https://www.w3.org/ns/activitystreams" && o.GetTypeName() == "Question" { if fn, ok := this.predicate.(func(context.Context, vocab.ActivityStreamsQuestion) (bool, error)); ok { if v, ok := o.(vocab.ActivityStreamsQuestion); ok { @@ -690,6 +735,17 @@ func (this TypePredicatedResolver) Apply(ctx context.Context, o ActivityStreamsI } else { return false, ErrPredicateUnmatched } + } else if o.VocabularyURI() == "https://forgefed.peers.community/ns" && o.GetTypeName() == "Repository" { + if fn, ok := this.predicate.(func(context.Context, vocab.ForgeFedRepository) (bool, error)); ok { + if v, ok := o.(vocab.ForgeFedRepository); ok { + predicatePasses, err = fn(ctx, v) + } else { + // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code. + return false, errCannotTypeAssertType + } + } else { + return false, ErrPredicateUnmatched + } } else if o.VocabularyURI() == "https://www.w3.org/ns/activitystreams" && o.GetTypeName() == "Service" { if fn, ok := this.predicate.(func(context.Context, vocab.ActivityStreamsService) (bool, error)); ok { if v, ok := o.(vocab.ActivityStreamsService); ok { @@ -723,6 +779,28 @@ func (this TypePredicatedResolver) Apply(ctx context.Context, o ActivityStreamsI } else { return false, ErrPredicateUnmatched } + } else if o.VocabularyURI() == "https://forgefed.peers.community/ns" && o.GetTypeName() == "Ticket" { + if fn, ok := this.predicate.(func(context.Context, vocab.ForgeFedTicket) (bool, error)); ok { + if v, ok := o.(vocab.ForgeFedTicket); ok { + predicatePasses, err = fn(ctx, v) + } else { + // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code. + return false, errCannotTypeAssertType + } + } else { + return false, ErrPredicateUnmatched + } + } else if o.VocabularyURI() == "https://forgefed.peers.community/ns" && o.GetTypeName() == "TicketDependency" { + if fn, ok := this.predicate.(func(context.Context, vocab.ForgeFedTicketDependency) (bool, error)); ok { + if v, ok := o.(vocab.ForgeFedTicketDependency); ok { + predicatePasses, err = fn(ctx, v) + } else { + // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code. + return false, errCannotTypeAssertType + } + } else { + return false, ErrPredicateUnmatched + } } else if o.VocabularyURI() == "https://www.w3.org/ns/activitystreams" && o.GetTypeName() == "Tombstone" { if fn, ok := this.predicate.(func(context.Context, vocab.ActivityStreamsTombstone) (bool, error)); ok { if v, ok := o.(vocab.ActivityStreamsTombstone); ok { diff --git a/streams/gen_type_resolver.go b/streams/gen_type_resolver.go index f6706ba..f834520 100644 --- a/streams/gen_type_resolver.go +++ b/streams/gen_type_resolver.go @@ -46,10 +46,14 @@ func NewTypeResolver(callbacks ...interface{}) (*TypeResolver, error) { // Do nothing, this callback has a correct signature. case func(context.Context, vocab.ActivityStreamsBlock) error: // Do nothing, this callback has a correct signature. + case func(context.Context, vocab.ForgeFedBranch) error: + // Do nothing, this callback has a correct signature. case func(context.Context, vocab.ActivityStreamsCollection) error: // Do nothing, this callback has a correct signature. case func(context.Context, vocab.ActivityStreamsCollectionPage) error: // Do nothing, this callback has a correct signature. + case func(context.Context, vocab.ForgeFedCommit) error: + // Do nothing, this callback has a correct signature. case func(context.Context, vocab.ActivityStreamsCreate) error: // Do nothing, this callback has a correct signature. case func(context.Context, vocab.ActivityStreamsDelete) error: @@ -114,6 +118,8 @@ func NewTypeResolver(callbacks ...interface{}) (*TypeResolver, error) { // Do nothing, this callback has a correct signature. case func(context.Context, vocab.W3IDSecurityV1PublicKey) error: // Do nothing, this callback has a correct signature. + case func(context.Context, vocab.ForgeFedPush) error: + // Do nothing, this callback has a correct signature. case func(context.Context, vocab.ActivityStreamsQuestion) error: // Do nothing, this callback has a correct signature. case func(context.Context, vocab.ActivityStreamsRead) error: @@ -124,12 +130,18 @@ func NewTypeResolver(callbacks ...interface{}) (*TypeResolver, error) { // Do nothing, this callback has a correct signature. case func(context.Context, vocab.ActivityStreamsRemove) error: // Do nothing, this callback has a correct signature. + case func(context.Context, vocab.ForgeFedRepository) error: + // Do nothing, this callback has a correct signature. case func(context.Context, vocab.ActivityStreamsService) error: // Do nothing, this callback has a correct signature. case func(context.Context, vocab.ActivityStreamsTentativeAccept) error: // Do nothing, this callback has a correct signature. case func(context.Context, vocab.ActivityStreamsTentativeReject) error: // Do nothing, this callback has a correct signature. + case func(context.Context, vocab.ForgeFedTicket) error: + // Do nothing, this callback has a correct signature. + case func(context.Context, vocab.ForgeFedTicketDependency) error: + // Do nothing, this callback has a correct signature. case func(context.Context, vocab.ActivityStreamsTombstone) error: // Do nothing, this callback has a correct signature. case func(context.Context, vocab.ActivityStreamsTravel) error: @@ -238,6 +250,15 @@ func (this TypeResolver) Resolve(ctx context.Context, o ActivityStreamsInterface return errCannotTypeAssertType } } + } else if o.VocabularyURI() == "https://forgefed.peers.community/ns" && o.GetTypeName() == "Branch" { + if fn, ok := i.(func(context.Context, vocab.ForgeFedBranch) error); ok { + if v, ok := o.(vocab.ForgeFedBranch); ok { + return fn(ctx, v) + } else { + // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code. + return errCannotTypeAssertType + } + } } else if o.VocabularyURI() == "https://www.w3.org/ns/activitystreams" && o.GetTypeName() == "Collection" { if fn, ok := i.(func(context.Context, vocab.ActivityStreamsCollection) error); ok { if v, ok := o.(vocab.ActivityStreamsCollection); ok { @@ -256,6 +277,15 @@ func (this TypeResolver) Resolve(ctx context.Context, o ActivityStreamsInterface return errCannotTypeAssertType } } + } else if o.VocabularyURI() == "https://forgefed.peers.community/ns" && o.GetTypeName() == "Commit" { + if fn, ok := i.(func(context.Context, vocab.ForgeFedCommit) error); ok { + if v, ok := o.(vocab.ForgeFedCommit); ok { + return fn(ctx, v) + } else { + // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code. + return errCannotTypeAssertType + } + } } else if o.VocabularyURI() == "https://www.w3.org/ns/activitystreams" && o.GetTypeName() == "Create" { if fn, ok := i.(func(context.Context, vocab.ActivityStreamsCreate) error); ok { if v, ok := o.(vocab.ActivityStreamsCreate); ok { @@ -544,6 +574,15 @@ func (this TypeResolver) Resolve(ctx context.Context, o ActivityStreamsInterface return errCannotTypeAssertType } } + } else if o.VocabularyURI() == "https://forgefed.peers.community/ns" && o.GetTypeName() == "Push" { + if fn, ok := i.(func(context.Context, vocab.ForgeFedPush) error); ok { + if v, ok := o.(vocab.ForgeFedPush); ok { + return fn(ctx, v) + } else { + // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code. + return errCannotTypeAssertType + } + } } else if o.VocabularyURI() == "https://www.w3.org/ns/activitystreams" && o.GetTypeName() == "Question" { if fn, ok := i.(func(context.Context, vocab.ActivityStreamsQuestion) error); ok { if v, ok := o.(vocab.ActivityStreamsQuestion); ok { @@ -589,6 +628,15 @@ func (this TypeResolver) Resolve(ctx context.Context, o ActivityStreamsInterface return errCannotTypeAssertType } } + } else if o.VocabularyURI() == "https://forgefed.peers.community/ns" && o.GetTypeName() == "Repository" { + if fn, ok := i.(func(context.Context, vocab.ForgeFedRepository) error); ok { + if v, ok := o.(vocab.ForgeFedRepository); ok { + return fn(ctx, v) + } else { + // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code. + return errCannotTypeAssertType + } + } } else if o.VocabularyURI() == "https://www.w3.org/ns/activitystreams" && o.GetTypeName() == "Service" { if fn, ok := i.(func(context.Context, vocab.ActivityStreamsService) error); ok { if v, ok := o.(vocab.ActivityStreamsService); ok { @@ -616,6 +664,24 @@ func (this TypeResolver) Resolve(ctx context.Context, o ActivityStreamsInterface return errCannotTypeAssertType } } + } else if o.VocabularyURI() == "https://forgefed.peers.community/ns" && o.GetTypeName() == "Ticket" { + if fn, ok := i.(func(context.Context, vocab.ForgeFedTicket) error); ok { + if v, ok := o.(vocab.ForgeFedTicket); ok { + return fn(ctx, v) + } else { + // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code. + return errCannotTypeAssertType + } + } + } else if o.VocabularyURI() == "https://forgefed.peers.community/ns" && o.GetTypeName() == "TicketDependency" { + if fn, ok := i.(func(context.Context, vocab.ForgeFedTicketDependency) error); ok { + if v, ok := o.(vocab.ForgeFedTicketDependency); ok { + return fn(ctx, v) + } else { + // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code. + return errCannotTypeAssertType + } + } } else if o.VocabularyURI() == "https://www.w3.org/ns/activitystreams" && o.GetTypeName() == "Tombstone" { if fn, ok := i.(func(context.Context, vocab.ActivityStreamsTombstone) error); ok { if v, ok := o.(vocab.ActivityStreamsTombstone); ok { diff --git a/streams/impl/activitystreams/property_actor/gen_pkg.go b/streams/impl/activitystreams/property_actor/gen_pkg.go index 8d83e86..85c6519 100644 --- a/streams/impl/activitystreams/property_actor/gen_pkg.go +++ b/streams/impl/activitystreams/property_actor/gen_pkg.go @@ -45,6 +45,10 @@ type privateManager interface { // 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" @@ -53,6 +57,10 @@ type privateManager interface { // 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" @@ -177,6 +185,9 @@ type privateManager interface { // 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" @@ -197,6 +208,10 @@ type privateManager interface { // 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" @@ -209,6 +224,14 @@ type privateManager interface { // 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" diff --git a/streams/impl/activitystreams/property_actor/gen_property_activitystreams_actor.go b/streams/impl/activitystreams/property_actor/gen_property_activitystreams_actor.go index a16ab18..6c5dec7 100644 --- a/streams/impl/activitystreams/property_actor/gen_property_activitystreams_actor.go +++ b/streams/impl/activitystreams/property_actor/gen_property_activitystreams_actor.go @@ -25,8 +25,10 @@ type ActivityStreamsActorPropertyIterator struct { 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 @@ -56,14 +58,18 @@ type ActivityStreamsActorPropertyIterator struct { 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 @@ -169,6 +175,12 @@ func deserializeActivityStreamsActorPropertyIterator(i interface{}, aliasMap map alias: alias, } return this, nil + } else if v, err := mgr.DeserializeBranchForgeFed()(m, aliasMap); err == nil { + this := &ActivityStreamsActorPropertyIterator{ + alias: alias, + forgefedBranchMember: v, + } + return this, nil } else if v, err := mgr.DeserializeCollectionActivityStreams()(m, aliasMap); err == nil { this := &ActivityStreamsActorPropertyIterator{ activitystreamsCollectionMember: v, @@ -181,6 +193,12 @@ func deserializeActivityStreamsActorPropertyIterator(i interface{}, aliasMap map alias: alias, } return this, nil + } else if v, err := mgr.DeserializeCommitForgeFed()(m, aliasMap); err == nil { + this := &ActivityStreamsActorPropertyIterator{ + alias: alias, + forgefedCommitMember: v, + } + return this, nil } else if v, err := mgr.DeserializeCreateActivityStreams()(m, aliasMap); err == nil { this := &ActivityStreamsActorPropertyIterator{ activitystreamsCreateMember: v, @@ -355,6 +373,12 @@ func deserializeActivityStreamsActorPropertyIterator(i interface{}, aliasMap map alias: alias, } return this, nil + } else if v, err := mgr.DeserializePushForgeFed()(m, aliasMap); err == nil { + this := &ActivityStreamsActorPropertyIterator{ + alias: alias, + forgefedPushMember: v, + } + return this, nil } else if v, err := mgr.DeserializeQuestionActivityStreams()(m, aliasMap); err == nil { this := &ActivityStreamsActorPropertyIterator{ activitystreamsQuestionMember: v, @@ -385,6 +409,12 @@ func deserializeActivityStreamsActorPropertyIterator(i interface{}, aliasMap map alias: alias, } return this, nil + } else if v, err := mgr.DeserializeRepositoryForgeFed()(m, aliasMap); err == nil { + this := &ActivityStreamsActorPropertyIterator{ + alias: alias, + forgefedRepositoryMember: v, + } + return this, nil } else if v, err := mgr.DeserializeServiceActivityStreams()(m, aliasMap); err == nil { this := &ActivityStreamsActorPropertyIterator{ activitystreamsServiceMember: v, @@ -403,6 +433,18 @@ func deserializeActivityStreamsActorPropertyIterator(i interface{}, aliasMap map alias: alias, } return this, nil + } else if v, err := mgr.DeserializeTicketForgeFed()(m, aliasMap); err == nil { + this := &ActivityStreamsActorPropertyIterator{ + alias: alias, + forgefedTicketMember: v, + } + return this, nil + } else if v, err := mgr.DeserializeTicketDependencyForgeFed()(m, aliasMap); err == nil { + this := &ActivityStreamsActorPropertyIterator{ + alias: alias, + forgefedTicketDependencyMember: v, + } + return this, nil } else if v, err := mgr.DeserializeTombstoneActivityStreams()(m, aliasMap); err == nil { this := &ActivityStreamsActorPropertyIterator{ activitystreamsTombstoneMember: v, @@ -826,6 +868,44 @@ func (this ActivityStreamsActorPropertyIterator) GetActivityStreamsView() vocab. return this.activitystreamsViewMember } +// GetForgeFedBranch returns the value of this property. When IsForgeFedBranch +// returns false, GetForgeFedBranch will return an arbitrary value. +func (this ActivityStreamsActorPropertyIterator) GetForgeFedBranch() vocab.ForgeFedBranch { + return this.forgefedBranchMember +} + +// GetForgeFedCommit returns the value of this property. When IsForgeFedCommit +// returns false, GetForgeFedCommit will return an arbitrary value. +func (this ActivityStreamsActorPropertyIterator) GetForgeFedCommit() vocab.ForgeFedCommit { + return this.forgefedCommitMember +} + +// GetForgeFedPush returns the value of this property. When IsForgeFedPush returns +// false, GetForgeFedPush will return an arbitrary value. +func (this ActivityStreamsActorPropertyIterator) GetForgeFedPush() vocab.ForgeFedPush { + return this.forgefedPushMember +} + +// GetForgeFedRepository returns the value of this property. When +// IsForgeFedRepository returns false, GetForgeFedRepository will return an +// arbitrary value. +func (this ActivityStreamsActorPropertyIterator) GetForgeFedRepository() vocab.ForgeFedRepository { + return this.forgefedRepositoryMember +} + +// GetForgeFedTicket returns the value of this property. When IsForgeFedTicket +// returns false, GetForgeFedTicket will return an arbitrary value. +func (this ActivityStreamsActorPropertyIterator) GetForgeFedTicket() vocab.ForgeFedTicket { + return this.forgefedTicketMember +} + +// GetForgeFedTicketDependency returns the value of this property. When +// IsForgeFedTicketDependency returns false, GetForgeFedTicketDependency will +// return an arbitrary value. +func (this ActivityStreamsActorPropertyIterator) GetForgeFedTicketDependency() vocab.ForgeFedTicketDependency { + return this.forgefedTicketDependencyMember +} + // GetIRI returns the IRI of this property. When IsIRI returns false, GetIRI will // return an arbitrary value. func (this ActivityStreamsActorPropertyIterator) GetIRI() *url.URL { @@ -881,12 +961,18 @@ func (this ActivityStreamsActorPropertyIterator) GetType() vocab.Type { 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() } @@ -974,6 +1060,9 @@ func (this ActivityStreamsActorPropertyIterator) GetType() vocab.Type { if this.IsActivityStreamsProfile() { return this.GetActivityStreamsProfile() } + if this.IsForgeFedPush() { + return this.GetForgeFedPush() + } if this.IsActivityStreamsQuestion() { return this.GetActivityStreamsQuestion() } @@ -989,6 +1078,9 @@ func (this ActivityStreamsActorPropertyIterator) GetType() vocab.Type { if this.IsActivityStreamsRemove() { return this.GetActivityStreamsRemove() } + if this.IsForgeFedRepository() { + return this.GetForgeFedRepository() + } if this.IsActivityStreamsService() { return this.GetActivityStreamsService() } @@ -998,6 +1090,12 @@ func (this ActivityStreamsActorPropertyIterator) GetType() vocab.Type { if this.IsActivityStreamsTentativeReject() { return this.GetActivityStreamsTentativeReject() } + if this.IsForgeFedTicket() { + return this.GetForgeFedTicket() + } + if this.IsForgeFedTicketDependency() { + return this.GetForgeFedTicketDependency() + } if this.IsActivityStreamsTombstone() { return this.GetActivityStreamsTombstone() } @@ -1033,8 +1131,10 @@ func (this ActivityStreamsActorPropertyIterator) HasAny() bool { this.IsActivityStreamsArticle() || this.IsActivityStreamsAudio() || this.IsActivityStreamsBlock() || + this.IsForgeFedBranch() || this.IsActivityStreamsCollection() || this.IsActivityStreamsCollectionPage() || + this.IsForgeFedCommit() || this.IsActivityStreamsCreate() || this.IsActivityStreamsDelete() || this.IsActivityStreamsDislike() || @@ -1064,14 +1164,18 @@ func (this ActivityStreamsActorPropertyIterator) HasAny() bool { 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() || @@ -1464,6 +1568,48 @@ func (this ActivityStreamsActorPropertyIterator) IsActivityStreamsView() bool { return this.activitystreamsViewMember != nil } +// IsForgeFedBranch returns true if this property has a type of "Branch". When +// true, use the GetForgeFedBranch and SetForgeFedBranch methods to access and +// set this property. +func (this ActivityStreamsActorPropertyIterator) IsForgeFedBranch() bool { + return this.forgefedBranchMember != nil +} + +// IsForgeFedCommit returns true if this property has a type of "Commit". When +// true, use the GetForgeFedCommit and SetForgeFedCommit methods to access and +// set this property. +func (this ActivityStreamsActorPropertyIterator) IsForgeFedCommit() bool { + return this.forgefedCommitMember != nil +} + +// IsForgeFedPush returns true if this property has a type of "Push". When true, +// use the GetForgeFedPush and SetForgeFedPush methods to access and set this +// property. +func (this ActivityStreamsActorPropertyIterator) IsForgeFedPush() bool { + return this.forgefedPushMember != nil +} + +// IsForgeFedRepository returns true if this property has a type of "Repository". +// When true, use the GetForgeFedRepository and SetForgeFedRepository methods +// to access and set this property. +func (this ActivityStreamsActorPropertyIterator) IsForgeFedRepository() bool { + return this.forgefedRepositoryMember != nil +} + +// IsForgeFedTicket returns true if this property has a type of "Ticket". When +// true, use the GetForgeFedTicket and SetForgeFedTicket methods to access and +// set this property. +func (this ActivityStreamsActorPropertyIterator) IsForgeFedTicket() bool { + return this.forgefedTicketMember != nil +} + +// IsForgeFedTicketDependency returns true if this property has a type of +// "TicketDependency". When true, use the GetForgeFedTicketDependency and +// SetForgeFedTicketDependency methods to access and set this property. +func (this ActivityStreamsActorPropertyIterator) IsForgeFedTicketDependency() bool { + return this.forgefedTicketDependencyMember != nil +} + // IsIRI returns true if this property is an IRI. When true, use GetIRI and SetIRI // to access and set this property func (this ActivityStreamsActorPropertyIterator) IsIRI() bool { @@ -1511,10 +1657,14 @@ func (this ActivityStreamsActorPropertyIterator) JSONLDContext() map[string]stri 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() { @@ -1573,6 +1723,8 @@ func (this ActivityStreamsActorPropertyIterator) JSONLDContext() map[string]stri 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() { @@ -1583,12 +1735,18 @@ func (this ActivityStreamsActorPropertyIterator) JSONLDContext() map[string]stri 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() { @@ -1650,141 +1808,159 @@ func (this ActivityStreamsActorPropertyIterator) KindIndex() int { if this.IsActivityStreamsBlock() { return 10 } - if this.IsActivityStreamsCollection() { + if this.IsForgeFedBranch() { return 11 } - if this.IsActivityStreamsCollectionPage() { + if this.IsActivityStreamsCollection() { return 12 } - if this.IsActivityStreamsCreate() { + if this.IsActivityStreamsCollectionPage() { return 13 } - if this.IsActivityStreamsDelete() { + if this.IsForgeFedCommit() { return 14 } - if this.IsActivityStreamsDislike() { + if this.IsActivityStreamsCreate() { return 15 } - if this.IsActivityStreamsDocument() { + if this.IsActivityStreamsDelete() { return 16 } - if this.IsTootEmoji() { + if this.IsActivityStreamsDislike() { return 17 } - if this.IsActivityStreamsEvent() { + if this.IsActivityStreamsDocument() { return 18 } - if this.IsActivityStreamsFlag() { + if this.IsTootEmoji() { return 19 } - if this.IsActivityStreamsFollow() { + if this.IsActivityStreamsEvent() { return 20 } - if this.IsActivityStreamsGroup() { + if this.IsActivityStreamsFlag() { return 21 } - if this.IsTootIdentityProof() { + if this.IsActivityStreamsFollow() { return 22 } - if this.IsActivityStreamsIgnore() { + if this.IsActivityStreamsGroup() { return 23 } - if this.IsActivityStreamsImage() { + if this.IsTootIdentityProof() { return 24 } - if this.IsActivityStreamsIntransitiveActivity() { + if this.IsActivityStreamsIgnore() { return 25 } - if this.IsActivityStreamsInvite() { + if this.IsActivityStreamsImage() { return 26 } - if this.IsActivityStreamsJoin() { + if this.IsActivityStreamsIntransitiveActivity() { return 27 } - if this.IsActivityStreamsLeave() { + if this.IsActivityStreamsInvite() { return 28 } - if this.IsActivityStreamsLike() { + if this.IsActivityStreamsJoin() { return 29 } - if this.IsActivityStreamsListen() { + if this.IsActivityStreamsLeave() { return 30 } - if this.IsActivityStreamsMention() { + if this.IsActivityStreamsLike() { return 31 } - if this.IsActivityStreamsMove() { + if this.IsActivityStreamsListen() { return 32 } - if this.IsActivityStreamsNote() { + if this.IsActivityStreamsMention() { return 33 } - if this.IsActivityStreamsOffer() { + if this.IsActivityStreamsMove() { return 34 } - if this.IsActivityStreamsOrderedCollection() { + if this.IsActivityStreamsNote() { return 35 } - if this.IsActivityStreamsOrderedCollectionPage() { + if this.IsActivityStreamsOffer() { return 36 } - if this.IsActivityStreamsOrganization() { + if this.IsActivityStreamsOrderedCollection() { return 37 } - if this.IsActivityStreamsPage() { + if this.IsActivityStreamsOrderedCollectionPage() { return 38 } - if this.IsActivityStreamsPerson() { + if this.IsActivityStreamsOrganization() { return 39 } - if this.IsActivityStreamsPlace() { + if this.IsActivityStreamsPage() { return 40 } - if this.IsActivityStreamsProfile() { + if this.IsActivityStreamsPerson() { return 41 } - if this.IsActivityStreamsQuestion() { + if this.IsActivityStreamsPlace() { return 42 } - if this.IsActivityStreamsRead() { + if this.IsActivityStreamsProfile() { return 43 } - if this.IsActivityStreamsReject() { + if this.IsForgeFedPush() { return 44 } - if this.IsActivityStreamsRelationship() { + if this.IsActivityStreamsQuestion() { return 45 } - if this.IsActivityStreamsRemove() { + if this.IsActivityStreamsRead() { return 46 } - if this.IsActivityStreamsService() { + if this.IsActivityStreamsReject() { return 47 } - if this.IsActivityStreamsTentativeAccept() { + if this.IsActivityStreamsRelationship() { return 48 } - if this.IsActivityStreamsTentativeReject() { + if this.IsActivityStreamsRemove() { return 49 } - if this.IsActivityStreamsTombstone() { + if this.IsForgeFedRepository() { return 50 } - if this.IsActivityStreamsTravel() { + if this.IsActivityStreamsService() { return 51 } - if this.IsActivityStreamsUndo() { + if this.IsActivityStreamsTentativeAccept() { return 52 } - if this.IsActivityStreamsUpdate() { + if this.IsActivityStreamsTentativeReject() { return 53 } - if this.IsActivityStreamsVideo() { + if this.IsForgeFedTicket() { return 54 } - if this.IsActivityStreamsView() { + 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 } @@ -1824,10 +2000,14 @@ func (this ActivityStreamsActorPropertyIterator) LessThan(o vocab.ActivityStream 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() { @@ -1886,6 +2066,8 @@ func (this ActivityStreamsActorPropertyIterator) LessThan(o vocab.ActivityStream 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() { @@ -1896,12 +2078,18 @@ func (this ActivityStreamsActorPropertyIterator) LessThan(o vocab.ActivityStream 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() { @@ -2325,6 +2513,48 @@ func (this *ActivityStreamsActorPropertyIterator) SetActivityStreamsView(v vocab this.activitystreamsViewMember = v } +// SetForgeFedBranch sets the value of this property. Calling IsForgeFedBranch +// afterwards returns true. +func (this *ActivityStreamsActorPropertyIterator) SetForgeFedBranch(v vocab.ForgeFedBranch) { + this.clear() + this.forgefedBranchMember = v +} + +// SetForgeFedCommit sets the value of this property. Calling IsForgeFedCommit +// afterwards returns true. +func (this *ActivityStreamsActorPropertyIterator) SetForgeFedCommit(v vocab.ForgeFedCommit) { + this.clear() + this.forgefedCommitMember = v +} + +// SetForgeFedPush sets the value of this property. Calling IsForgeFedPush +// afterwards returns true. +func (this *ActivityStreamsActorPropertyIterator) SetForgeFedPush(v vocab.ForgeFedPush) { + this.clear() + this.forgefedPushMember = v +} + +// SetForgeFedRepository sets the value of this property. Calling +// IsForgeFedRepository afterwards returns true. +func (this *ActivityStreamsActorPropertyIterator) SetForgeFedRepository(v vocab.ForgeFedRepository) { + this.clear() + this.forgefedRepositoryMember = v +} + +// SetForgeFedTicket sets the value of this property. Calling IsForgeFedTicket +// afterwards returns true. +func (this *ActivityStreamsActorPropertyIterator) SetForgeFedTicket(v vocab.ForgeFedTicket) { + this.clear() + this.forgefedTicketMember = v +} + +// SetForgeFedTicketDependency sets the value of this property. Calling +// IsForgeFedTicketDependency afterwards returns true. +func (this *ActivityStreamsActorPropertyIterator) SetForgeFedTicketDependency(v vocab.ForgeFedTicketDependency) { + this.clear() + this.forgefedTicketDependencyMember = v +} + // SetIRI sets the value of this property. Calling IsIRI afterwards returns true. func (this *ActivityStreamsActorPropertyIterator) SetIRI(v *url.URL) { this.clear() @@ -2392,6 +2622,10 @@ func (this *ActivityStreamsActorPropertyIterator) SetType(t vocab.Type) error { 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 @@ -2400,6 +2634,10 @@ func (this *ActivityStreamsActorPropertyIterator) SetType(t vocab.Type) error { 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 @@ -2516,6 +2754,10 @@ func (this *ActivityStreamsActorPropertyIterator) SetType(t vocab.Type) error { 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 @@ -2536,6 +2778,10 @@ func (this *ActivityStreamsActorPropertyIterator) SetType(t vocab.Type) error { 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 @@ -2548,6 +2794,14 @@ func (this *ActivityStreamsActorPropertyIterator) SetType(t vocab.Type) error { 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 @@ -2590,8 +2844,10 @@ func (this *ActivityStreamsActorPropertyIterator) clear() { 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 @@ -2621,14 +2877,18 @@ func (this *ActivityStreamsActorPropertyIterator) clear() { 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 @@ -2666,10 +2926,14 @@ func (this ActivityStreamsActorPropertyIterator) serialize() (interface{}, error 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() { @@ -2728,6 +2992,8 @@ func (this ActivityStreamsActorPropertyIterator) serialize() (interface{}, error 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() { @@ -2738,12 +3004,18 @@ func (this ActivityStreamsActorPropertyIterator) serialize() (interface{}, error 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() { @@ -3422,6 +3694,73 @@ func (this *ActivityStreamsActorProperty) AppendActivityStreamsView(v vocab.Acti }) } +// AppendForgeFedBranch appends a Branch value to the back of a list of the +// property "actor". Invalidates iterators that are traversing using Prev. +func (this *ActivityStreamsActorProperty) AppendForgeFedBranch(v vocab.ForgeFedBranch) { + this.properties = append(this.properties, &ActivityStreamsActorPropertyIterator{ + alias: this.alias, + forgefedBranchMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendForgeFedCommit appends a Commit value to the back of a list of the +// property "actor". Invalidates iterators that are traversing using Prev. +func (this *ActivityStreamsActorProperty) AppendForgeFedCommit(v vocab.ForgeFedCommit) { + this.properties = append(this.properties, &ActivityStreamsActorPropertyIterator{ + alias: this.alias, + forgefedCommitMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendForgeFedPush appends a Push value to the back of a list of the property +// "actor". Invalidates iterators that are traversing using Prev. +func (this *ActivityStreamsActorProperty) AppendForgeFedPush(v vocab.ForgeFedPush) { + this.properties = append(this.properties, &ActivityStreamsActorPropertyIterator{ + alias: this.alias, + forgefedPushMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendForgeFedRepository appends a Repository value to the back of a list of +// the property "actor". Invalidates iterators that are traversing using Prev. +func (this *ActivityStreamsActorProperty) AppendForgeFedRepository(v vocab.ForgeFedRepository) { + this.properties = append(this.properties, &ActivityStreamsActorPropertyIterator{ + alias: this.alias, + forgefedRepositoryMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendForgeFedTicket appends a Ticket value to the back of a list of the +// property "actor". Invalidates iterators that are traversing using Prev. +func (this *ActivityStreamsActorProperty) AppendForgeFedTicket(v vocab.ForgeFedTicket) { + this.properties = append(this.properties, &ActivityStreamsActorPropertyIterator{ + alias: this.alias, + forgefedTicketMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendForgeFedTicketDependency appends a TicketDependency value to the back of +// a list of the property "actor". Invalidates iterators that are traversing +// using Prev. +func (this *ActivityStreamsActorProperty) AppendForgeFedTicketDependency(v vocab.ForgeFedTicketDependency) { + this.properties = append(this.properties, &ActivityStreamsActorPropertyIterator{ + alias: this.alias, + forgefedTicketDependencyMember: v, + myIdx: this.Len(), + parent: this, + }) +} + // AppendIRI appends an IRI value to the back of a list of the property "actor" func (this *ActivityStreamsActorProperty) AppendIRI(v *url.URL) { this.properties = append(this.properties, &ActivityStreamsActorPropertyIterator{ @@ -4417,6 +4756,108 @@ func (this *ActivityStreamsActorProperty) InsertActivityStreamsView(idx int, v v } } +// InsertForgeFedBranch inserts a Branch value at the specified index for a +// property "actor". Existing elements at that index and higher are shifted +// back once. Invalidates all iterators. +func (this *ActivityStreamsActorProperty) InsertForgeFedBranch(idx int, v vocab.ForgeFedBranch) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsActorPropertyIterator{ + alias: this.alias, + forgefedBranchMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertForgeFedCommit inserts a Commit value at the specified index for a +// property "actor". Existing elements at that index and higher are shifted +// back once. Invalidates all iterators. +func (this *ActivityStreamsActorProperty) InsertForgeFedCommit(idx int, v vocab.ForgeFedCommit) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsActorPropertyIterator{ + alias: this.alias, + forgefedCommitMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertForgeFedPush inserts a Push value at the specified index for a property +// "actor". Existing elements at that index and higher are shifted back once. +// Invalidates all iterators. +func (this *ActivityStreamsActorProperty) InsertForgeFedPush(idx int, v vocab.ForgeFedPush) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsActorPropertyIterator{ + alias: this.alias, + forgefedPushMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertForgeFedRepository inserts a Repository value at the specified index for +// a property "actor". Existing elements at that index and higher are shifted +// back once. Invalidates all iterators. +func (this *ActivityStreamsActorProperty) InsertForgeFedRepository(idx int, v vocab.ForgeFedRepository) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsActorPropertyIterator{ + alias: this.alias, + forgefedRepositoryMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertForgeFedTicket inserts a Ticket value at the specified index for a +// property "actor". Existing elements at that index and higher are shifted +// back once. Invalidates all iterators. +func (this *ActivityStreamsActorProperty) InsertForgeFedTicket(idx int, v vocab.ForgeFedTicket) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsActorPropertyIterator{ + alias: this.alias, + forgefedTicketMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertForgeFedTicketDependency inserts a TicketDependency value at the +// specified index for a property "actor". Existing elements at that index and +// higher are shifted back once. Invalidates all iterators. +func (this *ActivityStreamsActorProperty) InsertForgeFedTicketDependency(idx int, v vocab.ForgeFedTicketDependency) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsActorPropertyIterator{ + alias: this.alias, + forgefedTicketDependencyMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + // Insert inserts an IRI value at the specified index for a property "actor". // Existing elements at that index and higher are shifted back once. // Invalidates all iterators. @@ -4574,182 +5015,206 @@ func (this ActivityStreamsActorProperty) Less(i, j int) bool { rhs := this.properties[j].GetActivityStreamsBlock() return lhs.LessThan(rhs) } else if idx1 == 11 { + lhs := this.properties[i].GetForgeFedBranch() + rhs := this.properties[j].GetForgeFedBranch() + return lhs.LessThan(rhs) + } else if idx1 == 12 { lhs := this.properties[i].GetActivityStreamsCollection() rhs := this.properties[j].GetActivityStreamsCollection() return lhs.LessThan(rhs) - } else if idx1 == 12 { + } else if idx1 == 13 { lhs := this.properties[i].GetActivityStreamsCollectionPage() rhs := this.properties[j].GetActivityStreamsCollectionPage() return lhs.LessThan(rhs) - } else if idx1 == 13 { + } else if idx1 == 14 { + lhs := this.properties[i].GetForgeFedCommit() + rhs := this.properties[j].GetForgeFedCommit() + return lhs.LessThan(rhs) + } else if idx1 == 15 { lhs := this.properties[i].GetActivityStreamsCreate() rhs := this.properties[j].GetActivityStreamsCreate() return lhs.LessThan(rhs) - } else if idx1 == 14 { + } else if idx1 == 16 { lhs := this.properties[i].GetActivityStreamsDelete() rhs := this.properties[j].GetActivityStreamsDelete() return lhs.LessThan(rhs) - } else if idx1 == 15 { + } else if idx1 == 17 { lhs := this.properties[i].GetActivityStreamsDislike() rhs := this.properties[j].GetActivityStreamsDislike() return lhs.LessThan(rhs) - } else if idx1 == 16 { + } else if idx1 == 18 { lhs := this.properties[i].GetActivityStreamsDocument() rhs := this.properties[j].GetActivityStreamsDocument() return lhs.LessThan(rhs) - } else if idx1 == 17 { + } else if idx1 == 19 { lhs := this.properties[i].GetTootEmoji() rhs := this.properties[j].GetTootEmoji() return lhs.LessThan(rhs) - } else if idx1 == 18 { + } else if idx1 == 20 { lhs := this.properties[i].GetActivityStreamsEvent() rhs := this.properties[j].GetActivityStreamsEvent() return lhs.LessThan(rhs) - } else if idx1 == 19 { + } else if idx1 == 21 { lhs := this.properties[i].GetActivityStreamsFlag() rhs := this.properties[j].GetActivityStreamsFlag() return lhs.LessThan(rhs) - } else if idx1 == 20 { + } else if idx1 == 22 { lhs := this.properties[i].GetActivityStreamsFollow() rhs := this.properties[j].GetActivityStreamsFollow() return lhs.LessThan(rhs) - } else if idx1 == 21 { + } else if idx1 == 23 { lhs := this.properties[i].GetActivityStreamsGroup() rhs := this.properties[j].GetActivityStreamsGroup() return lhs.LessThan(rhs) - } else if idx1 == 22 { + } else if idx1 == 24 { lhs := this.properties[i].GetTootIdentityProof() rhs := this.properties[j].GetTootIdentityProof() return lhs.LessThan(rhs) - } else if idx1 == 23 { + } else if idx1 == 25 { lhs := this.properties[i].GetActivityStreamsIgnore() rhs := this.properties[j].GetActivityStreamsIgnore() return lhs.LessThan(rhs) - } else if idx1 == 24 { + } else if idx1 == 26 { lhs := this.properties[i].GetActivityStreamsImage() rhs := this.properties[j].GetActivityStreamsImage() return lhs.LessThan(rhs) - } else if idx1 == 25 { + } else if idx1 == 27 { lhs := this.properties[i].GetActivityStreamsIntransitiveActivity() rhs := this.properties[j].GetActivityStreamsIntransitiveActivity() return lhs.LessThan(rhs) - } else if idx1 == 26 { + } else if idx1 == 28 { lhs := this.properties[i].GetActivityStreamsInvite() rhs := this.properties[j].GetActivityStreamsInvite() return lhs.LessThan(rhs) - } else if idx1 == 27 { + } else if idx1 == 29 { lhs := this.properties[i].GetActivityStreamsJoin() rhs := this.properties[j].GetActivityStreamsJoin() return lhs.LessThan(rhs) - } else if idx1 == 28 { + } else if idx1 == 30 { lhs := this.properties[i].GetActivityStreamsLeave() rhs := this.properties[j].GetActivityStreamsLeave() return lhs.LessThan(rhs) - } else if idx1 == 29 { + } else if idx1 == 31 { lhs := this.properties[i].GetActivityStreamsLike() rhs := this.properties[j].GetActivityStreamsLike() return lhs.LessThan(rhs) - } else if idx1 == 30 { + } else if idx1 == 32 { lhs := this.properties[i].GetActivityStreamsListen() rhs := this.properties[j].GetActivityStreamsListen() return lhs.LessThan(rhs) - } else if idx1 == 31 { + } else if idx1 == 33 { lhs := this.properties[i].GetActivityStreamsMention() rhs := this.properties[j].GetActivityStreamsMention() return lhs.LessThan(rhs) - } else if idx1 == 32 { + } else if idx1 == 34 { lhs := this.properties[i].GetActivityStreamsMove() rhs := this.properties[j].GetActivityStreamsMove() return lhs.LessThan(rhs) - } else if idx1 == 33 { + } else if idx1 == 35 { lhs := this.properties[i].GetActivityStreamsNote() rhs := this.properties[j].GetActivityStreamsNote() return lhs.LessThan(rhs) - } else if idx1 == 34 { + } else if idx1 == 36 { lhs := this.properties[i].GetActivityStreamsOffer() rhs := this.properties[j].GetActivityStreamsOffer() return lhs.LessThan(rhs) - } else if idx1 == 35 { + } else if idx1 == 37 { lhs := this.properties[i].GetActivityStreamsOrderedCollection() rhs := this.properties[j].GetActivityStreamsOrderedCollection() return lhs.LessThan(rhs) - } else if idx1 == 36 { + } else if idx1 == 38 { lhs := this.properties[i].GetActivityStreamsOrderedCollectionPage() rhs := this.properties[j].GetActivityStreamsOrderedCollectionPage() return lhs.LessThan(rhs) - } else if idx1 == 37 { + } else if idx1 == 39 { lhs := this.properties[i].GetActivityStreamsOrganization() rhs := this.properties[j].GetActivityStreamsOrganization() return lhs.LessThan(rhs) - } else if idx1 == 38 { + } else if idx1 == 40 { lhs := this.properties[i].GetActivityStreamsPage() rhs := this.properties[j].GetActivityStreamsPage() return lhs.LessThan(rhs) - } else if idx1 == 39 { + } else if idx1 == 41 { lhs := this.properties[i].GetActivityStreamsPerson() rhs := this.properties[j].GetActivityStreamsPerson() return lhs.LessThan(rhs) - } else if idx1 == 40 { + } else if idx1 == 42 { lhs := this.properties[i].GetActivityStreamsPlace() rhs := this.properties[j].GetActivityStreamsPlace() return lhs.LessThan(rhs) - } else if idx1 == 41 { + } else if idx1 == 43 { lhs := this.properties[i].GetActivityStreamsProfile() rhs := this.properties[j].GetActivityStreamsProfile() return lhs.LessThan(rhs) - } else if idx1 == 42 { + } else if idx1 == 44 { + lhs := this.properties[i].GetForgeFedPush() + rhs := this.properties[j].GetForgeFedPush() + return lhs.LessThan(rhs) + } else if idx1 == 45 { lhs := this.properties[i].GetActivityStreamsQuestion() rhs := this.properties[j].GetActivityStreamsQuestion() return lhs.LessThan(rhs) - } else if idx1 == 43 { + } else if idx1 == 46 { lhs := this.properties[i].GetActivityStreamsRead() rhs := this.properties[j].GetActivityStreamsRead() return lhs.LessThan(rhs) - } else if idx1 == 44 { + } else if idx1 == 47 { lhs := this.properties[i].GetActivityStreamsReject() rhs := this.properties[j].GetActivityStreamsReject() return lhs.LessThan(rhs) - } else if idx1 == 45 { + } else if idx1 == 48 { lhs := this.properties[i].GetActivityStreamsRelationship() rhs := this.properties[j].GetActivityStreamsRelationship() return lhs.LessThan(rhs) - } else if idx1 == 46 { + } else if idx1 == 49 { lhs := this.properties[i].GetActivityStreamsRemove() rhs := this.properties[j].GetActivityStreamsRemove() return lhs.LessThan(rhs) - } else if idx1 == 47 { + } else if idx1 == 50 { + lhs := this.properties[i].GetForgeFedRepository() + rhs := this.properties[j].GetForgeFedRepository() + return lhs.LessThan(rhs) + } else if idx1 == 51 { lhs := this.properties[i].GetActivityStreamsService() rhs := this.properties[j].GetActivityStreamsService() return lhs.LessThan(rhs) - } else if idx1 == 48 { + } else if idx1 == 52 { lhs := this.properties[i].GetActivityStreamsTentativeAccept() rhs := this.properties[j].GetActivityStreamsTentativeAccept() return lhs.LessThan(rhs) - } else if idx1 == 49 { + } else if idx1 == 53 { lhs := this.properties[i].GetActivityStreamsTentativeReject() rhs := this.properties[j].GetActivityStreamsTentativeReject() return lhs.LessThan(rhs) - } else if idx1 == 50 { + } else if idx1 == 54 { + lhs := this.properties[i].GetForgeFedTicket() + rhs := this.properties[j].GetForgeFedTicket() + return lhs.LessThan(rhs) + } else if idx1 == 55 { + lhs := this.properties[i].GetForgeFedTicketDependency() + rhs := this.properties[j].GetForgeFedTicketDependency() + return lhs.LessThan(rhs) + } else if idx1 == 56 { lhs := this.properties[i].GetActivityStreamsTombstone() rhs := this.properties[j].GetActivityStreamsTombstone() return lhs.LessThan(rhs) - } else if idx1 == 51 { + } else if idx1 == 57 { lhs := this.properties[i].GetActivityStreamsTravel() rhs := this.properties[j].GetActivityStreamsTravel() return lhs.LessThan(rhs) - } else if idx1 == 52 { + } else if idx1 == 58 { lhs := this.properties[i].GetActivityStreamsUndo() rhs := this.properties[j].GetActivityStreamsUndo() return lhs.LessThan(rhs) - } else if idx1 == 53 { + } else if idx1 == 59 { lhs := this.properties[i].GetActivityStreamsUpdate() rhs := this.properties[j].GetActivityStreamsUpdate() return lhs.LessThan(rhs) - } else if idx1 == 54 { + } else if idx1 == 60 { lhs := this.properties[i].GetActivityStreamsVideo() rhs := this.properties[j].GetActivityStreamsVideo() return lhs.LessThan(rhs) - } else if idx1 == 55 { + } else if idx1 == 61 { lhs := this.properties[i].GetActivityStreamsView() rhs := this.properties[j].GetActivityStreamsView() return lhs.LessThan(rhs) @@ -5550,6 +6015,90 @@ func (this *ActivityStreamsActorProperty) PrependActivityStreamsView(v vocab.Act } } +// PrependForgeFedBranch prepends a Branch value to the front of a list of the +// property "actor". Invalidates all iterators. +func (this *ActivityStreamsActorProperty) PrependForgeFedBranch(v vocab.ForgeFedBranch) { + this.properties = append([]*ActivityStreamsActorPropertyIterator{{ + alias: this.alias, + forgefedBranchMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependForgeFedCommit prepends a Commit value to the front of a list of the +// property "actor". Invalidates all iterators. +func (this *ActivityStreamsActorProperty) PrependForgeFedCommit(v vocab.ForgeFedCommit) { + this.properties = append([]*ActivityStreamsActorPropertyIterator{{ + alias: this.alias, + forgefedCommitMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependForgeFedPush prepends a Push value to the front of a list of the +// property "actor". Invalidates all iterators. +func (this *ActivityStreamsActorProperty) PrependForgeFedPush(v vocab.ForgeFedPush) { + this.properties = append([]*ActivityStreamsActorPropertyIterator{{ + alias: this.alias, + forgefedPushMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependForgeFedRepository prepends a Repository value to the front of a list of +// the property "actor". Invalidates all iterators. +func (this *ActivityStreamsActorProperty) PrependForgeFedRepository(v vocab.ForgeFedRepository) { + this.properties = append([]*ActivityStreamsActorPropertyIterator{{ + alias: this.alias, + forgefedRepositoryMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependForgeFedTicket prepends a Ticket value to the front of a list of the +// property "actor". Invalidates all iterators. +func (this *ActivityStreamsActorProperty) PrependForgeFedTicket(v vocab.ForgeFedTicket) { + this.properties = append([]*ActivityStreamsActorPropertyIterator{{ + alias: this.alias, + forgefedTicketMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependForgeFedTicketDependency prepends a TicketDependency value to the front +// of a list of the property "actor". Invalidates all iterators. +func (this *ActivityStreamsActorProperty) PrependForgeFedTicketDependency(v vocab.ForgeFedTicketDependency) { + this.properties = append([]*ActivityStreamsActorPropertyIterator{{ + alias: this.alias, + forgefedTicketDependencyMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + // PrependIRI prepends an IRI value to the front of a list of the property "actor". func (this *ActivityStreamsActorProperty) PrependIRI(v *url.URL) { this.properties = append([]*ActivityStreamsActorPropertyIterator{{ @@ -6345,6 +6894,83 @@ func (this *ActivityStreamsActorProperty) SetActivityStreamsView(idx int, v voca } } +// SetForgeFedBranch sets a Branch value to be at the specified index for the +// property "actor". Panics if the index is out of bounds. Invalidates all +// iterators. +func (this *ActivityStreamsActorProperty) SetForgeFedBranch(idx int, v vocab.ForgeFedBranch) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsActorPropertyIterator{ + alias: this.alias, + forgefedBranchMember: v, + myIdx: idx, + parent: this, + } +} + +// SetForgeFedCommit sets a Commit value to be at the specified index for the +// property "actor". Panics if the index is out of bounds. Invalidates all +// iterators. +func (this *ActivityStreamsActorProperty) SetForgeFedCommit(idx int, v vocab.ForgeFedCommit) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsActorPropertyIterator{ + alias: this.alias, + forgefedCommitMember: v, + myIdx: idx, + parent: this, + } +} + +// SetForgeFedPush sets a Push value to be at the specified index for the property +// "actor". Panics if the index is out of bounds. Invalidates all iterators. +func (this *ActivityStreamsActorProperty) SetForgeFedPush(idx int, v vocab.ForgeFedPush) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsActorPropertyIterator{ + alias: this.alias, + forgefedPushMember: v, + myIdx: idx, + parent: this, + } +} + +// SetForgeFedRepository sets a Repository value to be at the specified index for +// the property "actor". Panics if the index is out of bounds. Invalidates all +// iterators. +func (this *ActivityStreamsActorProperty) SetForgeFedRepository(idx int, v vocab.ForgeFedRepository) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsActorPropertyIterator{ + alias: this.alias, + forgefedRepositoryMember: v, + myIdx: idx, + parent: this, + } +} + +// SetForgeFedTicket sets a Ticket value to be at the specified index for the +// property "actor". Panics if the index is out of bounds. Invalidates all +// iterators. +func (this *ActivityStreamsActorProperty) SetForgeFedTicket(idx int, v vocab.ForgeFedTicket) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsActorPropertyIterator{ + alias: this.alias, + forgefedTicketMember: v, + myIdx: idx, + parent: this, + } +} + +// SetForgeFedTicketDependency sets a TicketDependency value to be at the +// specified index for the property "actor". Panics if the index is out of +// bounds. Invalidates all iterators. +func (this *ActivityStreamsActorProperty) SetForgeFedTicketDependency(idx int, v vocab.ForgeFedTicketDependency) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsActorPropertyIterator{ + alias: this.alias, + forgefedTicketDependencyMember: v, + myIdx: idx, + parent: this, + } +} + // SetIRI sets an IRI value to be at the specified index for the property "actor". // Panics if the index is out of bounds. func (this *ActivityStreamsActorProperty) SetIRI(idx int, v *url.URL) { diff --git a/streams/impl/activitystreams/property_anyof/gen_pkg.go b/streams/impl/activitystreams/property_anyof/gen_pkg.go index c0d0aa1..e2ea491 100644 --- a/streams/impl/activitystreams/property_anyof/gen_pkg.go +++ b/streams/impl/activitystreams/property_anyof/gen_pkg.go @@ -45,6 +45,10 @@ type privateManager interface { // 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" @@ -53,6 +57,10 @@ type privateManager interface { // 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" @@ -177,6 +185,9 @@ type privateManager interface { // 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" @@ -197,6 +208,10 @@ type privateManager interface { // 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" @@ -209,6 +224,14 @@ type privateManager interface { // 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" diff --git a/streams/impl/activitystreams/property_anyof/gen_property_activitystreams_anyOf.go b/streams/impl/activitystreams/property_anyof/gen_property_activitystreams_anyOf.go index 779ead0..54f1687 100644 --- a/streams/impl/activitystreams/property_anyof/gen_property_activitystreams_anyOf.go +++ b/streams/impl/activitystreams/property_anyof/gen_property_activitystreams_anyOf.go @@ -25,8 +25,10 @@ type ActivityStreamsAnyOfPropertyIterator struct { 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 @@ -56,14 +58,18 @@ type ActivityStreamsAnyOfPropertyIterator struct { 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 @@ -169,6 +175,12 @@ func deserializeActivityStreamsAnyOfPropertyIterator(i interface{}, aliasMap map alias: alias, } return this, nil + } else if v, err := mgr.DeserializeBranchForgeFed()(m, aliasMap); err == nil { + this := &ActivityStreamsAnyOfPropertyIterator{ + alias: alias, + forgefedBranchMember: v, + } + return this, nil } else if v, err := mgr.DeserializeCollectionActivityStreams()(m, aliasMap); err == nil { this := &ActivityStreamsAnyOfPropertyIterator{ activitystreamsCollectionMember: v, @@ -181,6 +193,12 @@ func deserializeActivityStreamsAnyOfPropertyIterator(i interface{}, aliasMap map alias: alias, } return this, nil + } else if v, err := mgr.DeserializeCommitForgeFed()(m, aliasMap); err == nil { + this := &ActivityStreamsAnyOfPropertyIterator{ + alias: alias, + forgefedCommitMember: v, + } + return this, nil } else if v, err := mgr.DeserializeCreateActivityStreams()(m, aliasMap); err == nil { this := &ActivityStreamsAnyOfPropertyIterator{ activitystreamsCreateMember: v, @@ -355,6 +373,12 @@ func deserializeActivityStreamsAnyOfPropertyIterator(i interface{}, aliasMap map alias: alias, } return this, nil + } else if v, err := mgr.DeserializePushForgeFed()(m, aliasMap); err == nil { + this := &ActivityStreamsAnyOfPropertyIterator{ + alias: alias, + forgefedPushMember: v, + } + return this, nil } else if v, err := mgr.DeserializeQuestionActivityStreams()(m, aliasMap); err == nil { this := &ActivityStreamsAnyOfPropertyIterator{ activitystreamsQuestionMember: v, @@ -385,6 +409,12 @@ func deserializeActivityStreamsAnyOfPropertyIterator(i interface{}, aliasMap map alias: alias, } return this, nil + } else if v, err := mgr.DeserializeRepositoryForgeFed()(m, aliasMap); err == nil { + this := &ActivityStreamsAnyOfPropertyIterator{ + alias: alias, + forgefedRepositoryMember: v, + } + return this, nil } else if v, err := mgr.DeserializeServiceActivityStreams()(m, aliasMap); err == nil { this := &ActivityStreamsAnyOfPropertyIterator{ activitystreamsServiceMember: v, @@ -403,6 +433,18 @@ func deserializeActivityStreamsAnyOfPropertyIterator(i interface{}, aliasMap map alias: alias, } return this, nil + } else if v, err := mgr.DeserializeTicketForgeFed()(m, aliasMap); err == nil { + this := &ActivityStreamsAnyOfPropertyIterator{ + alias: alias, + forgefedTicketMember: v, + } + return this, nil + } else if v, err := mgr.DeserializeTicketDependencyForgeFed()(m, aliasMap); err == nil { + this := &ActivityStreamsAnyOfPropertyIterator{ + alias: alias, + forgefedTicketDependencyMember: v, + } + return this, nil } else if v, err := mgr.DeserializeTombstoneActivityStreams()(m, aliasMap); err == nil { this := &ActivityStreamsAnyOfPropertyIterator{ activitystreamsTombstoneMember: v, @@ -826,6 +868,44 @@ func (this ActivityStreamsAnyOfPropertyIterator) GetActivityStreamsView() vocab. return this.activitystreamsViewMember } +// GetForgeFedBranch returns the value of this property. When IsForgeFedBranch +// returns false, GetForgeFedBranch will return an arbitrary value. +func (this ActivityStreamsAnyOfPropertyIterator) GetForgeFedBranch() vocab.ForgeFedBranch { + return this.forgefedBranchMember +} + +// GetForgeFedCommit returns the value of this property. When IsForgeFedCommit +// returns false, GetForgeFedCommit will return an arbitrary value. +func (this ActivityStreamsAnyOfPropertyIterator) GetForgeFedCommit() vocab.ForgeFedCommit { + return this.forgefedCommitMember +} + +// GetForgeFedPush returns the value of this property. When IsForgeFedPush returns +// false, GetForgeFedPush will return an arbitrary value. +func (this ActivityStreamsAnyOfPropertyIterator) GetForgeFedPush() vocab.ForgeFedPush { + return this.forgefedPushMember +} + +// GetForgeFedRepository returns the value of this property. When +// IsForgeFedRepository returns false, GetForgeFedRepository will return an +// arbitrary value. +func (this ActivityStreamsAnyOfPropertyIterator) GetForgeFedRepository() vocab.ForgeFedRepository { + return this.forgefedRepositoryMember +} + +// GetForgeFedTicket returns the value of this property. When IsForgeFedTicket +// returns false, GetForgeFedTicket will return an arbitrary value. +func (this ActivityStreamsAnyOfPropertyIterator) GetForgeFedTicket() vocab.ForgeFedTicket { + return this.forgefedTicketMember +} + +// GetForgeFedTicketDependency returns the value of this property. When +// IsForgeFedTicketDependency returns false, GetForgeFedTicketDependency will +// return an arbitrary value. +func (this ActivityStreamsAnyOfPropertyIterator) GetForgeFedTicketDependency() vocab.ForgeFedTicketDependency { + return this.forgefedTicketDependencyMember +} + // GetIRI returns the IRI of this property. When IsIRI returns false, GetIRI will // return an arbitrary value. func (this ActivityStreamsAnyOfPropertyIterator) GetIRI() *url.URL { @@ -881,12 +961,18 @@ func (this ActivityStreamsAnyOfPropertyIterator) GetType() vocab.Type { 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() } @@ -974,6 +1060,9 @@ func (this ActivityStreamsAnyOfPropertyIterator) GetType() vocab.Type { if this.IsActivityStreamsProfile() { return this.GetActivityStreamsProfile() } + if this.IsForgeFedPush() { + return this.GetForgeFedPush() + } if this.IsActivityStreamsQuestion() { return this.GetActivityStreamsQuestion() } @@ -989,6 +1078,9 @@ func (this ActivityStreamsAnyOfPropertyIterator) GetType() vocab.Type { if this.IsActivityStreamsRemove() { return this.GetActivityStreamsRemove() } + if this.IsForgeFedRepository() { + return this.GetForgeFedRepository() + } if this.IsActivityStreamsService() { return this.GetActivityStreamsService() } @@ -998,6 +1090,12 @@ func (this ActivityStreamsAnyOfPropertyIterator) GetType() vocab.Type { if this.IsActivityStreamsTentativeReject() { return this.GetActivityStreamsTentativeReject() } + if this.IsForgeFedTicket() { + return this.GetForgeFedTicket() + } + if this.IsForgeFedTicketDependency() { + return this.GetForgeFedTicketDependency() + } if this.IsActivityStreamsTombstone() { return this.GetActivityStreamsTombstone() } @@ -1033,8 +1131,10 @@ func (this ActivityStreamsAnyOfPropertyIterator) HasAny() bool { this.IsActivityStreamsArticle() || this.IsActivityStreamsAudio() || this.IsActivityStreamsBlock() || + this.IsForgeFedBranch() || this.IsActivityStreamsCollection() || this.IsActivityStreamsCollectionPage() || + this.IsForgeFedCommit() || this.IsActivityStreamsCreate() || this.IsActivityStreamsDelete() || this.IsActivityStreamsDislike() || @@ -1064,14 +1164,18 @@ func (this ActivityStreamsAnyOfPropertyIterator) HasAny() bool { 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() || @@ -1464,6 +1568,48 @@ func (this ActivityStreamsAnyOfPropertyIterator) IsActivityStreamsView() bool { return this.activitystreamsViewMember != nil } +// IsForgeFedBranch returns true if this property has a type of "Branch". When +// true, use the GetForgeFedBranch and SetForgeFedBranch methods to access and +// set this property. +func (this ActivityStreamsAnyOfPropertyIterator) IsForgeFedBranch() bool { + return this.forgefedBranchMember != nil +} + +// IsForgeFedCommit returns true if this property has a type of "Commit". When +// true, use the GetForgeFedCommit and SetForgeFedCommit methods to access and +// set this property. +func (this ActivityStreamsAnyOfPropertyIterator) IsForgeFedCommit() bool { + return this.forgefedCommitMember != nil +} + +// IsForgeFedPush returns true if this property has a type of "Push". When true, +// use the GetForgeFedPush and SetForgeFedPush methods to access and set this +// property. +func (this ActivityStreamsAnyOfPropertyIterator) IsForgeFedPush() bool { + return this.forgefedPushMember != nil +} + +// IsForgeFedRepository returns true if this property has a type of "Repository". +// When true, use the GetForgeFedRepository and SetForgeFedRepository methods +// to access and set this property. +func (this ActivityStreamsAnyOfPropertyIterator) IsForgeFedRepository() bool { + return this.forgefedRepositoryMember != nil +} + +// IsForgeFedTicket returns true if this property has a type of "Ticket". When +// true, use the GetForgeFedTicket and SetForgeFedTicket methods to access and +// set this property. +func (this ActivityStreamsAnyOfPropertyIterator) IsForgeFedTicket() bool { + return this.forgefedTicketMember != nil +} + +// IsForgeFedTicketDependency returns true if this property has a type of +// "TicketDependency". When true, use the GetForgeFedTicketDependency and +// SetForgeFedTicketDependency methods to access and set this property. +func (this ActivityStreamsAnyOfPropertyIterator) IsForgeFedTicketDependency() bool { + return this.forgefedTicketDependencyMember != nil +} + // IsIRI returns true if this property is an IRI. When true, use GetIRI and SetIRI // to access and set this property func (this ActivityStreamsAnyOfPropertyIterator) IsIRI() bool { @@ -1511,10 +1657,14 @@ func (this ActivityStreamsAnyOfPropertyIterator) JSONLDContext() map[string]stri 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() { @@ -1573,6 +1723,8 @@ func (this ActivityStreamsAnyOfPropertyIterator) JSONLDContext() map[string]stri 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() { @@ -1583,12 +1735,18 @@ func (this ActivityStreamsAnyOfPropertyIterator) JSONLDContext() map[string]stri 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() { @@ -1650,141 +1808,159 @@ func (this ActivityStreamsAnyOfPropertyIterator) KindIndex() int { if this.IsActivityStreamsBlock() { return 10 } - if this.IsActivityStreamsCollection() { + if this.IsForgeFedBranch() { return 11 } - if this.IsActivityStreamsCollectionPage() { + if this.IsActivityStreamsCollection() { return 12 } - if this.IsActivityStreamsCreate() { + if this.IsActivityStreamsCollectionPage() { return 13 } - if this.IsActivityStreamsDelete() { + if this.IsForgeFedCommit() { return 14 } - if this.IsActivityStreamsDislike() { + if this.IsActivityStreamsCreate() { return 15 } - if this.IsActivityStreamsDocument() { + if this.IsActivityStreamsDelete() { return 16 } - if this.IsTootEmoji() { + if this.IsActivityStreamsDislike() { return 17 } - if this.IsActivityStreamsEvent() { + if this.IsActivityStreamsDocument() { return 18 } - if this.IsActivityStreamsFlag() { + if this.IsTootEmoji() { return 19 } - if this.IsActivityStreamsFollow() { + if this.IsActivityStreamsEvent() { return 20 } - if this.IsActivityStreamsGroup() { + if this.IsActivityStreamsFlag() { return 21 } - if this.IsTootIdentityProof() { + if this.IsActivityStreamsFollow() { return 22 } - if this.IsActivityStreamsIgnore() { + if this.IsActivityStreamsGroup() { return 23 } - if this.IsActivityStreamsImage() { + if this.IsTootIdentityProof() { return 24 } - if this.IsActivityStreamsIntransitiveActivity() { + if this.IsActivityStreamsIgnore() { return 25 } - if this.IsActivityStreamsInvite() { + if this.IsActivityStreamsImage() { return 26 } - if this.IsActivityStreamsJoin() { + if this.IsActivityStreamsIntransitiveActivity() { return 27 } - if this.IsActivityStreamsLeave() { + if this.IsActivityStreamsInvite() { return 28 } - if this.IsActivityStreamsLike() { + if this.IsActivityStreamsJoin() { return 29 } - if this.IsActivityStreamsListen() { + if this.IsActivityStreamsLeave() { return 30 } - if this.IsActivityStreamsMention() { + if this.IsActivityStreamsLike() { return 31 } - if this.IsActivityStreamsMove() { + if this.IsActivityStreamsListen() { return 32 } - if this.IsActivityStreamsNote() { + if this.IsActivityStreamsMention() { return 33 } - if this.IsActivityStreamsOffer() { + if this.IsActivityStreamsMove() { return 34 } - if this.IsActivityStreamsOrderedCollection() { + if this.IsActivityStreamsNote() { return 35 } - if this.IsActivityStreamsOrderedCollectionPage() { + if this.IsActivityStreamsOffer() { return 36 } - if this.IsActivityStreamsOrganization() { + if this.IsActivityStreamsOrderedCollection() { return 37 } - if this.IsActivityStreamsPage() { + if this.IsActivityStreamsOrderedCollectionPage() { return 38 } - if this.IsActivityStreamsPerson() { + if this.IsActivityStreamsOrganization() { return 39 } - if this.IsActivityStreamsPlace() { + if this.IsActivityStreamsPage() { return 40 } - if this.IsActivityStreamsProfile() { + if this.IsActivityStreamsPerson() { return 41 } - if this.IsActivityStreamsQuestion() { + if this.IsActivityStreamsPlace() { return 42 } - if this.IsActivityStreamsRead() { + if this.IsActivityStreamsProfile() { return 43 } - if this.IsActivityStreamsReject() { + if this.IsForgeFedPush() { return 44 } - if this.IsActivityStreamsRelationship() { + if this.IsActivityStreamsQuestion() { return 45 } - if this.IsActivityStreamsRemove() { + if this.IsActivityStreamsRead() { return 46 } - if this.IsActivityStreamsService() { + if this.IsActivityStreamsReject() { return 47 } - if this.IsActivityStreamsTentativeAccept() { + if this.IsActivityStreamsRelationship() { return 48 } - if this.IsActivityStreamsTentativeReject() { + if this.IsActivityStreamsRemove() { return 49 } - if this.IsActivityStreamsTombstone() { + if this.IsForgeFedRepository() { return 50 } - if this.IsActivityStreamsTravel() { + if this.IsActivityStreamsService() { return 51 } - if this.IsActivityStreamsUndo() { + if this.IsActivityStreamsTentativeAccept() { return 52 } - if this.IsActivityStreamsUpdate() { + if this.IsActivityStreamsTentativeReject() { return 53 } - if this.IsActivityStreamsVideo() { + if this.IsForgeFedTicket() { return 54 } - if this.IsActivityStreamsView() { + 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 } @@ -1824,10 +2000,14 @@ func (this ActivityStreamsAnyOfPropertyIterator) LessThan(o vocab.ActivityStream 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() { @@ -1886,6 +2066,8 @@ func (this ActivityStreamsAnyOfPropertyIterator) LessThan(o vocab.ActivityStream 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() { @@ -1896,12 +2078,18 @@ func (this ActivityStreamsAnyOfPropertyIterator) LessThan(o vocab.ActivityStream 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() { @@ -2325,6 +2513,48 @@ func (this *ActivityStreamsAnyOfPropertyIterator) SetActivityStreamsView(v vocab this.activitystreamsViewMember = v } +// SetForgeFedBranch sets the value of this property. Calling IsForgeFedBranch +// afterwards returns true. +func (this *ActivityStreamsAnyOfPropertyIterator) SetForgeFedBranch(v vocab.ForgeFedBranch) { + this.clear() + this.forgefedBranchMember = v +} + +// SetForgeFedCommit sets the value of this property. Calling IsForgeFedCommit +// afterwards returns true. +func (this *ActivityStreamsAnyOfPropertyIterator) SetForgeFedCommit(v vocab.ForgeFedCommit) { + this.clear() + this.forgefedCommitMember = v +} + +// SetForgeFedPush sets the value of this property. Calling IsForgeFedPush +// afterwards returns true. +func (this *ActivityStreamsAnyOfPropertyIterator) SetForgeFedPush(v vocab.ForgeFedPush) { + this.clear() + this.forgefedPushMember = v +} + +// SetForgeFedRepository sets the value of this property. Calling +// IsForgeFedRepository afterwards returns true. +func (this *ActivityStreamsAnyOfPropertyIterator) SetForgeFedRepository(v vocab.ForgeFedRepository) { + this.clear() + this.forgefedRepositoryMember = v +} + +// SetForgeFedTicket sets the value of this property. Calling IsForgeFedTicket +// afterwards returns true. +func (this *ActivityStreamsAnyOfPropertyIterator) SetForgeFedTicket(v vocab.ForgeFedTicket) { + this.clear() + this.forgefedTicketMember = v +} + +// SetForgeFedTicketDependency sets the value of this property. Calling +// IsForgeFedTicketDependency afterwards returns true. +func (this *ActivityStreamsAnyOfPropertyIterator) SetForgeFedTicketDependency(v vocab.ForgeFedTicketDependency) { + this.clear() + this.forgefedTicketDependencyMember = v +} + // SetIRI sets the value of this property. Calling IsIRI afterwards returns true. func (this *ActivityStreamsAnyOfPropertyIterator) SetIRI(v *url.URL) { this.clear() @@ -2392,6 +2622,10 @@ func (this *ActivityStreamsAnyOfPropertyIterator) SetType(t vocab.Type) error { 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 @@ -2400,6 +2634,10 @@ func (this *ActivityStreamsAnyOfPropertyIterator) SetType(t vocab.Type) error { 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 @@ -2516,6 +2754,10 @@ func (this *ActivityStreamsAnyOfPropertyIterator) SetType(t vocab.Type) error { 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 @@ -2536,6 +2778,10 @@ func (this *ActivityStreamsAnyOfPropertyIterator) SetType(t vocab.Type) error { 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 @@ -2548,6 +2794,14 @@ func (this *ActivityStreamsAnyOfPropertyIterator) SetType(t vocab.Type) error { 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 @@ -2590,8 +2844,10 @@ func (this *ActivityStreamsAnyOfPropertyIterator) clear() { 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 @@ -2621,14 +2877,18 @@ func (this *ActivityStreamsAnyOfPropertyIterator) clear() { 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 @@ -2666,10 +2926,14 @@ func (this ActivityStreamsAnyOfPropertyIterator) serialize() (interface{}, error 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() { @@ -2728,6 +2992,8 @@ func (this ActivityStreamsAnyOfPropertyIterator) serialize() (interface{}, error 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() { @@ -2738,12 +3004,18 @@ func (this ActivityStreamsAnyOfPropertyIterator) serialize() (interface{}, error 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() { @@ -3422,6 +3694,73 @@ func (this *ActivityStreamsAnyOfProperty) AppendActivityStreamsView(v vocab.Acti }) } +// AppendForgeFedBranch appends a Branch value to the back of a list of the +// property "anyOf". Invalidates iterators that are traversing using Prev. +func (this *ActivityStreamsAnyOfProperty) AppendForgeFedBranch(v vocab.ForgeFedBranch) { + this.properties = append(this.properties, &ActivityStreamsAnyOfPropertyIterator{ + alias: this.alias, + forgefedBranchMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendForgeFedCommit appends a Commit value to the back of a list of the +// property "anyOf". Invalidates iterators that are traversing using Prev. +func (this *ActivityStreamsAnyOfProperty) AppendForgeFedCommit(v vocab.ForgeFedCommit) { + this.properties = append(this.properties, &ActivityStreamsAnyOfPropertyIterator{ + alias: this.alias, + forgefedCommitMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendForgeFedPush appends a Push value to the back of a list of the property +// "anyOf". Invalidates iterators that are traversing using Prev. +func (this *ActivityStreamsAnyOfProperty) AppendForgeFedPush(v vocab.ForgeFedPush) { + this.properties = append(this.properties, &ActivityStreamsAnyOfPropertyIterator{ + alias: this.alias, + forgefedPushMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendForgeFedRepository appends a Repository value to the back of a list of +// the property "anyOf". Invalidates iterators that are traversing using Prev. +func (this *ActivityStreamsAnyOfProperty) AppendForgeFedRepository(v vocab.ForgeFedRepository) { + this.properties = append(this.properties, &ActivityStreamsAnyOfPropertyIterator{ + alias: this.alias, + forgefedRepositoryMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendForgeFedTicket appends a Ticket value to the back of a list of the +// property "anyOf". Invalidates iterators that are traversing using Prev. +func (this *ActivityStreamsAnyOfProperty) AppendForgeFedTicket(v vocab.ForgeFedTicket) { + this.properties = append(this.properties, &ActivityStreamsAnyOfPropertyIterator{ + alias: this.alias, + forgefedTicketMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendForgeFedTicketDependency appends a TicketDependency value to the back of +// a list of the property "anyOf". Invalidates iterators that are traversing +// using Prev. +func (this *ActivityStreamsAnyOfProperty) AppendForgeFedTicketDependency(v vocab.ForgeFedTicketDependency) { + this.properties = append(this.properties, &ActivityStreamsAnyOfPropertyIterator{ + alias: this.alias, + forgefedTicketDependencyMember: v, + myIdx: this.Len(), + parent: this, + }) +} + // AppendIRI appends an IRI value to the back of a list of the property "anyOf" func (this *ActivityStreamsAnyOfProperty) AppendIRI(v *url.URL) { this.properties = append(this.properties, &ActivityStreamsAnyOfPropertyIterator{ @@ -4417,6 +4756,108 @@ func (this *ActivityStreamsAnyOfProperty) InsertActivityStreamsView(idx int, v v } } +// InsertForgeFedBranch inserts a Branch value at the specified index for a +// property "anyOf". Existing elements at that index and higher are shifted +// back once. Invalidates all iterators. +func (this *ActivityStreamsAnyOfProperty) InsertForgeFedBranch(idx int, v vocab.ForgeFedBranch) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsAnyOfPropertyIterator{ + alias: this.alias, + forgefedBranchMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertForgeFedCommit inserts a Commit value at the specified index for a +// property "anyOf". Existing elements at that index and higher are shifted +// back once. Invalidates all iterators. +func (this *ActivityStreamsAnyOfProperty) InsertForgeFedCommit(idx int, v vocab.ForgeFedCommit) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsAnyOfPropertyIterator{ + alias: this.alias, + forgefedCommitMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertForgeFedPush inserts a Push value at the specified index for a property +// "anyOf". Existing elements at that index and higher are shifted back once. +// Invalidates all iterators. +func (this *ActivityStreamsAnyOfProperty) InsertForgeFedPush(idx int, v vocab.ForgeFedPush) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsAnyOfPropertyIterator{ + alias: this.alias, + forgefedPushMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertForgeFedRepository inserts a Repository value at the specified index for +// a property "anyOf". Existing elements at that index and higher are shifted +// back once. Invalidates all iterators. +func (this *ActivityStreamsAnyOfProperty) InsertForgeFedRepository(idx int, v vocab.ForgeFedRepository) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsAnyOfPropertyIterator{ + alias: this.alias, + forgefedRepositoryMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertForgeFedTicket inserts a Ticket value at the specified index for a +// property "anyOf". Existing elements at that index and higher are shifted +// back once. Invalidates all iterators. +func (this *ActivityStreamsAnyOfProperty) InsertForgeFedTicket(idx int, v vocab.ForgeFedTicket) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsAnyOfPropertyIterator{ + alias: this.alias, + forgefedTicketMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertForgeFedTicketDependency inserts a TicketDependency value at the +// specified index for a property "anyOf". Existing elements at that index and +// higher are shifted back once. Invalidates all iterators. +func (this *ActivityStreamsAnyOfProperty) InsertForgeFedTicketDependency(idx int, v vocab.ForgeFedTicketDependency) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsAnyOfPropertyIterator{ + alias: this.alias, + forgefedTicketDependencyMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + // Insert inserts an IRI value at the specified index for a property "anyOf". // Existing elements at that index and higher are shifted back once. // Invalidates all iterators. @@ -4574,182 +5015,206 @@ func (this ActivityStreamsAnyOfProperty) Less(i, j int) bool { rhs := this.properties[j].GetActivityStreamsBlock() return lhs.LessThan(rhs) } else if idx1 == 11 { + lhs := this.properties[i].GetForgeFedBranch() + rhs := this.properties[j].GetForgeFedBranch() + return lhs.LessThan(rhs) + } else if idx1 == 12 { lhs := this.properties[i].GetActivityStreamsCollection() rhs := this.properties[j].GetActivityStreamsCollection() return lhs.LessThan(rhs) - } else if idx1 == 12 { + } else if idx1 == 13 { lhs := this.properties[i].GetActivityStreamsCollectionPage() rhs := this.properties[j].GetActivityStreamsCollectionPage() return lhs.LessThan(rhs) - } else if idx1 == 13 { + } else if idx1 == 14 { + lhs := this.properties[i].GetForgeFedCommit() + rhs := this.properties[j].GetForgeFedCommit() + return lhs.LessThan(rhs) + } else if idx1 == 15 { lhs := this.properties[i].GetActivityStreamsCreate() rhs := this.properties[j].GetActivityStreamsCreate() return lhs.LessThan(rhs) - } else if idx1 == 14 { + } else if idx1 == 16 { lhs := this.properties[i].GetActivityStreamsDelete() rhs := this.properties[j].GetActivityStreamsDelete() return lhs.LessThan(rhs) - } else if idx1 == 15 { + } else if idx1 == 17 { lhs := this.properties[i].GetActivityStreamsDislike() rhs := this.properties[j].GetActivityStreamsDislike() return lhs.LessThan(rhs) - } else if idx1 == 16 { + } else if idx1 == 18 { lhs := this.properties[i].GetActivityStreamsDocument() rhs := this.properties[j].GetActivityStreamsDocument() return lhs.LessThan(rhs) - } else if idx1 == 17 { + } else if idx1 == 19 { lhs := this.properties[i].GetTootEmoji() rhs := this.properties[j].GetTootEmoji() return lhs.LessThan(rhs) - } else if idx1 == 18 { + } else if idx1 == 20 { lhs := this.properties[i].GetActivityStreamsEvent() rhs := this.properties[j].GetActivityStreamsEvent() return lhs.LessThan(rhs) - } else if idx1 == 19 { + } else if idx1 == 21 { lhs := this.properties[i].GetActivityStreamsFlag() rhs := this.properties[j].GetActivityStreamsFlag() return lhs.LessThan(rhs) - } else if idx1 == 20 { + } else if idx1 == 22 { lhs := this.properties[i].GetActivityStreamsFollow() rhs := this.properties[j].GetActivityStreamsFollow() return lhs.LessThan(rhs) - } else if idx1 == 21 { + } else if idx1 == 23 { lhs := this.properties[i].GetActivityStreamsGroup() rhs := this.properties[j].GetActivityStreamsGroup() return lhs.LessThan(rhs) - } else if idx1 == 22 { + } else if idx1 == 24 { lhs := this.properties[i].GetTootIdentityProof() rhs := this.properties[j].GetTootIdentityProof() return lhs.LessThan(rhs) - } else if idx1 == 23 { + } else if idx1 == 25 { lhs := this.properties[i].GetActivityStreamsIgnore() rhs := this.properties[j].GetActivityStreamsIgnore() return lhs.LessThan(rhs) - } else if idx1 == 24 { + } else if idx1 == 26 { lhs := this.properties[i].GetActivityStreamsImage() rhs := this.properties[j].GetActivityStreamsImage() return lhs.LessThan(rhs) - } else if idx1 == 25 { + } else if idx1 == 27 { lhs := this.properties[i].GetActivityStreamsIntransitiveActivity() rhs := this.properties[j].GetActivityStreamsIntransitiveActivity() return lhs.LessThan(rhs) - } else if idx1 == 26 { + } else if idx1 == 28 { lhs := this.properties[i].GetActivityStreamsInvite() rhs := this.properties[j].GetActivityStreamsInvite() return lhs.LessThan(rhs) - } else if idx1 == 27 { + } else if idx1 == 29 { lhs := this.properties[i].GetActivityStreamsJoin() rhs := this.properties[j].GetActivityStreamsJoin() return lhs.LessThan(rhs) - } else if idx1 == 28 { + } else if idx1 == 30 { lhs := this.properties[i].GetActivityStreamsLeave() rhs := this.properties[j].GetActivityStreamsLeave() return lhs.LessThan(rhs) - } else if idx1 == 29 { + } else if idx1 == 31 { lhs := this.properties[i].GetActivityStreamsLike() rhs := this.properties[j].GetActivityStreamsLike() return lhs.LessThan(rhs) - } else if idx1 == 30 { + } else if idx1 == 32 { lhs := this.properties[i].GetActivityStreamsListen() rhs := this.properties[j].GetActivityStreamsListen() return lhs.LessThan(rhs) - } else if idx1 == 31 { + } else if idx1 == 33 { lhs := this.properties[i].GetActivityStreamsMention() rhs := this.properties[j].GetActivityStreamsMention() return lhs.LessThan(rhs) - } else if idx1 == 32 { + } else if idx1 == 34 { lhs := this.properties[i].GetActivityStreamsMove() rhs := this.properties[j].GetActivityStreamsMove() return lhs.LessThan(rhs) - } else if idx1 == 33 { + } else if idx1 == 35 { lhs := this.properties[i].GetActivityStreamsNote() rhs := this.properties[j].GetActivityStreamsNote() return lhs.LessThan(rhs) - } else if idx1 == 34 { + } else if idx1 == 36 { lhs := this.properties[i].GetActivityStreamsOffer() rhs := this.properties[j].GetActivityStreamsOffer() return lhs.LessThan(rhs) - } else if idx1 == 35 { + } else if idx1 == 37 { lhs := this.properties[i].GetActivityStreamsOrderedCollection() rhs := this.properties[j].GetActivityStreamsOrderedCollection() return lhs.LessThan(rhs) - } else if idx1 == 36 { + } else if idx1 == 38 { lhs := this.properties[i].GetActivityStreamsOrderedCollectionPage() rhs := this.properties[j].GetActivityStreamsOrderedCollectionPage() return lhs.LessThan(rhs) - } else if idx1 == 37 { + } else if idx1 == 39 { lhs := this.properties[i].GetActivityStreamsOrganization() rhs := this.properties[j].GetActivityStreamsOrganization() return lhs.LessThan(rhs) - } else if idx1 == 38 { + } else if idx1 == 40 { lhs := this.properties[i].GetActivityStreamsPage() rhs := this.properties[j].GetActivityStreamsPage() return lhs.LessThan(rhs) - } else if idx1 == 39 { + } else if idx1 == 41 { lhs := this.properties[i].GetActivityStreamsPerson() rhs := this.properties[j].GetActivityStreamsPerson() return lhs.LessThan(rhs) - } else if idx1 == 40 { + } else if idx1 == 42 { lhs := this.properties[i].GetActivityStreamsPlace() rhs := this.properties[j].GetActivityStreamsPlace() return lhs.LessThan(rhs) - } else if idx1 == 41 { + } else if idx1 == 43 { lhs := this.properties[i].GetActivityStreamsProfile() rhs := this.properties[j].GetActivityStreamsProfile() return lhs.LessThan(rhs) - } else if idx1 == 42 { + } else if idx1 == 44 { + lhs := this.properties[i].GetForgeFedPush() + rhs := this.properties[j].GetForgeFedPush() + return lhs.LessThan(rhs) + } else if idx1 == 45 { lhs := this.properties[i].GetActivityStreamsQuestion() rhs := this.properties[j].GetActivityStreamsQuestion() return lhs.LessThan(rhs) - } else if idx1 == 43 { + } else if idx1 == 46 { lhs := this.properties[i].GetActivityStreamsRead() rhs := this.properties[j].GetActivityStreamsRead() return lhs.LessThan(rhs) - } else if idx1 == 44 { + } else if idx1 == 47 { lhs := this.properties[i].GetActivityStreamsReject() rhs := this.properties[j].GetActivityStreamsReject() return lhs.LessThan(rhs) - } else if idx1 == 45 { + } else if idx1 == 48 { lhs := this.properties[i].GetActivityStreamsRelationship() rhs := this.properties[j].GetActivityStreamsRelationship() return lhs.LessThan(rhs) - } else if idx1 == 46 { + } else if idx1 == 49 { lhs := this.properties[i].GetActivityStreamsRemove() rhs := this.properties[j].GetActivityStreamsRemove() return lhs.LessThan(rhs) - } else if idx1 == 47 { + } else if idx1 == 50 { + lhs := this.properties[i].GetForgeFedRepository() + rhs := this.properties[j].GetForgeFedRepository() + return lhs.LessThan(rhs) + } else if idx1 == 51 { lhs := this.properties[i].GetActivityStreamsService() rhs := this.properties[j].GetActivityStreamsService() return lhs.LessThan(rhs) - } else if idx1 == 48 { + } else if idx1 == 52 { lhs := this.properties[i].GetActivityStreamsTentativeAccept() rhs := this.properties[j].GetActivityStreamsTentativeAccept() return lhs.LessThan(rhs) - } else if idx1 == 49 { + } else if idx1 == 53 { lhs := this.properties[i].GetActivityStreamsTentativeReject() rhs := this.properties[j].GetActivityStreamsTentativeReject() return lhs.LessThan(rhs) - } else if idx1 == 50 { + } else if idx1 == 54 { + lhs := this.properties[i].GetForgeFedTicket() + rhs := this.properties[j].GetForgeFedTicket() + return lhs.LessThan(rhs) + } else if idx1 == 55 { + lhs := this.properties[i].GetForgeFedTicketDependency() + rhs := this.properties[j].GetForgeFedTicketDependency() + return lhs.LessThan(rhs) + } else if idx1 == 56 { lhs := this.properties[i].GetActivityStreamsTombstone() rhs := this.properties[j].GetActivityStreamsTombstone() return lhs.LessThan(rhs) - } else if idx1 == 51 { + } else if idx1 == 57 { lhs := this.properties[i].GetActivityStreamsTravel() rhs := this.properties[j].GetActivityStreamsTravel() return lhs.LessThan(rhs) - } else if idx1 == 52 { + } else if idx1 == 58 { lhs := this.properties[i].GetActivityStreamsUndo() rhs := this.properties[j].GetActivityStreamsUndo() return lhs.LessThan(rhs) - } else if idx1 == 53 { + } else if idx1 == 59 { lhs := this.properties[i].GetActivityStreamsUpdate() rhs := this.properties[j].GetActivityStreamsUpdate() return lhs.LessThan(rhs) - } else if idx1 == 54 { + } else if idx1 == 60 { lhs := this.properties[i].GetActivityStreamsVideo() rhs := this.properties[j].GetActivityStreamsVideo() return lhs.LessThan(rhs) - } else if idx1 == 55 { + } else if idx1 == 61 { lhs := this.properties[i].GetActivityStreamsView() rhs := this.properties[j].GetActivityStreamsView() return lhs.LessThan(rhs) @@ -5550,6 +6015,90 @@ func (this *ActivityStreamsAnyOfProperty) PrependActivityStreamsView(v vocab.Act } } +// PrependForgeFedBranch prepends a Branch value to the front of a list of the +// property "anyOf". Invalidates all iterators. +func (this *ActivityStreamsAnyOfProperty) PrependForgeFedBranch(v vocab.ForgeFedBranch) { + this.properties = append([]*ActivityStreamsAnyOfPropertyIterator{{ + alias: this.alias, + forgefedBranchMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependForgeFedCommit prepends a Commit value to the front of a list of the +// property "anyOf". Invalidates all iterators. +func (this *ActivityStreamsAnyOfProperty) PrependForgeFedCommit(v vocab.ForgeFedCommit) { + this.properties = append([]*ActivityStreamsAnyOfPropertyIterator{{ + alias: this.alias, + forgefedCommitMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependForgeFedPush prepends a Push value to the front of a list of the +// property "anyOf". Invalidates all iterators. +func (this *ActivityStreamsAnyOfProperty) PrependForgeFedPush(v vocab.ForgeFedPush) { + this.properties = append([]*ActivityStreamsAnyOfPropertyIterator{{ + alias: this.alias, + forgefedPushMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependForgeFedRepository prepends a Repository value to the front of a list of +// the property "anyOf". Invalidates all iterators. +func (this *ActivityStreamsAnyOfProperty) PrependForgeFedRepository(v vocab.ForgeFedRepository) { + this.properties = append([]*ActivityStreamsAnyOfPropertyIterator{{ + alias: this.alias, + forgefedRepositoryMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependForgeFedTicket prepends a Ticket value to the front of a list of the +// property "anyOf". Invalidates all iterators. +func (this *ActivityStreamsAnyOfProperty) PrependForgeFedTicket(v vocab.ForgeFedTicket) { + this.properties = append([]*ActivityStreamsAnyOfPropertyIterator{{ + alias: this.alias, + forgefedTicketMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependForgeFedTicketDependency prepends a TicketDependency value to the front +// of a list of the property "anyOf". Invalidates all iterators. +func (this *ActivityStreamsAnyOfProperty) PrependForgeFedTicketDependency(v vocab.ForgeFedTicketDependency) { + this.properties = append([]*ActivityStreamsAnyOfPropertyIterator{{ + alias: this.alias, + forgefedTicketDependencyMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + // PrependIRI prepends an IRI value to the front of a list of the property "anyOf". func (this *ActivityStreamsAnyOfProperty) PrependIRI(v *url.URL) { this.properties = append([]*ActivityStreamsAnyOfPropertyIterator{{ @@ -6345,6 +6894,83 @@ func (this *ActivityStreamsAnyOfProperty) SetActivityStreamsView(idx int, v voca } } +// SetForgeFedBranch sets a Branch value to be at the specified index for the +// property "anyOf". Panics if the index is out of bounds. Invalidates all +// iterators. +func (this *ActivityStreamsAnyOfProperty) SetForgeFedBranch(idx int, v vocab.ForgeFedBranch) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsAnyOfPropertyIterator{ + alias: this.alias, + forgefedBranchMember: v, + myIdx: idx, + parent: this, + } +} + +// SetForgeFedCommit sets a Commit value to be at the specified index for the +// property "anyOf". Panics if the index is out of bounds. Invalidates all +// iterators. +func (this *ActivityStreamsAnyOfProperty) SetForgeFedCommit(idx int, v vocab.ForgeFedCommit) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsAnyOfPropertyIterator{ + alias: this.alias, + forgefedCommitMember: v, + myIdx: idx, + parent: this, + } +} + +// SetForgeFedPush sets a Push value to be at the specified index for the property +// "anyOf". Panics if the index is out of bounds. Invalidates all iterators. +func (this *ActivityStreamsAnyOfProperty) SetForgeFedPush(idx int, v vocab.ForgeFedPush) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsAnyOfPropertyIterator{ + alias: this.alias, + forgefedPushMember: v, + myIdx: idx, + parent: this, + } +} + +// SetForgeFedRepository sets a Repository value to be at the specified index for +// the property "anyOf". Panics if the index is out of bounds. Invalidates all +// iterators. +func (this *ActivityStreamsAnyOfProperty) SetForgeFedRepository(idx int, v vocab.ForgeFedRepository) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsAnyOfPropertyIterator{ + alias: this.alias, + forgefedRepositoryMember: v, + myIdx: idx, + parent: this, + } +} + +// SetForgeFedTicket sets a Ticket value to be at the specified index for the +// property "anyOf". Panics if the index is out of bounds. Invalidates all +// iterators. +func (this *ActivityStreamsAnyOfProperty) SetForgeFedTicket(idx int, v vocab.ForgeFedTicket) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsAnyOfPropertyIterator{ + alias: this.alias, + forgefedTicketMember: v, + myIdx: idx, + parent: this, + } +} + +// SetForgeFedTicketDependency sets a TicketDependency value to be at the +// specified index for the property "anyOf". Panics if the index is out of +// bounds. Invalidates all iterators. +func (this *ActivityStreamsAnyOfProperty) SetForgeFedTicketDependency(idx int, v vocab.ForgeFedTicketDependency) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsAnyOfPropertyIterator{ + alias: this.alias, + forgefedTicketDependencyMember: v, + myIdx: idx, + parent: this, + } +} + // SetIRI sets an IRI value to be at the specified index for the property "anyOf". // Panics if the index is out of bounds. func (this *ActivityStreamsAnyOfProperty) SetIRI(idx int, v *url.URL) { diff --git a/streams/impl/activitystreams/property_attachment/gen_pkg.go b/streams/impl/activitystreams/property_attachment/gen_pkg.go index 1d8f748..a9b93f6 100644 --- a/streams/impl/activitystreams/property_attachment/gen_pkg.go +++ b/streams/impl/activitystreams/property_attachment/gen_pkg.go @@ -45,6 +45,10 @@ type privateManager interface { // 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" @@ -53,6 +57,10 @@ type privateManager interface { // 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" @@ -177,6 +185,9 @@ type privateManager interface { // 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" @@ -197,6 +208,10 @@ type privateManager interface { // 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" @@ -209,6 +224,14 @@ type privateManager interface { // 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" diff --git a/streams/impl/activitystreams/property_attachment/gen_property_activitystreams_attachment.go b/streams/impl/activitystreams/property_attachment/gen_property_activitystreams_attachment.go index c3cc309..efe1b3a 100644 --- a/streams/impl/activitystreams/property_attachment/gen_property_activitystreams_attachment.go +++ b/streams/impl/activitystreams/property_attachment/gen_property_activitystreams_attachment.go @@ -25,8 +25,10 @@ type ActivityStreamsAttachmentPropertyIterator struct { 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 @@ -56,14 +58,18 @@ type ActivityStreamsAttachmentPropertyIterator struct { 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 @@ -169,6 +175,12 @@ func deserializeActivityStreamsAttachmentPropertyIterator(i interface{}, aliasMa alias: alias, } return this, nil + } else if v, err := mgr.DeserializeBranchForgeFed()(m, aliasMap); err == nil { + this := &ActivityStreamsAttachmentPropertyIterator{ + alias: alias, + forgefedBranchMember: v, + } + return this, nil } else if v, err := mgr.DeserializeCollectionActivityStreams()(m, aliasMap); err == nil { this := &ActivityStreamsAttachmentPropertyIterator{ activitystreamsCollectionMember: v, @@ -181,6 +193,12 @@ func deserializeActivityStreamsAttachmentPropertyIterator(i interface{}, aliasMa alias: alias, } return this, nil + } else if v, err := mgr.DeserializeCommitForgeFed()(m, aliasMap); err == nil { + this := &ActivityStreamsAttachmentPropertyIterator{ + alias: alias, + forgefedCommitMember: v, + } + return this, nil } else if v, err := mgr.DeserializeCreateActivityStreams()(m, aliasMap); err == nil { this := &ActivityStreamsAttachmentPropertyIterator{ activitystreamsCreateMember: v, @@ -355,6 +373,12 @@ func deserializeActivityStreamsAttachmentPropertyIterator(i interface{}, aliasMa alias: alias, } return this, nil + } else if v, err := mgr.DeserializePushForgeFed()(m, aliasMap); err == nil { + this := &ActivityStreamsAttachmentPropertyIterator{ + alias: alias, + forgefedPushMember: v, + } + return this, nil } else if v, err := mgr.DeserializeQuestionActivityStreams()(m, aliasMap); err == nil { this := &ActivityStreamsAttachmentPropertyIterator{ activitystreamsQuestionMember: v, @@ -385,6 +409,12 @@ func deserializeActivityStreamsAttachmentPropertyIterator(i interface{}, aliasMa alias: alias, } return this, nil + } else if v, err := mgr.DeserializeRepositoryForgeFed()(m, aliasMap); err == nil { + this := &ActivityStreamsAttachmentPropertyIterator{ + alias: alias, + forgefedRepositoryMember: v, + } + return this, nil } else if v, err := mgr.DeserializeServiceActivityStreams()(m, aliasMap); err == nil { this := &ActivityStreamsAttachmentPropertyIterator{ activitystreamsServiceMember: v, @@ -403,6 +433,18 @@ func deserializeActivityStreamsAttachmentPropertyIterator(i interface{}, aliasMa alias: alias, } return this, nil + } else if v, err := mgr.DeserializeTicketForgeFed()(m, aliasMap); err == nil { + this := &ActivityStreamsAttachmentPropertyIterator{ + alias: alias, + forgefedTicketMember: v, + } + return this, nil + } else if v, err := mgr.DeserializeTicketDependencyForgeFed()(m, aliasMap); err == nil { + this := &ActivityStreamsAttachmentPropertyIterator{ + alias: alias, + forgefedTicketDependencyMember: v, + } + return this, nil } else if v, err := mgr.DeserializeTombstoneActivityStreams()(m, aliasMap); err == nil { this := &ActivityStreamsAttachmentPropertyIterator{ activitystreamsTombstoneMember: v, @@ -826,6 +868,44 @@ func (this ActivityStreamsAttachmentPropertyIterator) GetActivityStreamsView() v return this.activitystreamsViewMember } +// GetForgeFedBranch returns the value of this property. When IsForgeFedBranch +// returns false, GetForgeFedBranch will return an arbitrary value. +func (this ActivityStreamsAttachmentPropertyIterator) GetForgeFedBranch() vocab.ForgeFedBranch { + return this.forgefedBranchMember +} + +// GetForgeFedCommit returns the value of this property. When IsForgeFedCommit +// returns false, GetForgeFedCommit will return an arbitrary value. +func (this ActivityStreamsAttachmentPropertyIterator) GetForgeFedCommit() vocab.ForgeFedCommit { + return this.forgefedCommitMember +} + +// GetForgeFedPush returns the value of this property. When IsForgeFedPush returns +// false, GetForgeFedPush will return an arbitrary value. +func (this ActivityStreamsAttachmentPropertyIterator) GetForgeFedPush() vocab.ForgeFedPush { + return this.forgefedPushMember +} + +// GetForgeFedRepository returns the value of this property. When +// IsForgeFedRepository returns false, GetForgeFedRepository will return an +// arbitrary value. +func (this ActivityStreamsAttachmentPropertyIterator) GetForgeFedRepository() vocab.ForgeFedRepository { + return this.forgefedRepositoryMember +} + +// GetForgeFedTicket returns the value of this property. When IsForgeFedTicket +// returns false, GetForgeFedTicket will return an arbitrary value. +func (this ActivityStreamsAttachmentPropertyIterator) GetForgeFedTicket() vocab.ForgeFedTicket { + return this.forgefedTicketMember +} + +// GetForgeFedTicketDependency returns the value of this property. When +// IsForgeFedTicketDependency returns false, GetForgeFedTicketDependency will +// return an arbitrary value. +func (this ActivityStreamsAttachmentPropertyIterator) GetForgeFedTicketDependency() vocab.ForgeFedTicketDependency { + return this.forgefedTicketDependencyMember +} + // GetIRI returns the IRI of this property. When IsIRI returns false, GetIRI will // return an arbitrary value. func (this ActivityStreamsAttachmentPropertyIterator) GetIRI() *url.URL { @@ -881,12 +961,18 @@ func (this ActivityStreamsAttachmentPropertyIterator) GetType() vocab.Type { 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() } @@ -974,6 +1060,9 @@ func (this ActivityStreamsAttachmentPropertyIterator) GetType() vocab.Type { if this.IsActivityStreamsProfile() { return this.GetActivityStreamsProfile() } + if this.IsForgeFedPush() { + return this.GetForgeFedPush() + } if this.IsActivityStreamsQuestion() { return this.GetActivityStreamsQuestion() } @@ -989,6 +1078,9 @@ func (this ActivityStreamsAttachmentPropertyIterator) GetType() vocab.Type { if this.IsActivityStreamsRemove() { return this.GetActivityStreamsRemove() } + if this.IsForgeFedRepository() { + return this.GetForgeFedRepository() + } if this.IsActivityStreamsService() { return this.GetActivityStreamsService() } @@ -998,6 +1090,12 @@ func (this ActivityStreamsAttachmentPropertyIterator) GetType() vocab.Type { if this.IsActivityStreamsTentativeReject() { return this.GetActivityStreamsTentativeReject() } + if this.IsForgeFedTicket() { + return this.GetForgeFedTicket() + } + if this.IsForgeFedTicketDependency() { + return this.GetForgeFedTicketDependency() + } if this.IsActivityStreamsTombstone() { return this.GetActivityStreamsTombstone() } @@ -1033,8 +1131,10 @@ func (this ActivityStreamsAttachmentPropertyIterator) HasAny() bool { this.IsActivityStreamsArticle() || this.IsActivityStreamsAudio() || this.IsActivityStreamsBlock() || + this.IsForgeFedBranch() || this.IsActivityStreamsCollection() || this.IsActivityStreamsCollectionPage() || + this.IsForgeFedCommit() || this.IsActivityStreamsCreate() || this.IsActivityStreamsDelete() || this.IsActivityStreamsDislike() || @@ -1064,14 +1164,18 @@ func (this ActivityStreamsAttachmentPropertyIterator) HasAny() bool { 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() || @@ -1464,6 +1568,48 @@ func (this ActivityStreamsAttachmentPropertyIterator) IsActivityStreamsView() bo return this.activitystreamsViewMember != nil } +// IsForgeFedBranch returns true if this property has a type of "Branch". When +// true, use the GetForgeFedBranch and SetForgeFedBranch methods to access and +// set this property. +func (this ActivityStreamsAttachmentPropertyIterator) IsForgeFedBranch() bool { + return this.forgefedBranchMember != nil +} + +// IsForgeFedCommit returns true if this property has a type of "Commit". When +// true, use the GetForgeFedCommit and SetForgeFedCommit methods to access and +// set this property. +func (this ActivityStreamsAttachmentPropertyIterator) IsForgeFedCommit() bool { + return this.forgefedCommitMember != nil +} + +// IsForgeFedPush returns true if this property has a type of "Push". When true, +// use the GetForgeFedPush and SetForgeFedPush methods to access and set this +// property. +func (this ActivityStreamsAttachmentPropertyIterator) IsForgeFedPush() bool { + return this.forgefedPushMember != nil +} + +// IsForgeFedRepository returns true if this property has a type of "Repository". +// When true, use the GetForgeFedRepository and SetForgeFedRepository methods +// to access and set this property. +func (this ActivityStreamsAttachmentPropertyIterator) IsForgeFedRepository() bool { + return this.forgefedRepositoryMember != nil +} + +// IsForgeFedTicket returns true if this property has a type of "Ticket". When +// true, use the GetForgeFedTicket and SetForgeFedTicket methods to access and +// set this property. +func (this ActivityStreamsAttachmentPropertyIterator) IsForgeFedTicket() bool { + return this.forgefedTicketMember != nil +} + +// IsForgeFedTicketDependency returns true if this property has a type of +// "TicketDependency". When true, use the GetForgeFedTicketDependency and +// SetForgeFedTicketDependency methods to access and set this property. +func (this ActivityStreamsAttachmentPropertyIterator) IsForgeFedTicketDependency() bool { + return this.forgefedTicketDependencyMember != nil +} + // IsIRI returns true if this property is an IRI. When true, use GetIRI and SetIRI // to access and set this property func (this ActivityStreamsAttachmentPropertyIterator) IsIRI() bool { @@ -1511,10 +1657,14 @@ func (this ActivityStreamsAttachmentPropertyIterator) JSONLDContext() map[string 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() { @@ -1573,6 +1723,8 @@ func (this ActivityStreamsAttachmentPropertyIterator) JSONLDContext() map[string 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() { @@ -1583,12 +1735,18 @@ func (this ActivityStreamsAttachmentPropertyIterator) JSONLDContext() map[string 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() { @@ -1650,141 +1808,159 @@ func (this ActivityStreamsAttachmentPropertyIterator) KindIndex() int { if this.IsActivityStreamsBlock() { return 10 } - if this.IsActivityStreamsCollection() { + if this.IsForgeFedBranch() { return 11 } - if this.IsActivityStreamsCollectionPage() { + if this.IsActivityStreamsCollection() { return 12 } - if this.IsActivityStreamsCreate() { + if this.IsActivityStreamsCollectionPage() { return 13 } - if this.IsActivityStreamsDelete() { + if this.IsForgeFedCommit() { return 14 } - if this.IsActivityStreamsDislike() { + if this.IsActivityStreamsCreate() { return 15 } - if this.IsActivityStreamsDocument() { + if this.IsActivityStreamsDelete() { return 16 } - if this.IsTootEmoji() { + if this.IsActivityStreamsDislike() { return 17 } - if this.IsActivityStreamsEvent() { + if this.IsActivityStreamsDocument() { return 18 } - if this.IsActivityStreamsFlag() { + if this.IsTootEmoji() { return 19 } - if this.IsActivityStreamsFollow() { + if this.IsActivityStreamsEvent() { return 20 } - if this.IsActivityStreamsGroup() { + if this.IsActivityStreamsFlag() { return 21 } - if this.IsTootIdentityProof() { + if this.IsActivityStreamsFollow() { return 22 } - if this.IsActivityStreamsIgnore() { + if this.IsActivityStreamsGroup() { return 23 } - if this.IsActivityStreamsImage() { + if this.IsTootIdentityProof() { return 24 } - if this.IsActivityStreamsIntransitiveActivity() { + if this.IsActivityStreamsIgnore() { return 25 } - if this.IsActivityStreamsInvite() { + if this.IsActivityStreamsImage() { return 26 } - if this.IsActivityStreamsJoin() { + if this.IsActivityStreamsIntransitiveActivity() { return 27 } - if this.IsActivityStreamsLeave() { + if this.IsActivityStreamsInvite() { return 28 } - if this.IsActivityStreamsLike() { + if this.IsActivityStreamsJoin() { return 29 } - if this.IsActivityStreamsListen() { + if this.IsActivityStreamsLeave() { return 30 } - if this.IsActivityStreamsMention() { + if this.IsActivityStreamsLike() { return 31 } - if this.IsActivityStreamsMove() { + if this.IsActivityStreamsListen() { return 32 } - if this.IsActivityStreamsNote() { + if this.IsActivityStreamsMention() { return 33 } - if this.IsActivityStreamsOffer() { + if this.IsActivityStreamsMove() { return 34 } - if this.IsActivityStreamsOrderedCollection() { + if this.IsActivityStreamsNote() { return 35 } - if this.IsActivityStreamsOrderedCollectionPage() { + if this.IsActivityStreamsOffer() { return 36 } - if this.IsActivityStreamsOrganization() { + if this.IsActivityStreamsOrderedCollection() { return 37 } - if this.IsActivityStreamsPage() { + if this.IsActivityStreamsOrderedCollectionPage() { return 38 } - if this.IsActivityStreamsPerson() { + if this.IsActivityStreamsOrganization() { return 39 } - if this.IsActivityStreamsPlace() { + if this.IsActivityStreamsPage() { return 40 } - if this.IsActivityStreamsProfile() { + if this.IsActivityStreamsPerson() { return 41 } - if this.IsActivityStreamsQuestion() { + if this.IsActivityStreamsPlace() { return 42 } - if this.IsActivityStreamsRead() { + if this.IsActivityStreamsProfile() { return 43 } - if this.IsActivityStreamsReject() { + if this.IsForgeFedPush() { return 44 } - if this.IsActivityStreamsRelationship() { + if this.IsActivityStreamsQuestion() { return 45 } - if this.IsActivityStreamsRemove() { + if this.IsActivityStreamsRead() { return 46 } - if this.IsActivityStreamsService() { + if this.IsActivityStreamsReject() { return 47 } - if this.IsActivityStreamsTentativeAccept() { + if this.IsActivityStreamsRelationship() { return 48 } - if this.IsActivityStreamsTentativeReject() { + if this.IsActivityStreamsRemove() { return 49 } - if this.IsActivityStreamsTombstone() { + if this.IsForgeFedRepository() { return 50 } - if this.IsActivityStreamsTravel() { + if this.IsActivityStreamsService() { return 51 } - if this.IsActivityStreamsUndo() { + if this.IsActivityStreamsTentativeAccept() { return 52 } - if this.IsActivityStreamsUpdate() { + if this.IsActivityStreamsTentativeReject() { return 53 } - if this.IsActivityStreamsVideo() { + if this.IsForgeFedTicket() { return 54 } - if this.IsActivityStreamsView() { + 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 } @@ -1824,10 +2000,14 @@ func (this ActivityStreamsAttachmentPropertyIterator) LessThan(o vocab.ActivityS 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() { @@ -1886,6 +2066,8 @@ func (this ActivityStreamsAttachmentPropertyIterator) LessThan(o vocab.ActivityS 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() { @@ -1896,12 +2078,18 @@ func (this ActivityStreamsAttachmentPropertyIterator) LessThan(o vocab.ActivityS 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() { @@ -2325,6 +2513,48 @@ func (this *ActivityStreamsAttachmentPropertyIterator) SetActivityStreamsView(v this.activitystreamsViewMember = v } +// SetForgeFedBranch sets the value of this property. Calling IsForgeFedBranch +// afterwards returns true. +func (this *ActivityStreamsAttachmentPropertyIterator) SetForgeFedBranch(v vocab.ForgeFedBranch) { + this.clear() + this.forgefedBranchMember = v +} + +// SetForgeFedCommit sets the value of this property. Calling IsForgeFedCommit +// afterwards returns true. +func (this *ActivityStreamsAttachmentPropertyIterator) SetForgeFedCommit(v vocab.ForgeFedCommit) { + this.clear() + this.forgefedCommitMember = v +} + +// SetForgeFedPush sets the value of this property. Calling IsForgeFedPush +// afterwards returns true. +func (this *ActivityStreamsAttachmentPropertyIterator) SetForgeFedPush(v vocab.ForgeFedPush) { + this.clear() + this.forgefedPushMember = v +} + +// SetForgeFedRepository sets the value of this property. Calling +// IsForgeFedRepository afterwards returns true. +func (this *ActivityStreamsAttachmentPropertyIterator) SetForgeFedRepository(v vocab.ForgeFedRepository) { + this.clear() + this.forgefedRepositoryMember = v +} + +// SetForgeFedTicket sets the value of this property. Calling IsForgeFedTicket +// afterwards returns true. +func (this *ActivityStreamsAttachmentPropertyIterator) SetForgeFedTicket(v vocab.ForgeFedTicket) { + this.clear() + this.forgefedTicketMember = v +} + +// SetForgeFedTicketDependency sets the value of this property. Calling +// IsForgeFedTicketDependency afterwards returns true. +func (this *ActivityStreamsAttachmentPropertyIterator) SetForgeFedTicketDependency(v vocab.ForgeFedTicketDependency) { + this.clear() + this.forgefedTicketDependencyMember = v +} + // SetIRI sets the value of this property. Calling IsIRI afterwards returns true. func (this *ActivityStreamsAttachmentPropertyIterator) SetIRI(v *url.URL) { this.clear() @@ -2392,6 +2622,10 @@ func (this *ActivityStreamsAttachmentPropertyIterator) SetType(t vocab.Type) err 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 @@ -2400,6 +2634,10 @@ func (this *ActivityStreamsAttachmentPropertyIterator) SetType(t vocab.Type) err 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 @@ -2516,6 +2754,10 @@ func (this *ActivityStreamsAttachmentPropertyIterator) SetType(t vocab.Type) err 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 @@ -2536,6 +2778,10 @@ func (this *ActivityStreamsAttachmentPropertyIterator) SetType(t vocab.Type) err 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 @@ -2548,6 +2794,14 @@ func (this *ActivityStreamsAttachmentPropertyIterator) SetType(t vocab.Type) err 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 @@ -2590,8 +2844,10 @@ func (this *ActivityStreamsAttachmentPropertyIterator) clear() { 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 @@ -2621,14 +2877,18 @@ func (this *ActivityStreamsAttachmentPropertyIterator) clear() { 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 @@ -2666,10 +2926,14 @@ func (this ActivityStreamsAttachmentPropertyIterator) serialize() (interface{}, 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() { @@ -2728,6 +2992,8 @@ func (this ActivityStreamsAttachmentPropertyIterator) serialize() (interface{}, 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() { @@ -2738,12 +3004,18 @@ func (this ActivityStreamsAttachmentPropertyIterator) serialize() (interface{}, 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() { @@ -3431,6 +3703,74 @@ func (this *ActivityStreamsAttachmentProperty) AppendActivityStreamsView(v vocab }) } +// AppendForgeFedBranch appends a Branch value to the back of a list of the +// property "attachment". Invalidates iterators that are traversing using Prev. +func (this *ActivityStreamsAttachmentProperty) AppendForgeFedBranch(v vocab.ForgeFedBranch) { + this.properties = append(this.properties, &ActivityStreamsAttachmentPropertyIterator{ + alias: this.alias, + forgefedBranchMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendForgeFedCommit appends a Commit value to the back of a list of the +// property "attachment". Invalidates iterators that are traversing using Prev. +func (this *ActivityStreamsAttachmentProperty) AppendForgeFedCommit(v vocab.ForgeFedCommit) { + this.properties = append(this.properties, &ActivityStreamsAttachmentPropertyIterator{ + alias: this.alias, + forgefedCommitMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendForgeFedPush appends a Push value to the back of a list of the property +// "attachment". Invalidates iterators that are traversing using Prev. +func (this *ActivityStreamsAttachmentProperty) AppendForgeFedPush(v vocab.ForgeFedPush) { + this.properties = append(this.properties, &ActivityStreamsAttachmentPropertyIterator{ + alias: this.alias, + forgefedPushMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendForgeFedRepository appends a Repository value to the back of a list of +// the property "attachment". Invalidates iterators that are traversing using +// Prev. +func (this *ActivityStreamsAttachmentProperty) AppendForgeFedRepository(v vocab.ForgeFedRepository) { + this.properties = append(this.properties, &ActivityStreamsAttachmentPropertyIterator{ + alias: this.alias, + forgefedRepositoryMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendForgeFedTicket appends a Ticket value to the back of a list of the +// property "attachment". Invalidates iterators that are traversing using Prev. +func (this *ActivityStreamsAttachmentProperty) AppendForgeFedTicket(v vocab.ForgeFedTicket) { + this.properties = append(this.properties, &ActivityStreamsAttachmentPropertyIterator{ + alias: this.alias, + forgefedTicketMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendForgeFedTicketDependency appends a TicketDependency value to the back of +// a list of the property "attachment". Invalidates iterators that are +// traversing using Prev. +func (this *ActivityStreamsAttachmentProperty) AppendForgeFedTicketDependency(v vocab.ForgeFedTicketDependency) { + this.properties = append(this.properties, &ActivityStreamsAttachmentPropertyIterator{ + alias: this.alias, + forgefedTicketDependencyMember: v, + myIdx: this.Len(), + parent: this, + }) +} + // AppendIRI appends an IRI value to the back of a list of the property // "attachment" func (this *ActivityStreamsAttachmentProperty) AppendIRI(v *url.URL) { @@ -4429,6 +4769,108 @@ func (this *ActivityStreamsAttachmentProperty) InsertActivityStreamsView(idx int } } +// InsertForgeFedBranch inserts a Branch value at the specified index for a +// property "attachment". Existing elements at that index and higher are +// shifted back once. Invalidates all iterators. +func (this *ActivityStreamsAttachmentProperty) InsertForgeFedBranch(idx int, v vocab.ForgeFedBranch) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsAttachmentPropertyIterator{ + alias: this.alias, + forgefedBranchMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertForgeFedCommit inserts a Commit value at the specified index for a +// property "attachment". Existing elements at that index and higher are +// shifted back once. Invalidates all iterators. +func (this *ActivityStreamsAttachmentProperty) InsertForgeFedCommit(idx int, v vocab.ForgeFedCommit) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsAttachmentPropertyIterator{ + alias: this.alias, + forgefedCommitMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertForgeFedPush inserts a Push value at the specified index for a property +// "attachment". Existing elements at that index and higher are shifted back +// once. Invalidates all iterators. +func (this *ActivityStreamsAttachmentProperty) InsertForgeFedPush(idx int, v vocab.ForgeFedPush) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsAttachmentPropertyIterator{ + alias: this.alias, + forgefedPushMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertForgeFedRepository inserts a Repository value at the specified index for +// a property "attachment". Existing elements at that index and higher are +// shifted back once. Invalidates all iterators. +func (this *ActivityStreamsAttachmentProperty) InsertForgeFedRepository(idx int, v vocab.ForgeFedRepository) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsAttachmentPropertyIterator{ + alias: this.alias, + forgefedRepositoryMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertForgeFedTicket inserts a Ticket value at the specified index for a +// property "attachment". Existing elements at that index and higher are +// shifted back once. Invalidates all iterators. +func (this *ActivityStreamsAttachmentProperty) InsertForgeFedTicket(idx int, v vocab.ForgeFedTicket) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsAttachmentPropertyIterator{ + alias: this.alias, + forgefedTicketMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertForgeFedTicketDependency inserts a TicketDependency value at the +// specified index for a property "attachment". Existing elements at that +// index and higher are shifted back once. Invalidates all iterators. +func (this *ActivityStreamsAttachmentProperty) InsertForgeFedTicketDependency(idx int, v vocab.ForgeFedTicketDependency) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsAttachmentPropertyIterator{ + alias: this.alias, + forgefedTicketDependencyMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + // Insert inserts an IRI value at the specified index for a property "attachment". // Existing elements at that index and higher are shifted back once. // Invalidates all iterators. @@ -4586,182 +5028,206 @@ func (this ActivityStreamsAttachmentProperty) Less(i, j int) bool { rhs := this.properties[j].GetActivityStreamsBlock() return lhs.LessThan(rhs) } else if idx1 == 11 { + lhs := this.properties[i].GetForgeFedBranch() + rhs := this.properties[j].GetForgeFedBranch() + return lhs.LessThan(rhs) + } else if idx1 == 12 { lhs := this.properties[i].GetActivityStreamsCollection() rhs := this.properties[j].GetActivityStreamsCollection() return lhs.LessThan(rhs) - } else if idx1 == 12 { + } else if idx1 == 13 { lhs := this.properties[i].GetActivityStreamsCollectionPage() rhs := this.properties[j].GetActivityStreamsCollectionPage() return lhs.LessThan(rhs) - } else if idx1 == 13 { + } else if idx1 == 14 { + lhs := this.properties[i].GetForgeFedCommit() + rhs := this.properties[j].GetForgeFedCommit() + return lhs.LessThan(rhs) + } else if idx1 == 15 { lhs := this.properties[i].GetActivityStreamsCreate() rhs := this.properties[j].GetActivityStreamsCreate() return lhs.LessThan(rhs) - } else if idx1 == 14 { + } else if idx1 == 16 { lhs := this.properties[i].GetActivityStreamsDelete() rhs := this.properties[j].GetActivityStreamsDelete() return lhs.LessThan(rhs) - } else if idx1 == 15 { + } else if idx1 == 17 { lhs := this.properties[i].GetActivityStreamsDislike() rhs := this.properties[j].GetActivityStreamsDislike() return lhs.LessThan(rhs) - } else if idx1 == 16 { + } else if idx1 == 18 { lhs := this.properties[i].GetActivityStreamsDocument() rhs := this.properties[j].GetActivityStreamsDocument() return lhs.LessThan(rhs) - } else if idx1 == 17 { + } else if idx1 == 19 { lhs := this.properties[i].GetTootEmoji() rhs := this.properties[j].GetTootEmoji() return lhs.LessThan(rhs) - } else if idx1 == 18 { + } else if idx1 == 20 { lhs := this.properties[i].GetActivityStreamsEvent() rhs := this.properties[j].GetActivityStreamsEvent() return lhs.LessThan(rhs) - } else if idx1 == 19 { + } else if idx1 == 21 { lhs := this.properties[i].GetActivityStreamsFlag() rhs := this.properties[j].GetActivityStreamsFlag() return lhs.LessThan(rhs) - } else if idx1 == 20 { + } else if idx1 == 22 { lhs := this.properties[i].GetActivityStreamsFollow() rhs := this.properties[j].GetActivityStreamsFollow() return lhs.LessThan(rhs) - } else if idx1 == 21 { + } else if idx1 == 23 { lhs := this.properties[i].GetActivityStreamsGroup() rhs := this.properties[j].GetActivityStreamsGroup() return lhs.LessThan(rhs) - } else if idx1 == 22 { + } else if idx1 == 24 { lhs := this.properties[i].GetTootIdentityProof() rhs := this.properties[j].GetTootIdentityProof() return lhs.LessThan(rhs) - } else if idx1 == 23 { + } else if idx1 == 25 { lhs := this.properties[i].GetActivityStreamsIgnore() rhs := this.properties[j].GetActivityStreamsIgnore() return lhs.LessThan(rhs) - } else if idx1 == 24 { + } else if idx1 == 26 { lhs := this.properties[i].GetActivityStreamsImage() rhs := this.properties[j].GetActivityStreamsImage() return lhs.LessThan(rhs) - } else if idx1 == 25 { + } else if idx1 == 27 { lhs := this.properties[i].GetActivityStreamsIntransitiveActivity() rhs := this.properties[j].GetActivityStreamsIntransitiveActivity() return lhs.LessThan(rhs) - } else if idx1 == 26 { + } else if idx1 == 28 { lhs := this.properties[i].GetActivityStreamsInvite() rhs := this.properties[j].GetActivityStreamsInvite() return lhs.LessThan(rhs) - } else if idx1 == 27 { + } else if idx1 == 29 { lhs := this.properties[i].GetActivityStreamsJoin() rhs := this.properties[j].GetActivityStreamsJoin() return lhs.LessThan(rhs) - } else if idx1 == 28 { + } else if idx1 == 30 { lhs := this.properties[i].GetActivityStreamsLeave() rhs := this.properties[j].GetActivityStreamsLeave() return lhs.LessThan(rhs) - } else if idx1 == 29 { + } else if idx1 == 31 { lhs := this.properties[i].GetActivityStreamsLike() rhs := this.properties[j].GetActivityStreamsLike() return lhs.LessThan(rhs) - } else if idx1 == 30 { + } else if idx1 == 32 { lhs := this.properties[i].GetActivityStreamsListen() rhs := this.properties[j].GetActivityStreamsListen() return lhs.LessThan(rhs) - } else if idx1 == 31 { + } else if idx1 == 33 { lhs := this.properties[i].GetActivityStreamsMention() rhs := this.properties[j].GetActivityStreamsMention() return lhs.LessThan(rhs) - } else if idx1 == 32 { + } else if idx1 == 34 { lhs := this.properties[i].GetActivityStreamsMove() rhs := this.properties[j].GetActivityStreamsMove() return lhs.LessThan(rhs) - } else if idx1 == 33 { + } else if idx1 == 35 { lhs := this.properties[i].GetActivityStreamsNote() rhs := this.properties[j].GetActivityStreamsNote() return lhs.LessThan(rhs) - } else if idx1 == 34 { + } else if idx1 == 36 { lhs := this.properties[i].GetActivityStreamsOffer() rhs := this.properties[j].GetActivityStreamsOffer() return lhs.LessThan(rhs) - } else if idx1 == 35 { + } else if idx1 == 37 { lhs := this.properties[i].GetActivityStreamsOrderedCollection() rhs := this.properties[j].GetActivityStreamsOrderedCollection() return lhs.LessThan(rhs) - } else if idx1 == 36 { + } else if idx1 == 38 { lhs := this.properties[i].GetActivityStreamsOrderedCollectionPage() rhs := this.properties[j].GetActivityStreamsOrderedCollectionPage() return lhs.LessThan(rhs) - } else if idx1 == 37 { + } else if idx1 == 39 { lhs := this.properties[i].GetActivityStreamsOrganization() rhs := this.properties[j].GetActivityStreamsOrganization() return lhs.LessThan(rhs) - } else if idx1 == 38 { + } else if idx1 == 40 { lhs := this.properties[i].GetActivityStreamsPage() rhs := this.properties[j].GetActivityStreamsPage() return lhs.LessThan(rhs) - } else if idx1 == 39 { + } else if idx1 == 41 { lhs := this.properties[i].GetActivityStreamsPerson() rhs := this.properties[j].GetActivityStreamsPerson() return lhs.LessThan(rhs) - } else if idx1 == 40 { + } else if idx1 == 42 { lhs := this.properties[i].GetActivityStreamsPlace() rhs := this.properties[j].GetActivityStreamsPlace() return lhs.LessThan(rhs) - } else if idx1 == 41 { + } else if idx1 == 43 { lhs := this.properties[i].GetActivityStreamsProfile() rhs := this.properties[j].GetActivityStreamsProfile() return lhs.LessThan(rhs) - } else if idx1 == 42 { + } else if idx1 == 44 { + lhs := this.properties[i].GetForgeFedPush() + rhs := this.properties[j].GetForgeFedPush() + return lhs.LessThan(rhs) + } else if idx1 == 45 { lhs := this.properties[i].GetActivityStreamsQuestion() rhs := this.properties[j].GetActivityStreamsQuestion() return lhs.LessThan(rhs) - } else if idx1 == 43 { + } else if idx1 == 46 { lhs := this.properties[i].GetActivityStreamsRead() rhs := this.properties[j].GetActivityStreamsRead() return lhs.LessThan(rhs) - } else if idx1 == 44 { + } else if idx1 == 47 { lhs := this.properties[i].GetActivityStreamsReject() rhs := this.properties[j].GetActivityStreamsReject() return lhs.LessThan(rhs) - } else if idx1 == 45 { + } else if idx1 == 48 { lhs := this.properties[i].GetActivityStreamsRelationship() rhs := this.properties[j].GetActivityStreamsRelationship() return lhs.LessThan(rhs) - } else if idx1 == 46 { + } else if idx1 == 49 { lhs := this.properties[i].GetActivityStreamsRemove() rhs := this.properties[j].GetActivityStreamsRemove() return lhs.LessThan(rhs) - } else if idx1 == 47 { + } else if idx1 == 50 { + lhs := this.properties[i].GetForgeFedRepository() + rhs := this.properties[j].GetForgeFedRepository() + return lhs.LessThan(rhs) + } else if idx1 == 51 { lhs := this.properties[i].GetActivityStreamsService() rhs := this.properties[j].GetActivityStreamsService() return lhs.LessThan(rhs) - } else if idx1 == 48 { + } else if idx1 == 52 { lhs := this.properties[i].GetActivityStreamsTentativeAccept() rhs := this.properties[j].GetActivityStreamsTentativeAccept() return lhs.LessThan(rhs) - } else if idx1 == 49 { + } else if idx1 == 53 { lhs := this.properties[i].GetActivityStreamsTentativeReject() rhs := this.properties[j].GetActivityStreamsTentativeReject() return lhs.LessThan(rhs) - } else if idx1 == 50 { + } else if idx1 == 54 { + lhs := this.properties[i].GetForgeFedTicket() + rhs := this.properties[j].GetForgeFedTicket() + return lhs.LessThan(rhs) + } else if idx1 == 55 { + lhs := this.properties[i].GetForgeFedTicketDependency() + rhs := this.properties[j].GetForgeFedTicketDependency() + return lhs.LessThan(rhs) + } else if idx1 == 56 { lhs := this.properties[i].GetActivityStreamsTombstone() rhs := this.properties[j].GetActivityStreamsTombstone() return lhs.LessThan(rhs) - } else if idx1 == 51 { + } else if idx1 == 57 { lhs := this.properties[i].GetActivityStreamsTravel() rhs := this.properties[j].GetActivityStreamsTravel() return lhs.LessThan(rhs) - } else if idx1 == 52 { + } else if idx1 == 58 { lhs := this.properties[i].GetActivityStreamsUndo() rhs := this.properties[j].GetActivityStreamsUndo() return lhs.LessThan(rhs) - } else if idx1 == 53 { + } else if idx1 == 59 { lhs := this.properties[i].GetActivityStreamsUpdate() rhs := this.properties[j].GetActivityStreamsUpdate() return lhs.LessThan(rhs) - } else if idx1 == 54 { + } else if idx1 == 60 { lhs := this.properties[i].GetActivityStreamsVideo() rhs := this.properties[j].GetActivityStreamsVideo() return lhs.LessThan(rhs) - } else if idx1 == 55 { + } else if idx1 == 61 { lhs := this.properties[i].GetActivityStreamsView() rhs := this.properties[j].GetActivityStreamsView() return lhs.LessThan(rhs) @@ -5562,6 +6028,90 @@ func (this *ActivityStreamsAttachmentProperty) PrependActivityStreamsView(v voca } } +// PrependForgeFedBranch prepends a Branch value to the front of a list of the +// property "attachment". Invalidates all iterators. +func (this *ActivityStreamsAttachmentProperty) PrependForgeFedBranch(v vocab.ForgeFedBranch) { + this.properties = append([]*ActivityStreamsAttachmentPropertyIterator{{ + alias: this.alias, + forgefedBranchMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependForgeFedCommit prepends a Commit value to the front of a list of the +// property "attachment". Invalidates all iterators. +func (this *ActivityStreamsAttachmentProperty) PrependForgeFedCommit(v vocab.ForgeFedCommit) { + this.properties = append([]*ActivityStreamsAttachmentPropertyIterator{{ + alias: this.alias, + forgefedCommitMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependForgeFedPush prepends a Push value to the front of a list of the +// property "attachment". Invalidates all iterators. +func (this *ActivityStreamsAttachmentProperty) PrependForgeFedPush(v vocab.ForgeFedPush) { + this.properties = append([]*ActivityStreamsAttachmentPropertyIterator{{ + alias: this.alias, + forgefedPushMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependForgeFedRepository prepends a Repository value to the front of a list of +// the property "attachment". Invalidates all iterators. +func (this *ActivityStreamsAttachmentProperty) PrependForgeFedRepository(v vocab.ForgeFedRepository) { + this.properties = append([]*ActivityStreamsAttachmentPropertyIterator{{ + alias: this.alias, + forgefedRepositoryMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependForgeFedTicket prepends a Ticket value to the front of a list of the +// property "attachment". Invalidates all iterators. +func (this *ActivityStreamsAttachmentProperty) PrependForgeFedTicket(v vocab.ForgeFedTicket) { + this.properties = append([]*ActivityStreamsAttachmentPropertyIterator{{ + alias: this.alias, + forgefedTicketMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependForgeFedTicketDependency prepends a TicketDependency value to the front +// of a list of the property "attachment". Invalidates all iterators. +func (this *ActivityStreamsAttachmentProperty) PrependForgeFedTicketDependency(v vocab.ForgeFedTicketDependency) { + this.properties = append([]*ActivityStreamsAttachmentPropertyIterator{{ + alias: this.alias, + forgefedTicketDependencyMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + // PrependIRI prepends an IRI value to the front of a list of the property // "attachment". func (this *ActivityStreamsAttachmentProperty) PrependIRI(v *url.URL) { @@ -6358,6 +6908,84 @@ func (this *ActivityStreamsAttachmentProperty) SetActivityStreamsView(idx int, v } } +// SetForgeFedBranch sets a Branch value to be at the specified index for the +// property "attachment". Panics if the index is out of bounds. Invalidates +// all iterators. +func (this *ActivityStreamsAttachmentProperty) SetForgeFedBranch(idx int, v vocab.ForgeFedBranch) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsAttachmentPropertyIterator{ + alias: this.alias, + forgefedBranchMember: v, + myIdx: idx, + parent: this, + } +} + +// SetForgeFedCommit sets a Commit value to be at the specified index for the +// property "attachment". Panics if the index is out of bounds. Invalidates +// all iterators. +func (this *ActivityStreamsAttachmentProperty) SetForgeFedCommit(idx int, v vocab.ForgeFedCommit) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsAttachmentPropertyIterator{ + alias: this.alias, + forgefedCommitMember: v, + myIdx: idx, + parent: this, + } +} + +// SetForgeFedPush sets a Push value to be at the specified index for the property +// "attachment". Panics if the index is out of bounds. Invalidates all +// iterators. +func (this *ActivityStreamsAttachmentProperty) SetForgeFedPush(idx int, v vocab.ForgeFedPush) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsAttachmentPropertyIterator{ + alias: this.alias, + forgefedPushMember: v, + myIdx: idx, + parent: this, + } +} + +// SetForgeFedRepository sets a Repository value to be at the specified index for +// the property "attachment". Panics if the index is out of bounds. +// Invalidates all iterators. +func (this *ActivityStreamsAttachmentProperty) SetForgeFedRepository(idx int, v vocab.ForgeFedRepository) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsAttachmentPropertyIterator{ + alias: this.alias, + forgefedRepositoryMember: v, + myIdx: idx, + parent: this, + } +} + +// SetForgeFedTicket sets a Ticket value to be at the specified index for the +// property "attachment". Panics if the index is out of bounds. Invalidates +// all iterators. +func (this *ActivityStreamsAttachmentProperty) SetForgeFedTicket(idx int, v vocab.ForgeFedTicket) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsAttachmentPropertyIterator{ + alias: this.alias, + forgefedTicketMember: v, + myIdx: idx, + parent: this, + } +} + +// SetForgeFedTicketDependency sets a TicketDependency value to be at the +// specified index for the property "attachment". Panics if the index is out +// of bounds. Invalidates all iterators. +func (this *ActivityStreamsAttachmentProperty) SetForgeFedTicketDependency(idx int, v vocab.ForgeFedTicketDependency) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsAttachmentPropertyIterator{ + alias: this.alias, + forgefedTicketDependencyMember: v, + myIdx: idx, + parent: this, + } +} + // SetIRI sets an IRI value to be at the specified index for the property // "attachment". Panics if the index is out of bounds. func (this *ActivityStreamsAttachmentProperty) SetIRI(idx int, v *url.URL) { diff --git a/streams/impl/activitystreams/property_attributedto/gen_pkg.go b/streams/impl/activitystreams/property_attributedto/gen_pkg.go index 4955180..bccd4bd 100644 --- a/streams/impl/activitystreams/property_attributedto/gen_pkg.go +++ b/streams/impl/activitystreams/property_attributedto/gen_pkg.go @@ -45,6 +45,10 @@ type privateManager interface { // 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" @@ -53,6 +57,10 @@ type privateManager interface { // 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" @@ -177,6 +185,9 @@ type privateManager interface { // 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" @@ -197,6 +208,10 @@ type privateManager interface { // 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" @@ -209,6 +224,14 @@ type privateManager interface { // 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" diff --git a/streams/impl/activitystreams/property_attributedto/gen_property_activitystreams_attributedTo.go b/streams/impl/activitystreams/property_attributedto/gen_property_activitystreams_attributedTo.go index 4eade4b..ca378cb 100644 --- a/streams/impl/activitystreams/property_attributedto/gen_property_activitystreams_attributedTo.go +++ b/streams/impl/activitystreams/property_attributedto/gen_property_activitystreams_attributedTo.go @@ -25,8 +25,10 @@ type ActivityStreamsAttributedToPropertyIterator struct { 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 @@ -56,14 +58,18 @@ type ActivityStreamsAttributedToPropertyIterator struct { 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 @@ -169,6 +175,12 @@ func deserializeActivityStreamsAttributedToPropertyIterator(i interface{}, alias alias: alias, } return this, nil + } else if v, err := mgr.DeserializeBranchForgeFed()(m, aliasMap); err == nil { + this := &ActivityStreamsAttributedToPropertyIterator{ + alias: alias, + forgefedBranchMember: v, + } + return this, nil } else if v, err := mgr.DeserializeCollectionActivityStreams()(m, aliasMap); err == nil { this := &ActivityStreamsAttributedToPropertyIterator{ activitystreamsCollectionMember: v, @@ -181,6 +193,12 @@ func deserializeActivityStreamsAttributedToPropertyIterator(i interface{}, alias alias: alias, } return this, nil + } else if v, err := mgr.DeserializeCommitForgeFed()(m, aliasMap); err == nil { + this := &ActivityStreamsAttributedToPropertyIterator{ + alias: alias, + forgefedCommitMember: v, + } + return this, nil } else if v, err := mgr.DeserializeCreateActivityStreams()(m, aliasMap); err == nil { this := &ActivityStreamsAttributedToPropertyIterator{ activitystreamsCreateMember: v, @@ -355,6 +373,12 @@ func deserializeActivityStreamsAttributedToPropertyIterator(i interface{}, alias alias: alias, } return this, nil + } else if v, err := mgr.DeserializePushForgeFed()(m, aliasMap); err == nil { + this := &ActivityStreamsAttributedToPropertyIterator{ + alias: alias, + forgefedPushMember: v, + } + return this, nil } else if v, err := mgr.DeserializeQuestionActivityStreams()(m, aliasMap); err == nil { this := &ActivityStreamsAttributedToPropertyIterator{ activitystreamsQuestionMember: v, @@ -385,6 +409,12 @@ func deserializeActivityStreamsAttributedToPropertyIterator(i interface{}, alias alias: alias, } return this, nil + } else if v, err := mgr.DeserializeRepositoryForgeFed()(m, aliasMap); err == nil { + this := &ActivityStreamsAttributedToPropertyIterator{ + alias: alias, + forgefedRepositoryMember: v, + } + return this, nil } else if v, err := mgr.DeserializeServiceActivityStreams()(m, aliasMap); err == nil { this := &ActivityStreamsAttributedToPropertyIterator{ activitystreamsServiceMember: v, @@ -403,6 +433,18 @@ func deserializeActivityStreamsAttributedToPropertyIterator(i interface{}, alias alias: alias, } return this, nil + } else if v, err := mgr.DeserializeTicketForgeFed()(m, aliasMap); err == nil { + this := &ActivityStreamsAttributedToPropertyIterator{ + alias: alias, + forgefedTicketMember: v, + } + return this, nil + } else if v, err := mgr.DeserializeTicketDependencyForgeFed()(m, aliasMap); err == nil { + this := &ActivityStreamsAttributedToPropertyIterator{ + alias: alias, + forgefedTicketDependencyMember: v, + } + return this, nil } else if v, err := mgr.DeserializeTombstoneActivityStreams()(m, aliasMap); err == nil { this := &ActivityStreamsAttributedToPropertyIterator{ activitystreamsTombstoneMember: v, @@ -826,6 +868,44 @@ func (this ActivityStreamsAttributedToPropertyIterator) GetActivityStreamsView() return this.activitystreamsViewMember } +// GetForgeFedBranch returns the value of this property. When IsForgeFedBranch +// returns false, GetForgeFedBranch will return an arbitrary value. +func (this ActivityStreamsAttributedToPropertyIterator) GetForgeFedBranch() vocab.ForgeFedBranch { + return this.forgefedBranchMember +} + +// GetForgeFedCommit returns the value of this property. When IsForgeFedCommit +// returns false, GetForgeFedCommit will return an arbitrary value. +func (this ActivityStreamsAttributedToPropertyIterator) GetForgeFedCommit() vocab.ForgeFedCommit { + return this.forgefedCommitMember +} + +// GetForgeFedPush returns the value of this property. When IsForgeFedPush returns +// false, GetForgeFedPush will return an arbitrary value. +func (this ActivityStreamsAttributedToPropertyIterator) GetForgeFedPush() vocab.ForgeFedPush { + return this.forgefedPushMember +} + +// GetForgeFedRepository returns the value of this property. When +// IsForgeFedRepository returns false, GetForgeFedRepository will return an +// arbitrary value. +func (this ActivityStreamsAttributedToPropertyIterator) GetForgeFedRepository() vocab.ForgeFedRepository { + return this.forgefedRepositoryMember +} + +// GetForgeFedTicket returns the value of this property. When IsForgeFedTicket +// returns false, GetForgeFedTicket will return an arbitrary value. +func (this ActivityStreamsAttributedToPropertyIterator) GetForgeFedTicket() vocab.ForgeFedTicket { + return this.forgefedTicketMember +} + +// GetForgeFedTicketDependency returns the value of this property. When +// IsForgeFedTicketDependency returns false, GetForgeFedTicketDependency will +// return an arbitrary value. +func (this ActivityStreamsAttributedToPropertyIterator) GetForgeFedTicketDependency() vocab.ForgeFedTicketDependency { + return this.forgefedTicketDependencyMember +} + // GetIRI returns the IRI of this property. When IsIRI returns false, GetIRI will // return an arbitrary value. func (this ActivityStreamsAttributedToPropertyIterator) GetIRI() *url.URL { @@ -881,12 +961,18 @@ func (this ActivityStreamsAttributedToPropertyIterator) GetType() vocab.Type { 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() } @@ -974,6 +1060,9 @@ func (this ActivityStreamsAttributedToPropertyIterator) GetType() vocab.Type { if this.IsActivityStreamsProfile() { return this.GetActivityStreamsProfile() } + if this.IsForgeFedPush() { + return this.GetForgeFedPush() + } if this.IsActivityStreamsQuestion() { return this.GetActivityStreamsQuestion() } @@ -989,6 +1078,9 @@ func (this ActivityStreamsAttributedToPropertyIterator) GetType() vocab.Type { if this.IsActivityStreamsRemove() { return this.GetActivityStreamsRemove() } + if this.IsForgeFedRepository() { + return this.GetForgeFedRepository() + } if this.IsActivityStreamsService() { return this.GetActivityStreamsService() } @@ -998,6 +1090,12 @@ func (this ActivityStreamsAttributedToPropertyIterator) GetType() vocab.Type { if this.IsActivityStreamsTentativeReject() { return this.GetActivityStreamsTentativeReject() } + if this.IsForgeFedTicket() { + return this.GetForgeFedTicket() + } + if this.IsForgeFedTicketDependency() { + return this.GetForgeFedTicketDependency() + } if this.IsActivityStreamsTombstone() { return this.GetActivityStreamsTombstone() } @@ -1033,8 +1131,10 @@ func (this ActivityStreamsAttributedToPropertyIterator) HasAny() bool { this.IsActivityStreamsArticle() || this.IsActivityStreamsAudio() || this.IsActivityStreamsBlock() || + this.IsForgeFedBranch() || this.IsActivityStreamsCollection() || this.IsActivityStreamsCollectionPage() || + this.IsForgeFedCommit() || this.IsActivityStreamsCreate() || this.IsActivityStreamsDelete() || this.IsActivityStreamsDislike() || @@ -1064,14 +1164,18 @@ func (this ActivityStreamsAttributedToPropertyIterator) HasAny() bool { 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() || @@ -1464,6 +1568,48 @@ func (this ActivityStreamsAttributedToPropertyIterator) IsActivityStreamsView() return this.activitystreamsViewMember != nil } +// IsForgeFedBranch returns true if this property has a type of "Branch". When +// true, use the GetForgeFedBranch and SetForgeFedBranch methods to access and +// set this property. +func (this ActivityStreamsAttributedToPropertyIterator) IsForgeFedBranch() bool { + return this.forgefedBranchMember != nil +} + +// IsForgeFedCommit returns true if this property has a type of "Commit". When +// true, use the GetForgeFedCommit and SetForgeFedCommit methods to access and +// set this property. +func (this ActivityStreamsAttributedToPropertyIterator) IsForgeFedCommit() bool { + return this.forgefedCommitMember != nil +} + +// IsForgeFedPush returns true if this property has a type of "Push". When true, +// use the GetForgeFedPush and SetForgeFedPush methods to access and set this +// property. +func (this ActivityStreamsAttributedToPropertyIterator) IsForgeFedPush() bool { + return this.forgefedPushMember != nil +} + +// IsForgeFedRepository returns true if this property has a type of "Repository". +// When true, use the GetForgeFedRepository and SetForgeFedRepository methods +// to access and set this property. +func (this ActivityStreamsAttributedToPropertyIterator) IsForgeFedRepository() bool { + return this.forgefedRepositoryMember != nil +} + +// IsForgeFedTicket returns true if this property has a type of "Ticket". When +// true, use the GetForgeFedTicket and SetForgeFedTicket methods to access and +// set this property. +func (this ActivityStreamsAttributedToPropertyIterator) IsForgeFedTicket() bool { + return this.forgefedTicketMember != nil +} + +// IsForgeFedTicketDependency returns true if this property has a type of +// "TicketDependency". When true, use the GetForgeFedTicketDependency and +// SetForgeFedTicketDependency methods to access and set this property. +func (this ActivityStreamsAttributedToPropertyIterator) IsForgeFedTicketDependency() bool { + return this.forgefedTicketDependencyMember != nil +} + // IsIRI returns true if this property is an IRI. When true, use GetIRI and SetIRI // to access and set this property func (this ActivityStreamsAttributedToPropertyIterator) IsIRI() bool { @@ -1511,10 +1657,14 @@ func (this ActivityStreamsAttributedToPropertyIterator) JSONLDContext() map[stri 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() { @@ -1573,6 +1723,8 @@ func (this ActivityStreamsAttributedToPropertyIterator) JSONLDContext() map[stri 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() { @@ -1583,12 +1735,18 @@ func (this ActivityStreamsAttributedToPropertyIterator) JSONLDContext() map[stri 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() { @@ -1650,141 +1808,159 @@ func (this ActivityStreamsAttributedToPropertyIterator) KindIndex() int { if this.IsActivityStreamsBlock() { return 10 } - if this.IsActivityStreamsCollection() { + if this.IsForgeFedBranch() { return 11 } - if this.IsActivityStreamsCollectionPage() { + if this.IsActivityStreamsCollection() { return 12 } - if this.IsActivityStreamsCreate() { + if this.IsActivityStreamsCollectionPage() { return 13 } - if this.IsActivityStreamsDelete() { + if this.IsForgeFedCommit() { return 14 } - if this.IsActivityStreamsDislike() { + if this.IsActivityStreamsCreate() { return 15 } - if this.IsActivityStreamsDocument() { + if this.IsActivityStreamsDelete() { return 16 } - if this.IsTootEmoji() { + if this.IsActivityStreamsDislike() { return 17 } - if this.IsActivityStreamsEvent() { + if this.IsActivityStreamsDocument() { return 18 } - if this.IsActivityStreamsFlag() { + if this.IsTootEmoji() { return 19 } - if this.IsActivityStreamsFollow() { + if this.IsActivityStreamsEvent() { return 20 } - if this.IsActivityStreamsGroup() { + if this.IsActivityStreamsFlag() { return 21 } - if this.IsTootIdentityProof() { + if this.IsActivityStreamsFollow() { return 22 } - if this.IsActivityStreamsIgnore() { + if this.IsActivityStreamsGroup() { return 23 } - if this.IsActivityStreamsImage() { + if this.IsTootIdentityProof() { return 24 } - if this.IsActivityStreamsIntransitiveActivity() { + if this.IsActivityStreamsIgnore() { return 25 } - if this.IsActivityStreamsInvite() { + if this.IsActivityStreamsImage() { return 26 } - if this.IsActivityStreamsJoin() { + if this.IsActivityStreamsIntransitiveActivity() { return 27 } - if this.IsActivityStreamsLeave() { + if this.IsActivityStreamsInvite() { return 28 } - if this.IsActivityStreamsLike() { + if this.IsActivityStreamsJoin() { return 29 } - if this.IsActivityStreamsListen() { + if this.IsActivityStreamsLeave() { return 30 } - if this.IsActivityStreamsMention() { + if this.IsActivityStreamsLike() { return 31 } - if this.IsActivityStreamsMove() { + if this.IsActivityStreamsListen() { return 32 } - if this.IsActivityStreamsNote() { + if this.IsActivityStreamsMention() { return 33 } - if this.IsActivityStreamsOffer() { + if this.IsActivityStreamsMove() { return 34 } - if this.IsActivityStreamsOrderedCollection() { + if this.IsActivityStreamsNote() { return 35 } - if this.IsActivityStreamsOrderedCollectionPage() { + if this.IsActivityStreamsOffer() { return 36 } - if this.IsActivityStreamsOrganization() { + if this.IsActivityStreamsOrderedCollection() { return 37 } - if this.IsActivityStreamsPage() { + if this.IsActivityStreamsOrderedCollectionPage() { return 38 } - if this.IsActivityStreamsPerson() { + if this.IsActivityStreamsOrganization() { return 39 } - if this.IsActivityStreamsPlace() { + if this.IsActivityStreamsPage() { return 40 } - if this.IsActivityStreamsProfile() { + if this.IsActivityStreamsPerson() { return 41 } - if this.IsActivityStreamsQuestion() { + if this.IsActivityStreamsPlace() { return 42 } - if this.IsActivityStreamsRead() { + if this.IsActivityStreamsProfile() { return 43 } - if this.IsActivityStreamsReject() { + if this.IsForgeFedPush() { return 44 } - if this.IsActivityStreamsRelationship() { + if this.IsActivityStreamsQuestion() { return 45 } - if this.IsActivityStreamsRemove() { + if this.IsActivityStreamsRead() { return 46 } - if this.IsActivityStreamsService() { + if this.IsActivityStreamsReject() { return 47 } - if this.IsActivityStreamsTentativeAccept() { + if this.IsActivityStreamsRelationship() { return 48 } - if this.IsActivityStreamsTentativeReject() { + if this.IsActivityStreamsRemove() { return 49 } - if this.IsActivityStreamsTombstone() { + if this.IsForgeFedRepository() { return 50 } - if this.IsActivityStreamsTravel() { + if this.IsActivityStreamsService() { return 51 } - if this.IsActivityStreamsUndo() { + if this.IsActivityStreamsTentativeAccept() { return 52 } - if this.IsActivityStreamsUpdate() { + if this.IsActivityStreamsTentativeReject() { return 53 } - if this.IsActivityStreamsVideo() { + if this.IsForgeFedTicket() { return 54 } - if this.IsActivityStreamsView() { + 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 } @@ -1824,10 +2000,14 @@ func (this ActivityStreamsAttributedToPropertyIterator) LessThan(o vocab.Activit 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() { @@ -1886,6 +2066,8 @@ func (this ActivityStreamsAttributedToPropertyIterator) LessThan(o vocab.Activit 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() { @@ -1896,12 +2078,18 @@ func (this ActivityStreamsAttributedToPropertyIterator) LessThan(o vocab.Activit 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() { @@ -2325,6 +2513,48 @@ func (this *ActivityStreamsAttributedToPropertyIterator) SetActivityStreamsView( this.activitystreamsViewMember = v } +// SetForgeFedBranch sets the value of this property. Calling IsForgeFedBranch +// afterwards returns true. +func (this *ActivityStreamsAttributedToPropertyIterator) SetForgeFedBranch(v vocab.ForgeFedBranch) { + this.clear() + this.forgefedBranchMember = v +} + +// SetForgeFedCommit sets the value of this property. Calling IsForgeFedCommit +// afterwards returns true. +func (this *ActivityStreamsAttributedToPropertyIterator) SetForgeFedCommit(v vocab.ForgeFedCommit) { + this.clear() + this.forgefedCommitMember = v +} + +// SetForgeFedPush sets the value of this property. Calling IsForgeFedPush +// afterwards returns true. +func (this *ActivityStreamsAttributedToPropertyIterator) SetForgeFedPush(v vocab.ForgeFedPush) { + this.clear() + this.forgefedPushMember = v +} + +// SetForgeFedRepository sets the value of this property. Calling +// IsForgeFedRepository afterwards returns true. +func (this *ActivityStreamsAttributedToPropertyIterator) SetForgeFedRepository(v vocab.ForgeFedRepository) { + this.clear() + this.forgefedRepositoryMember = v +} + +// SetForgeFedTicket sets the value of this property. Calling IsForgeFedTicket +// afterwards returns true. +func (this *ActivityStreamsAttributedToPropertyIterator) SetForgeFedTicket(v vocab.ForgeFedTicket) { + this.clear() + this.forgefedTicketMember = v +} + +// SetForgeFedTicketDependency sets the value of this property. Calling +// IsForgeFedTicketDependency afterwards returns true. +func (this *ActivityStreamsAttributedToPropertyIterator) SetForgeFedTicketDependency(v vocab.ForgeFedTicketDependency) { + this.clear() + this.forgefedTicketDependencyMember = v +} + // SetIRI sets the value of this property. Calling IsIRI afterwards returns true. func (this *ActivityStreamsAttributedToPropertyIterator) SetIRI(v *url.URL) { this.clear() @@ -2392,6 +2622,10 @@ func (this *ActivityStreamsAttributedToPropertyIterator) SetType(t vocab.Type) e 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 @@ -2400,6 +2634,10 @@ func (this *ActivityStreamsAttributedToPropertyIterator) SetType(t vocab.Type) e 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 @@ -2516,6 +2754,10 @@ func (this *ActivityStreamsAttributedToPropertyIterator) SetType(t vocab.Type) e 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 @@ -2536,6 +2778,10 @@ func (this *ActivityStreamsAttributedToPropertyIterator) SetType(t vocab.Type) e 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 @@ -2548,6 +2794,14 @@ func (this *ActivityStreamsAttributedToPropertyIterator) SetType(t vocab.Type) e 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 @@ -2590,8 +2844,10 @@ func (this *ActivityStreamsAttributedToPropertyIterator) clear() { 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 @@ -2621,14 +2877,18 @@ func (this *ActivityStreamsAttributedToPropertyIterator) clear() { 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 @@ -2666,10 +2926,14 @@ func (this ActivityStreamsAttributedToPropertyIterator) serialize() (interface{} 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() { @@ -2728,6 +2992,8 @@ func (this ActivityStreamsAttributedToPropertyIterator) serialize() (interface{} 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() { @@ -2738,12 +3004,18 @@ func (this ActivityStreamsAttributedToPropertyIterator) serialize() (interface{} 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() { @@ -3467,6 +3739,77 @@ func (this *ActivityStreamsAttributedToProperty) AppendActivityStreamsView(v voc }) } +// AppendForgeFedBranch appends a Branch value to the back of a list of the +// property "attributedTo". Invalidates iterators that are traversing using +// Prev. +func (this *ActivityStreamsAttributedToProperty) AppendForgeFedBranch(v vocab.ForgeFedBranch) { + this.properties = append(this.properties, &ActivityStreamsAttributedToPropertyIterator{ + alias: this.alias, + forgefedBranchMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendForgeFedCommit appends a Commit value to the back of a list of the +// property "attributedTo". Invalidates iterators that are traversing using +// Prev. +func (this *ActivityStreamsAttributedToProperty) AppendForgeFedCommit(v vocab.ForgeFedCommit) { + this.properties = append(this.properties, &ActivityStreamsAttributedToPropertyIterator{ + alias: this.alias, + forgefedCommitMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendForgeFedPush appends a Push value to the back of a list of the property +// "attributedTo". Invalidates iterators that are traversing using Prev. +func (this *ActivityStreamsAttributedToProperty) AppendForgeFedPush(v vocab.ForgeFedPush) { + this.properties = append(this.properties, &ActivityStreamsAttributedToPropertyIterator{ + alias: this.alias, + forgefedPushMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendForgeFedRepository appends a Repository value to the back of a list of +// the property "attributedTo". Invalidates iterators that are traversing +// using Prev. +func (this *ActivityStreamsAttributedToProperty) AppendForgeFedRepository(v vocab.ForgeFedRepository) { + this.properties = append(this.properties, &ActivityStreamsAttributedToPropertyIterator{ + alias: this.alias, + forgefedRepositoryMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendForgeFedTicket appends a Ticket value to the back of a list of the +// property "attributedTo". Invalidates iterators that are traversing using +// Prev. +func (this *ActivityStreamsAttributedToProperty) AppendForgeFedTicket(v vocab.ForgeFedTicket) { + this.properties = append(this.properties, &ActivityStreamsAttributedToPropertyIterator{ + alias: this.alias, + forgefedTicketMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendForgeFedTicketDependency appends a TicketDependency value to the back of +// a list of the property "attributedTo". Invalidates iterators that are +// traversing using Prev. +func (this *ActivityStreamsAttributedToProperty) AppendForgeFedTicketDependency(v vocab.ForgeFedTicketDependency) { + this.properties = append(this.properties, &ActivityStreamsAttributedToPropertyIterator{ + alias: this.alias, + forgefedTicketDependencyMember: v, + myIdx: this.Len(), + parent: this, + }) +} + // AppendIRI appends an IRI value to the back of a list of the property // "attributedTo" func (this *ActivityStreamsAttributedToProperty) AppendIRI(v *url.URL) { @@ -4466,6 +4809,108 @@ func (this *ActivityStreamsAttributedToProperty) InsertActivityStreamsView(idx i } } +// InsertForgeFedBranch inserts a Branch value at the specified index for a +// property "attributedTo". Existing elements at that index and higher are +// shifted back once. Invalidates all iterators. +func (this *ActivityStreamsAttributedToProperty) InsertForgeFedBranch(idx int, v vocab.ForgeFedBranch) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsAttributedToPropertyIterator{ + alias: this.alias, + forgefedBranchMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertForgeFedCommit inserts a Commit value at the specified index for a +// property "attributedTo". Existing elements at that index and higher are +// shifted back once. Invalidates all iterators. +func (this *ActivityStreamsAttributedToProperty) InsertForgeFedCommit(idx int, v vocab.ForgeFedCommit) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsAttributedToPropertyIterator{ + alias: this.alias, + forgefedCommitMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertForgeFedPush inserts a Push value at the specified index for a property +// "attributedTo". Existing elements at that index and higher are shifted back +// once. Invalidates all iterators. +func (this *ActivityStreamsAttributedToProperty) InsertForgeFedPush(idx int, v vocab.ForgeFedPush) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsAttributedToPropertyIterator{ + alias: this.alias, + forgefedPushMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertForgeFedRepository inserts a Repository value at the specified index for +// a property "attributedTo". Existing elements at that index and higher are +// shifted back once. Invalidates all iterators. +func (this *ActivityStreamsAttributedToProperty) InsertForgeFedRepository(idx int, v vocab.ForgeFedRepository) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsAttributedToPropertyIterator{ + alias: this.alias, + forgefedRepositoryMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertForgeFedTicket inserts a Ticket value at the specified index for a +// property "attributedTo". Existing elements at that index and higher are +// shifted back once. Invalidates all iterators. +func (this *ActivityStreamsAttributedToProperty) InsertForgeFedTicket(idx int, v vocab.ForgeFedTicket) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsAttributedToPropertyIterator{ + alias: this.alias, + forgefedTicketMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertForgeFedTicketDependency inserts a TicketDependency value at the +// specified index for a property "attributedTo". Existing elements at that +// index and higher are shifted back once. Invalidates all iterators. +func (this *ActivityStreamsAttributedToProperty) InsertForgeFedTicketDependency(idx int, v vocab.ForgeFedTicketDependency) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsAttributedToPropertyIterator{ + alias: this.alias, + forgefedTicketDependencyMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + // Insert inserts an IRI value at the specified index for a property // "attributedTo". Existing elements at that index and higher are shifted back // once. Invalidates all iterators. @@ -4623,182 +5068,206 @@ func (this ActivityStreamsAttributedToProperty) Less(i, j int) bool { rhs := this.properties[j].GetActivityStreamsBlock() return lhs.LessThan(rhs) } else if idx1 == 11 { + lhs := this.properties[i].GetForgeFedBranch() + rhs := this.properties[j].GetForgeFedBranch() + return lhs.LessThan(rhs) + } else if idx1 == 12 { lhs := this.properties[i].GetActivityStreamsCollection() rhs := this.properties[j].GetActivityStreamsCollection() return lhs.LessThan(rhs) - } else if idx1 == 12 { + } else if idx1 == 13 { lhs := this.properties[i].GetActivityStreamsCollectionPage() rhs := this.properties[j].GetActivityStreamsCollectionPage() return lhs.LessThan(rhs) - } else if idx1 == 13 { + } else if idx1 == 14 { + lhs := this.properties[i].GetForgeFedCommit() + rhs := this.properties[j].GetForgeFedCommit() + return lhs.LessThan(rhs) + } else if idx1 == 15 { lhs := this.properties[i].GetActivityStreamsCreate() rhs := this.properties[j].GetActivityStreamsCreate() return lhs.LessThan(rhs) - } else if idx1 == 14 { + } else if idx1 == 16 { lhs := this.properties[i].GetActivityStreamsDelete() rhs := this.properties[j].GetActivityStreamsDelete() return lhs.LessThan(rhs) - } else if idx1 == 15 { + } else if idx1 == 17 { lhs := this.properties[i].GetActivityStreamsDislike() rhs := this.properties[j].GetActivityStreamsDislike() return lhs.LessThan(rhs) - } else if idx1 == 16 { + } else if idx1 == 18 { lhs := this.properties[i].GetActivityStreamsDocument() rhs := this.properties[j].GetActivityStreamsDocument() return lhs.LessThan(rhs) - } else if idx1 == 17 { + } else if idx1 == 19 { lhs := this.properties[i].GetTootEmoji() rhs := this.properties[j].GetTootEmoji() return lhs.LessThan(rhs) - } else if idx1 == 18 { + } else if idx1 == 20 { lhs := this.properties[i].GetActivityStreamsEvent() rhs := this.properties[j].GetActivityStreamsEvent() return lhs.LessThan(rhs) - } else if idx1 == 19 { + } else if idx1 == 21 { lhs := this.properties[i].GetActivityStreamsFlag() rhs := this.properties[j].GetActivityStreamsFlag() return lhs.LessThan(rhs) - } else if idx1 == 20 { + } else if idx1 == 22 { lhs := this.properties[i].GetActivityStreamsFollow() rhs := this.properties[j].GetActivityStreamsFollow() return lhs.LessThan(rhs) - } else if idx1 == 21 { + } else if idx1 == 23 { lhs := this.properties[i].GetActivityStreamsGroup() rhs := this.properties[j].GetActivityStreamsGroup() return lhs.LessThan(rhs) - } else if idx1 == 22 { + } else if idx1 == 24 { lhs := this.properties[i].GetTootIdentityProof() rhs := this.properties[j].GetTootIdentityProof() return lhs.LessThan(rhs) - } else if idx1 == 23 { + } else if idx1 == 25 { lhs := this.properties[i].GetActivityStreamsIgnore() rhs := this.properties[j].GetActivityStreamsIgnore() return lhs.LessThan(rhs) - } else if idx1 == 24 { + } else if idx1 == 26 { lhs := this.properties[i].GetActivityStreamsImage() rhs := this.properties[j].GetActivityStreamsImage() return lhs.LessThan(rhs) - } else if idx1 == 25 { + } else if idx1 == 27 { lhs := this.properties[i].GetActivityStreamsIntransitiveActivity() rhs := this.properties[j].GetActivityStreamsIntransitiveActivity() return lhs.LessThan(rhs) - } else if idx1 == 26 { + } else if idx1 == 28 { lhs := this.properties[i].GetActivityStreamsInvite() rhs := this.properties[j].GetActivityStreamsInvite() return lhs.LessThan(rhs) - } else if idx1 == 27 { + } else if idx1 == 29 { lhs := this.properties[i].GetActivityStreamsJoin() rhs := this.properties[j].GetActivityStreamsJoin() return lhs.LessThan(rhs) - } else if idx1 == 28 { + } else if idx1 == 30 { lhs := this.properties[i].GetActivityStreamsLeave() rhs := this.properties[j].GetActivityStreamsLeave() return lhs.LessThan(rhs) - } else if idx1 == 29 { + } else if idx1 == 31 { lhs := this.properties[i].GetActivityStreamsLike() rhs := this.properties[j].GetActivityStreamsLike() return lhs.LessThan(rhs) - } else if idx1 == 30 { + } else if idx1 == 32 { lhs := this.properties[i].GetActivityStreamsListen() rhs := this.properties[j].GetActivityStreamsListen() return lhs.LessThan(rhs) - } else if idx1 == 31 { + } else if idx1 == 33 { lhs := this.properties[i].GetActivityStreamsMention() rhs := this.properties[j].GetActivityStreamsMention() return lhs.LessThan(rhs) - } else if idx1 == 32 { + } else if idx1 == 34 { lhs := this.properties[i].GetActivityStreamsMove() rhs := this.properties[j].GetActivityStreamsMove() return lhs.LessThan(rhs) - } else if idx1 == 33 { + } else if idx1 == 35 { lhs := this.properties[i].GetActivityStreamsNote() rhs := this.properties[j].GetActivityStreamsNote() return lhs.LessThan(rhs) - } else if idx1 == 34 { + } else if idx1 == 36 { lhs := this.properties[i].GetActivityStreamsOffer() rhs := this.properties[j].GetActivityStreamsOffer() return lhs.LessThan(rhs) - } else if idx1 == 35 { + } else if idx1 == 37 { lhs := this.properties[i].GetActivityStreamsOrderedCollection() rhs := this.properties[j].GetActivityStreamsOrderedCollection() return lhs.LessThan(rhs) - } else if idx1 == 36 { + } else if idx1 == 38 { lhs := this.properties[i].GetActivityStreamsOrderedCollectionPage() rhs := this.properties[j].GetActivityStreamsOrderedCollectionPage() return lhs.LessThan(rhs) - } else if idx1 == 37 { + } else if idx1 == 39 { lhs := this.properties[i].GetActivityStreamsOrganization() rhs := this.properties[j].GetActivityStreamsOrganization() return lhs.LessThan(rhs) - } else if idx1 == 38 { + } else if idx1 == 40 { lhs := this.properties[i].GetActivityStreamsPage() rhs := this.properties[j].GetActivityStreamsPage() return lhs.LessThan(rhs) - } else if idx1 == 39 { + } else if idx1 == 41 { lhs := this.properties[i].GetActivityStreamsPerson() rhs := this.properties[j].GetActivityStreamsPerson() return lhs.LessThan(rhs) - } else if idx1 == 40 { + } else if idx1 == 42 { lhs := this.properties[i].GetActivityStreamsPlace() rhs := this.properties[j].GetActivityStreamsPlace() return lhs.LessThan(rhs) - } else if idx1 == 41 { + } else if idx1 == 43 { lhs := this.properties[i].GetActivityStreamsProfile() rhs := this.properties[j].GetActivityStreamsProfile() return lhs.LessThan(rhs) - } else if idx1 == 42 { + } else if idx1 == 44 { + lhs := this.properties[i].GetForgeFedPush() + rhs := this.properties[j].GetForgeFedPush() + return lhs.LessThan(rhs) + } else if idx1 == 45 { lhs := this.properties[i].GetActivityStreamsQuestion() rhs := this.properties[j].GetActivityStreamsQuestion() return lhs.LessThan(rhs) - } else if idx1 == 43 { + } else if idx1 == 46 { lhs := this.properties[i].GetActivityStreamsRead() rhs := this.properties[j].GetActivityStreamsRead() return lhs.LessThan(rhs) - } else if idx1 == 44 { + } else if idx1 == 47 { lhs := this.properties[i].GetActivityStreamsReject() rhs := this.properties[j].GetActivityStreamsReject() return lhs.LessThan(rhs) - } else if idx1 == 45 { + } else if idx1 == 48 { lhs := this.properties[i].GetActivityStreamsRelationship() rhs := this.properties[j].GetActivityStreamsRelationship() return lhs.LessThan(rhs) - } else if idx1 == 46 { + } else if idx1 == 49 { lhs := this.properties[i].GetActivityStreamsRemove() rhs := this.properties[j].GetActivityStreamsRemove() return lhs.LessThan(rhs) - } else if idx1 == 47 { + } else if idx1 == 50 { + lhs := this.properties[i].GetForgeFedRepository() + rhs := this.properties[j].GetForgeFedRepository() + return lhs.LessThan(rhs) + } else if idx1 == 51 { lhs := this.properties[i].GetActivityStreamsService() rhs := this.properties[j].GetActivityStreamsService() return lhs.LessThan(rhs) - } else if idx1 == 48 { + } else if idx1 == 52 { lhs := this.properties[i].GetActivityStreamsTentativeAccept() rhs := this.properties[j].GetActivityStreamsTentativeAccept() return lhs.LessThan(rhs) - } else if idx1 == 49 { + } else if idx1 == 53 { lhs := this.properties[i].GetActivityStreamsTentativeReject() rhs := this.properties[j].GetActivityStreamsTentativeReject() return lhs.LessThan(rhs) - } else if idx1 == 50 { + } else if idx1 == 54 { + lhs := this.properties[i].GetForgeFedTicket() + rhs := this.properties[j].GetForgeFedTicket() + return lhs.LessThan(rhs) + } else if idx1 == 55 { + lhs := this.properties[i].GetForgeFedTicketDependency() + rhs := this.properties[j].GetForgeFedTicketDependency() + return lhs.LessThan(rhs) + } else if idx1 == 56 { lhs := this.properties[i].GetActivityStreamsTombstone() rhs := this.properties[j].GetActivityStreamsTombstone() return lhs.LessThan(rhs) - } else if idx1 == 51 { + } else if idx1 == 57 { lhs := this.properties[i].GetActivityStreamsTravel() rhs := this.properties[j].GetActivityStreamsTravel() return lhs.LessThan(rhs) - } else if idx1 == 52 { + } else if idx1 == 58 { lhs := this.properties[i].GetActivityStreamsUndo() rhs := this.properties[j].GetActivityStreamsUndo() return lhs.LessThan(rhs) - } else if idx1 == 53 { + } else if idx1 == 59 { lhs := this.properties[i].GetActivityStreamsUpdate() rhs := this.properties[j].GetActivityStreamsUpdate() return lhs.LessThan(rhs) - } else if idx1 == 54 { + } else if idx1 == 60 { lhs := this.properties[i].GetActivityStreamsVideo() rhs := this.properties[j].GetActivityStreamsVideo() return lhs.LessThan(rhs) - } else if idx1 == 55 { + } else if idx1 == 61 { lhs := this.properties[i].GetActivityStreamsView() rhs := this.properties[j].GetActivityStreamsView() return lhs.LessThan(rhs) @@ -5600,6 +6069,90 @@ func (this *ActivityStreamsAttributedToProperty) PrependActivityStreamsView(v vo } } +// PrependForgeFedBranch prepends a Branch value to the front of a list of the +// property "attributedTo". Invalidates all iterators. +func (this *ActivityStreamsAttributedToProperty) PrependForgeFedBranch(v vocab.ForgeFedBranch) { + this.properties = append([]*ActivityStreamsAttributedToPropertyIterator{{ + alias: this.alias, + forgefedBranchMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependForgeFedCommit prepends a Commit value to the front of a list of the +// property "attributedTo". Invalidates all iterators. +func (this *ActivityStreamsAttributedToProperty) PrependForgeFedCommit(v vocab.ForgeFedCommit) { + this.properties = append([]*ActivityStreamsAttributedToPropertyIterator{{ + alias: this.alias, + forgefedCommitMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependForgeFedPush prepends a Push value to the front of a list of the +// property "attributedTo". Invalidates all iterators. +func (this *ActivityStreamsAttributedToProperty) PrependForgeFedPush(v vocab.ForgeFedPush) { + this.properties = append([]*ActivityStreamsAttributedToPropertyIterator{{ + alias: this.alias, + forgefedPushMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependForgeFedRepository prepends a Repository value to the front of a list of +// the property "attributedTo". Invalidates all iterators. +func (this *ActivityStreamsAttributedToProperty) PrependForgeFedRepository(v vocab.ForgeFedRepository) { + this.properties = append([]*ActivityStreamsAttributedToPropertyIterator{{ + alias: this.alias, + forgefedRepositoryMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependForgeFedTicket prepends a Ticket value to the front of a list of the +// property "attributedTo". Invalidates all iterators. +func (this *ActivityStreamsAttributedToProperty) PrependForgeFedTicket(v vocab.ForgeFedTicket) { + this.properties = append([]*ActivityStreamsAttributedToPropertyIterator{{ + alias: this.alias, + forgefedTicketMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependForgeFedTicketDependency prepends a TicketDependency value to the front +// of a list of the property "attributedTo". Invalidates all iterators. +func (this *ActivityStreamsAttributedToProperty) PrependForgeFedTicketDependency(v vocab.ForgeFedTicketDependency) { + this.properties = append([]*ActivityStreamsAttributedToPropertyIterator{{ + alias: this.alias, + forgefedTicketDependencyMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + // PrependIRI prepends an IRI value to the front of a list of the property // "attributedTo". func (this *ActivityStreamsAttributedToProperty) PrependIRI(v *url.URL) { @@ -6396,6 +6949,84 @@ func (this *ActivityStreamsAttributedToProperty) SetActivityStreamsView(idx int, } } +// SetForgeFedBranch sets a Branch value to be at the specified index for the +// property "attributedTo". Panics if the index is out of bounds. Invalidates +// all iterators. +func (this *ActivityStreamsAttributedToProperty) SetForgeFedBranch(idx int, v vocab.ForgeFedBranch) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsAttributedToPropertyIterator{ + alias: this.alias, + forgefedBranchMember: v, + myIdx: idx, + parent: this, + } +} + +// SetForgeFedCommit sets a Commit value to be at the specified index for the +// property "attributedTo". Panics if the index is out of bounds. Invalidates +// all iterators. +func (this *ActivityStreamsAttributedToProperty) SetForgeFedCommit(idx int, v vocab.ForgeFedCommit) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsAttributedToPropertyIterator{ + alias: this.alias, + forgefedCommitMember: v, + myIdx: idx, + parent: this, + } +} + +// SetForgeFedPush sets a Push value to be at the specified index for the property +// "attributedTo". Panics if the index is out of bounds. Invalidates all +// iterators. +func (this *ActivityStreamsAttributedToProperty) SetForgeFedPush(idx int, v vocab.ForgeFedPush) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsAttributedToPropertyIterator{ + alias: this.alias, + forgefedPushMember: v, + myIdx: idx, + parent: this, + } +} + +// SetForgeFedRepository sets a Repository value to be at the specified index for +// the property "attributedTo". Panics if the index is out of bounds. +// Invalidates all iterators. +func (this *ActivityStreamsAttributedToProperty) SetForgeFedRepository(idx int, v vocab.ForgeFedRepository) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsAttributedToPropertyIterator{ + alias: this.alias, + forgefedRepositoryMember: v, + myIdx: idx, + parent: this, + } +} + +// SetForgeFedTicket sets a Ticket value to be at the specified index for the +// property "attributedTo". Panics if the index is out of bounds. Invalidates +// all iterators. +func (this *ActivityStreamsAttributedToProperty) SetForgeFedTicket(idx int, v vocab.ForgeFedTicket) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsAttributedToPropertyIterator{ + alias: this.alias, + forgefedTicketMember: v, + myIdx: idx, + parent: this, + } +} + +// SetForgeFedTicketDependency sets a TicketDependency value to be at the +// specified index for the property "attributedTo". Panics if the index is out +// of bounds. Invalidates all iterators. +func (this *ActivityStreamsAttributedToProperty) SetForgeFedTicketDependency(idx int, v vocab.ForgeFedTicketDependency) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsAttributedToPropertyIterator{ + alias: this.alias, + forgefedTicketDependencyMember: v, + myIdx: idx, + parent: this, + } +} + // SetIRI sets an IRI value to be at the specified index for the property // "attributedTo". Panics if the index is out of bounds. func (this *ActivityStreamsAttributedToProperty) SetIRI(idx int, v *url.URL) { diff --git a/streams/impl/activitystreams/property_audience/gen_pkg.go b/streams/impl/activitystreams/property_audience/gen_pkg.go index 89401e7..9f7a550 100644 --- a/streams/impl/activitystreams/property_audience/gen_pkg.go +++ b/streams/impl/activitystreams/property_audience/gen_pkg.go @@ -45,6 +45,10 @@ type privateManager interface { // 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" @@ -53,6 +57,10 @@ type privateManager interface { // 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" @@ -177,6 +185,9 @@ type privateManager interface { // 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" @@ -197,6 +208,10 @@ type privateManager interface { // 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" @@ -209,6 +224,14 @@ type privateManager interface { // 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" diff --git a/streams/impl/activitystreams/property_audience/gen_property_activitystreams_audience.go b/streams/impl/activitystreams/property_audience/gen_property_activitystreams_audience.go index 188a078..aca72d1 100644 --- a/streams/impl/activitystreams/property_audience/gen_property_activitystreams_audience.go +++ b/streams/impl/activitystreams/property_audience/gen_property_activitystreams_audience.go @@ -25,8 +25,10 @@ type ActivityStreamsAudiencePropertyIterator struct { 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 @@ -56,14 +58,18 @@ type ActivityStreamsAudiencePropertyIterator struct { 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 @@ -169,6 +175,12 @@ func deserializeActivityStreamsAudiencePropertyIterator(i interface{}, aliasMap alias: alias, } return this, nil + } else if v, err := mgr.DeserializeBranchForgeFed()(m, aliasMap); err == nil { + this := &ActivityStreamsAudiencePropertyIterator{ + alias: alias, + forgefedBranchMember: v, + } + return this, nil } else if v, err := mgr.DeserializeCollectionActivityStreams()(m, aliasMap); err == nil { this := &ActivityStreamsAudiencePropertyIterator{ activitystreamsCollectionMember: v, @@ -181,6 +193,12 @@ func deserializeActivityStreamsAudiencePropertyIterator(i interface{}, aliasMap alias: alias, } return this, nil + } else if v, err := mgr.DeserializeCommitForgeFed()(m, aliasMap); err == nil { + this := &ActivityStreamsAudiencePropertyIterator{ + alias: alias, + forgefedCommitMember: v, + } + return this, nil } else if v, err := mgr.DeserializeCreateActivityStreams()(m, aliasMap); err == nil { this := &ActivityStreamsAudiencePropertyIterator{ activitystreamsCreateMember: v, @@ -355,6 +373,12 @@ func deserializeActivityStreamsAudiencePropertyIterator(i interface{}, aliasMap alias: alias, } return this, nil + } else if v, err := mgr.DeserializePushForgeFed()(m, aliasMap); err == nil { + this := &ActivityStreamsAudiencePropertyIterator{ + alias: alias, + forgefedPushMember: v, + } + return this, nil } else if v, err := mgr.DeserializeQuestionActivityStreams()(m, aliasMap); err == nil { this := &ActivityStreamsAudiencePropertyIterator{ activitystreamsQuestionMember: v, @@ -385,6 +409,12 @@ func deserializeActivityStreamsAudiencePropertyIterator(i interface{}, aliasMap alias: alias, } return this, nil + } else if v, err := mgr.DeserializeRepositoryForgeFed()(m, aliasMap); err == nil { + this := &ActivityStreamsAudiencePropertyIterator{ + alias: alias, + forgefedRepositoryMember: v, + } + return this, nil } else if v, err := mgr.DeserializeServiceActivityStreams()(m, aliasMap); err == nil { this := &ActivityStreamsAudiencePropertyIterator{ activitystreamsServiceMember: v, @@ -403,6 +433,18 @@ func deserializeActivityStreamsAudiencePropertyIterator(i interface{}, aliasMap alias: alias, } return this, nil + } else if v, err := mgr.DeserializeTicketForgeFed()(m, aliasMap); err == nil { + this := &ActivityStreamsAudiencePropertyIterator{ + alias: alias, + forgefedTicketMember: v, + } + return this, nil + } else if v, err := mgr.DeserializeTicketDependencyForgeFed()(m, aliasMap); err == nil { + this := &ActivityStreamsAudiencePropertyIterator{ + alias: alias, + forgefedTicketDependencyMember: v, + } + return this, nil } else if v, err := mgr.DeserializeTombstoneActivityStreams()(m, aliasMap); err == nil { this := &ActivityStreamsAudiencePropertyIterator{ activitystreamsTombstoneMember: v, @@ -826,6 +868,44 @@ func (this ActivityStreamsAudiencePropertyIterator) GetActivityStreamsView() voc return this.activitystreamsViewMember } +// GetForgeFedBranch returns the value of this property. When IsForgeFedBranch +// returns false, GetForgeFedBranch will return an arbitrary value. +func (this ActivityStreamsAudiencePropertyIterator) GetForgeFedBranch() vocab.ForgeFedBranch { + return this.forgefedBranchMember +} + +// GetForgeFedCommit returns the value of this property. When IsForgeFedCommit +// returns false, GetForgeFedCommit will return an arbitrary value. +func (this ActivityStreamsAudiencePropertyIterator) GetForgeFedCommit() vocab.ForgeFedCommit { + return this.forgefedCommitMember +} + +// GetForgeFedPush returns the value of this property. When IsForgeFedPush returns +// false, GetForgeFedPush will return an arbitrary value. +func (this ActivityStreamsAudiencePropertyIterator) GetForgeFedPush() vocab.ForgeFedPush { + return this.forgefedPushMember +} + +// GetForgeFedRepository returns the value of this property. When +// IsForgeFedRepository returns false, GetForgeFedRepository will return an +// arbitrary value. +func (this ActivityStreamsAudiencePropertyIterator) GetForgeFedRepository() vocab.ForgeFedRepository { + return this.forgefedRepositoryMember +} + +// GetForgeFedTicket returns the value of this property. When IsForgeFedTicket +// returns false, GetForgeFedTicket will return an arbitrary value. +func (this ActivityStreamsAudiencePropertyIterator) GetForgeFedTicket() vocab.ForgeFedTicket { + return this.forgefedTicketMember +} + +// GetForgeFedTicketDependency returns the value of this property. When +// IsForgeFedTicketDependency returns false, GetForgeFedTicketDependency will +// return an arbitrary value. +func (this ActivityStreamsAudiencePropertyIterator) GetForgeFedTicketDependency() vocab.ForgeFedTicketDependency { + return this.forgefedTicketDependencyMember +} + // GetIRI returns the IRI of this property. When IsIRI returns false, GetIRI will // return an arbitrary value. func (this ActivityStreamsAudiencePropertyIterator) GetIRI() *url.URL { @@ -881,12 +961,18 @@ func (this ActivityStreamsAudiencePropertyIterator) GetType() vocab.Type { 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() } @@ -974,6 +1060,9 @@ func (this ActivityStreamsAudiencePropertyIterator) GetType() vocab.Type { if this.IsActivityStreamsProfile() { return this.GetActivityStreamsProfile() } + if this.IsForgeFedPush() { + return this.GetForgeFedPush() + } if this.IsActivityStreamsQuestion() { return this.GetActivityStreamsQuestion() } @@ -989,6 +1078,9 @@ func (this ActivityStreamsAudiencePropertyIterator) GetType() vocab.Type { if this.IsActivityStreamsRemove() { return this.GetActivityStreamsRemove() } + if this.IsForgeFedRepository() { + return this.GetForgeFedRepository() + } if this.IsActivityStreamsService() { return this.GetActivityStreamsService() } @@ -998,6 +1090,12 @@ func (this ActivityStreamsAudiencePropertyIterator) GetType() vocab.Type { if this.IsActivityStreamsTentativeReject() { return this.GetActivityStreamsTentativeReject() } + if this.IsForgeFedTicket() { + return this.GetForgeFedTicket() + } + if this.IsForgeFedTicketDependency() { + return this.GetForgeFedTicketDependency() + } if this.IsActivityStreamsTombstone() { return this.GetActivityStreamsTombstone() } @@ -1033,8 +1131,10 @@ func (this ActivityStreamsAudiencePropertyIterator) HasAny() bool { this.IsActivityStreamsArticle() || this.IsActivityStreamsAudio() || this.IsActivityStreamsBlock() || + this.IsForgeFedBranch() || this.IsActivityStreamsCollection() || this.IsActivityStreamsCollectionPage() || + this.IsForgeFedCommit() || this.IsActivityStreamsCreate() || this.IsActivityStreamsDelete() || this.IsActivityStreamsDislike() || @@ -1064,14 +1164,18 @@ func (this ActivityStreamsAudiencePropertyIterator) HasAny() bool { 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() || @@ -1464,6 +1568,48 @@ func (this ActivityStreamsAudiencePropertyIterator) IsActivityStreamsView() bool return this.activitystreamsViewMember != nil } +// IsForgeFedBranch returns true if this property has a type of "Branch". When +// true, use the GetForgeFedBranch and SetForgeFedBranch methods to access and +// set this property. +func (this ActivityStreamsAudiencePropertyIterator) IsForgeFedBranch() bool { + return this.forgefedBranchMember != nil +} + +// IsForgeFedCommit returns true if this property has a type of "Commit". When +// true, use the GetForgeFedCommit and SetForgeFedCommit methods to access and +// set this property. +func (this ActivityStreamsAudiencePropertyIterator) IsForgeFedCommit() bool { + return this.forgefedCommitMember != nil +} + +// IsForgeFedPush returns true if this property has a type of "Push". When true, +// use the GetForgeFedPush and SetForgeFedPush methods to access and set this +// property. +func (this ActivityStreamsAudiencePropertyIterator) IsForgeFedPush() bool { + return this.forgefedPushMember != nil +} + +// IsForgeFedRepository returns true if this property has a type of "Repository". +// When true, use the GetForgeFedRepository and SetForgeFedRepository methods +// to access and set this property. +func (this ActivityStreamsAudiencePropertyIterator) IsForgeFedRepository() bool { + return this.forgefedRepositoryMember != nil +} + +// IsForgeFedTicket returns true if this property has a type of "Ticket". When +// true, use the GetForgeFedTicket and SetForgeFedTicket methods to access and +// set this property. +func (this ActivityStreamsAudiencePropertyIterator) IsForgeFedTicket() bool { + return this.forgefedTicketMember != nil +} + +// IsForgeFedTicketDependency returns true if this property has a type of +// "TicketDependency". When true, use the GetForgeFedTicketDependency and +// SetForgeFedTicketDependency methods to access and set this property. +func (this ActivityStreamsAudiencePropertyIterator) IsForgeFedTicketDependency() bool { + return this.forgefedTicketDependencyMember != nil +} + // IsIRI returns true if this property is an IRI. When true, use GetIRI and SetIRI // to access and set this property func (this ActivityStreamsAudiencePropertyIterator) IsIRI() bool { @@ -1511,10 +1657,14 @@ func (this ActivityStreamsAudiencePropertyIterator) JSONLDContext() map[string]s 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() { @@ -1573,6 +1723,8 @@ func (this ActivityStreamsAudiencePropertyIterator) JSONLDContext() map[string]s 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() { @@ -1583,12 +1735,18 @@ func (this ActivityStreamsAudiencePropertyIterator) JSONLDContext() map[string]s 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() { @@ -1650,141 +1808,159 @@ func (this ActivityStreamsAudiencePropertyIterator) KindIndex() int { if this.IsActivityStreamsBlock() { return 10 } - if this.IsActivityStreamsCollection() { + if this.IsForgeFedBranch() { return 11 } - if this.IsActivityStreamsCollectionPage() { + if this.IsActivityStreamsCollection() { return 12 } - if this.IsActivityStreamsCreate() { + if this.IsActivityStreamsCollectionPage() { return 13 } - if this.IsActivityStreamsDelete() { + if this.IsForgeFedCommit() { return 14 } - if this.IsActivityStreamsDislike() { + if this.IsActivityStreamsCreate() { return 15 } - if this.IsActivityStreamsDocument() { + if this.IsActivityStreamsDelete() { return 16 } - if this.IsTootEmoji() { + if this.IsActivityStreamsDislike() { return 17 } - if this.IsActivityStreamsEvent() { + if this.IsActivityStreamsDocument() { return 18 } - if this.IsActivityStreamsFlag() { + if this.IsTootEmoji() { return 19 } - if this.IsActivityStreamsFollow() { + if this.IsActivityStreamsEvent() { return 20 } - if this.IsActivityStreamsGroup() { + if this.IsActivityStreamsFlag() { return 21 } - if this.IsTootIdentityProof() { + if this.IsActivityStreamsFollow() { return 22 } - if this.IsActivityStreamsIgnore() { + if this.IsActivityStreamsGroup() { return 23 } - if this.IsActivityStreamsImage() { + if this.IsTootIdentityProof() { return 24 } - if this.IsActivityStreamsIntransitiveActivity() { + if this.IsActivityStreamsIgnore() { return 25 } - if this.IsActivityStreamsInvite() { + if this.IsActivityStreamsImage() { return 26 } - if this.IsActivityStreamsJoin() { + if this.IsActivityStreamsIntransitiveActivity() { return 27 } - if this.IsActivityStreamsLeave() { + if this.IsActivityStreamsInvite() { return 28 } - if this.IsActivityStreamsLike() { + if this.IsActivityStreamsJoin() { return 29 } - if this.IsActivityStreamsListen() { + if this.IsActivityStreamsLeave() { return 30 } - if this.IsActivityStreamsMention() { + if this.IsActivityStreamsLike() { return 31 } - if this.IsActivityStreamsMove() { + if this.IsActivityStreamsListen() { return 32 } - if this.IsActivityStreamsNote() { + if this.IsActivityStreamsMention() { return 33 } - if this.IsActivityStreamsOffer() { + if this.IsActivityStreamsMove() { return 34 } - if this.IsActivityStreamsOrderedCollection() { + if this.IsActivityStreamsNote() { return 35 } - if this.IsActivityStreamsOrderedCollectionPage() { + if this.IsActivityStreamsOffer() { return 36 } - if this.IsActivityStreamsOrganization() { + if this.IsActivityStreamsOrderedCollection() { return 37 } - if this.IsActivityStreamsPage() { + if this.IsActivityStreamsOrderedCollectionPage() { return 38 } - if this.IsActivityStreamsPerson() { + if this.IsActivityStreamsOrganization() { return 39 } - if this.IsActivityStreamsPlace() { + if this.IsActivityStreamsPage() { return 40 } - if this.IsActivityStreamsProfile() { + if this.IsActivityStreamsPerson() { return 41 } - if this.IsActivityStreamsQuestion() { + if this.IsActivityStreamsPlace() { return 42 } - if this.IsActivityStreamsRead() { + if this.IsActivityStreamsProfile() { return 43 } - if this.IsActivityStreamsReject() { + if this.IsForgeFedPush() { return 44 } - if this.IsActivityStreamsRelationship() { + if this.IsActivityStreamsQuestion() { return 45 } - if this.IsActivityStreamsRemove() { + if this.IsActivityStreamsRead() { return 46 } - if this.IsActivityStreamsService() { + if this.IsActivityStreamsReject() { return 47 } - if this.IsActivityStreamsTentativeAccept() { + if this.IsActivityStreamsRelationship() { return 48 } - if this.IsActivityStreamsTentativeReject() { + if this.IsActivityStreamsRemove() { return 49 } - if this.IsActivityStreamsTombstone() { + if this.IsForgeFedRepository() { return 50 } - if this.IsActivityStreamsTravel() { + if this.IsActivityStreamsService() { return 51 } - if this.IsActivityStreamsUndo() { + if this.IsActivityStreamsTentativeAccept() { return 52 } - if this.IsActivityStreamsUpdate() { + if this.IsActivityStreamsTentativeReject() { return 53 } - if this.IsActivityStreamsVideo() { + if this.IsForgeFedTicket() { return 54 } - if this.IsActivityStreamsView() { + 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 } @@ -1824,10 +2000,14 @@ func (this ActivityStreamsAudiencePropertyIterator) LessThan(o vocab.ActivityStr 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() { @@ -1886,6 +2066,8 @@ func (this ActivityStreamsAudiencePropertyIterator) LessThan(o vocab.ActivityStr 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() { @@ -1896,12 +2078,18 @@ func (this ActivityStreamsAudiencePropertyIterator) LessThan(o vocab.ActivityStr 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() { @@ -2325,6 +2513,48 @@ func (this *ActivityStreamsAudiencePropertyIterator) SetActivityStreamsView(v vo this.activitystreamsViewMember = v } +// SetForgeFedBranch sets the value of this property. Calling IsForgeFedBranch +// afterwards returns true. +func (this *ActivityStreamsAudiencePropertyIterator) SetForgeFedBranch(v vocab.ForgeFedBranch) { + this.clear() + this.forgefedBranchMember = v +} + +// SetForgeFedCommit sets the value of this property. Calling IsForgeFedCommit +// afterwards returns true. +func (this *ActivityStreamsAudiencePropertyIterator) SetForgeFedCommit(v vocab.ForgeFedCommit) { + this.clear() + this.forgefedCommitMember = v +} + +// SetForgeFedPush sets the value of this property. Calling IsForgeFedPush +// afterwards returns true. +func (this *ActivityStreamsAudiencePropertyIterator) SetForgeFedPush(v vocab.ForgeFedPush) { + this.clear() + this.forgefedPushMember = v +} + +// SetForgeFedRepository sets the value of this property. Calling +// IsForgeFedRepository afterwards returns true. +func (this *ActivityStreamsAudiencePropertyIterator) SetForgeFedRepository(v vocab.ForgeFedRepository) { + this.clear() + this.forgefedRepositoryMember = v +} + +// SetForgeFedTicket sets the value of this property. Calling IsForgeFedTicket +// afterwards returns true. +func (this *ActivityStreamsAudiencePropertyIterator) SetForgeFedTicket(v vocab.ForgeFedTicket) { + this.clear() + this.forgefedTicketMember = v +} + +// SetForgeFedTicketDependency sets the value of this property. Calling +// IsForgeFedTicketDependency afterwards returns true. +func (this *ActivityStreamsAudiencePropertyIterator) SetForgeFedTicketDependency(v vocab.ForgeFedTicketDependency) { + this.clear() + this.forgefedTicketDependencyMember = v +} + // SetIRI sets the value of this property. Calling IsIRI afterwards returns true. func (this *ActivityStreamsAudiencePropertyIterator) SetIRI(v *url.URL) { this.clear() @@ -2392,6 +2622,10 @@ func (this *ActivityStreamsAudiencePropertyIterator) SetType(t vocab.Type) error 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 @@ -2400,6 +2634,10 @@ func (this *ActivityStreamsAudiencePropertyIterator) SetType(t vocab.Type) error 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 @@ -2516,6 +2754,10 @@ func (this *ActivityStreamsAudiencePropertyIterator) SetType(t vocab.Type) error 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 @@ -2536,6 +2778,10 @@ func (this *ActivityStreamsAudiencePropertyIterator) SetType(t vocab.Type) error 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 @@ -2548,6 +2794,14 @@ func (this *ActivityStreamsAudiencePropertyIterator) SetType(t vocab.Type) error 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 @@ -2590,8 +2844,10 @@ func (this *ActivityStreamsAudiencePropertyIterator) clear() { 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 @@ -2621,14 +2877,18 @@ func (this *ActivityStreamsAudiencePropertyIterator) clear() { 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 @@ -2666,10 +2926,14 @@ func (this ActivityStreamsAudiencePropertyIterator) serialize() (interface{}, er 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() { @@ -2728,6 +2992,8 @@ func (this ActivityStreamsAudiencePropertyIterator) serialize() (interface{}, er 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() { @@ -2738,12 +3004,18 @@ func (this ActivityStreamsAudiencePropertyIterator) serialize() (interface{}, er 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() { @@ -3431,6 +3703,74 @@ func (this *ActivityStreamsAudienceProperty) AppendActivityStreamsView(v vocab.A }) } +// AppendForgeFedBranch appends a Branch value to the back of a list of the +// property "audience". Invalidates iterators that are traversing using Prev. +func (this *ActivityStreamsAudienceProperty) AppendForgeFedBranch(v vocab.ForgeFedBranch) { + this.properties = append(this.properties, &ActivityStreamsAudiencePropertyIterator{ + alias: this.alias, + forgefedBranchMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendForgeFedCommit appends a Commit value to the back of a list of the +// property "audience". Invalidates iterators that are traversing using Prev. +func (this *ActivityStreamsAudienceProperty) AppendForgeFedCommit(v vocab.ForgeFedCommit) { + this.properties = append(this.properties, &ActivityStreamsAudiencePropertyIterator{ + alias: this.alias, + forgefedCommitMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendForgeFedPush appends a Push value to the back of a list of the property +// "audience". Invalidates iterators that are traversing using Prev. +func (this *ActivityStreamsAudienceProperty) AppendForgeFedPush(v vocab.ForgeFedPush) { + this.properties = append(this.properties, &ActivityStreamsAudiencePropertyIterator{ + alias: this.alias, + forgefedPushMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendForgeFedRepository appends a Repository value to the back of a list of +// the property "audience". Invalidates iterators that are traversing using +// Prev. +func (this *ActivityStreamsAudienceProperty) AppendForgeFedRepository(v vocab.ForgeFedRepository) { + this.properties = append(this.properties, &ActivityStreamsAudiencePropertyIterator{ + alias: this.alias, + forgefedRepositoryMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendForgeFedTicket appends a Ticket value to the back of a list of the +// property "audience". Invalidates iterators that are traversing using Prev. +func (this *ActivityStreamsAudienceProperty) AppendForgeFedTicket(v vocab.ForgeFedTicket) { + this.properties = append(this.properties, &ActivityStreamsAudiencePropertyIterator{ + alias: this.alias, + forgefedTicketMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendForgeFedTicketDependency appends a TicketDependency value to the back of +// a list of the property "audience". Invalidates iterators that are +// traversing using Prev. +func (this *ActivityStreamsAudienceProperty) AppendForgeFedTicketDependency(v vocab.ForgeFedTicketDependency) { + this.properties = append(this.properties, &ActivityStreamsAudiencePropertyIterator{ + alias: this.alias, + forgefedTicketDependencyMember: v, + myIdx: this.Len(), + parent: this, + }) +} + // AppendIRI appends an IRI value to the back of a list of the property "audience" func (this *ActivityStreamsAudienceProperty) AppendIRI(v *url.URL) { this.properties = append(this.properties, &ActivityStreamsAudiencePropertyIterator{ @@ -4427,6 +4767,108 @@ func (this *ActivityStreamsAudienceProperty) InsertActivityStreamsView(idx int, } } +// InsertForgeFedBranch inserts a Branch value at the specified index for a +// property "audience". Existing elements at that index and higher are shifted +// back once. Invalidates all iterators. +func (this *ActivityStreamsAudienceProperty) InsertForgeFedBranch(idx int, v vocab.ForgeFedBranch) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsAudiencePropertyIterator{ + alias: this.alias, + forgefedBranchMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertForgeFedCommit inserts a Commit value at the specified index for a +// property "audience". Existing elements at that index and higher are shifted +// back once. Invalidates all iterators. +func (this *ActivityStreamsAudienceProperty) InsertForgeFedCommit(idx int, v vocab.ForgeFedCommit) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsAudiencePropertyIterator{ + alias: this.alias, + forgefedCommitMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertForgeFedPush inserts a Push value at the specified index for a property +// "audience". Existing elements at that index and higher are shifted back +// once. Invalidates all iterators. +func (this *ActivityStreamsAudienceProperty) InsertForgeFedPush(idx int, v vocab.ForgeFedPush) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsAudiencePropertyIterator{ + alias: this.alias, + forgefedPushMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertForgeFedRepository inserts a Repository value at the specified index for +// a property "audience". Existing elements at that index and higher are +// shifted back once. Invalidates all iterators. +func (this *ActivityStreamsAudienceProperty) InsertForgeFedRepository(idx int, v vocab.ForgeFedRepository) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsAudiencePropertyIterator{ + alias: this.alias, + forgefedRepositoryMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertForgeFedTicket inserts a Ticket value at the specified index for a +// property "audience". Existing elements at that index and higher are shifted +// back once. Invalidates all iterators. +func (this *ActivityStreamsAudienceProperty) InsertForgeFedTicket(idx int, v vocab.ForgeFedTicket) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsAudiencePropertyIterator{ + alias: this.alias, + forgefedTicketMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertForgeFedTicketDependency inserts a TicketDependency value at the +// specified index for a property "audience". Existing elements at that index +// and higher are shifted back once. Invalidates all iterators. +func (this *ActivityStreamsAudienceProperty) InsertForgeFedTicketDependency(idx int, v vocab.ForgeFedTicketDependency) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsAudiencePropertyIterator{ + alias: this.alias, + forgefedTicketDependencyMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + // Insert inserts an IRI value at the specified index for a property "audience". // Existing elements at that index and higher are shifted back once. // Invalidates all iterators. @@ -4584,182 +5026,206 @@ func (this ActivityStreamsAudienceProperty) Less(i, j int) bool { rhs := this.properties[j].GetActivityStreamsBlock() return lhs.LessThan(rhs) } else if idx1 == 11 { + lhs := this.properties[i].GetForgeFedBranch() + rhs := this.properties[j].GetForgeFedBranch() + return lhs.LessThan(rhs) + } else if idx1 == 12 { lhs := this.properties[i].GetActivityStreamsCollection() rhs := this.properties[j].GetActivityStreamsCollection() return lhs.LessThan(rhs) - } else if idx1 == 12 { + } else if idx1 == 13 { lhs := this.properties[i].GetActivityStreamsCollectionPage() rhs := this.properties[j].GetActivityStreamsCollectionPage() return lhs.LessThan(rhs) - } else if idx1 == 13 { + } else if idx1 == 14 { + lhs := this.properties[i].GetForgeFedCommit() + rhs := this.properties[j].GetForgeFedCommit() + return lhs.LessThan(rhs) + } else if idx1 == 15 { lhs := this.properties[i].GetActivityStreamsCreate() rhs := this.properties[j].GetActivityStreamsCreate() return lhs.LessThan(rhs) - } else if idx1 == 14 { + } else if idx1 == 16 { lhs := this.properties[i].GetActivityStreamsDelete() rhs := this.properties[j].GetActivityStreamsDelete() return lhs.LessThan(rhs) - } else if idx1 == 15 { + } else if idx1 == 17 { lhs := this.properties[i].GetActivityStreamsDislike() rhs := this.properties[j].GetActivityStreamsDislike() return lhs.LessThan(rhs) - } else if idx1 == 16 { + } else if idx1 == 18 { lhs := this.properties[i].GetActivityStreamsDocument() rhs := this.properties[j].GetActivityStreamsDocument() return lhs.LessThan(rhs) - } else if idx1 == 17 { + } else if idx1 == 19 { lhs := this.properties[i].GetTootEmoji() rhs := this.properties[j].GetTootEmoji() return lhs.LessThan(rhs) - } else if idx1 == 18 { + } else if idx1 == 20 { lhs := this.properties[i].GetActivityStreamsEvent() rhs := this.properties[j].GetActivityStreamsEvent() return lhs.LessThan(rhs) - } else if idx1 == 19 { + } else if idx1 == 21 { lhs := this.properties[i].GetActivityStreamsFlag() rhs := this.properties[j].GetActivityStreamsFlag() return lhs.LessThan(rhs) - } else if idx1 == 20 { + } else if idx1 == 22 { lhs := this.properties[i].GetActivityStreamsFollow() rhs := this.properties[j].GetActivityStreamsFollow() return lhs.LessThan(rhs) - } else if idx1 == 21 { + } else if idx1 == 23 { lhs := this.properties[i].GetActivityStreamsGroup() rhs := this.properties[j].GetActivityStreamsGroup() return lhs.LessThan(rhs) - } else if idx1 == 22 { + } else if idx1 == 24 { lhs := this.properties[i].GetTootIdentityProof() rhs := this.properties[j].GetTootIdentityProof() return lhs.LessThan(rhs) - } else if idx1 == 23 { + } else if idx1 == 25 { lhs := this.properties[i].GetActivityStreamsIgnore() rhs := this.properties[j].GetActivityStreamsIgnore() return lhs.LessThan(rhs) - } else if idx1 == 24 { + } else if idx1 == 26 { lhs := this.properties[i].GetActivityStreamsImage() rhs := this.properties[j].GetActivityStreamsImage() return lhs.LessThan(rhs) - } else if idx1 == 25 { + } else if idx1 == 27 { lhs := this.properties[i].GetActivityStreamsIntransitiveActivity() rhs := this.properties[j].GetActivityStreamsIntransitiveActivity() return lhs.LessThan(rhs) - } else if idx1 == 26 { + } else if idx1 == 28 { lhs := this.properties[i].GetActivityStreamsInvite() rhs := this.properties[j].GetActivityStreamsInvite() return lhs.LessThan(rhs) - } else if idx1 == 27 { + } else if idx1 == 29 { lhs := this.properties[i].GetActivityStreamsJoin() rhs := this.properties[j].GetActivityStreamsJoin() return lhs.LessThan(rhs) - } else if idx1 == 28 { + } else if idx1 == 30 { lhs := this.properties[i].GetActivityStreamsLeave() rhs := this.properties[j].GetActivityStreamsLeave() return lhs.LessThan(rhs) - } else if idx1 == 29 { + } else if idx1 == 31 { lhs := this.properties[i].GetActivityStreamsLike() rhs := this.properties[j].GetActivityStreamsLike() return lhs.LessThan(rhs) - } else if idx1 == 30 { + } else if idx1 == 32 { lhs := this.properties[i].GetActivityStreamsListen() rhs := this.properties[j].GetActivityStreamsListen() return lhs.LessThan(rhs) - } else if idx1 == 31 { + } else if idx1 == 33 { lhs := this.properties[i].GetActivityStreamsMention() rhs := this.properties[j].GetActivityStreamsMention() return lhs.LessThan(rhs) - } else if idx1 == 32 { + } else if idx1 == 34 { lhs := this.properties[i].GetActivityStreamsMove() rhs := this.properties[j].GetActivityStreamsMove() return lhs.LessThan(rhs) - } else if idx1 == 33 { + } else if idx1 == 35 { lhs := this.properties[i].GetActivityStreamsNote() rhs := this.properties[j].GetActivityStreamsNote() return lhs.LessThan(rhs) - } else if idx1 == 34 { + } else if idx1 == 36 { lhs := this.properties[i].GetActivityStreamsOffer() rhs := this.properties[j].GetActivityStreamsOffer() return lhs.LessThan(rhs) - } else if idx1 == 35 { + } else if idx1 == 37 { lhs := this.properties[i].GetActivityStreamsOrderedCollection() rhs := this.properties[j].GetActivityStreamsOrderedCollection() return lhs.LessThan(rhs) - } else if idx1 == 36 { + } else if idx1 == 38 { lhs := this.properties[i].GetActivityStreamsOrderedCollectionPage() rhs := this.properties[j].GetActivityStreamsOrderedCollectionPage() return lhs.LessThan(rhs) - } else if idx1 == 37 { + } else if idx1 == 39 { lhs := this.properties[i].GetActivityStreamsOrganization() rhs := this.properties[j].GetActivityStreamsOrganization() return lhs.LessThan(rhs) - } else if idx1 == 38 { + } else if idx1 == 40 { lhs := this.properties[i].GetActivityStreamsPage() rhs := this.properties[j].GetActivityStreamsPage() return lhs.LessThan(rhs) - } else if idx1 == 39 { + } else if idx1 == 41 { lhs := this.properties[i].GetActivityStreamsPerson() rhs := this.properties[j].GetActivityStreamsPerson() return lhs.LessThan(rhs) - } else if idx1 == 40 { + } else if idx1 == 42 { lhs := this.properties[i].GetActivityStreamsPlace() rhs := this.properties[j].GetActivityStreamsPlace() return lhs.LessThan(rhs) - } else if idx1 == 41 { + } else if idx1 == 43 { lhs := this.properties[i].GetActivityStreamsProfile() rhs := this.properties[j].GetActivityStreamsProfile() return lhs.LessThan(rhs) - } else if idx1 == 42 { + } else if idx1 == 44 { + lhs := this.properties[i].GetForgeFedPush() + rhs := this.properties[j].GetForgeFedPush() + return lhs.LessThan(rhs) + } else if idx1 == 45 { lhs := this.properties[i].GetActivityStreamsQuestion() rhs := this.properties[j].GetActivityStreamsQuestion() return lhs.LessThan(rhs) - } else if idx1 == 43 { + } else if idx1 == 46 { lhs := this.properties[i].GetActivityStreamsRead() rhs := this.properties[j].GetActivityStreamsRead() return lhs.LessThan(rhs) - } else if idx1 == 44 { + } else if idx1 == 47 { lhs := this.properties[i].GetActivityStreamsReject() rhs := this.properties[j].GetActivityStreamsReject() return lhs.LessThan(rhs) - } else if idx1 == 45 { + } else if idx1 == 48 { lhs := this.properties[i].GetActivityStreamsRelationship() rhs := this.properties[j].GetActivityStreamsRelationship() return lhs.LessThan(rhs) - } else if idx1 == 46 { + } else if idx1 == 49 { lhs := this.properties[i].GetActivityStreamsRemove() rhs := this.properties[j].GetActivityStreamsRemove() return lhs.LessThan(rhs) - } else if idx1 == 47 { + } else if idx1 == 50 { + lhs := this.properties[i].GetForgeFedRepository() + rhs := this.properties[j].GetForgeFedRepository() + return lhs.LessThan(rhs) + } else if idx1 == 51 { lhs := this.properties[i].GetActivityStreamsService() rhs := this.properties[j].GetActivityStreamsService() return lhs.LessThan(rhs) - } else if idx1 == 48 { + } else if idx1 == 52 { lhs := this.properties[i].GetActivityStreamsTentativeAccept() rhs := this.properties[j].GetActivityStreamsTentativeAccept() return lhs.LessThan(rhs) - } else if idx1 == 49 { + } else if idx1 == 53 { lhs := this.properties[i].GetActivityStreamsTentativeReject() rhs := this.properties[j].GetActivityStreamsTentativeReject() return lhs.LessThan(rhs) - } else if idx1 == 50 { + } else if idx1 == 54 { + lhs := this.properties[i].GetForgeFedTicket() + rhs := this.properties[j].GetForgeFedTicket() + return lhs.LessThan(rhs) + } else if idx1 == 55 { + lhs := this.properties[i].GetForgeFedTicketDependency() + rhs := this.properties[j].GetForgeFedTicketDependency() + return lhs.LessThan(rhs) + } else if idx1 == 56 { lhs := this.properties[i].GetActivityStreamsTombstone() rhs := this.properties[j].GetActivityStreamsTombstone() return lhs.LessThan(rhs) - } else if idx1 == 51 { + } else if idx1 == 57 { lhs := this.properties[i].GetActivityStreamsTravel() rhs := this.properties[j].GetActivityStreamsTravel() return lhs.LessThan(rhs) - } else if idx1 == 52 { + } else if idx1 == 58 { lhs := this.properties[i].GetActivityStreamsUndo() rhs := this.properties[j].GetActivityStreamsUndo() return lhs.LessThan(rhs) - } else if idx1 == 53 { + } else if idx1 == 59 { lhs := this.properties[i].GetActivityStreamsUpdate() rhs := this.properties[j].GetActivityStreamsUpdate() return lhs.LessThan(rhs) - } else if idx1 == 54 { + } else if idx1 == 60 { lhs := this.properties[i].GetActivityStreamsVideo() rhs := this.properties[j].GetActivityStreamsVideo() return lhs.LessThan(rhs) - } else if idx1 == 55 { + } else if idx1 == 61 { lhs := this.properties[i].GetActivityStreamsView() rhs := this.properties[j].GetActivityStreamsView() return lhs.LessThan(rhs) @@ -5560,6 +6026,90 @@ func (this *ActivityStreamsAudienceProperty) PrependActivityStreamsView(v vocab. } } +// PrependForgeFedBranch prepends a Branch value to the front of a list of the +// property "audience". Invalidates all iterators. +func (this *ActivityStreamsAudienceProperty) PrependForgeFedBranch(v vocab.ForgeFedBranch) { + this.properties = append([]*ActivityStreamsAudiencePropertyIterator{{ + alias: this.alias, + forgefedBranchMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependForgeFedCommit prepends a Commit value to the front of a list of the +// property "audience". Invalidates all iterators. +func (this *ActivityStreamsAudienceProperty) PrependForgeFedCommit(v vocab.ForgeFedCommit) { + this.properties = append([]*ActivityStreamsAudiencePropertyIterator{{ + alias: this.alias, + forgefedCommitMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependForgeFedPush prepends a Push value to the front of a list of the +// property "audience". Invalidates all iterators. +func (this *ActivityStreamsAudienceProperty) PrependForgeFedPush(v vocab.ForgeFedPush) { + this.properties = append([]*ActivityStreamsAudiencePropertyIterator{{ + alias: this.alias, + forgefedPushMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependForgeFedRepository prepends a Repository value to the front of a list of +// the property "audience". Invalidates all iterators. +func (this *ActivityStreamsAudienceProperty) PrependForgeFedRepository(v vocab.ForgeFedRepository) { + this.properties = append([]*ActivityStreamsAudiencePropertyIterator{{ + alias: this.alias, + forgefedRepositoryMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependForgeFedTicket prepends a Ticket value to the front of a list of the +// property "audience". Invalidates all iterators. +func (this *ActivityStreamsAudienceProperty) PrependForgeFedTicket(v vocab.ForgeFedTicket) { + this.properties = append([]*ActivityStreamsAudiencePropertyIterator{{ + alias: this.alias, + forgefedTicketMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependForgeFedTicketDependency prepends a TicketDependency value to the front +// of a list of the property "audience". Invalidates all iterators. +func (this *ActivityStreamsAudienceProperty) PrependForgeFedTicketDependency(v vocab.ForgeFedTicketDependency) { + this.properties = append([]*ActivityStreamsAudiencePropertyIterator{{ + alias: this.alias, + forgefedTicketDependencyMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + // PrependIRI prepends an IRI value to the front of a list of the property // "audience". func (this *ActivityStreamsAudienceProperty) PrependIRI(v *url.URL) { @@ -6356,6 +6906,83 @@ func (this *ActivityStreamsAudienceProperty) SetActivityStreamsView(idx int, v v } } +// SetForgeFedBranch sets a Branch value to be at the specified index for the +// property "audience". Panics if the index is out of bounds. Invalidates all +// iterators. +func (this *ActivityStreamsAudienceProperty) SetForgeFedBranch(idx int, v vocab.ForgeFedBranch) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsAudiencePropertyIterator{ + alias: this.alias, + forgefedBranchMember: v, + myIdx: idx, + parent: this, + } +} + +// SetForgeFedCommit sets a Commit value to be at the specified index for the +// property "audience". Panics if the index is out of bounds. Invalidates all +// iterators. +func (this *ActivityStreamsAudienceProperty) SetForgeFedCommit(idx int, v vocab.ForgeFedCommit) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsAudiencePropertyIterator{ + alias: this.alias, + forgefedCommitMember: v, + myIdx: idx, + parent: this, + } +} + +// SetForgeFedPush sets a Push value to be at the specified index for the property +// "audience". Panics if the index is out of bounds. Invalidates all iterators. +func (this *ActivityStreamsAudienceProperty) SetForgeFedPush(idx int, v vocab.ForgeFedPush) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsAudiencePropertyIterator{ + alias: this.alias, + forgefedPushMember: v, + myIdx: idx, + parent: this, + } +} + +// SetForgeFedRepository sets a Repository value to be at the specified index for +// the property "audience". Panics if the index is out of bounds. Invalidates +// all iterators. +func (this *ActivityStreamsAudienceProperty) SetForgeFedRepository(idx int, v vocab.ForgeFedRepository) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsAudiencePropertyIterator{ + alias: this.alias, + forgefedRepositoryMember: v, + myIdx: idx, + parent: this, + } +} + +// SetForgeFedTicket sets a Ticket value to be at the specified index for the +// property "audience". Panics if the index is out of bounds. Invalidates all +// iterators. +func (this *ActivityStreamsAudienceProperty) SetForgeFedTicket(idx int, v vocab.ForgeFedTicket) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsAudiencePropertyIterator{ + alias: this.alias, + forgefedTicketMember: v, + myIdx: idx, + parent: this, + } +} + +// SetForgeFedTicketDependency sets a TicketDependency value to be at the +// specified index for the property "audience". Panics if the index is out of +// bounds. Invalidates all iterators. +func (this *ActivityStreamsAudienceProperty) SetForgeFedTicketDependency(idx int, v vocab.ForgeFedTicketDependency) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsAudiencePropertyIterator{ + alias: this.alias, + forgefedTicketDependencyMember: v, + myIdx: idx, + parent: this, + } +} + // SetIRI sets an IRI value to be at the specified index for the property // "audience". Panics if the index is out of bounds. func (this *ActivityStreamsAudienceProperty) SetIRI(idx int, v *url.URL) { diff --git a/streams/impl/activitystreams/property_bcc/gen_pkg.go b/streams/impl/activitystreams/property_bcc/gen_pkg.go index 0e4f177..edc0629 100644 --- a/streams/impl/activitystreams/property_bcc/gen_pkg.go +++ b/streams/impl/activitystreams/property_bcc/gen_pkg.go @@ -45,6 +45,10 @@ type privateManager interface { // 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" @@ -53,6 +57,10 @@ type privateManager interface { // 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" @@ -177,6 +185,9 @@ type privateManager interface { // 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" @@ -197,6 +208,10 @@ type privateManager interface { // 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" @@ -209,6 +224,14 @@ type privateManager interface { // 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" diff --git a/streams/impl/activitystreams/property_bcc/gen_property_activitystreams_bcc.go b/streams/impl/activitystreams/property_bcc/gen_property_activitystreams_bcc.go index bf3eec6..19beec7 100644 --- a/streams/impl/activitystreams/property_bcc/gen_property_activitystreams_bcc.go +++ b/streams/impl/activitystreams/property_bcc/gen_property_activitystreams_bcc.go @@ -25,8 +25,10 @@ type ActivityStreamsBccPropertyIterator struct { 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 @@ -56,14 +58,18 @@ type ActivityStreamsBccPropertyIterator struct { 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 @@ -168,6 +174,12 @@ func deserializeActivityStreamsBccPropertyIterator(i interface{}, aliasMap map[s alias: alias, } return this, nil + } else if v, err := mgr.DeserializeBranchForgeFed()(m, aliasMap); err == nil { + this := &ActivityStreamsBccPropertyIterator{ + alias: alias, + forgefedBranchMember: v, + } + return this, nil } else if v, err := mgr.DeserializeCollectionActivityStreams()(m, aliasMap); err == nil { this := &ActivityStreamsBccPropertyIterator{ activitystreamsCollectionMember: v, @@ -180,6 +192,12 @@ func deserializeActivityStreamsBccPropertyIterator(i interface{}, aliasMap map[s alias: alias, } return this, nil + } else if v, err := mgr.DeserializeCommitForgeFed()(m, aliasMap); err == nil { + this := &ActivityStreamsBccPropertyIterator{ + alias: alias, + forgefedCommitMember: v, + } + return this, nil } else if v, err := mgr.DeserializeCreateActivityStreams()(m, aliasMap); err == nil { this := &ActivityStreamsBccPropertyIterator{ activitystreamsCreateMember: v, @@ -354,6 +372,12 @@ func deserializeActivityStreamsBccPropertyIterator(i interface{}, aliasMap map[s alias: alias, } return this, nil + } else if v, err := mgr.DeserializePushForgeFed()(m, aliasMap); err == nil { + this := &ActivityStreamsBccPropertyIterator{ + alias: alias, + forgefedPushMember: v, + } + return this, nil } else if v, err := mgr.DeserializeQuestionActivityStreams()(m, aliasMap); err == nil { this := &ActivityStreamsBccPropertyIterator{ activitystreamsQuestionMember: v, @@ -384,6 +408,12 @@ func deserializeActivityStreamsBccPropertyIterator(i interface{}, aliasMap map[s alias: alias, } return this, nil + } else if v, err := mgr.DeserializeRepositoryForgeFed()(m, aliasMap); err == nil { + this := &ActivityStreamsBccPropertyIterator{ + alias: alias, + forgefedRepositoryMember: v, + } + return this, nil } else if v, err := mgr.DeserializeServiceActivityStreams()(m, aliasMap); err == nil { this := &ActivityStreamsBccPropertyIterator{ activitystreamsServiceMember: v, @@ -402,6 +432,18 @@ func deserializeActivityStreamsBccPropertyIterator(i interface{}, aliasMap map[s alias: alias, } return this, nil + } else if v, err := mgr.DeserializeTicketForgeFed()(m, aliasMap); err == nil { + this := &ActivityStreamsBccPropertyIterator{ + alias: alias, + forgefedTicketMember: v, + } + return this, nil + } else if v, err := mgr.DeserializeTicketDependencyForgeFed()(m, aliasMap); err == nil { + this := &ActivityStreamsBccPropertyIterator{ + alias: alias, + forgefedTicketDependencyMember: v, + } + return this, nil } else if v, err := mgr.DeserializeTombstoneActivityStreams()(m, aliasMap); err == nil { this := &ActivityStreamsBccPropertyIterator{ activitystreamsTombstoneMember: v, @@ -825,6 +867,44 @@ func (this ActivityStreamsBccPropertyIterator) GetActivityStreamsView() vocab.Ac return this.activitystreamsViewMember } +// GetForgeFedBranch returns the value of this property. When IsForgeFedBranch +// returns false, GetForgeFedBranch will return an arbitrary value. +func (this ActivityStreamsBccPropertyIterator) GetForgeFedBranch() vocab.ForgeFedBranch { + return this.forgefedBranchMember +} + +// GetForgeFedCommit returns the value of this property. When IsForgeFedCommit +// returns false, GetForgeFedCommit will return an arbitrary value. +func (this ActivityStreamsBccPropertyIterator) GetForgeFedCommit() vocab.ForgeFedCommit { + return this.forgefedCommitMember +} + +// GetForgeFedPush returns the value of this property. When IsForgeFedPush returns +// false, GetForgeFedPush will return an arbitrary value. +func (this ActivityStreamsBccPropertyIterator) GetForgeFedPush() vocab.ForgeFedPush { + return this.forgefedPushMember +} + +// GetForgeFedRepository returns the value of this property. When +// IsForgeFedRepository returns false, GetForgeFedRepository will return an +// arbitrary value. +func (this ActivityStreamsBccPropertyIterator) GetForgeFedRepository() vocab.ForgeFedRepository { + return this.forgefedRepositoryMember +} + +// GetForgeFedTicket returns the value of this property. When IsForgeFedTicket +// returns false, GetForgeFedTicket will return an arbitrary value. +func (this ActivityStreamsBccPropertyIterator) GetForgeFedTicket() vocab.ForgeFedTicket { + return this.forgefedTicketMember +} + +// GetForgeFedTicketDependency returns the value of this property. When +// IsForgeFedTicketDependency returns false, GetForgeFedTicketDependency will +// return an arbitrary value. +func (this ActivityStreamsBccPropertyIterator) GetForgeFedTicketDependency() vocab.ForgeFedTicketDependency { + return this.forgefedTicketDependencyMember +} + // GetIRI returns the IRI of this property. When IsIRI returns false, GetIRI will // return an arbitrary value. func (this ActivityStreamsBccPropertyIterator) GetIRI() *url.URL { @@ -880,12 +960,18 @@ func (this ActivityStreamsBccPropertyIterator) GetType() vocab.Type { 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() } @@ -973,6 +1059,9 @@ func (this ActivityStreamsBccPropertyIterator) GetType() vocab.Type { if this.IsActivityStreamsProfile() { return this.GetActivityStreamsProfile() } + if this.IsForgeFedPush() { + return this.GetForgeFedPush() + } if this.IsActivityStreamsQuestion() { return this.GetActivityStreamsQuestion() } @@ -988,6 +1077,9 @@ func (this ActivityStreamsBccPropertyIterator) GetType() vocab.Type { if this.IsActivityStreamsRemove() { return this.GetActivityStreamsRemove() } + if this.IsForgeFedRepository() { + return this.GetForgeFedRepository() + } if this.IsActivityStreamsService() { return this.GetActivityStreamsService() } @@ -997,6 +1089,12 @@ func (this ActivityStreamsBccPropertyIterator) GetType() vocab.Type { if this.IsActivityStreamsTentativeReject() { return this.GetActivityStreamsTentativeReject() } + if this.IsForgeFedTicket() { + return this.GetForgeFedTicket() + } + if this.IsForgeFedTicketDependency() { + return this.GetForgeFedTicketDependency() + } if this.IsActivityStreamsTombstone() { return this.GetActivityStreamsTombstone() } @@ -1032,8 +1130,10 @@ func (this ActivityStreamsBccPropertyIterator) HasAny() bool { this.IsActivityStreamsArticle() || this.IsActivityStreamsAudio() || this.IsActivityStreamsBlock() || + this.IsForgeFedBranch() || this.IsActivityStreamsCollection() || this.IsActivityStreamsCollectionPage() || + this.IsForgeFedCommit() || this.IsActivityStreamsCreate() || this.IsActivityStreamsDelete() || this.IsActivityStreamsDislike() || @@ -1063,14 +1163,18 @@ func (this ActivityStreamsBccPropertyIterator) HasAny() bool { 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() || @@ -1463,6 +1567,48 @@ func (this ActivityStreamsBccPropertyIterator) IsActivityStreamsView() bool { return this.activitystreamsViewMember != nil } +// IsForgeFedBranch returns true if this property has a type of "Branch". When +// true, use the GetForgeFedBranch and SetForgeFedBranch methods to access and +// set this property. +func (this ActivityStreamsBccPropertyIterator) IsForgeFedBranch() bool { + return this.forgefedBranchMember != nil +} + +// IsForgeFedCommit returns true if this property has a type of "Commit". When +// true, use the GetForgeFedCommit and SetForgeFedCommit methods to access and +// set this property. +func (this ActivityStreamsBccPropertyIterator) IsForgeFedCommit() bool { + return this.forgefedCommitMember != nil +} + +// IsForgeFedPush returns true if this property has a type of "Push". When true, +// use the GetForgeFedPush and SetForgeFedPush methods to access and set this +// property. +func (this ActivityStreamsBccPropertyIterator) IsForgeFedPush() bool { + return this.forgefedPushMember != nil +} + +// IsForgeFedRepository returns true if this property has a type of "Repository". +// When true, use the GetForgeFedRepository and SetForgeFedRepository methods +// to access and set this property. +func (this ActivityStreamsBccPropertyIterator) IsForgeFedRepository() bool { + return this.forgefedRepositoryMember != nil +} + +// IsForgeFedTicket returns true if this property has a type of "Ticket". When +// true, use the GetForgeFedTicket and SetForgeFedTicket methods to access and +// set this property. +func (this ActivityStreamsBccPropertyIterator) IsForgeFedTicket() bool { + return this.forgefedTicketMember != nil +} + +// IsForgeFedTicketDependency returns true if this property has a type of +// "TicketDependency". When true, use the GetForgeFedTicketDependency and +// SetForgeFedTicketDependency methods to access and set this property. +func (this ActivityStreamsBccPropertyIterator) IsForgeFedTicketDependency() bool { + return this.forgefedTicketDependencyMember != nil +} + // IsIRI returns true if this property is an IRI. When true, use GetIRI and SetIRI // to access and set this property func (this ActivityStreamsBccPropertyIterator) IsIRI() bool { @@ -1510,10 +1656,14 @@ func (this ActivityStreamsBccPropertyIterator) JSONLDContext() map[string]string 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() { @@ -1572,6 +1722,8 @@ func (this ActivityStreamsBccPropertyIterator) JSONLDContext() map[string]string 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() { @@ -1582,12 +1734,18 @@ func (this ActivityStreamsBccPropertyIterator) JSONLDContext() map[string]string 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() { @@ -1649,141 +1807,159 @@ func (this ActivityStreamsBccPropertyIterator) KindIndex() int { if this.IsActivityStreamsBlock() { return 10 } - if this.IsActivityStreamsCollection() { + if this.IsForgeFedBranch() { return 11 } - if this.IsActivityStreamsCollectionPage() { + if this.IsActivityStreamsCollection() { return 12 } - if this.IsActivityStreamsCreate() { + if this.IsActivityStreamsCollectionPage() { return 13 } - if this.IsActivityStreamsDelete() { + if this.IsForgeFedCommit() { return 14 } - if this.IsActivityStreamsDislike() { + if this.IsActivityStreamsCreate() { return 15 } - if this.IsActivityStreamsDocument() { + if this.IsActivityStreamsDelete() { return 16 } - if this.IsTootEmoji() { + if this.IsActivityStreamsDislike() { return 17 } - if this.IsActivityStreamsEvent() { + if this.IsActivityStreamsDocument() { return 18 } - if this.IsActivityStreamsFlag() { + if this.IsTootEmoji() { return 19 } - if this.IsActivityStreamsFollow() { + if this.IsActivityStreamsEvent() { return 20 } - if this.IsActivityStreamsGroup() { + if this.IsActivityStreamsFlag() { return 21 } - if this.IsTootIdentityProof() { + if this.IsActivityStreamsFollow() { return 22 } - if this.IsActivityStreamsIgnore() { + if this.IsActivityStreamsGroup() { return 23 } - if this.IsActivityStreamsImage() { + if this.IsTootIdentityProof() { return 24 } - if this.IsActivityStreamsIntransitiveActivity() { + if this.IsActivityStreamsIgnore() { return 25 } - if this.IsActivityStreamsInvite() { + if this.IsActivityStreamsImage() { return 26 } - if this.IsActivityStreamsJoin() { + if this.IsActivityStreamsIntransitiveActivity() { return 27 } - if this.IsActivityStreamsLeave() { + if this.IsActivityStreamsInvite() { return 28 } - if this.IsActivityStreamsLike() { + if this.IsActivityStreamsJoin() { return 29 } - if this.IsActivityStreamsListen() { + if this.IsActivityStreamsLeave() { return 30 } - if this.IsActivityStreamsMention() { + if this.IsActivityStreamsLike() { return 31 } - if this.IsActivityStreamsMove() { + if this.IsActivityStreamsListen() { return 32 } - if this.IsActivityStreamsNote() { + if this.IsActivityStreamsMention() { return 33 } - if this.IsActivityStreamsOffer() { + if this.IsActivityStreamsMove() { return 34 } - if this.IsActivityStreamsOrderedCollection() { + if this.IsActivityStreamsNote() { return 35 } - if this.IsActivityStreamsOrderedCollectionPage() { + if this.IsActivityStreamsOffer() { return 36 } - if this.IsActivityStreamsOrganization() { + if this.IsActivityStreamsOrderedCollection() { return 37 } - if this.IsActivityStreamsPage() { + if this.IsActivityStreamsOrderedCollectionPage() { return 38 } - if this.IsActivityStreamsPerson() { + if this.IsActivityStreamsOrganization() { return 39 } - if this.IsActivityStreamsPlace() { + if this.IsActivityStreamsPage() { return 40 } - if this.IsActivityStreamsProfile() { + if this.IsActivityStreamsPerson() { return 41 } - if this.IsActivityStreamsQuestion() { + if this.IsActivityStreamsPlace() { return 42 } - if this.IsActivityStreamsRead() { + if this.IsActivityStreamsProfile() { return 43 } - if this.IsActivityStreamsReject() { + if this.IsForgeFedPush() { return 44 } - if this.IsActivityStreamsRelationship() { + if this.IsActivityStreamsQuestion() { return 45 } - if this.IsActivityStreamsRemove() { + if this.IsActivityStreamsRead() { return 46 } - if this.IsActivityStreamsService() { + if this.IsActivityStreamsReject() { return 47 } - if this.IsActivityStreamsTentativeAccept() { + if this.IsActivityStreamsRelationship() { return 48 } - if this.IsActivityStreamsTentativeReject() { + if this.IsActivityStreamsRemove() { return 49 } - if this.IsActivityStreamsTombstone() { + if this.IsForgeFedRepository() { return 50 } - if this.IsActivityStreamsTravel() { + if this.IsActivityStreamsService() { return 51 } - if this.IsActivityStreamsUndo() { + if this.IsActivityStreamsTentativeAccept() { return 52 } - if this.IsActivityStreamsUpdate() { + if this.IsActivityStreamsTentativeReject() { return 53 } - if this.IsActivityStreamsVideo() { + if this.IsForgeFedTicket() { return 54 } - if this.IsActivityStreamsView() { + 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 } @@ -1823,10 +1999,14 @@ func (this ActivityStreamsBccPropertyIterator) LessThan(o vocab.ActivityStreamsB 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() { @@ -1885,6 +2065,8 @@ func (this ActivityStreamsBccPropertyIterator) LessThan(o vocab.ActivityStreamsB 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() { @@ -1895,12 +2077,18 @@ func (this ActivityStreamsBccPropertyIterator) LessThan(o vocab.ActivityStreamsB 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() { @@ -2324,6 +2512,48 @@ func (this *ActivityStreamsBccPropertyIterator) SetActivityStreamsView(v vocab.A this.activitystreamsViewMember = v } +// SetForgeFedBranch sets the value of this property. Calling IsForgeFedBranch +// afterwards returns true. +func (this *ActivityStreamsBccPropertyIterator) SetForgeFedBranch(v vocab.ForgeFedBranch) { + this.clear() + this.forgefedBranchMember = v +} + +// SetForgeFedCommit sets the value of this property. Calling IsForgeFedCommit +// afterwards returns true. +func (this *ActivityStreamsBccPropertyIterator) SetForgeFedCommit(v vocab.ForgeFedCommit) { + this.clear() + this.forgefedCommitMember = v +} + +// SetForgeFedPush sets the value of this property. Calling IsForgeFedPush +// afterwards returns true. +func (this *ActivityStreamsBccPropertyIterator) SetForgeFedPush(v vocab.ForgeFedPush) { + this.clear() + this.forgefedPushMember = v +} + +// SetForgeFedRepository sets the value of this property. Calling +// IsForgeFedRepository afterwards returns true. +func (this *ActivityStreamsBccPropertyIterator) SetForgeFedRepository(v vocab.ForgeFedRepository) { + this.clear() + this.forgefedRepositoryMember = v +} + +// SetForgeFedTicket sets the value of this property. Calling IsForgeFedTicket +// afterwards returns true. +func (this *ActivityStreamsBccPropertyIterator) SetForgeFedTicket(v vocab.ForgeFedTicket) { + this.clear() + this.forgefedTicketMember = v +} + +// SetForgeFedTicketDependency sets the value of this property. Calling +// IsForgeFedTicketDependency afterwards returns true. +func (this *ActivityStreamsBccPropertyIterator) SetForgeFedTicketDependency(v vocab.ForgeFedTicketDependency) { + this.clear() + this.forgefedTicketDependencyMember = v +} + // SetIRI sets the value of this property. Calling IsIRI afterwards returns true. func (this *ActivityStreamsBccPropertyIterator) SetIRI(v *url.URL) { this.clear() @@ -2391,6 +2621,10 @@ func (this *ActivityStreamsBccPropertyIterator) SetType(t vocab.Type) error { 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 @@ -2399,6 +2633,10 @@ func (this *ActivityStreamsBccPropertyIterator) SetType(t vocab.Type) error { 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 @@ -2515,6 +2753,10 @@ func (this *ActivityStreamsBccPropertyIterator) SetType(t vocab.Type) error { 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 @@ -2535,6 +2777,10 @@ func (this *ActivityStreamsBccPropertyIterator) SetType(t vocab.Type) error { 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 @@ -2547,6 +2793,14 @@ func (this *ActivityStreamsBccPropertyIterator) SetType(t vocab.Type) error { 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 @@ -2589,8 +2843,10 @@ func (this *ActivityStreamsBccPropertyIterator) clear() { 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 @@ -2620,14 +2876,18 @@ func (this *ActivityStreamsBccPropertyIterator) clear() { 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 @@ -2665,10 +2925,14 @@ func (this ActivityStreamsBccPropertyIterator) serialize() (interface{}, error) 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() { @@ -2727,6 +2991,8 @@ func (this ActivityStreamsBccPropertyIterator) serialize() (interface{}, error) 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() { @@ -2737,12 +3003,18 @@ func (this ActivityStreamsBccPropertyIterator) serialize() (interface{}, error) 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() { @@ -3420,6 +3692,73 @@ func (this *ActivityStreamsBccProperty) AppendActivityStreamsView(v vocab.Activi }) } +// AppendForgeFedBranch appends a Branch value to the back of a list of the +// property "bcc". Invalidates iterators that are traversing using Prev. +func (this *ActivityStreamsBccProperty) AppendForgeFedBranch(v vocab.ForgeFedBranch) { + this.properties = append(this.properties, &ActivityStreamsBccPropertyIterator{ + alias: this.alias, + forgefedBranchMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendForgeFedCommit appends a Commit value to the back of a list of the +// property "bcc". Invalidates iterators that are traversing using Prev. +func (this *ActivityStreamsBccProperty) AppendForgeFedCommit(v vocab.ForgeFedCommit) { + this.properties = append(this.properties, &ActivityStreamsBccPropertyIterator{ + alias: this.alias, + forgefedCommitMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendForgeFedPush appends a Push value to the back of a list of the property +// "bcc". Invalidates iterators that are traversing using Prev. +func (this *ActivityStreamsBccProperty) AppendForgeFedPush(v vocab.ForgeFedPush) { + this.properties = append(this.properties, &ActivityStreamsBccPropertyIterator{ + alias: this.alias, + forgefedPushMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendForgeFedRepository appends a Repository value to the back of a list of +// the property "bcc". Invalidates iterators that are traversing using Prev. +func (this *ActivityStreamsBccProperty) AppendForgeFedRepository(v vocab.ForgeFedRepository) { + this.properties = append(this.properties, &ActivityStreamsBccPropertyIterator{ + alias: this.alias, + forgefedRepositoryMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendForgeFedTicket appends a Ticket value to the back of a list of the +// property "bcc". Invalidates iterators that are traversing using Prev. +func (this *ActivityStreamsBccProperty) AppendForgeFedTicket(v vocab.ForgeFedTicket) { + this.properties = append(this.properties, &ActivityStreamsBccPropertyIterator{ + alias: this.alias, + forgefedTicketMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendForgeFedTicketDependency appends a TicketDependency value to the back of +// a list of the property "bcc". Invalidates iterators that are traversing +// using Prev. +func (this *ActivityStreamsBccProperty) AppendForgeFedTicketDependency(v vocab.ForgeFedTicketDependency) { + this.properties = append(this.properties, &ActivityStreamsBccPropertyIterator{ + alias: this.alias, + forgefedTicketDependencyMember: v, + myIdx: this.Len(), + parent: this, + }) +} + // AppendIRI appends an IRI value to the back of a list of the property "bcc" func (this *ActivityStreamsBccProperty) AppendIRI(v *url.URL) { this.properties = append(this.properties, &ActivityStreamsBccPropertyIterator{ @@ -4415,6 +4754,108 @@ func (this *ActivityStreamsBccProperty) InsertActivityStreamsView(idx int, v voc } } +// InsertForgeFedBranch inserts a Branch value at the specified index for a +// property "bcc". Existing elements at that index and higher are shifted back +// once. Invalidates all iterators. +func (this *ActivityStreamsBccProperty) InsertForgeFedBranch(idx int, v vocab.ForgeFedBranch) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsBccPropertyIterator{ + alias: this.alias, + forgefedBranchMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertForgeFedCommit inserts a Commit value at the specified index for a +// property "bcc". Existing elements at that index and higher are shifted back +// once. Invalidates all iterators. +func (this *ActivityStreamsBccProperty) InsertForgeFedCommit(idx int, v vocab.ForgeFedCommit) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsBccPropertyIterator{ + alias: this.alias, + forgefedCommitMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertForgeFedPush inserts a Push value at the specified index for a property +// "bcc". Existing elements at that index and higher are shifted back once. +// Invalidates all iterators. +func (this *ActivityStreamsBccProperty) InsertForgeFedPush(idx int, v vocab.ForgeFedPush) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsBccPropertyIterator{ + alias: this.alias, + forgefedPushMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertForgeFedRepository inserts a Repository value at the specified index for +// a property "bcc". Existing elements at that index and higher are shifted +// back once. Invalidates all iterators. +func (this *ActivityStreamsBccProperty) InsertForgeFedRepository(idx int, v vocab.ForgeFedRepository) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsBccPropertyIterator{ + alias: this.alias, + forgefedRepositoryMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertForgeFedTicket inserts a Ticket value at the specified index for a +// property "bcc". Existing elements at that index and higher are shifted back +// once. Invalidates all iterators. +func (this *ActivityStreamsBccProperty) InsertForgeFedTicket(idx int, v vocab.ForgeFedTicket) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsBccPropertyIterator{ + alias: this.alias, + forgefedTicketMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertForgeFedTicketDependency inserts a TicketDependency value at the +// specified index for a property "bcc". Existing elements at that index and +// higher are shifted back once. Invalidates all iterators. +func (this *ActivityStreamsBccProperty) InsertForgeFedTicketDependency(idx int, v vocab.ForgeFedTicketDependency) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsBccPropertyIterator{ + alias: this.alias, + forgefedTicketDependencyMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + // Insert inserts an IRI value at the specified index for a property "bcc". // Existing elements at that index and higher are shifted back once. // Invalidates all iterators. @@ -4572,182 +5013,206 @@ func (this ActivityStreamsBccProperty) Less(i, j int) bool { rhs := this.properties[j].GetActivityStreamsBlock() return lhs.LessThan(rhs) } else if idx1 == 11 { + lhs := this.properties[i].GetForgeFedBranch() + rhs := this.properties[j].GetForgeFedBranch() + return lhs.LessThan(rhs) + } else if idx1 == 12 { lhs := this.properties[i].GetActivityStreamsCollection() rhs := this.properties[j].GetActivityStreamsCollection() return lhs.LessThan(rhs) - } else if idx1 == 12 { + } else if idx1 == 13 { lhs := this.properties[i].GetActivityStreamsCollectionPage() rhs := this.properties[j].GetActivityStreamsCollectionPage() return lhs.LessThan(rhs) - } else if idx1 == 13 { + } else if idx1 == 14 { + lhs := this.properties[i].GetForgeFedCommit() + rhs := this.properties[j].GetForgeFedCommit() + return lhs.LessThan(rhs) + } else if idx1 == 15 { lhs := this.properties[i].GetActivityStreamsCreate() rhs := this.properties[j].GetActivityStreamsCreate() return lhs.LessThan(rhs) - } else if idx1 == 14 { + } else if idx1 == 16 { lhs := this.properties[i].GetActivityStreamsDelete() rhs := this.properties[j].GetActivityStreamsDelete() return lhs.LessThan(rhs) - } else if idx1 == 15 { + } else if idx1 == 17 { lhs := this.properties[i].GetActivityStreamsDislike() rhs := this.properties[j].GetActivityStreamsDislike() return lhs.LessThan(rhs) - } else if idx1 == 16 { + } else if idx1 == 18 { lhs := this.properties[i].GetActivityStreamsDocument() rhs := this.properties[j].GetActivityStreamsDocument() return lhs.LessThan(rhs) - } else if idx1 == 17 { + } else if idx1 == 19 { lhs := this.properties[i].GetTootEmoji() rhs := this.properties[j].GetTootEmoji() return lhs.LessThan(rhs) - } else if idx1 == 18 { + } else if idx1 == 20 { lhs := this.properties[i].GetActivityStreamsEvent() rhs := this.properties[j].GetActivityStreamsEvent() return lhs.LessThan(rhs) - } else if idx1 == 19 { + } else if idx1 == 21 { lhs := this.properties[i].GetActivityStreamsFlag() rhs := this.properties[j].GetActivityStreamsFlag() return lhs.LessThan(rhs) - } else if idx1 == 20 { + } else if idx1 == 22 { lhs := this.properties[i].GetActivityStreamsFollow() rhs := this.properties[j].GetActivityStreamsFollow() return lhs.LessThan(rhs) - } else if idx1 == 21 { + } else if idx1 == 23 { lhs := this.properties[i].GetActivityStreamsGroup() rhs := this.properties[j].GetActivityStreamsGroup() return lhs.LessThan(rhs) - } else if idx1 == 22 { + } else if idx1 == 24 { lhs := this.properties[i].GetTootIdentityProof() rhs := this.properties[j].GetTootIdentityProof() return lhs.LessThan(rhs) - } else if idx1 == 23 { + } else if idx1 == 25 { lhs := this.properties[i].GetActivityStreamsIgnore() rhs := this.properties[j].GetActivityStreamsIgnore() return lhs.LessThan(rhs) - } else if idx1 == 24 { + } else if idx1 == 26 { lhs := this.properties[i].GetActivityStreamsImage() rhs := this.properties[j].GetActivityStreamsImage() return lhs.LessThan(rhs) - } else if idx1 == 25 { + } else if idx1 == 27 { lhs := this.properties[i].GetActivityStreamsIntransitiveActivity() rhs := this.properties[j].GetActivityStreamsIntransitiveActivity() return lhs.LessThan(rhs) - } else if idx1 == 26 { + } else if idx1 == 28 { lhs := this.properties[i].GetActivityStreamsInvite() rhs := this.properties[j].GetActivityStreamsInvite() return lhs.LessThan(rhs) - } else if idx1 == 27 { + } else if idx1 == 29 { lhs := this.properties[i].GetActivityStreamsJoin() rhs := this.properties[j].GetActivityStreamsJoin() return lhs.LessThan(rhs) - } else if idx1 == 28 { + } else if idx1 == 30 { lhs := this.properties[i].GetActivityStreamsLeave() rhs := this.properties[j].GetActivityStreamsLeave() return lhs.LessThan(rhs) - } else if idx1 == 29 { + } else if idx1 == 31 { lhs := this.properties[i].GetActivityStreamsLike() rhs := this.properties[j].GetActivityStreamsLike() return lhs.LessThan(rhs) - } else if idx1 == 30 { + } else if idx1 == 32 { lhs := this.properties[i].GetActivityStreamsListen() rhs := this.properties[j].GetActivityStreamsListen() return lhs.LessThan(rhs) - } else if idx1 == 31 { + } else if idx1 == 33 { lhs := this.properties[i].GetActivityStreamsMention() rhs := this.properties[j].GetActivityStreamsMention() return lhs.LessThan(rhs) - } else if idx1 == 32 { + } else if idx1 == 34 { lhs := this.properties[i].GetActivityStreamsMove() rhs := this.properties[j].GetActivityStreamsMove() return lhs.LessThan(rhs) - } else if idx1 == 33 { + } else if idx1 == 35 { lhs := this.properties[i].GetActivityStreamsNote() rhs := this.properties[j].GetActivityStreamsNote() return lhs.LessThan(rhs) - } else if idx1 == 34 { + } else if idx1 == 36 { lhs := this.properties[i].GetActivityStreamsOffer() rhs := this.properties[j].GetActivityStreamsOffer() return lhs.LessThan(rhs) - } else if idx1 == 35 { + } else if idx1 == 37 { lhs := this.properties[i].GetActivityStreamsOrderedCollection() rhs := this.properties[j].GetActivityStreamsOrderedCollection() return lhs.LessThan(rhs) - } else if idx1 == 36 { + } else if idx1 == 38 { lhs := this.properties[i].GetActivityStreamsOrderedCollectionPage() rhs := this.properties[j].GetActivityStreamsOrderedCollectionPage() return lhs.LessThan(rhs) - } else if idx1 == 37 { + } else if idx1 == 39 { lhs := this.properties[i].GetActivityStreamsOrganization() rhs := this.properties[j].GetActivityStreamsOrganization() return lhs.LessThan(rhs) - } else if idx1 == 38 { + } else if idx1 == 40 { lhs := this.properties[i].GetActivityStreamsPage() rhs := this.properties[j].GetActivityStreamsPage() return lhs.LessThan(rhs) - } else if idx1 == 39 { + } else if idx1 == 41 { lhs := this.properties[i].GetActivityStreamsPerson() rhs := this.properties[j].GetActivityStreamsPerson() return lhs.LessThan(rhs) - } else if idx1 == 40 { + } else if idx1 == 42 { lhs := this.properties[i].GetActivityStreamsPlace() rhs := this.properties[j].GetActivityStreamsPlace() return lhs.LessThan(rhs) - } else if idx1 == 41 { + } else if idx1 == 43 { lhs := this.properties[i].GetActivityStreamsProfile() rhs := this.properties[j].GetActivityStreamsProfile() return lhs.LessThan(rhs) - } else if idx1 == 42 { + } else if idx1 == 44 { + lhs := this.properties[i].GetForgeFedPush() + rhs := this.properties[j].GetForgeFedPush() + return lhs.LessThan(rhs) + } else if idx1 == 45 { lhs := this.properties[i].GetActivityStreamsQuestion() rhs := this.properties[j].GetActivityStreamsQuestion() return lhs.LessThan(rhs) - } else if idx1 == 43 { + } else if idx1 == 46 { lhs := this.properties[i].GetActivityStreamsRead() rhs := this.properties[j].GetActivityStreamsRead() return lhs.LessThan(rhs) - } else if idx1 == 44 { + } else if idx1 == 47 { lhs := this.properties[i].GetActivityStreamsReject() rhs := this.properties[j].GetActivityStreamsReject() return lhs.LessThan(rhs) - } else if idx1 == 45 { + } else if idx1 == 48 { lhs := this.properties[i].GetActivityStreamsRelationship() rhs := this.properties[j].GetActivityStreamsRelationship() return lhs.LessThan(rhs) - } else if idx1 == 46 { + } else if idx1 == 49 { lhs := this.properties[i].GetActivityStreamsRemove() rhs := this.properties[j].GetActivityStreamsRemove() return lhs.LessThan(rhs) - } else if idx1 == 47 { + } else if idx1 == 50 { + lhs := this.properties[i].GetForgeFedRepository() + rhs := this.properties[j].GetForgeFedRepository() + return lhs.LessThan(rhs) + } else if idx1 == 51 { lhs := this.properties[i].GetActivityStreamsService() rhs := this.properties[j].GetActivityStreamsService() return lhs.LessThan(rhs) - } else if idx1 == 48 { + } else if idx1 == 52 { lhs := this.properties[i].GetActivityStreamsTentativeAccept() rhs := this.properties[j].GetActivityStreamsTentativeAccept() return lhs.LessThan(rhs) - } else if idx1 == 49 { + } else if idx1 == 53 { lhs := this.properties[i].GetActivityStreamsTentativeReject() rhs := this.properties[j].GetActivityStreamsTentativeReject() return lhs.LessThan(rhs) - } else if idx1 == 50 { + } else if idx1 == 54 { + lhs := this.properties[i].GetForgeFedTicket() + rhs := this.properties[j].GetForgeFedTicket() + return lhs.LessThan(rhs) + } else if idx1 == 55 { + lhs := this.properties[i].GetForgeFedTicketDependency() + rhs := this.properties[j].GetForgeFedTicketDependency() + return lhs.LessThan(rhs) + } else if idx1 == 56 { lhs := this.properties[i].GetActivityStreamsTombstone() rhs := this.properties[j].GetActivityStreamsTombstone() return lhs.LessThan(rhs) - } else if idx1 == 51 { + } else if idx1 == 57 { lhs := this.properties[i].GetActivityStreamsTravel() rhs := this.properties[j].GetActivityStreamsTravel() return lhs.LessThan(rhs) - } else if idx1 == 52 { + } else if idx1 == 58 { lhs := this.properties[i].GetActivityStreamsUndo() rhs := this.properties[j].GetActivityStreamsUndo() return lhs.LessThan(rhs) - } else if idx1 == 53 { + } else if idx1 == 59 { lhs := this.properties[i].GetActivityStreamsUpdate() rhs := this.properties[j].GetActivityStreamsUpdate() return lhs.LessThan(rhs) - } else if idx1 == 54 { + } else if idx1 == 60 { lhs := this.properties[i].GetActivityStreamsVideo() rhs := this.properties[j].GetActivityStreamsVideo() return lhs.LessThan(rhs) - } else if idx1 == 55 { + } else if idx1 == 61 { lhs := this.properties[i].GetActivityStreamsView() rhs := this.properties[j].GetActivityStreamsView() return lhs.LessThan(rhs) @@ -5548,6 +6013,90 @@ func (this *ActivityStreamsBccProperty) PrependActivityStreamsView(v vocab.Activ } } +// PrependForgeFedBranch prepends a Branch value to the front of a list of the +// property "bcc". Invalidates all iterators. +func (this *ActivityStreamsBccProperty) PrependForgeFedBranch(v vocab.ForgeFedBranch) { + this.properties = append([]*ActivityStreamsBccPropertyIterator{{ + alias: this.alias, + forgefedBranchMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependForgeFedCommit prepends a Commit value to the front of a list of the +// property "bcc". Invalidates all iterators. +func (this *ActivityStreamsBccProperty) PrependForgeFedCommit(v vocab.ForgeFedCommit) { + this.properties = append([]*ActivityStreamsBccPropertyIterator{{ + alias: this.alias, + forgefedCommitMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependForgeFedPush prepends a Push value to the front of a list of the +// property "bcc". Invalidates all iterators. +func (this *ActivityStreamsBccProperty) PrependForgeFedPush(v vocab.ForgeFedPush) { + this.properties = append([]*ActivityStreamsBccPropertyIterator{{ + alias: this.alias, + forgefedPushMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependForgeFedRepository prepends a Repository value to the front of a list of +// the property "bcc". Invalidates all iterators. +func (this *ActivityStreamsBccProperty) PrependForgeFedRepository(v vocab.ForgeFedRepository) { + this.properties = append([]*ActivityStreamsBccPropertyIterator{{ + alias: this.alias, + forgefedRepositoryMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependForgeFedTicket prepends a Ticket value to the front of a list of the +// property "bcc". Invalidates all iterators. +func (this *ActivityStreamsBccProperty) PrependForgeFedTicket(v vocab.ForgeFedTicket) { + this.properties = append([]*ActivityStreamsBccPropertyIterator{{ + alias: this.alias, + forgefedTicketMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependForgeFedTicketDependency prepends a TicketDependency value to the front +// of a list of the property "bcc". Invalidates all iterators. +func (this *ActivityStreamsBccProperty) PrependForgeFedTicketDependency(v vocab.ForgeFedTicketDependency) { + this.properties = append([]*ActivityStreamsBccPropertyIterator{{ + alias: this.alias, + forgefedTicketDependencyMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + // PrependIRI prepends an IRI value to the front of a list of the property "bcc". func (this *ActivityStreamsBccProperty) PrependIRI(v *url.URL) { this.properties = append([]*ActivityStreamsBccPropertyIterator{{ @@ -6343,6 +6892,83 @@ func (this *ActivityStreamsBccProperty) SetActivityStreamsView(idx int, v vocab. } } +// SetForgeFedBranch sets a Branch value to be at the specified index for the +// property "bcc". Panics if the index is out of bounds. Invalidates all +// iterators. +func (this *ActivityStreamsBccProperty) SetForgeFedBranch(idx int, v vocab.ForgeFedBranch) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsBccPropertyIterator{ + alias: this.alias, + forgefedBranchMember: v, + myIdx: idx, + parent: this, + } +} + +// SetForgeFedCommit sets a Commit value to be at the specified index for the +// property "bcc". Panics if the index is out of bounds. Invalidates all +// iterators. +func (this *ActivityStreamsBccProperty) SetForgeFedCommit(idx int, v vocab.ForgeFedCommit) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsBccPropertyIterator{ + alias: this.alias, + forgefedCommitMember: v, + myIdx: idx, + parent: this, + } +} + +// SetForgeFedPush sets a Push value to be at the specified index for the property +// "bcc". Panics if the index is out of bounds. Invalidates all iterators. +func (this *ActivityStreamsBccProperty) SetForgeFedPush(idx int, v vocab.ForgeFedPush) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsBccPropertyIterator{ + alias: this.alias, + forgefedPushMember: v, + myIdx: idx, + parent: this, + } +} + +// SetForgeFedRepository sets a Repository value to be at the specified index for +// the property "bcc". Panics if the index is out of bounds. Invalidates all +// iterators. +func (this *ActivityStreamsBccProperty) SetForgeFedRepository(idx int, v vocab.ForgeFedRepository) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsBccPropertyIterator{ + alias: this.alias, + forgefedRepositoryMember: v, + myIdx: idx, + parent: this, + } +} + +// SetForgeFedTicket sets a Ticket value to be at the specified index for the +// property "bcc". Panics if the index is out of bounds. Invalidates all +// iterators. +func (this *ActivityStreamsBccProperty) SetForgeFedTicket(idx int, v vocab.ForgeFedTicket) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsBccPropertyIterator{ + alias: this.alias, + forgefedTicketMember: v, + myIdx: idx, + parent: this, + } +} + +// SetForgeFedTicketDependency sets a TicketDependency value to be at the +// specified index for the property "bcc". Panics if the index is out of +// bounds. Invalidates all iterators. +func (this *ActivityStreamsBccProperty) SetForgeFedTicketDependency(idx int, v vocab.ForgeFedTicketDependency) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsBccPropertyIterator{ + alias: this.alias, + forgefedTicketDependencyMember: v, + myIdx: idx, + parent: this, + } +} + // SetIRI sets an IRI value to be at the specified index for the property "bcc". // Panics if the index is out of bounds. func (this *ActivityStreamsBccProperty) SetIRI(idx int, v *url.URL) { diff --git a/streams/impl/activitystreams/property_bto/gen_pkg.go b/streams/impl/activitystreams/property_bto/gen_pkg.go index 365eaf2..151b80b 100644 --- a/streams/impl/activitystreams/property_bto/gen_pkg.go +++ b/streams/impl/activitystreams/property_bto/gen_pkg.go @@ -45,6 +45,10 @@ type privateManager interface { // 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" @@ -53,6 +57,10 @@ type privateManager interface { // 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" @@ -177,6 +185,9 @@ type privateManager interface { // 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" @@ -197,6 +208,10 @@ type privateManager interface { // 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" @@ -209,6 +224,14 @@ type privateManager interface { // 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" diff --git a/streams/impl/activitystreams/property_bto/gen_property_activitystreams_bto.go b/streams/impl/activitystreams/property_bto/gen_property_activitystreams_bto.go index 73fd2b8..a3e8b2c 100644 --- a/streams/impl/activitystreams/property_bto/gen_property_activitystreams_bto.go +++ b/streams/impl/activitystreams/property_bto/gen_property_activitystreams_bto.go @@ -25,8 +25,10 @@ type ActivityStreamsBtoPropertyIterator struct { 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 @@ -56,14 +58,18 @@ type ActivityStreamsBtoPropertyIterator struct { 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 @@ -168,6 +174,12 @@ func deserializeActivityStreamsBtoPropertyIterator(i interface{}, aliasMap map[s alias: alias, } return this, nil + } else if v, err := mgr.DeserializeBranchForgeFed()(m, aliasMap); err == nil { + this := &ActivityStreamsBtoPropertyIterator{ + alias: alias, + forgefedBranchMember: v, + } + return this, nil } else if v, err := mgr.DeserializeCollectionActivityStreams()(m, aliasMap); err == nil { this := &ActivityStreamsBtoPropertyIterator{ activitystreamsCollectionMember: v, @@ -180,6 +192,12 @@ func deserializeActivityStreamsBtoPropertyIterator(i interface{}, aliasMap map[s alias: alias, } return this, nil + } else if v, err := mgr.DeserializeCommitForgeFed()(m, aliasMap); err == nil { + this := &ActivityStreamsBtoPropertyIterator{ + alias: alias, + forgefedCommitMember: v, + } + return this, nil } else if v, err := mgr.DeserializeCreateActivityStreams()(m, aliasMap); err == nil { this := &ActivityStreamsBtoPropertyIterator{ activitystreamsCreateMember: v, @@ -354,6 +372,12 @@ func deserializeActivityStreamsBtoPropertyIterator(i interface{}, aliasMap map[s alias: alias, } return this, nil + } else if v, err := mgr.DeserializePushForgeFed()(m, aliasMap); err == nil { + this := &ActivityStreamsBtoPropertyIterator{ + alias: alias, + forgefedPushMember: v, + } + return this, nil } else if v, err := mgr.DeserializeQuestionActivityStreams()(m, aliasMap); err == nil { this := &ActivityStreamsBtoPropertyIterator{ activitystreamsQuestionMember: v, @@ -384,6 +408,12 @@ func deserializeActivityStreamsBtoPropertyIterator(i interface{}, aliasMap map[s alias: alias, } return this, nil + } else if v, err := mgr.DeserializeRepositoryForgeFed()(m, aliasMap); err == nil { + this := &ActivityStreamsBtoPropertyIterator{ + alias: alias, + forgefedRepositoryMember: v, + } + return this, nil } else if v, err := mgr.DeserializeServiceActivityStreams()(m, aliasMap); err == nil { this := &ActivityStreamsBtoPropertyIterator{ activitystreamsServiceMember: v, @@ -402,6 +432,18 @@ func deserializeActivityStreamsBtoPropertyIterator(i interface{}, aliasMap map[s alias: alias, } return this, nil + } else if v, err := mgr.DeserializeTicketForgeFed()(m, aliasMap); err == nil { + this := &ActivityStreamsBtoPropertyIterator{ + alias: alias, + forgefedTicketMember: v, + } + return this, nil + } else if v, err := mgr.DeserializeTicketDependencyForgeFed()(m, aliasMap); err == nil { + this := &ActivityStreamsBtoPropertyIterator{ + alias: alias, + forgefedTicketDependencyMember: v, + } + return this, nil } else if v, err := mgr.DeserializeTombstoneActivityStreams()(m, aliasMap); err == nil { this := &ActivityStreamsBtoPropertyIterator{ activitystreamsTombstoneMember: v, @@ -825,6 +867,44 @@ func (this ActivityStreamsBtoPropertyIterator) GetActivityStreamsView() vocab.Ac return this.activitystreamsViewMember } +// GetForgeFedBranch returns the value of this property. When IsForgeFedBranch +// returns false, GetForgeFedBranch will return an arbitrary value. +func (this ActivityStreamsBtoPropertyIterator) GetForgeFedBranch() vocab.ForgeFedBranch { + return this.forgefedBranchMember +} + +// GetForgeFedCommit returns the value of this property. When IsForgeFedCommit +// returns false, GetForgeFedCommit will return an arbitrary value. +func (this ActivityStreamsBtoPropertyIterator) GetForgeFedCommit() vocab.ForgeFedCommit { + return this.forgefedCommitMember +} + +// GetForgeFedPush returns the value of this property. When IsForgeFedPush returns +// false, GetForgeFedPush will return an arbitrary value. +func (this ActivityStreamsBtoPropertyIterator) GetForgeFedPush() vocab.ForgeFedPush { + return this.forgefedPushMember +} + +// GetForgeFedRepository returns the value of this property. When +// IsForgeFedRepository returns false, GetForgeFedRepository will return an +// arbitrary value. +func (this ActivityStreamsBtoPropertyIterator) GetForgeFedRepository() vocab.ForgeFedRepository { + return this.forgefedRepositoryMember +} + +// GetForgeFedTicket returns the value of this property. When IsForgeFedTicket +// returns false, GetForgeFedTicket will return an arbitrary value. +func (this ActivityStreamsBtoPropertyIterator) GetForgeFedTicket() vocab.ForgeFedTicket { + return this.forgefedTicketMember +} + +// GetForgeFedTicketDependency returns the value of this property. When +// IsForgeFedTicketDependency returns false, GetForgeFedTicketDependency will +// return an arbitrary value. +func (this ActivityStreamsBtoPropertyIterator) GetForgeFedTicketDependency() vocab.ForgeFedTicketDependency { + return this.forgefedTicketDependencyMember +} + // GetIRI returns the IRI of this property. When IsIRI returns false, GetIRI will // return an arbitrary value. func (this ActivityStreamsBtoPropertyIterator) GetIRI() *url.URL { @@ -880,12 +960,18 @@ func (this ActivityStreamsBtoPropertyIterator) GetType() vocab.Type { 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() } @@ -973,6 +1059,9 @@ func (this ActivityStreamsBtoPropertyIterator) GetType() vocab.Type { if this.IsActivityStreamsProfile() { return this.GetActivityStreamsProfile() } + if this.IsForgeFedPush() { + return this.GetForgeFedPush() + } if this.IsActivityStreamsQuestion() { return this.GetActivityStreamsQuestion() } @@ -988,6 +1077,9 @@ func (this ActivityStreamsBtoPropertyIterator) GetType() vocab.Type { if this.IsActivityStreamsRemove() { return this.GetActivityStreamsRemove() } + if this.IsForgeFedRepository() { + return this.GetForgeFedRepository() + } if this.IsActivityStreamsService() { return this.GetActivityStreamsService() } @@ -997,6 +1089,12 @@ func (this ActivityStreamsBtoPropertyIterator) GetType() vocab.Type { if this.IsActivityStreamsTentativeReject() { return this.GetActivityStreamsTentativeReject() } + if this.IsForgeFedTicket() { + return this.GetForgeFedTicket() + } + if this.IsForgeFedTicketDependency() { + return this.GetForgeFedTicketDependency() + } if this.IsActivityStreamsTombstone() { return this.GetActivityStreamsTombstone() } @@ -1032,8 +1130,10 @@ func (this ActivityStreamsBtoPropertyIterator) HasAny() bool { this.IsActivityStreamsArticle() || this.IsActivityStreamsAudio() || this.IsActivityStreamsBlock() || + this.IsForgeFedBranch() || this.IsActivityStreamsCollection() || this.IsActivityStreamsCollectionPage() || + this.IsForgeFedCommit() || this.IsActivityStreamsCreate() || this.IsActivityStreamsDelete() || this.IsActivityStreamsDislike() || @@ -1063,14 +1163,18 @@ func (this ActivityStreamsBtoPropertyIterator) HasAny() bool { 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() || @@ -1463,6 +1567,48 @@ func (this ActivityStreamsBtoPropertyIterator) IsActivityStreamsView() bool { return this.activitystreamsViewMember != nil } +// IsForgeFedBranch returns true if this property has a type of "Branch". When +// true, use the GetForgeFedBranch and SetForgeFedBranch methods to access and +// set this property. +func (this ActivityStreamsBtoPropertyIterator) IsForgeFedBranch() bool { + return this.forgefedBranchMember != nil +} + +// IsForgeFedCommit returns true if this property has a type of "Commit". When +// true, use the GetForgeFedCommit and SetForgeFedCommit methods to access and +// set this property. +func (this ActivityStreamsBtoPropertyIterator) IsForgeFedCommit() bool { + return this.forgefedCommitMember != nil +} + +// IsForgeFedPush returns true if this property has a type of "Push". When true, +// use the GetForgeFedPush and SetForgeFedPush methods to access and set this +// property. +func (this ActivityStreamsBtoPropertyIterator) IsForgeFedPush() bool { + return this.forgefedPushMember != nil +} + +// IsForgeFedRepository returns true if this property has a type of "Repository". +// When true, use the GetForgeFedRepository and SetForgeFedRepository methods +// to access and set this property. +func (this ActivityStreamsBtoPropertyIterator) IsForgeFedRepository() bool { + return this.forgefedRepositoryMember != nil +} + +// IsForgeFedTicket returns true if this property has a type of "Ticket". When +// true, use the GetForgeFedTicket and SetForgeFedTicket methods to access and +// set this property. +func (this ActivityStreamsBtoPropertyIterator) IsForgeFedTicket() bool { + return this.forgefedTicketMember != nil +} + +// IsForgeFedTicketDependency returns true if this property has a type of +// "TicketDependency". When true, use the GetForgeFedTicketDependency and +// SetForgeFedTicketDependency methods to access and set this property. +func (this ActivityStreamsBtoPropertyIterator) IsForgeFedTicketDependency() bool { + return this.forgefedTicketDependencyMember != nil +} + // IsIRI returns true if this property is an IRI. When true, use GetIRI and SetIRI // to access and set this property func (this ActivityStreamsBtoPropertyIterator) IsIRI() bool { @@ -1510,10 +1656,14 @@ func (this ActivityStreamsBtoPropertyIterator) JSONLDContext() map[string]string 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() { @@ -1572,6 +1722,8 @@ func (this ActivityStreamsBtoPropertyIterator) JSONLDContext() map[string]string 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() { @@ -1582,12 +1734,18 @@ func (this ActivityStreamsBtoPropertyIterator) JSONLDContext() map[string]string 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() { @@ -1649,141 +1807,159 @@ func (this ActivityStreamsBtoPropertyIterator) KindIndex() int { if this.IsActivityStreamsBlock() { return 10 } - if this.IsActivityStreamsCollection() { + if this.IsForgeFedBranch() { return 11 } - if this.IsActivityStreamsCollectionPage() { + if this.IsActivityStreamsCollection() { return 12 } - if this.IsActivityStreamsCreate() { + if this.IsActivityStreamsCollectionPage() { return 13 } - if this.IsActivityStreamsDelete() { + if this.IsForgeFedCommit() { return 14 } - if this.IsActivityStreamsDislike() { + if this.IsActivityStreamsCreate() { return 15 } - if this.IsActivityStreamsDocument() { + if this.IsActivityStreamsDelete() { return 16 } - if this.IsTootEmoji() { + if this.IsActivityStreamsDislike() { return 17 } - if this.IsActivityStreamsEvent() { + if this.IsActivityStreamsDocument() { return 18 } - if this.IsActivityStreamsFlag() { + if this.IsTootEmoji() { return 19 } - if this.IsActivityStreamsFollow() { + if this.IsActivityStreamsEvent() { return 20 } - if this.IsActivityStreamsGroup() { + if this.IsActivityStreamsFlag() { return 21 } - if this.IsTootIdentityProof() { + if this.IsActivityStreamsFollow() { return 22 } - if this.IsActivityStreamsIgnore() { + if this.IsActivityStreamsGroup() { return 23 } - if this.IsActivityStreamsImage() { + if this.IsTootIdentityProof() { return 24 } - if this.IsActivityStreamsIntransitiveActivity() { + if this.IsActivityStreamsIgnore() { return 25 } - if this.IsActivityStreamsInvite() { + if this.IsActivityStreamsImage() { return 26 } - if this.IsActivityStreamsJoin() { + if this.IsActivityStreamsIntransitiveActivity() { return 27 } - if this.IsActivityStreamsLeave() { + if this.IsActivityStreamsInvite() { return 28 } - if this.IsActivityStreamsLike() { + if this.IsActivityStreamsJoin() { return 29 } - if this.IsActivityStreamsListen() { + if this.IsActivityStreamsLeave() { return 30 } - if this.IsActivityStreamsMention() { + if this.IsActivityStreamsLike() { return 31 } - if this.IsActivityStreamsMove() { + if this.IsActivityStreamsListen() { return 32 } - if this.IsActivityStreamsNote() { + if this.IsActivityStreamsMention() { return 33 } - if this.IsActivityStreamsOffer() { + if this.IsActivityStreamsMove() { return 34 } - if this.IsActivityStreamsOrderedCollection() { + if this.IsActivityStreamsNote() { return 35 } - if this.IsActivityStreamsOrderedCollectionPage() { + if this.IsActivityStreamsOffer() { return 36 } - if this.IsActivityStreamsOrganization() { + if this.IsActivityStreamsOrderedCollection() { return 37 } - if this.IsActivityStreamsPage() { + if this.IsActivityStreamsOrderedCollectionPage() { return 38 } - if this.IsActivityStreamsPerson() { + if this.IsActivityStreamsOrganization() { return 39 } - if this.IsActivityStreamsPlace() { + if this.IsActivityStreamsPage() { return 40 } - if this.IsActivityStreamsProfile() { + if this.IsActivityStreamsPerson() { return 41 } - if this.IsActivityStreamsQuestion() { + if this.IsActivityStreamsPlace() { return 42 } - if this.IsActivityStreamsRead() { + if this.IsActivityStreamsProfile() { return 43 } - if this.IsActivityStreamsReject() { + if this.IsForgeFedPush() { return 44 } - if this.IsActivityStreamsRelationship() { + if this.IsActivityStreamsQuestion() { return 45 } - if this.IsActivityStreamsRemove() { + if this.IsActivityStreamsRead() { return 46 } - if this.IsActivityStreamsService() { + if this.IsActivityStreamsReject() { return 47 } - if this.IsActivityStreamsTentativeAccept() { + if this.IsActivityStreamsRelationship() { return 48 } - if this.IsActivityStreamsTentativeReject() { + if this.IsActivityStreamsRemove() { return 49 } - if this.IsActivityStreamsTombstone() { + if this.IsForgeFedRepository() { return 50 } - if this.IsActivityStreamsTravel() { + if this.IsActivityStreamsService() { return 51 } - if this.IsActivityStreamsUndo() { + if this.IsActivityStreamsTentativeAccept() { return 52 } - if this.IsActivityStreamsUpdate() { + if this.IsActivityStreamsTentativeReject() { return 53 } - if this.IsActivityStreamsVideo() { + if this.IsForgeFedTicket() { return 54 } - if this.IsActivityStreamsView() { + 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 } @@ -1823,10 +1999,14 @@ func (this ActivityStreamsBtoPropertyIterator) LessThan(o vocab.ActivityStreamsB 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() { @@ -1885,6 +2065,8 @@ func (this ActivityStreamsBtoPropertyIterator) LessThan(o vocab.ActivityStreamsB 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() { @@ -1895,12 +2077,18 @@ func (this ActivityStreamsBtoPropertyIterator) LessThan(o vocab.ActivityStreamsB 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() { @@ -2324,6 +2512,48 @@ func (this *ActivityStreamsBtoPropertyIterator) SetActivityStreamsView(v vocab.A this.activitystreamsViewMember = v } +// SetForgeFedBranch sets the value of this property. Calling IsForgeFedBranch +// afterwards returns true. +func (this *ActivityStreamsBtoPropertyIterator) SetForgeFedBranch(v vocab.ForgeFedBranch) { + this.clear() + this.forgefedBranchMember = v +} + +// SetForgeFedCommit sets the value of this property. Calling IsForgeFedCommit +// afterwards returns true. +func (this *ActivityStreamsBtoPropertyIterator) SetForgeFedCommit(v vocab.ForgeFedCommit) { + this.clear() + this.forgefedCommitMember = v +} + +// SetForgeFedPush sets the value of this property. Calling IsForgeFedPush +// afterwards returns true. +func (this *ActivityStreamsBtoPropertyIterator) SetForgeFedPush(v vocab.ForgeFedPush) { + this.clear() + this.forgefedPushMember = v +} + +// SetForgeFedRepository sets the value of this property. Calling +// IsForgeFedRepository afterwards returns true. +func (this *ActivityStreamsBtoPropertyIterator) SetForgeFedRepository(v vocab.ForgeFedRepository) { + this.clear() + this.forgefedRepositoryMember = v +} + +// SetForgeFedTicket sets the value of this property. Calling IsForgeFedTicket +// afterwards returns true. +func (this *ActivityStreamsBtoPropertyIterator) SetForgeFedTicket(v vocab.ForgeFedTicket) { + this.clear() + this.forgefedTicketMember = v +} + +// SetForgeFedTicketDependency sets the value of this property. Calling +// IsForgeFedTicketDependency afterwards returns true. +func (this *ActivityStreamsBtoPropertyIterator) SetForgeFedTicketDependency(v vocab.ForgeFedTicketDependency) { + this.clear() + this.forgefedTicketDependencyMember = v +} + // SetIRI sets the value of this property. Calling IsIRI afterwards returns true. func (this *ActivityStreamsBtoPropertyIterator) SetIRI(v *url.URL) { this.clear() @@ -2391,6 +2621,10 @@ func (this *ActivityStreamsBtoPropertyIterator) SetType(t vocab.Type) error { 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 @@ -2399,6 +2633,10 @@ func (this *ActivityStreamsBtoPropertyIterator) SetType(t vocab.Type) error { 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 @@ -2515,6 +2753,10 @@ func (this *ActivityStreamsBtoPropertyIterator) SetType(t vocab.Type) error { 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 @@ -2535,6 +2777,10 @@ func (this *ActivityStreamsBtoPropertyIterator) SetType(t vocab.Type) error { 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 @@ -2547,6 +2793,14 @@ func (this *ActivityStreamsBtoPropertyIterator) SetType(t vocab.Type) error { 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 @@ -2589,8 +2843,10 @@ func (this *ActivityStreamsBtoPropertyIterator) clear() { 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 @@ -2620,14 +2876,18 @@ func (this *ActivityStreamsBtoPropertyIterator) clear() { 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 @@ -2665,10 +2925,14 @@ func (this ActivityStreamsBtoPropertyIterator) serialize() (interface{}, error) 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() { @@ -2727,6 +2991,8 @@ func (this ActivityStreamsBtoPropertyIterator) serialize() (interface{}, error) 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() { @@ -2737,12 +3003,18 @@ func (this ActivityStreamsBtoPropertyIterator) serialize() (interface{}, error) 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() { @@ -3420,6 +3692,73 @@ func (this *ActivityStreamsBtoProperty) AppendActivityStreamsView(v vocab.Activi }) } +// AppendForgeFedBranch appends a Branch value to the back of a list of the +// property "bto". Invalidates iterators that are traversing using Prev. +func (this *ActivityStreamsBtoProperty) AppendForgeFedBranch(v vocab.ForgeFedBranch) { + this.properties = append(this.properties, &ActivityStreamsBtoPropertyIterator{ + alias: this.alias, + forgefedBranchMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendForgeFedCommit appends a Commit value to the back of a list of the +// property "bto". Invalidates iterators that are traversing using Prev. +func (this *ActivityStreamsBtoProperty) AppendForgeFedCommit(v vocab.ForgeFedCommit) { + this.properties = append(this.properties, &ActivityStreamsBtoPropertyIterator{ + alias: this.alias, + forgefedCommitMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendForgeFedPush appends a Push value to the back of a list of the property +// "bto". Invalidates iterators that are traversing using Prev. +func (this *ActivityStreamsBtoProperty) AppendForgeFedPush(v vocab.ForgeFedPush) { + this.properties = append(this.properties, &ActivityStreamsBtoPropertyIterator{ + alias: this.alias, + forgefedPushMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendForgeFedRepository appends a Repository value to the back of a list of +// the property "bto". Invalidates iterators that are traversing using Prev. +func (this *ActivityStreamsBtoProperty) AppendForgeFedRepository(v vocab.ForgeFedRepository) { + this.properties = append(this.properties, &ActivityStreamsBtoPropertyIterator{ + alias: this.alias, + forgefedRepositoryMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendForgeFedTicket appends a Ticket value to the back of a list of the +// property "bto". Invalidates iterators that are traversing using Prev. +func (this *ActivityStreamsBtoProperty) AppendForgeFedTicket(v vocab.ForgeFedTicket) { + this.properties = append(this.properties, &ActivityStreamsBtoPropertyIterator{ + alias: this.alias, + forgefedTicketMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendForgeFedTicketDependency appends a TicketDependency value to the back of +// a list of the property "bto". Invalidates iterators that are traversing +// using Prev. +func (this *ActivityStreamsBtoProperty) AppendForgeFedTicketDependency(v vocab.ForgeFedTicketDependency) { + this.properties = append(this.properties, &ActivityStreamsBtoPropertyIterator{ + alias: this.alias, + forgefedTicketDependencyMember: v, + myIdx: this.Len(), + parent: this, + }) +} + // AppendIRI appends an IRI value to the back of a list of the property "bto" func (this *ActivityStreamsBtoProperty) AppendIRI(v *url.URL) { this.properties = append(this.properties, &ActivityStreamsBtoPropertyIterator{ @@ -4415,6 +4754,108 @@ func (this *ActivityStreamsBtoProperty) InsertActivityStreamsView(idx int, v voc } } +// InsertForgeFedBranch inserts a Branch value at the specified index for a +// property "bto". Existing elements at that index and higher are shifted back +// once. Invalidates all iterators. +func (this *ActivityStreamsBtoProperty) InsertForgeFedBranch(idx int, v vocab.ForgeFedBranch) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsBtoPropertyIterator{ + alias: this.alias, + forgefedBranchMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertForgeFedCommit inserts a Commit value at the specified index for a +// property "bto". Existing elements at that index and higher are shifted back +// once. Invalidates all iterators. +func (this *ActivityStreamsBtoProperty) InsertForgeFedCommit(idx int, v vocab.ForgeFedCommit) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsBtoPropertyIterator{ + alias: this.alias, + forgefedCommitMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertForgeFedPush inserts a Push value at the specified index for a property +// "bto". Existing elements at that index and higher are shifted back once. +// Invalidates all iterators. +func (this *ActivityStreamsBtoProperty) InsertForgeFedPush(idx int, v vocab.ForgeFedPush) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsBtoPropertyIterator{ + alias: this.alias, + forgefedPushMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertForgeFedRepository inserts a Repository value at the specified index for +// a property "bto". Existing elements at that index and higher are shifted +// back once. Invalidates all iterators. +func (this *ActivityStreamsBtoProperty) InsertForgeFedRepository(idx int, v vocab.ForgeFedRepository) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsBtoPropertyIterator{ + alias: this.alias, + forgefedRepositoryMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertForgeFedTicket inserts a Ticket value at the specified index for a +// property "bto". Existing elements at that index and higher are shifted back +// once. Invalidates all iterators. +func (this *ActivityStreamsBtoProperty) InsertForgeFedTicket(idx int, v vocab.ForgeFedTicket) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsBtoPropertyIterator{ + alias: this.alias, + forgefedTicketMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertForgeFedTicketDependency inserts a TicketDependency value at the +// specified index for a property "bto". Existing elements at that index and +// higher are shifted back once. Invalidates all iterators. +func (this *ActivityStreamsBtoProperty) InsertForgeFedTicketDependency(idx int, v vocab.ForgeFedTicketDependency) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsBtoPropertyIterator{ + alias: this.alias, + forgefedTicketDependencyMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + // Insert inserts an IRI value at the specified index for a property "bto". // Existing elements at that index and higher are shifted back once. // Invalidates all iterators. @@ -4572,182 +5013,206 @@ func (this ActivityStreamsBtoProperty) Less(i, j int) bool { rhs := this.properties[j].GetActivityStreamsBlock() return lhs.LessThan(rhs) } else if idx1 == 11 { + lhs := this.properties[i].GetForgeFedBranch() + rhs := this.properties[j].GetForgeFedBranch() + return lhs.LessThan(rhs) + } else if idx1 == 12 { lhs := this.properties[i].GetActivityStreamsCollection() rhs := this.properties[j].GetActivityStreamsCollection() return lhs.LessThan(rhs) - } else if idx1 == 12 { + } else if idx1 == 13 { lhs := this.properties[i].GetActivityStreamsCollectionPage() rhs := this.properties[j].GetActivityStreamsCollectionPage() return lhs.LessThan(rhs) - } else if idx1 == 13 { + } else if idx1 == 14 { + lhs := this.properties[i].GetForgeFedCommit() + rhs := this.properties[j].GetForgeFedCommit() + return lhs.LessThan(rhs) + } else if idx1 == 15 { lhs := this.properties[i].GetActivityStreamsCreate() rhs := this.properties[j].GetActivityStreamsCreate() return lhs.LessThan(rhs) - } else if idx1 == 14 { + } else if idx1 == 16 { lhs := this.properties[i].GetActivityStreamsDelete() rhs := this.properties[j].GetActivityStreamsDelete() return lhs.LessThan(rhs) - } else if idx1 == 15 { + } else if idx1 == 17 { lhs := this.properties[i].GetActivityStreamsDislike() rhs := this.properties[j].GetActivityStreamsDislike() return lhs.LessThan(rhs) - } else if idx1 == 16 { + } else if idx1 == 18 { lhs := this.properties[i].GetActivityStreamsDocument() rhs := this.properties[j].GetActivityStreamsDocument() return lhs.LessThan(rhs) - } else if idx1 == 17 { + } else if idx1 == 19 { lhs := this.properties[i].GetTootEmoji() rhs := this.properties[j].GetTootEmoji() return lhs.LessThan(rhs) - } else if idx1 == 18 { + } else if idx1 == 20 { lhs := this.properties[i].GetActivityStreamsEvent() rhs := this.properties[j].GetActivityStreamsEvent() return lhs.LessThan(rhs) - } else if idx1 == 19 { + } else if idx1 == 21 { lhs := this.properties[i].GetActivityStreamsFlag() rhs := this.properties[j].GetActivityStreamsFlag() return lhs.LessThan(rhs) - } else if idx1 == 20 { + } else if idx1 == 22 { lhs := this.properties[i].GetActivityStreamsFollow() rhs := this.properties[j].GetActivityStreamsFollow() return lhs.LessThan(rhs) - } else if idx1 == 21 { + } else if idx1 == 23 { lhs := this.properties[i].GetActivityStreamsGroup() rhs := this.properties[j].GetActivityStreamsGroup() return lhs.LessThan(rhs) - } else if idx1 == 22 { + } else if idx1 == 24 { lhs := this.properties[i].GetTootIdentityProof() rhs := this.properties[j].GetTootIdentityProof() return lhs.LessThan(rhs) - } else if idx1 == 23 { + } else if idx1 == 25 { lhs := this.properties[i].GetActivityStreamsIgnore() rhs := this.properties[j].GetActivityStreamsIgnore() return lhs.LessThan(rhs) - } else if idx1 == 24 { + } else if idx1 == 26 { lhs := this.properties[i].GetActivityStreamsImage() rhs := this.properties[j].GetActivityStreamsImage() return lhs.LessThan(rhs) - } else if idx1 == 25 { + } else if idx1 == 27 { lhs := this.properties[i].GetActivityStreamsIntransitiveActivity() rhs := this.properties[j].GetActivityStreamsIntransitiveActivity() return lhs.LessThan(rhs) - } else if idx1 == 26 { + } else if idx1 == 28 { lhs := this.properties[i].GetActivityStreamsInvite() rhs := this.properties[j].GetActivityStreamsInvite() return lhs.LessThan(rhs) - } else if idx1 == 27 { + } else if idx1 == 29 { lhs := this.properties[i].GetActivityStreamsJoin() rhs := this.properties[j].GetActivityStreamsJoin() return lhs.LessThan(rhs) - } else if idx1 == 28 { + } else if idx1 == 30 { lhs := this.properties[i].GetActivityStreamsLeave() rhs := this.properties[j].GetActivityStreamsLeave() return lhs.LessThan(rhs) - } else if idx1 == 29 { + } else if idx1 == 31 { lhs := this.properties[i].GetActivityStreamsLike() rhs := this.properties[j].GetActivityStreamsLike() return lhs.LessThan(rhs) - } else if idx1 == 30 { + } else if idx1 == 32 { lhs := this.properties[i].GetActivityStreamsListen() rhs := this.properties[j].GetActivityStreamsListen() return lhs.LessThan(rhs) - } else if idx1 == 31 { + } else if idx1 == 33 { lhs := this.properties[i].GetActivityStreamsMention() rhs := this.properties[j].GetActivityStreamsMention() return lhs.LessThan(rhs) - } else if idx1 == 32 { + } else if idx1 == 34 { lhs := this.properties[i].GetActivityStreamsMove() rhs := this.properties[j].GetActivityStreamsMove() return lhs.LessThan(rhs) - } else if idx1 == 33 { + } else if idx1 == 35 { lhs := this.properties[i].GetActivityStreamsNote() rhs := this.properties[j].GetActivityStreamsNote() return lhs.LessThan(rhs) - } else if idx1 == 34 { + } else if idx1 == 36 { lhs := this.properties[i].GetActivityStreamsOffer() rhs := this.properties[j].GetActivityStreamsOffer() return lhs.LessThan(rhs) - } else if idx1 == 35 { + } else if idx1 == 37 { lhs := this.properties[i].GetActivityStreamsOrderedCollection() rhs := this.properties[j].GetActivityStreamsOrderedCollection() return lhs.LessThan(rhs) - } else if idx1 == 36 { + } else if idx1 == 38 { lhs := this.properties[i].GetActivityStreamsOrderedCollectionPage() rhs := this.properties[j].GetActivityStreamsOrderedCollectionPage() return lhs.LessThan(rhs) - } else if idx1 == 37 { + } else if idx1 == 39 { lhs := this.properties[i].GetActivityStreamsOrganization() rhs := this.properties[j].GetActivityStreamsOrganization() return lhs.LessThan(rhs) - } else if idx1 == 38 { + } else if idx1 == 40 { lhs := this.properties[i].GetActivityStreamsPage() rhs := this.properties[j].GetActivityStreamsPage() return lhs.LessThan(rhs) - } else if idx1 == 39 { + } else if idx1 == 41 { lhs := this.properties[i].GetActivityStreamsPerson() rhs := this.properties[j].GetActivityStreamsPerson() return lhs.LessThan(rhs) - } else if idx1 == 40 { + } else if idx1 == 42 { lhs := this.properties[i].GetActivityStreamsPlace() rhs := this.properties[j].GetActivityStreamsPlace() return lhs.LessThan(rhs) - } else if idx1 == 41 { + } else if idx1 == 43 { lhs := this.properties[i].GetActivityStreamsProfile() rhs := this.properties[j].GetActivityStreamsProfile() return lhs.LessThan(rhs) - } else if idx1 == 42 { + } else if idx1 == 44 { + lhs := this.properties[i].GetForgeFedPush() + rhs := this.properties[j].GetForgeFedPush() + return lhs.LessThan(rhs) + } else if idx1 == 45 { lhs := this.properties[i].GetActivityStreamsQuestion() rhs := this.properties[j].GetActivityStreamsQuestion() return lhs.LessThan(rhs) - } else if idx1 == 43 { + } else if idx1 == 46 { lhs := this.properties[i].GetActivityStreamsRead() rhs := this.properties[j].GetActivityStreamsRead() return lhs.LessThan(rhs) - } else if idx1 == 44 { + } else if idx1 == 47 { lhs := this.properties[i].GetActivityStreamsReject() rhs := this.properties[j].GetActivityStreamsReject() return lhs.LessThan(rhs) - } else if idx1 == 45 { + } else if idx1 == 48 { lhs := this.properties[i].GetActivityStreamsRelationship() rhs := this.properties[j].GetActivityStreamsRelationship() return lhs.LessThan(rhs) - } else if idx1 == 46 { + } else if idx1 == 49 { lhs := this.properties[i].GetActivityStreamsRemove() rhs := this.properties[j].GetActivityStreamsRemove() return lhs.LessThan(rhs) - } else if idx1 == 47 { + } else if idx1 == 50 { + lhs := this.properties[i].GetForgeFedRepository() + rhs := this.properties[j].GetForgeFedRepository() + return lhs.LessThan(rhs) + } else if idx1 == 51 { lhs := this.properties[i].GetActivityStreamsService() rhs := this.properties[j].GetActivityStreamsService() return lhs.LessThan(rhs) - } else if idx1 == 48 { + } else if idx1 == 52 { lhs := this.properties[i].GetActivityStreamsTentativeAccept() rhs := this.properties[j].GetActivityStreamsTentativeAccept() return lhs.LessThan(rhs) - } else if idx1 == 49 { + } else if idx1 == 53 { lhs := this.properties[i].GetActivityStreamsTentativeReject() rhs := this.properties[j].GetActivityStreamsTentativeReject() return lhs.LessThan(rhs) - } else if idx1 == 50 { + } else if idx1 == 54 { + lhs := this.properties[i].GetForgeFedTicket() + rhs := this.properties[j].GetForgeFedTicket() + return lhs.LessThan(rhs) + } else if idx1 == 55 { + lhs := this.properties[i].GetForgeFedTicketDependency() + rhs := this.properties[j].GetForgeFedTicketDependency() + return lhs.LessThan(rhs) + } else if idx1 == 56 { lhs := this.properties[i].GetActivityStreamsTombstone() rhs := this.properties[j].GetActivityStreamsTombstone() return lhs.LessThan(rhs) - } else if idx1 == 51 { + } else if idx1 == 57 { lhs := this.properties[i].GetActivityStreamsTravel() rhs := this.properties[j].GetActivityStreamsTravel() return lhs.LessThan(rhs) - } else if idx1 == 52 { + } else if idx1 == 58 { lhs := this.properties[i].GetActivityStreamsUndo() rhs := this.properties[j].GetActivityStreamsUndo() return lhs.LessThan(rhs) - } else if idx1 == 53 { + } else if idx1 == 59 { lhs := this.properties[i].GetActivityStreamsUpdate() rhs := this.properties[j].GetActivityStreamsUpdate() return lhs.LessThan(rhs) - } else if idx1 == 54 { + } else if idx1 == 60 { lhs := this.properties[i].GetActivityStreamsVideo() rhs := this.properties[j].GetActivityStreamsVideo() return lhs.LessThan(rhs) - } else if idx1 == 55 { + } else if idx1 == 61 { lhs := this.properties[i].GetActivityStreamsView() rhs := this.properties[j].GetActivityStreamsView() return lhs.LessThan(rhs) @@ -5548,6 +6013,90 @@ func (this *ActivityStreamsBtoProperty) PrependActivityStreamsView(v vocab.Activ } } +// PrependForgeFedBranch prepends a Branch value to the front of a list of the +// property "bto". Invalidates all iterators. +func (this *ActivityStreamsBtoProperty) PrependForgeFedBranch(v vocab.ForgeFedBranch) { + this.properties = append([]*ActivityStreamsBtoPropertyIterator{{ + alias: this.alias, + forgefedBranchMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependForgeFedCommit prepends a Commit value to the front of a list of the +// property "bto". Invalidates all iterators. +func (this *ActivityStreamsBtoProperty) PrependForgeFedCommit(v vocab.ForgeFedCommit) { + this.properties = append([]*ActivityStreamsBtoPropertyIterator{{ + alias: this.alias, + forgefedCommitMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependForgeFedPush prepends a Push value to the front of a list of the +// property "bto". Invalidates all iterators. +func (this *ActivityStreamsBtoProperty) PrependForgeFedPush(v vocab.ForgeFedPush) { + this.properties = append([]*ActivityStreamsBtoPropertyIterator{{ + alias: this.alias, + forgefedPushMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependForgeFedRepository prepends a Repository value to the front of a list of +// the property "bto". Invalidates all iterators. +func (this *ActivityStreamsBtoProperty) PrependForgeFedRepository(v vocab.ForgeFedRepository) { + this.properties = append([]*ActivityStreamsBtoPropertyIterator{{ + alias: this.alias, + forgefedRepositoryMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependForgeFedTicket prepends a Ticket value to the front of a list of the +// property "bto". Invalidates all iterators. +func (this *ActivityStreamsBtoProperty) PrependForgeFedTicket(v vocab.ForgeFedTicket) { + this.properties = append([]*ActivityStreamsBtoPropertyIterator{{ + alias: this.alias, + forgefedTicketMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependForgeFedTicketDependency prepends a TicketDependency value to the front +// of a list of the property "bto". Invalidates all iterators. +func (this *ActivityStreamsBtoProperty) PrependForgeFedTicketDependency(v vocab.ForgeFedTicketDependency) { + this.properties = append([]*ActivityStreamsBtoPropertyIterator{{ + alias: this.alias, + forgefedTicketDependencyMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + // PrependIRI prepends an IRI value to the front of a list of the property "bto". func (this *ActivityStreamsBtoProperty) PrependIRI(v *url.URL) { this.properties = append([]*ActivityStreamsBtoPropertyIterator{{ @@ -6343,6 +6892,83 @@ func (this *ActivityStreamsBtoProperty) SetActivityStreamsView(idx int, v vocab. } } +// SetForgeFedBranch sets a Branch value to be at the specified index for the +// property "bto". Panics if the index is out of bounds. Invalidates all +// iterators. +func (this *ActivityStreamsBtoProperty) SetForgeFedBranch(idx int, v vocab.ForgeFedBranch) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsBtoPropertyIterator{ + alias: this.alias, + forgefedBranchMember: v, + myIdx: idx, + parent: this, + } +} + +// SetForgeFedCommit sets a Commit value to be at the specified index for the +// property "bto". Panics if the index is out of bounds. Invalidates all +// iterators. +func (this *ActivityStreamsBtoProperty) SetForgeFedCommit(idx int, v vocab.ForgeFedCommit) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsBtoPropertyIterator{ + alias: this.alias, + forgefedCommitMember: v, + myIdx: idx, + parent: this, + } +} + +// SetForgeFedPush sets a Push value to be at the specified index for the property +// "bto". Panics if the index is out of bounds. Invalidates all iterators. +func (this *ActivityStreamsBtoProperty) SetForgeFedPush(idx int, v vocab.ForgeFedPush) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsBtoPropertyIterator{ + alias: this.alias, + forgefedPushMember: v, + myIdx: idx, + parent: this, + } +} + +// SetForgeFedRepository sets a Repository value to be at the specified index for +// the property "bto". Panics if the index is out of bounds. Invalidates all +// iterators. +func (this *ActivityStreamsBtoProperty) SetForgeFedRepository(idx int, v vocab.ForgeFedRepository) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsBtoPropertyIterator{ + alias: this.alias, + forgefedRepositoryMember: v, + myIdx: idx, + parent: this, + } +} + +// SetForgeFedTicket sets a Ticket value to be at the specified index for the +// property "bto". Panics if the index is out of bounds. Invalidates all +// iterators. +func (this *ActivityStreamsBtoProperty) SetForgeFedTicket(idx int, v vocab.ForgeFedTicket) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsBtoPropertyIterator{ + alias: this.alias, + forgefedTicketMember: v, + myIdx: idx, + parent: this, + } +} + +// SetForgeFedTicketDependency sets a TicketDependency value to be at the +// specified index for the property "bto". Panics if the index is out of +// bounds. Invalidates all iterators. +func (this *ActivityStreamsBtoProperty) SetForgeFedTicketDependency(idx int, v vocab.ForgeFedTicketDependency) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsBtoPropertyIterator{ + alias: this.alias, + forgefedTicketDependencyMember: v, + myIdx: idx, + parent: this, + } +} + // SetIRI sets an IRI value to be at the specified index for the property "bto". // Panics if the index is out of bounds. func (this *ActivityStreamsBtoProperty) SetIRI(idx int, v *url.URL) { diff --git a/streams/impl/activitystreams/property_cc/gen_pkg.go b/streams/impl/activitystreams/property_cc/gen_pkg.go index 07b9b69..5671fdf 100644 --- a/streams/impl/activitystreams/property_cc/gen_pkg.go +++ b/streams/impl/activitystreams/property_cc/gen_pkg.go @@ -45,6 +45,10 @@ type privateManager interface { // 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" @@ -53,6 +57,10 @@ type privateManager interface { // 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" @@ -177,6 +185,9 @@ type privateManager interface { // 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" @@ -197,6 +208,10 @@ type privateManager interface { // 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" @@ -209,6 +224,14 @@ type privateManager interface { // 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" diff --git a/streams/impl/activitystreams/property_cc/gen_property_activitystreams_cc.go b/streams/impl/activitystreams/property_cc/gen_property_activitystreams_cc.go index d049cfc..e4df02f 100644 --- a/streams/impl/activitystreams/property_cc/gen_property_activitystreams_cc.go +++ b/streams/impl/activitystreams/property_cc/gen_property_activitystreams_cc.go @@ -25,8 +25,10 @@ type ActivityStreamsCcPropertyIterator struct { 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 @@ -56,14 +58,18 @@ type ActivityStreamsCcPropertyIterator struct { 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 @@ -168,6 +174,12 @@ func deserializeActivityStreamsCcPropertyIterator(i interface{}, aliasMap map[st alias: alias, } return this, nil + } else if v, err := mgr.DeserializeBranchForgeFed()(m, aliasMap); err == nil { + this := &ActivityStreamsCcPropertyIterator{ + alias: alias, + forgefedBranchMember: v, + } + return this, nil } else if v, err := mgr.DeserializeCollectionActivityStreams()(m, aliasMap); err == nil { this := &ActivityStreamsCcPropertyIterator{ activitystreamsCollectionMember: v, @@ -180,6 +192,12 @@ func deserializeActivityStreamsCcPropertyIterator(i interface{}, aliasMap map[st alias: alias, } return this, nil + } else if v, err := mgr.DeserializeCommitForgeFed()(m, aliasMap); err == nil { + this := &ActivityStreamsCcPropertyIterator{ + alias: alias, + forgefedCommitMember: v, + } + return this, nil } else if v, err := mgr.DeserializeCreateActivityStreams()(m, aliasMap); err == nil { this := &ActivityStreamsCcPropertyIterator{ activitystreamsCreateMember: v, @@ -354,6 +372,12 @@ func deserializeActivityStreamsCcPropertyIterator(i interface{}, aliasMap map[st alias: alias, } return this, nil + } else if v, err := mgr.DeserializePushForgeFed()(m, aliasMap); err == nil { + this := &ActivityStreamsCcPropertyIterator{ + alias: alias, + forgefedPushMember: v, + } + return this, nil } else if v, err := mgr.DeserializeQuestionActivityStreams()(m, aliasMap); err == nil { this := &ActivityStreamsCcPropertyIterator{ activitystreamsQuestionMember: v, @@ -384,6 +408,12 @@ func deserializeActivityStreamsCcPropertyIterator(i interface{}, aliasMap map[st alias: alias, } return this, nil + } else if v, err := mgr.DeserializeRepositoryForgeFed()(m, aliasMap); err == nil { + this := &ActivityStreamsCcPropertyIterator{ + alias: alias, + forgefedRepositoryMember: v, + } + return this, nil } else if v, err := mgr.DeserializeServiceActivityStreams()(m, aliasMap); err == nil { this := &ActivityStreamsCcPropertyIterator{ activitystreamsServiceMember: v, @@ -402,6 +432,18 @@ func deserializeActivityStreamsCcPropertyIterator(i interface{}, aliasMap map[st alias: alias, } return this, nil + } else if v, err := mgr.DeserializeTicketForgeFed()(m, aliasMap); err == nil { + this := &ActivityStreamsCcPropertyIterator{ + alias: alias, + forgefedTicketMember: v, + } + return this, nil + } else if v, err := mgr.DeserializeTicketDependencyForgeFed()(m, aliasMap); err == nil { + this := &ActivityStreamsCcPropertyIterator{ + alias: alias, + forgefedTicketDependencyMember: v, + } + return this, nil } else if v, err := mgr.DeserializeTombstoneActivityStreams()(m, aliasMap); err == nil { this := &ActivityStreamsCcPropertyIterator{ activitystreamsTombstoneMember: v, @@ -825,6 +867,44 @@ func (this ActivityStreamsCcPropertyIterator) GetActivityStreamsView() vocab.Act return this.activitystreamsViewMember } +// GetForgeFedBranch returns the value of this property. When IsForgeFedBranch +// returns false, GetForgeFedBranch will return an arbitrary value. +func (this ActivityStreamsCcPropertyIterator) GetForgeFedBranch() vocab.ForgeFedBranch { + return this.forgefedBranchMember +} + +// GetForgeFedCommit returns the value of this property. When IsForgeFedCommit +// returns false, GetForgeFedCommit will return an arbitrary value. +func (this ActivityStreamsCcPropertyIterator) GetForgeFedCommit() vocab.ForgeFedCommit { + return this.forgefedCommitMember +} + +// GetForgeFedPush returns the value of this property. When IsForgeFedPush returns +// false, GetForgeFedPush will return an arbitrary value. +func (this ActivityStreamsCcPropertyIterator) GetForgeFedPush() vocab.ForgeFedPush { + return this.forgefedPushMember +} + +// GetForgeFedRepository returns the value of this property. When +// IsForgeFedRepository returns false, GetForgeFedRepository will return an +// arbitrary value. +func (this ActivityStreamsCcPropertyIterator) GetForgeFedRepository() vocab.ForgeFedRepository { + return this.forgefedRepositoryMember +} + +// GetForgeFedTicket returns the value of this property. When IsForgeFedTicket +// returns false, GetForgeFedTicket will return an arbitrary value. +func (this ActivityStreamsCcPropertyIterator) GetForgeFedTicket() vocab.ForgeFedTicket { + return this.forgefedTicketMember +} + +// GetForgeFedTicketDependency returns the value of this property. When +// IsForgeFedTicketDependency returns false, GetForgeFedTicketDependency will +// return an arbitrary value. +func (this ActivityStreamsCcPropertyIterator) GetForgeFedTicketDependency() vocab.ForgeFedTicketDependency { + return this.forgefedTicketDependencyMember +} + // GetIRI returns the IRI of this property. When IsIRI returns false, GetIRI will // return an arbitrary value. func (this ActivityStreamsCcPropertyIterator) GetIRI() *url.URL { @@ -880,12 +960,18 @@ func (this ActivityStreamsCcPropertyIterator) GetType() vocab.Type { 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() } @@ -973,6 +1059,9 @@ func (this ActivityStreamsCcPropertyIterator) GetType() vocab.Type { if this.IsActivityStreamsProfile() { return this.GetActivityStreamsProfile() } + if this.IsForgeFedPush() { + return this.GetForgeFedPush() + } if this.IsActivityStreamsQuestion() { return this.GetActivityStreamsQuestion() } @@ -988,6 +1077,9 @@ func (this ActivityStreamsCcPropertyIterator) GetType() vocab.Type { if this.IsActivityStreamsRemove() { return this.GetActivityStreamsRemove() } + if this.IsForgeFedRepository() { + return this.GetForgeFedRepository() + } if this.IsActivityStreamsService() { return this.GetActivityStreamsService() } @@ -997,6 +1089,12 @@ func (this ActivityStreamsCcPropertyIterator) GetType() vocab.Type { if this.IsActivityStreamsTentativeReject() { return this.GetActivityStreamsTentativeReject() } + if this.IsForgeFedTicket() { + return this.GetForgeFedTicket() + } + if this.IsForgeFedTicketDependency() { + return this.GetForgeFedTicketDependency() + } if this.IsActivityStreamsTombstone() { return this.GetActivityStreamsTombstone() } @@ -1032,8 +1130,10 @@ func (this ActivityStreamsCcPropertyIterator) HasAny() bool { this.IsActivityStreamsArticle() || this.IsActivityStreamsAudio() || this.IsActivityStreamsBlock() || + this.IsForgeFedBranch() || this.IsActivityStreamsCollection() || this.IsActivityStreamsCollectionPage() || + this.IsForgeFedCommit() || this.IsActivityStreamsCreate() || this.IsActivityStreamsDelete() || this.IsActivityStreamsDislike() || @@ -1063,14 +1163,18 @@ func (this ActivityStreamsCcPropertyIterator) HasAny() bool { 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() || @@ -1463,6 +1567,48 @@ func (this ActivityStreamsCcPropertyIterator) IsActivityStreamsView() bool { return this.activitystreamsViewMember != nil } +// IsForgeFedBranch returns true if this property has a type of "Branch". When +// true, use the GetForgeFedBranch and SetForgeFedBranch methods to access and +// set this property. +func (this ActivityStreamsCcPropertyIterator) IsForgeFedBranch() bool { + return this.forgefedBranchMember != nil +} + +// IsForgeFedCommit returns true if this property has a type of "Commit". When +// true, use the GetForgeFedCommit and SetForgeFedCommit methods to access and +// set this property. +func (this ActivityStreamsCcPropertyIterator) IsForgeFedCommit() bool { + return this.forgefedCommitMember != nil +} + +// IsForgeFedPush returns true if this property has a type of "Push". When true, +// use the GetForgeFedPush and SetForgeFedPush methods to access and set this +// property. +func (this ActivityStreamsCcPropertyIterator) IsForgeFedPush() bool { + return this.forgefedPushMember != nil +} + +// IsForgeFedRepository returns true if this property has a type of "Repository". +// When true, use the GetForgeFedRepository and SetForgeFedRepository methods +// to access and set this property. +func (this ActivityStreamsCcPropertyIterator) IsForgeFedRepository() bool { + return this.forgefedRepositoryMember != nil +} + +// IsForgeFedTicket returns true if this property has a type of "Ticket". When +// true, use the GetForgeFedTicket and SetForgeFedTicket methods to access and +// set this property. +func (this ActivityStreamsCcPropertyIterator) IsForgeFedTicket() bool { + return this.forgefedTicketMember != nil +} + +// IsForgeFedTicketDependency returns true if this property has a type of +// "TicketDependency". When true, use the GetForgeFedTicketDependency and +// SetForgeFedTicketDependency methods to access and set this property. +func (this ActivityStreamsCcPropertyIterator) IsForgeFedTicketDependency() bool { + return this.forgefedTicketDependencyMember != nil +} + // IsIRI returns true if this property is an IRI. When true, use GetIRI and SetIRI // to access and set this property func (this ActivityStreamsCcPropertyIterator) IsIRI() bool { @@ -1510,10 +1656,14 @@ func (this ActivityStreamsCcPropertyIterator) JSONLDContext() map[string]string 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() { @@ -1572,6 +1722,8 @@ func (this ActivityStreamsCcPropertyIterator) JSONLDContext() map[string]string 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() { @@ -1582,12 +1734,18 @@ func (this ActivityStreamsCcPropertyIterator) JSONLDContext() map[string]string 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() { @@ -1649,141 +1807,159 @@ func (this ActivityStreamsCcPropertyIterator) KindIndex() int { if this.IsActivityStreamsBlock() { return 10 } - if this.IsActivityStreamsCollection() { + if this.IsForgeFedBranch() { return 11 } - if this.IsActivityStreamsCollectionPage() { + if this.IsActivityStreamsCollection() { return 12 } - if this.IsActivityStreamsCreate() { + if this.IsActivityStreamsCollectionPage() { return 13 } - if this.IsActivityStreamsDelete() { + if this.IsForgeFedCommit() { return 14 } - if this.IsActivityStreamsDislike() { + if this.IsActivityStreamsCreate() { return 15 } - if this.IsActivityStreamsDocument() { + if this.IsActivityStreamsDelete() { return 16 } - if this.IsTootEmoji() { + if this.IsActivityStreamsDislike() { return 17 } - if this.IsActivityStreamsEvent() { + if this.IsActivityStreamsDocument() { return 18 } - if this.IsActivityStreamsFlag() { + if this.IsTootEmoji() { return 19 } - if this.IsActivityStreamsFollow() { + if this.IsActivityStreamsEvent() { return 20 } - if this.IsActivityStreamsGroup() { + if this.IsActivityStreamsFlag() { return 21 } - if this.IsTootIdentityProof() { + if this.IsActivityStreamsFollow() { return 22 } - if this.IsActivityStreamsIgnore() { + if this.IsActivityStreamsGroup() { return 23 } - if this.IsActivityStreamsImage() { + if this.IsTootIdentityProof() { return 24 } - if this.IsActivityStreamsIntransitiveActivity() { + if this.IsActivityStreamsIgnore() { return 25 } - if this.IsActivityStreamsInvite() { + if this.IsActivityStreamsImage() { return 26 } - if this.IsActivityStreamsJoin() { + if this.IsActivityStreamsIntransitiveActivity() { return 27 } - if this.IsActivityStreamsLeave() { + if this.IsActivityStreamsInvite() { return 28 } - if this.IsActivityStreamsLike() { + if this.IsActivityStreamsJoin() { return 29 } - if this.IsActivityStreamsListen() { + if this.IsActivityStreamsLeave() { return 30 } - if this.IsActivityStreamsMention() { + if this.IsActivityStreamsLike() { return 31 } - if this.IsActivityStreamsMove() { + if this.IsActivityStreamsListen() { return 32 } - if this.IsActivityStreamsNote() { + if this.IsActivityStreamsMention() { return 33 } - if this.IsActivityStreamsOffer() { + if this.IsActivityStreamsMove() { return 34 } - if this.IsActivityStreamsOrderedCollection() { + if this.IsActivityStreamsNote() { return 35 } - if this.IsActivityStreamsOrderedCollectionPage() { + if this.IsActivityStreamsOffer() { return 36 } - if this.IsActivityStreamsOrganization() { + if this.IsActivityStreamsOrderedCollection() { return 37 } - if this.IsActivityStreamsPage() { + if this.IsActivityStreamsOrderedCollectionPage() { return 38 } - if this.IsActivityStreamsPerson() { + if this.IsActivityStreamsOrganization() { return 39 } - if this.IsActivityStreamsPlace() { + if this.IsActivityStreamsPage() { return 40 } - if this.IsActivityStreamsProfile() { + if this.IsActivityStreamsPerson() { return 41 } - if this.IsActivityStreamsQuestion() { + if this.IsActivityStreamsPlace() { return 42 } - if this.IsActivityStreamsRead() { + if this.IsActivityStreamsProfile() { return 43 } - if this.IsActivityStreamsReject() { + if this.IsForgeFedPush() { return 44 } - if this.IsActivityStreamsRelationship() { + if this.IsActivityStreamsQuestion() { return 45 } - if this.IsActivityStreamsRemove() { + if this.IsActivityStreamsRead() { return 46 } - if this.IsActivityStreamsService() { + if this.IsActivityStreamsReject() { return 47 } - if this.IsActivityStreamsTentativeAccept() { + if this.IsActivityStreamsRelationship() { return 48 } - if this.IsActivityStreamsTentativeReject() { + if this.IsActivityStreamsRemove() { return 49 } - if this.IsActivityStreamsTombstone() { + if this.IsForgeFedRepository() { return 50 } - if this.IsActivityStreamsTravel() { + if this.IsActivityStreamsService() { return 51 } - if this.IsActivityStreamsUndo() { + if this.IsActivityStreamsTentativeAccept() { return 52 } - if this.IsActivityStreamsUpdate() { + if this.IsActivityStreamsTentativeReject() { return 53 } - if this.IsActivityStreamsVideo() { + if this.IsForgeFedTicket() { return 54 } - if this.IsActivityStreamsView() { + 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 } @@ -1823,10 +1999,14 @@ func (this ActivityStreamsCcPropertyIterator) LessThan(o vocab.ActivityStreamsCc 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() { @@ -1885,6 +2065,8 @@ func (this ActivityStreamsCcPropertyIterator) LessThan(o vocab.ActivityStreamsCc 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() { @@ -1895,12 +2077,18 @@ func (this ActivityStreamsCcPropertyIterator) LessThan(o vocab.ActivityStreamsCc 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() { @@ -2324,6 +2512,48 @@ func (this *ActivityStreamsCcPropertyIterator) SetActivityStreamsView(v vocab.Ac this.activitystreamsViewMember = v } +// SetForgeFedBranch sets the value of this property. Calling IsForgeFedBranch +// afterwards returns true. +func (this *ActivityStreamsCcPropertyIterator) SetForgeFedBranch(v vocab.ForgeFedBranch) { + this.clear() + this.forgefedBranchMember = v +} + +// SetForgeFedCommit sets the value of this property. Calling IsForgeFedCommit +// afterwards returns true. +func (this *ActivityStreamsCcPropertyIterator) SetForgeFedCommit(v vocab.ForgeFedCommit) { + this.clear() + this.forgefedCommitMember = v +} + +// SetForgeFedPush sets the value of this property. Calling IsForgeFedPush +// afterwards returns true. +func (this *ActivityStreamsCcPropertyIterator) SetForgeFedPush(v vocab.ForgeFedPush) { + this.clear() + this.forgefedPushMember = v +} + +// SetForgeFedRepository sets the value of this property. Calling +// IsForgeFedRepository afterwards returns true. +func (this *ActivityStreamsCcPropertyIterator) SetForgeFedRepository(v vocab.ForgeFedRepository) { + this.clear() + this.forgefedRepositoryMember = v +} + +// SetForgeFedTicket sets the value of this property. Calling IsForgeFedTicket +// afterwards returns true. +func (this *ActivityStreamsCcPropertyIterator) SetForgeFedTicket(v vocab.ForgeFedTicket) { + this.clear() + this.forgefedTicketMember = v +} + +// SetForgeFedTicketDependency sets the value of this property. Calling +// IsForgeFedTicketDependency afterwards returns true. +func (this *ActivityStreamsCcPropertyIterator) SetForgeFedTicketDependency(v vocab.ForgeFedTicketDependency) { + this.clear() + this.forgefedTicketDependencyMember = v +} + // SetIRI sets the value of this property. Calling IsIRI afterwards returns true. func (this *ActivityStreamsCcPropertyIterator) SetIRI(v *url.URL) { this.clear() @@ -2391,6 +2621,10 @@ func (this *ActivityStreamsCcPropertyIterator) SetType(t vocab.Type) error { 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 @@ -2399,6 +2633,10 @@ func (this *ActivityStreamsCcPropertyIterator) SetType(t vocab.Type) error { 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 @@ -2515,6 +2753,10 @@ func (this *ActivityStreamsCcPropertyIterator) SetType(t vocab.Type) error { 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 @@ -2535,6 +2777,10 @@ func (this *ActivityStreamsCcPropertyIterator) SetType(t vocab.Type) error { 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 @@ -2547,6 +2793,14 @@ func (this *ActivityStreamsCcPropertyIterator) SetType(t vocab.Type) error { 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 @@ -2589,8 +2843,10 @@ func (this *ActivityStreamsCcPropertyIterator) clear() { 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 @@ -2620,14 +2876,18 @@ func (this *ActivityStreamsCcPropertyIterator) clear() { 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 @@ -2665,10 +2925,14 @@ func (this ActivityStreamsCcPropertyIterator) serialize() (interface{}, error) { 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() { @@ -2727,6 +2991,8 @@ func (this ActivityStreamsCcPropertyIterator) serialize() (interface{}, error) { 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() { @@ -2737,12 +3003,18 @@ func (this ActivityStreamsCcPropertyIterator) serialize() (interface{}, error) { 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() { @@ -3420,6 +3692,73 @@ func (this *ActivityStreamsCcProperty) AppendActivityStreamsView(v vocab.Activit }) } +// AppendForgeFedBranch appends a Branch value to the back of a list of the +// property "cc". Invalidates iterators that are traversing using Prev. +func (this *ActivityStreamsCcProperty) AppendForgeFedBranch(v vocab.ForgeFedBranch) { + this.properties = append(this.properties, &ActivityStreamsCcPropertyIterator{ + alias: this.alias, + forgefedBranchMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendForgeFedCommit appends a Commit value to the back of a list of the +// property "cc". Invalidates iterators that are traversing using Prev. +func (this *ActivityStreamsCcProperty) AppendForgeFedCommit(v vocab.ForgeFedCommit) { + this.properties = append(this.properties, &ActivityStreamsCcPropertyIterator{ + alias: this.alias, + forgefedCommitMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendForgeFedPush appends a Push value to the back of a list of the property +// "cc". Invalidates iterators that are traversing using Prev. +func (this *ActivityStreamsCcProperty) AppendForgeFedPush(v vocab.ForgeFedPush) { + this.properties = append(this.properties, &ActivityStreamsCcPropertyIterator{ + alias: this.alias, + forgefedPushMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendForgeFedRepository appends a Repository value to the back of a list of +// the property "cc". Invalidates iterators that are traversing using Prev. +func (this *ActivityStreamsCcProperty) AppendForgeFedRepository(v vocab.ForgeFedRepository) { + this.properties = append(this.properties, &ActivityStreamsCcPropertyIterator{ + alias: this.alias, + forgefedRepositoryMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendForgeFedTicket appends a Ticket value to the back of a list of the +// property "cc". Invalidates iterators that are traversing using Prev. +func (this *ActivityStreamsCcProperty) AppendForgeFedTicket(v vocab.ForgeFedTicket) { + this.properties = append(this.properties, &ActivityStreamsCcPropertyIterator{ + alias: this.alias, + forgefedTicketMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendForgeFedTicketDependency appends a TicketDependency value to the back of +// a list of the property "cc". Invalidates iterators that are traversing +// using Prev. +func (this *ActivityStreamsCcProperty) AppendForgeFedTicketDependency(v vocab.ForgeFedTicketDependency) { + this.properties = append(this.properties, &ActivityStreamsCcPropertyIterator{ + alias: this.alias, + forgefedTicketDependencyMember: v, + myIdx: this.Len(), + parent: this, + }) +} + // AppendIRI appends an IRI value to the back of a list of the property "cc" func (this *ActivityStreamsCcProperty) AppendIRI(v *url.URL) { this.properties = append(this.properties, &ActivityStreamsCcPropertyIterator{ @@ -4415,6 +4754,108 @@ func (this *ActivityStreamsCcProperty) InsertActivityStreamsView(idx int, v voca } } +// InsertForgeFedBranch inserts a Branch value at the specified index for a +// property "cc". Existing elements at that index and higher are shifted back +// once. Invalidates all iterators. +func (this *ActivityStreamsCcProperty) InsertForgeFedBranch(idx int, v vocab.ForgeFedBranch) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsCcPropertyIterator{ + alias: this.alias, + forgefedBranchMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertForgeFedCommit inserts a Commit value at the specified index for a +// property "cc". Existing elements at that index and higher are shifted back +// once. Invalidates all iterators. +func (this *ActivityStreamsCcProperty) InsertForgeFedCommit(idx int, v vocab.ForgeFedCommit) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsCcPropertyIterator{ + alias: this.alias, + forgefedCommitMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertForgeFedPush inserts a Push value at the specified index for a property +// "cc". Existing elements at that index and higher are shifted back once. +// Invalidates all iterators. +func (this *ActivityStreamsCcProperty) InsertForgeFedPush(idx int, v vocab.ForgeFedPush) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsCcPropertyIterator{ + alias: this.alias, + forgefedPushMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertForgeFedRepository inserts a Repository value at the specified index for +// a property "cc". Existing elements at that index and higher are shifted +// back once. Invalidates all iterators. +func (this *ActivityStreamsCcProperty) InsertForgeFedRepository(idx int, v vocab.ForgeFedRepository) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsCcPropertyIterator{ + alias: this.alias, + forgefedRepositoryMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertForgeFedTicket inserts a Ticket value at the specified index for a +// property "cc". Existing elements at that index and higher are shifted back +// once. Invalidates all iterators. +func (this *ActivityStreamsCcProperty) InsertForgeFedTicket(idx int, v vocab.ForgeFedTicket) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsCcPropertyIterator{ + alias: this.alias, + forgefedTicketMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertForgeFedTicketDependency inserts a TicketDependency value at the +// specified index for a property "cc". Existing elements at that index and +// higher are shifted back once. Invalidates all iterators. +func (this *ActivityStreamsCcProperty) InsertForgeFedTicketDependency(idx int, v vocab.ForgeFedTicketDependency) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsCcPropertyIterator{ + alias: this.alias, + forgefedTicketDependencyMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + // Insert inserts an IRI value at the specified index for a property "cc". // Existing elements at that index and higher are shifted back once. // Invalidates all iterators. @@ -4572,182 +5013,206 @@ func (this ActivityStreamsCcProperty) Less(i, j int) bool { rhs := this.properties[j].GetActivityStreamsBlock() return lhs.LessThan(rhs) } else if idx1 == 11 { + lhs := this.properties[i].GetForgeFedBranch() + rhs := this.properties[j].GetForgeFedBranch() + return lhs.LessThan(rhs) + } else if idx1 == 12 { lhs := this.properties[i].GetActivityStreamsCollection() rhs := this.properties[j].GetActivityStreamsCollection() return lhs.LessThan(rhs) - } else if idx1 == 12 { + } else if idx1 == 13 { lhs := this.properties[i].GetActivityStreamsCollectionPage() rhs := this.properties[j].GetActivityStreamsCollectionPage() return lhs.LessThan(rhs) - } else if idx1 == 13 { + } else if idx1 == 14 { + lhs := this.properties[i].GetForgeFedCommit() + rhs := this.properties[j].GetForgeFedCommit() + return lhs.LessThan(rhs) + } else if idx1 == 15 { lhs := this.properties[i].GetActivityStreamsCreate() rhs := this.properties[j].GetActivityStreamsCreate() return lhs.LessThan(rhs) - } else if idx1 == 14 { + } else if idx1 == 16 { lhs := this.properties[i].GetActivityStreamsDelete() rhs := this.properties[j].GetActivityStreamsDelete() return lhs.LessThan(rhs) - } else if idx1 == 15 { + } else if idx1 == 17 { lhs := this.properties[i].GetActivityStreamsDislike() rhs := this.properties[j].GetActivityStreamsDislike() return lhs.LessThan(rhs) - } else if idx1 == 16 { + } else if idx1 == 18 { lhs := this.properties[i].GetActivityStreamsDocument() rhs := this.properties[j].GetActivityStreamsDocument() return lhs.LessThan(rhs) - } else if idx1 == 17 { + } else if idx1 == 19 { lhs := this.properties[i].GetTootEmoji() rhs := this.properties[j].GetTootEmoji() return lhs.LessThan(rhs) - } else if idx1 == 18 { + } else if idx1 == 20 { lhs := this.properties[i].GetActivityStreamsEvent() rhs := this.properties[j].GetActivityStreamsEvent() return lhs.LessThan(rhs) - } else if idx1 == 19 { + } else if idx1 == 21 { lhs := this.properties[i].GetActivityStreamsFlag() rhs := this.properties[j].GetActivityStreamsFlag() return lhs.LessThan(rhs) - } else if idx1 == 20 { + } else if idx1 == 22 { lhs := this.properties[i].GetActivityStreamsFollow() rhs := this.properties[j].GetActivityStreamsFollow() return lhs.LessThan(rhs) - } else if idx1 == 21 { + } else if idx1 == 23 { lhs := this.properties[i].GetActivityStreamsGroup() rhs := this.properties[j].GetActivityStreamsGroup() return lhs.LessThan(rhs) - } else if idx1 == 22 { + } else if idx1 == 24 { lhs := this.properties[i].GetTootIdentityProof() rhs := this.properties[j].GetTootIdentityProof() return lhs.LessThan(rhs) - } else if idx1 == 23 { + } else if idx1 == 25 { lhs := this.properties[i].GetActivityStreamsIgnore() rhs := this.properties[j].GetActivityStreamsIgnore() return lhs.LessThan(rhs) - } else if idx1 == 24 { + } else if idx1 == 26 { lhs := this.properties[i].GetActivityStreamsImage() rhs := this.properties[j].GetActivityStreamsImage() return lhs.LessThan(rhs) - } else if idx1 == 25 { + } else if idx1 == 27 { lhs := this.properties[i].GetActivityStreamsIntransitiveActivity() rhs := this.properties[j].GetActivityStreamsIntransitiveActivity() return lhs.LessThan(rhs) - } else if idx1 == 26 { + } else if idx1 == 28 { lhs := this.properties[i].GetActivityStreamsInvite() rhs := this.properties[j].GetActivityStreamsInvite() return lhs.LessThan(rhs) - } else if idx1 == 27 { + } else if idx1 == 29 { lhs := this.properties[i].GetActivityStreamsJoin() rhs := this.properties[j].GetActivityStreamsJoin() return lhs.LessThan(rhs) - } else if idx1 == 28 { + } else if idx1 == 30 { lhs := this.properties[i].GetActivityStreamsLeave() rhs := this.properties[j].GetActivityStreamsLeave() return lhs.LessThan(rhs) - } else if idx1 == 29 { + } else if idx1 == 31 { lhs := this.properties[i].GetActivityStreamsLike() rhs := this.properties[j].GetActivityStreamsLike() return lhs.LessThan(rhs) - } else if idx1 == 30 { + } else if idx1 == 32 { lhs := this.properties[i].GetActivityStreamsListen() rhs := this.properties[j].GetActivityStreamsListen() return lhs.LessThan(rhs) - } else if idx1 == 31 { + } else if idx1 == 33 { lhs := this.properties[i].GetActivityStreamsMention() rhs := this.properties[j].GetActivityStreamsMention() return lhs.LessThan(rhs) - } else if idx1 == 32 { + } else if idx1 == 34 { lhs := this.properties[i].GetActivityStreamsMove() rhs := this.properties[j].GetActivityStreamsMove() return lhs.LessThan(rhs) - } else if idx1 == 33 { + } else if idx1 == 35 { lhs := this.properties[i].GetActivityStreamsNote() rhs := this.properties[j].GetActivityStreamsNote() return lhs.LessThan(rhs) - } else if idx1 == 34 { + } else if idx1 == 36 { lhs := this.properties[i].GetActivityStreamsOffer() rhs := this.properties[j].GetActivityStreamsOffer() return lhs.LessThan(rhs) - } else if idx1 == 35 { + } else if idx1 == 37 { lhs := this.properties[i].GetActivityStreamsOrderedCollection() rhs := this.properties[j].GetActivityStreamsOrderedCollection() return lhs.LessThan(rhs) - } else if idx1 == 36 { + } else if idx1 == 38 { lhs := this.properties[i].GetActivityStreamsOrderedCollectionPage() rhs := this.properties[j].GetActivityStreamsOrderedCollectionPage() return lhs.LessThan(rhs) - } else if idx1 == 37 { + } else if idx1 == 39 { lhs := this.properties[i].GetActivityStreamsOrganization() rhs := this.properties[j].GetActivityStreamsOrganization() return lhs.LessThan(rhs) - } else if idx1 == 38 { + } else if idx1 == 40 { lhs := this.properties[i].GetActivityStreamsPage() rhs := this.properties[j].GetActivityStreamsPage() return lhs.LessThan(rhs) - } else if idx1 == 39 { + } else if idx1 == 41 { lhs := this.properties[i].GetActivityStreamsPerson() rhs := this.properties[j].GetActivityStreamsPerson() return lhs.LessThan(rhs) - } else if idx1 == 40 { + } else if idx1 == 42 { lhs := this.properties[i].GetActivityStreamsPlace() rhs := this.properties[j].GetActivityStreamsPlace() return lhs.LessThan(rhs) - } else if idx1 == 41 { + } else if idx1 == 43 { lhs := this.properties[i].GetActivityStreamsProfile() rhs := this.properties[j].GetActivityStreamsProfile() return lhs.LessThan(rhs) - } else if idx1 == 42 { + } else if idx1 == 44 { + lhs := this.properties[i].GetForgeFedPush() + rhs := this.properties[j].GetForgeFedPush() + return lhs.LessThan(rhs) + } else if idx1 == 45 { lhs := this.properties[i].GetActivityStreamsQuestion() rhs := this.properties[j].GetActivityStreamsQuestion() return lhs.LessThan(rhs) - } else if idx1 == 43 { + } else if idx1 == 46 { lhs := this.properties[i].GetActivityStreamsRead() rhs := this.properties[j].GetActivityStreamsRead() return lhs.LessThan(rhs) - } else if idx1 == 44 { + } else if idx1 == 47 { lhs := this.properties[i].GetActivityStreamsReject() rhs := this.properties[j].GetActivityStreamsReject() return lhs.LessThan(rhs) - } else if idx1 == 45 { + } else if idx1 == 48 { lhs := this.properties[i].GetActivityStreamsRelationship() rhs := this.properties[j].GetActivityStreamsRelationship() return lhs.LessThan(rhs) - } else if idx1 == 46 { + } else if idx1 == 49 { lhs := this.properties[i].GetActivityStreamsRemove() rhs := this.properties[j].GetActivityStreamsRemove() return lhs.LessThan(rhs) - } else if idx1 == 47 { + } else if idx1 == 50 { + lhs := this.properties[i].GetForgeFedRepository() + rhs := this.properties[j].GetForgeFedRepository() + return lhs.LessThan(rhs) + } else if idx1 == 51 { lhs := this.properties[i].GetActivityStreamsService() rhs := this.properties[j].GetActivityStreamsService() return lhs.LessThan(rhs) - } else if idx1 == 48 { + } else if idx1 == 52 { lhs := this.properties[i].GetActivityStreamsTentativeAccept() rhs := this.properties[j].GetActivityStreamsTentativeAccept() return lhs.LessThan(rhs) - } else if idx1 == 49 { + } else if idx1 == 53 { lhs := this.properties[i].GetActivityStreamsTentativeReject() rhs := this.properties[j].GetActivityStreamsTentativeReject() return lhs.LessThan(rhs) - } else if idx1 == 50 { + } else if idx1 == 54 { + lhs := this.properties[i].GetForgeFedTicket() + rhs := this.properties[j].GetForgeFedTicket() + return lhs.LessThan(rhs) + } else if idx1 == 55 { + lhs := this.properties[i].GetForgeFedTicketDependency() + rhs := this.properties[j].GetForgeFedTicketDependency() + return lhs.LessThan(rhs) + } else if idx1 == 56 { lhs := this.properties[i].GetActivityStreamsTombstone() rhs := this.properties[j].GetActivityStreamsTombstone() return lhs.LessThan(rhs) - } else if idx1 == 51 { + } else if idx1 == 57 { lhs := this.properties[i].GetActivityStreamsTravel() rhs := this.properties[j].GetActivityStreamsTravel() return lhs.LessThan(rhs) - } else if idx1 == 52 { + } else if idx1 == 58 { lhs := this.properties[i].GetActivityStreamsUndo() rhs := this.properties[j].GetActivityStreamsUndo() return lhs.LessThan(rhs) - } else if idx1 == 53 { + } else if idx1 == 59 { lhs := this.properties[i].GetActivityStreamsUpdate() rhs := this.properties[j].GetActivityStreamsUpdate() return lhs.LessThan(rhs) - } else if idx1 == 54 { + } else if idx1 == 60 { lhs := this.properties[i].GetActivityStreamsVideo() rhs := this.properties[j].GetActivityStreamsVideo() return lhs.LessThan(rhs) - } else if idx1 == 55 { + } else if idx1 == 61 { lhs := this.properties[i].GetActivityStreamsView() rhs := this.properties[j].GetActivityStreamsView() return lhs.LessThan(rhs) @@ -5548,6 +6013,90 @@ func (this *ActivityStreamsCcProperty) PrependActivityStreamsView(v vocab.Activi } } +// PrependForgeFedBranch prepends a Branch value to the front of a list of the +// property "cc". Invalidates all iterators. +func (this *ActivityStreamsCcProperty) PrependForgeFedBranch(v vocab.ForgeFedBranch) { + this.properties = append([]*ActivityStreamsCcPropertyIterator{{ + alias: this.alias, + forgefedBranchMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependForgeFedCommit prepends a Commit value to the front of a list of the +// property "cc". Invalidates all iterators. +func (this *ActivityStreamsCcProperty) PrependForgeFedCommit(v vocab.ForgeFedCommit) { + this.properties = append([]*ActivityStreamsCcPropertyIterator{{ + alias: this.alias, + forgefedCommitMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependForgeFedPush prepends a Push value to the front of a list of the +// property "cc". Invalidates all iterators. +func (this *ActivityStreamsCcProperty) PrependForgeFedPush(v vocab.ForgeFedPush) { + this.properties = append([]*ActivityStreamsCcPropertyIterator{{ + alias: this.alias, + forgefedPushMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependForgeFedRepository prepends a Repository value to the front of a list of +// the property "cc". Invalidates all iterators. +func (this *ActivityStreamsCcProperty) PrependForgeFedRepository(v vocab.ForgeFedRepository) { + this.properties = append([]*ActivityStreamsCcPropertyIterator{{ + alias: this.alias, + forgefedRepositoryMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependForgeFedTicket prepends a Ticket value to the front of a list of the +// property "cc". Invalidates all iterators. +func (this *ActivityStreamsCcProperty) PrependForgeFedTicket(v vocab.ForgeFedTicket) { + this.properties = append([]*ActivityStreamsCcPropertyIterator{{ + alias: this.alias, + forgefedTicketMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependForgeFedTicketDependency prepends a TicketDependency value to the front +// of a list of the property "cc". Invalidates all iterators. +func (this *ActivityStreamsCcProperty) PrependForgeFedTicketDependency(v vocab.ForgeFedTicketDependency) { + this.properties = append([]*ActivityStreamsCcPropertyIterator{{ + alias: this.alias, + forgefedTicketDependencyMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + // PrependIRI prepends an IRI value to the front of a list of the property "cc". func (this *ActivityStreamsCcProperty) PrependIRI(v *url.URL) { this.properties = append([]*ActivityStreamsCcPropertyIterator{{ @@ -6343,6 +6892,83 @@ func (this *ActivityStreamsCcProperty) SetActivityStreamsView(idx int, v vocab.A } } +// SetForgeFedBranch sets a Branch value to be at the specified index for the +// property "cc". Panics if the index is out of bounds. Invalidates all +// iterators. +func (this *ActivityStreamsCcProperty) SetForgeFedBranch(idx int, v vocab.ForgeFedBranch) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsCcPropertyIterator{ + alias: this.alias, + forgefedBranchMember: v, + myIdx: idx, + parent: this, + } +} + +// SetForgeFedCommit sets a Commit value to be at the specified index for the +// property "cc". Panics if the index is out of bounds. Invalidates all +// iterators. +func (this *ActivityStreamsCcProperty) SetForgeFedCommit(idx int, v vocab.ForgeFedCommit) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsCcPropertyIterator{ + alias: this.alias, + forgefedCommitMember: v, + myIdx: idx, + parent: this, + } +} + +// SetForgeFedPush sets a Push value to be at the specified index for the property +// "cc". Panics if the index is out of bounds. Invalidates all iterators. +func (this *ActivityStreamsCcProperty) SetForgeFedPush(idx int, v vocab.ForgeFedPush) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsCcPropertyIterator{ + alias: this.alias, + forgefedPushMember: v, + myIdx: idx, + parent: this, + } +} + +// SetForgeFedRepository sets a Repository value to be at the specified index for +// the property "cc". Panics if the index is out of bounds. Invalidates all +// iterators. +func (this *ActivityStreamsCcProperty) SetForgeFedRepository(idx int, v vocab.ForgeFedRepository) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsCcPropertyIterator{ + alias: this.alias, + forgefedRepositoryMember: v, + myIdx: idx, + parent: this, + } +} + +// SetForgeFedTicket sets a Ticket value to be at the specified index for the +// property "cc". Panics if the index is out of bounds. Invalidates all +// iterators. +func (this *ActivityStreamsCcProperty) SetForgeFedTicket(idx int, v vocab.ForgeFedTicket) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsCcPropertyIterator{ + alias: this.alias, + forgefedTicketMember: v, + myIdx: idx, + parent: this, + } +} + +// SetForgeFedTicketDependency sets a TicketDependency value to be at the +// specified index for the property "cc". Panics if the index is out of +// bounds. Invalidates all iterators. +func (this *ActivityStreamsCcProperty) SetForgeFedTicketDependency(idx int, v vocab.ForgeFedTicketDependency) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsCcPropertyIterator{ + alias: this.alias, + forgefedTicketDependencyMember: v, + myIdx: idx, + parent: this, + } +} + // SetIRI sets an IRI value to be at the specified index for the property "cc". // Panics if the index is out of bounds. func (this *ActivityStreamsCcProperty) SetIRI(idx int, v *url.URL) { diff --git a/streams/impl/activitystreams/property_closed/gen_pkg.go b/streams/impl/activitystreams/property_closed/gen_pkg.go index 3cd546b..cc4ce57 100644 --- a/streams/impl/activitystreams/property_closed/gen_pkg.go +++ b/streams/impl/activitystreams/property_closed/gen_pkg.go @@ -45,6 +45,10 @@ type privateManager interface { // 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" @@ -53,6 +57,10 @@ type privateManager interface { // 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" @@ -177,6 +185,9 @@ type privateManager interface { // 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" @@ -197,6 +208,10 @@ type privateManager interface { // 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" @@ -209,6 +224,14 @@ type privateManager interface { // 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" diff --git a/streams/impl/activitystreams/property_closed/gen_property_activitystreams_closed.go b/streams/impl/activitystreams/property_closed/gen_property_activitystreams_closed.go index da1e864..ffe820f 100644 --- a/streams/impl/activitystreams/property_closed/gen_property_activitystreams_closed.go +++ b/streams/impl/activitystreams/property_closed/gen_property_activitystreams_closed.go @@ -32,8 +32,10 @@ type ActivityStreamsClosedPropertyIterator struct { 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 @@ -63,14 +65,18 @@ type ActivityStreamsClosedPropertyIterator struct { 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 @@ -176,6 +182,12 @@ func deserializeActivityStreamsClosedPropertyIterator(i interface{}, aliasMap ma alias: alias, } return this, nil + } else if v, err := mgr.DeserializeBranchForgeFed()(m, aliasMap); err == nil { + this := &ActivityStreamsClosedPropertyIterator{ + alias: alias, + forgefedBranchMember: v, + } + return this, nil } else if v, err := mgr.DeserializeCollectionActivityStreams()(m, aliasMap); err == nil { this := &ActivityStreamsClosedPropertyIterator{ activitystreamsCollectionMember: v, @@ -188,6 +200,12 @@ func deserializeActivityStreamsClosedPropertyIterator(i interface{}, aliasMap ma alias: alias, } return this, nil + } else if v, err := mgr.DeserializeCommitForgeFed()(m, aliasMap); err == nil { + this := &ActivityStreamsClosedPropertyIterator{ + alias: alias, + forgefedCommitMember: v, + } + return this, nil } else if v, err := mgr.DeserializeCreateActivityStreams()(m, aliasMap); err == nil { this := &ActivityStreamsClosedPropertyIterator{ activitystreamsCreateMember: v, @@ -362,6 +380,12 @@ func deserializeActivityStreamsClosedPropertyIterator(i interface{}, aliasMap ma alias: alias, } return this, nil + } else if v, err := mgr.DeserializePushForgeFed()(m, aliasMap); err == nil { + this := &ActivityStreamsClosedPropertyIterator{ + alias: alias, + forgefedPushMember: v, + } + return this, nil } else if v, err := mgr.DeserializeQuestionActivityStreams()(m, aliasMap); err == nil { this := &ActivityStreamsClosedPropertyIterator{ activitystreamsQuestionMember: v, @@ -392,6 +416,12 @@ func deserializeActivityStreamsClosedPropertyIterator(i interface{}, aliasMap ma alias: alias, } return this, nil + } else if v, err := mgr.DeserializeRepositoryForgeFed()(m, aliasMap); err == nil { + this := &ActivityStreamsClosedPropertyIterator{ + alias: alias, + forgefedRepositoryMember: v, + } + return this, nil } else if v, err := mgr.DeserializeServiceActivityStreams()(m, aliasMap); err == nil { this := &ActivityStreamsClosedPropertyIterator{ activitystreamsServiceMember: v, @@ -410,6 +440,18 @@ func deserializeActivityStreamsClosedPropertyIterator(i interface{}, aliasMap ma alias: alias, } return this, nil + } else if v, err := mgr.DeserializeTicketForgeFed()(m, aliasMap); err == nil { + this := &ActivityStreamsClosedPropertyIterator{ + alias: alias, + forgefedTicketMember: v, + } + return this, nil + } else if v, err := mgr.DeserializeTicketDependencyForgeFed()(m, aliasMap); err == nil { + this := &ActivityStreamsClosedPropertyIterator{ + alias: alias, + forgefedTicketDependencyMember: v, + } + return this, nil } else if v, err := mgr.DeserializeTombstoneActivityStreams()(m, aliasMap); err == nil { this := &ActivityStreamsClosedPropertyIterator{ activitystreamsTombstoneMember: v, @@ -848,6 +890,44 @@ func (this ActivityStreamsClosedPropertyIterator) GetActivityStreamsView() vocab return this.activitystreamsViewMember } +// GetForgeFedBranch returns the value of this property. When IsForgeFedBranch +// returns false, GetForgeFedBranch will return an arbitrary value. +func (this ActivityStreamsClosedPropertyIterator) GetForgeFedBranch() vocab.ForgeFedBranch { + return this.forgefedBranchMember +} + +// GetForgeFedCommit returns the value of this property. When IsForgeFedCommit +// returns false, GetForgeFedCommit will return an arbitrary value. +func (this ActivityStreamsClosedPropertyIterator) GetForgeFedCommit() vocab.ForgeFedCommit { + return this.forgefedCommitMember +} + +// GetForgeFedPush returns the value of this property. When IsForgeFedPush returns +// false, GetForgeFedPush will return an arbitrary value. +func (this ActivityStreamsClosedPropertyIterator) GetForgeFedPush() vocab.ForgeFedPush { + return this.forgefedPushMember +} + +// GetForgeFedRepository returns the value of this property. When +// IsForgeFedRepository returns false, GetForgeFedRepository will return an +// arbitrary value. +func (this ActivityStreamsClosedPropertyIterator) GetForgeFedRepository() vocab.ForgeFedRepository { + return this.forgefedRepositoryMember +} + +// GetForgeFedTicket returns the value of this property. When IsForgeFedTicket +// returns false, GetForgeFedTicket will return an arbitrary value. +func (this ActivityStreamsClosedPropertyIterator) GetForgeFedTicket() vocab.ForgeFedTicket { + return this.forgefedTicketMember +} + +// GetForgeFedTicketDependency returns the value of this property. When +// IsForgeFedTicketDependency returns false, GetForgeFedTicketDependency will +// return an arbitrary value. +func (this ActivityStreamsClosedPropertyIterator) GetForgeFedTicketDependency() vocab.ForgeFedTicketDependency { + return this.forgefedTicketDependencyMember +} + // GetIRI returns the IRI of this property. When IsIRI returns false, GetIRI will // return an arbitrary value. func (this ActivityStreamsClosedPropertyIterator) GetIRI() *url.URL { @@ -903,12 +983,18 @@ func (this ActivityStreamsClosedPropertyIterator) GetType() vocab.Type { 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() } @@ -996,6 +1082,9 @@ func (this ActivityStreamsClosedPropertyIterator) GetType() vocab.Type { if this.IsActivityStreamsProfile() { return this.GetActivityStreamsProfile() } + if this.IsForgeFedPush() { + return this.GetForgeFedPush() + } if this.IsActivityStreamsQuestion() { return this.GetActivityStreamsQuestion() } @@ -1011,6 +1100,9 @@ func (this ActivityStreamsClosedPropertyIterator) GetType() vocab.Type { if this.IsActivityStreamsRemove() { return this.GetActivityStreamsRemove() } + if this.IsForgeFedRepository() { + return this.GetForgeFedRepository() + } if this.IsActivityStreamsService() { return this.GetActivityStreamsService() } @@ -1020,6 +1112,12 @@ func (this ActivityStreamsClosedPropertyIterator) GetType() vocab.Type { if this.IsActivityStreamsTentativeReject() { return this.GetActivityStreamsTentativeReject() } + if this.IsForgeFedTicket() { + return this.GetForgeFedTicket() + } + if this.IsForgeFedTicketDependency() { + return this.GetForgeFedTicketDependency() + } if this.IsActivityStreamsTombstone() { return this.GetActivityStreamsTombstone() } @@ -1070,8 +1168,10 @@ func (this ActivityStreamsClosedPropertyIterator) HasAny() bool { this.IsActivityStreamsArticle() || this.IsActivityStreamsAudio() || this.IsActivityStreamsBlock() || + this.IsForgeFedBranch() || this.IsActivityStreamsCollection() || this.IsActivityStreamsCollectionPage() || + this.IsForgeFedCommit() || this.IsActivityStreamsCreate() || this.IsActivityStreamsDelete() || this.IsActivityStreamsDislike() || @@ -1101,14 +1201,18 @@ func (this ActivityStreamsClosedPropertyIterator) HasAny() bool { 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() || @@ -1501,6 +1605,48 @@ func (this ActivityStreamsClosedPropertyIterator) IsActivityStreamsView() bool { return this.activitystreamsViewMember != nil } +// IsForgeFedBranch returns true if this property has a type of "Branch". When +// true, use the GetForgeFedBranch and SetForgeFedBranch methods to access and +// set this property. +func (this ActivityStreamsClosedPropertyIterator) IsForgeFedBranch() bool { + return this.forgefedBranchMember != nil +} + +// IsForgeFedCommit returns true if this property has a type of "Commit". When +// true, use the GetForgeFedCommit and SetForgeFedCommit methods to access and +// set this property. +func (this ActivityStreamsClosedPropertyIterator) IsForgeFedCommit() bool { + return this.forgefedCommitMember != nil +} + +// IsForgeFedPush returns true if this property has a type of "Push". When true, +// use the GetForgeFedPush and SetForgeFedPush methods to access and set this +// property. +func (this ActivityStreamsClosedPropertyIterator) IsForgeFedPush() bool { + return this.forgefedPushMember != nil +} + +// IsForgeFedRepository returns true if this property has a type of "Repository". +// When true, use the GetForgeFedRepository and SetForgeFedRepository methods +// to access and set this property. +func (this ActivityStreamsClosedPropertyIterator) IsForgeFedRepository() bool { + return this.forgefedRepositoryMember != nil +} + +// IsForgeFedTicket returns true if this property has a type of "Ticket". When +// true, use the GetForgeFedTicket and SetForgeFedTicket methods to access and +// set this property. +func (this ActivityStreamsClosedPropertyIterator) IsForgeFedTicket() bool { + return this.forgefedTicketMember != nil +} + +// IsForgeFedTicketDependency returns true if this property has a type of +// "TicketDependency". When true, use the GetForgeFedTicketDependency and +// SetForgeFedTicketDependency methods to access and set this property. +func (this ActivityStreamsClosedPropertyIterator) IsForgeFedTicketDependency() bool { + return this.forgefedTicketDependencyMember != nil +} + // IsIRI returns true if this property is an IRI. When true, use GetIRI and SetIRI // to access and set this property func (this ActivityStreamsClosedPropertyIterator) IsIRI() bool { @@ -1562,10 +1708,14 @@ func (this ActivityStreamsClosedPropertyIterator) JSONLDContext() map[string]str 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() { @@ -1624,6 +1774,8 @@ func (this ActivityStreamsClosedPropertyIterator) JSONLDContext() map[string]str 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() { @@ -1634,12 +1786,18 @@ func (this ActivityStreamsClosedPropertyIterator) JSONLDContext() map[string]str 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() { @@ -1707,141 +1865,159 @@ func (this ActivityStreamsClosedPropertyIterator) KindIndex() int { if this.IsActivityStreamsBlock() { return 12 } - if this.IsActivityStreamsCollection() { + if this.IsForgeFedBranch() { return 13 } - if this.IsActivityStreamsCollectionPage() { + if this.IsActivityStreamsCollection() { return 14 } - if this.IsActivityStreamsCreate() { + if this.IsActivityStreamsCollectionPage() { return 15 } - if this.IsActivityStreamsDelete() { + if this.IsForgeFedCommit() { return 16 } - if this.IsActivityStreamsDislike() { + if this.IsActivityStreamsCreate() { return 17 } - if this.IsActivityStreamsDocument() { + if this.IsActivityStreamsDelete() { return 18 } - if this.IsTootEmoji() { + if this.IsActivityStreamsDislike() { return 19 } - if this.IsActivityStreamsEvent() { + if this.IsActivityStreamsDocument() { return 20 } - if this.IsActivityStreamsFlag() { + if this.IsTootEmoji() { return 21 } - if this.IsActivityStreamsFollow() { + if this.IsActivityStreamsEvent() { return 22 } - if this.IsActivityStreamsGroup() { + if this.IsActivityStreamsFlag() { return 23 } - if this.IsTootIdentityProof() { + if this.IsActivityStreamsFollow() { return 24 } - if this.IsActivityStreamsIgnore() { + if this.IsActivityStreamsGroup() { return 25 } - if this.IsActivityStreamsImage() { + if this.IsTootIdentityProof() { return 26 } - if this.IsActivityStreamsIntransitiveActivity() { + if this.IsActivityStreamsIgnore() { return 27 } - if this.IsActivityStreamsInvite() { + if this.IsActivityStreamsImage() { return 28 } - if this.IsActivityStreamsJoin() { + if this.IsActivityStreamsIntransitiveActivity() { return 29 } - if this.IsActivityStreamsLeave() { + if this.IsActivityStreamsInvite() { return 30 } - if this.IsActivityStreamsLike() { + if this.IsActivityStreamsJoin() { return 31 } - if this.IsActivityStreamsListen() { + if this.IsActivityStreamsLeave() { return 32 } - if this.IsActivityStreamsMention() { + if this.IsActivityStreamsLike() { return 33 } - if this.IsActivityStreamsMove() { + if this.IsActivityStreamsListen() { return 34 } - if this.IsActivityStreamsNote() { + if this.IsActivityStreamsMention() { return 35 } - if this.IsActivityStreamsOffer() { + if this.IsActivityStreamsMove() { return 36 } - if this.IsActivityStreamsOrderedCollection() { + if this.IsActivityStreamsNote() { return 37 } - if this.IsActivityStreamsOrderedCollectionPage() { + if this.IsActivityStreamsOffer() { return 38 } - if this.IsActivityStreamsOrganization() { + if this.IsActivityStreamsOrderedCollection() { return 39 } - if this.IsActivityStreamsPage() { + if this.IsActivityStreamsOrderedCollectionPage() { return 40 } - if this.IsActivityStreamsPerson() { + if this.IsActivityStreamsOrganization() { return 41 } - if this.IsActivityStreamsPlace() { + if this.IsActivityStreamsPage() { return 42 } - if this.IsActivityStreamsProfile() { + if this.IsActivityStreamsPerson() { return 43 } - if this.IsActivityStreamsQuestion() { + if this.IsActivityStreamsPlace() { return 44 } - if this.IsActivityStreamsRead() { + if this.IsActivityStreamsProfile() { return 45 } - if this.IsActivityStreamsReject() { + if this.IsForgeFedPush() { return 46 } - if this.IsActivityStreamsRelationship() { + if this.IsActivityStreamsQuestion() { return 47 } - if this.IsActivityStreamsRemove() { + if this.IsActivityStreamsRead() { return 48 } - if this.IsActivityStreamsService() { + if this.IsActivityStreamsReject() { return 49 } - if this.IsActivityStreamsTentativeAccept() { + if this.IsActivityStreamsRelationship() { return 50 } - if this.IsActivityStreamsTentativeReject() { + if this.IsActivityStreamsRemove() { return 51 } - if this.IsActivityStreamsTombstone() { + if this.IsForgeFedRepository() { return 52 } - if this.IsActivityStreamsTravel() { + if this.IsActivityStreamsService() { return 53 } - if this.IsActivityStreamsUndo() { + if this.IsActivityStreamsTentativeAccept() { return 54 } - if this.IsActivityStreamsUpdate() { + if this.IsActivityStreamsTentativeReject() { return 55 } - if this.IsActivityStreamsVideo() { + if this.IsForgeFedTicket() { return 56 } - if this.IsActivityStreamsView() { + if this.IsForgeFedTicketDependency() { return 57 } + if this.IsActivityStreamsTombstone() { + return 58 + } + if this.IsActivityStreamsTravel() { + return 59 + } + if this.IsActivityStreamsUndo() { + return 60 + } + if this.IsActivityStreamsUpdate() { + return 61 + } + if this.IsActivityStreamsVideo() { + return 62 + } + if this.IsActivityStreamsView() { + return 63 + } if this.IsIRI() { return -2 } @@ -1885,10 +2061,14 @@ func (this ActivityStreamsClosedPropertyIterator) LessThan(o vocab.ActivityStrea 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() { @@ -1947,6 +2127,8 @@ func (this ActivityStreamsClosedPropertyIterator) LessThan(o vocab.ActivityStrea 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() { @@ -1957,12 +2139,18 @@ func (this ActivityStreamsClosedPropertyIterator) LessThan(o vocab.ActivityStrea 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() { @@ -2386,6 +2574,48 @@ func (this *ActivityStreamsClosedPropertyIterator) SetActivityStreamsView(v voca this.activitystreamsViewMember = v } +// SetForgeFedBranch sets the value of this property. Calling IsForgeFedBranch +// afterwards returns true. +func (this *ActivityStreamsClosedPropertyIterator) SetForgeFedBranch(v vocab.ForgeFedBranch) { + this.clear() + this.forgefedBranchMember = v +} + +// SetForgeFedCommit sets the value of this property. Calling IsForgeFedCommit +// afterwards returns true. +func (this *ActivityStreamsClosedPropertyIterator) SetForgeFedCommit(v vocab.ForgeFedCommit) { + this.clear() + this.forgefedCommitMember = v +} + +// SetForgeFedPush sets the value of this property. Calling IsForgeFedPush +// afterwards returns true. +func (this *ActivityStreamsClosedPropertyIterator) SetForgeFedPush(v vocab.ForgeFedPush) { + this.clear() + this.forgefedPushMember = v +} + +// SetForgeFedRepository sets the value of this property. Calling +// IsForgeFedRepository afterwards returns true. +func (this *ActivityStreamsClosedPropertyIterator) SetForgeFedRepository(v vocab.ForgeFedRepository) { + this.clear() + this.forgefedRepositoryMember = v +} + +// SetForgeFedTicket sets the value of this property. Calling IsForgeFedTicket +// afterwards returns true. +func (this *ActivityStreamsClosedPropertyIterator) SetForgeFedTicket(v vocab.ForgeFedTicket) { + this.clear() + this.forgefedTicketMember = v +} + +// SetForgeFedTicketDependency sets the value of this property. Calling +// IsForgeFedTicketDependency afterwards returns true. +func (this *ActivityStreamsClosedPropertyIterator) SetForgeFedTicketDependency(v vocab.ForgeFedTicketDependency) { + this.clear() + this.forgefedTicketDependencyMember = v +} + // SetIRI sets the value of this property. Calling IsIRI afterwards returns true. func (this *ActivityStreamsClosedPropertyIterator) SetIRI(v *url.URL) { this.clear() @@ -2453,6 +2683,10 @@ func (this *ActivityStreamsClosedPropertyIterator) SetType(t vocab.Type) error { 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 @@ -2461,6 +2695,10 @@ func (this *ActivityStreamsClosedPropertyIterator) SetType(t vocab.Type) error { 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 @@ -2577,6 +2815,10 @@ func (this *ActivityStreamsClosedPropertyIterator) SetType(t vocab.Type) error { 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 @@ -2597,6 +2839,10 @@ func (this *ActivityStreamsClosedPropertyIterator) SetType(t vocab.Type) error { 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 @@ -2609,6 +2855,14 @@ func (this *ActivityStreamsClosedPropertyIterator) SetType(t vocab.Type) error { 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 @@ -2669,8 +2923,10 @@ func (this *ActivityStreamsClosedPropertyIterator) clear() { 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 @@ -2700,14 +2956,18 @@ func (this *ActivityStreamsClosedPropertyIterator) clear() { 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 @@ -2749,10 +3009,14 @@ func (this ActivityStreamsClosedPropertyIterator) serialize() (interface{}, erro 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() { @@ -2811,6 +3075,8 @@ func (this ActivityStreamsClosedPropertyIterator) serialize() (interface{}, erro 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() { @@ -2821,12 +3087,18 @@ func (this ActivityStreamsClosedPropertyIterator) serialize() (interface{}, erro 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() { @@ -3505,6 +3777,73 @@ func (this *ActivityStreamsClosedProperty) AppendActivityStreamsView(v vocab.Act }) } +// AppendForgeFedBranch appends a Branch value to the back of a list of the +// property "closed". Invalidates iterators that are traversing using Prev. +func (this *ActivityStreamsClosedProperty) AppendForgeFedBranch(v vocab.ForgeFedBranch) { + this.properties = append(this.properties, &ActivityStreamsClosedPropertyIterator{ + alias: this.alias, + forgefedBranchMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendForgeFedCommit appends a Commit value to the back of a list of the +// property "closed". Invalidates iterators that are traversing using Prev. +func (this *ActivityStreamsClosedProperty) AppendForgeFedCommit(v vocab.ForgeFedCommit) { + this.properties = append(this.properties, &ActivityStreamsClosedPropertyIterator{ + alias: this.alias, + forgefedCommitMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendForgeFedPush appends a Push value to the back of a list of the property +// "closed". Invalidates iterators that are traversing using Prev. +func (this *ActivityStreamsClosedProperty) AppendForgeFedPush(v vocab.ForgeFedPush) { + this.properties = append(this.properties, &ActivityStreamsClosedPropertyIterator{ + alias: this.alias, + forgefedPushMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendForgeFedRepository appends a Repository value to the back of a list of +// the property "closed". Invalidates iterators that are traversing using Prev. +func (this *ActivityStreamsClosedProperty) AppendForgeFedRepository(v vocab.ForgeFedRepository) { + this.properties = append(this.properties, &ActivityStreamsClosedPropertyIterator{ + alias: this.alias, + forgefedRepositoryMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendForgeFedTicket appends a Ticket value to the back of a list of the +// property "closed". Invalidates iterators that are traversing using Prev. +func (this *ActivityStreamsClosedProperty) AppendForgeFedTicket(v vocab.ForgeFedTicket) { + this.properties = append(this.properties, &ActivityStreamsClosedPropertyIterator{ + alias: this.alias, + forgefedTicketMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendForgeFedTicketDependency appends a TicketDependency value to the back of +// a list of the property "closed". Invalidates iterators that are traversing +// using Prev. +func (this *ActivityStreamsClosedProperty) AppendForgeFedTicketDependency(v vocab.ForgeFedTicketDependency) { + this.properties = append(this.properties, &ActivityStreamsClosedPropertyIterator{ + alias: this.alias, + forgefedTicketDependencyMember: v, + myIdx: this.Len(), + parent: this, + }) +} + // AppendIRI appends an IRI value to the back of a list of the property "closed" func (this *ActivityStreamsClosedProperty) AppendIRI(v *url.URL) { this.properties = append(this.properties, &ActivityStreamsClosedPropertyIterator{ @@ -4524,6 +4863,108 @@ func (this *ActivityStreamsClosedProperty) InsertActivityStreamsView(idx int, v } } +// InsertForgeFedBranch inserts a Branch value at the specified index for a +// property "closed". Existing elements at that index and higher are shifted +// back once. Invalidates all iterators. +func (this *ActivityStreamsClosedProperty) InsertForgeFedBranch(idx int, v vocab.ForgeFedBranch) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsClosedPropertyIterator{ + alias: this.alias, + forgefedBranchMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertForgeFedCommit inserts a Commit value at the specified index for a +// property "closed". Existing elements at that index and higher are shifted +// back once. Invalidates all iterators. +func (this *ActivityStreamsClosedProperty) InsertForgeFedCommit(idx int, v vocab.ForgeFedCommit) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsClosedPropertyIterator{ + alias: this.alias, + forgefedCommitMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertForgeFedPush inserts a Push value at the specified index for a property +// "closed". Existing elements at that index and higher are shifted back once. +// Invalidates all iterators. +func (this *ActivityStreamsClosedProperty) InsertForgeFedPush(idx int, v vocab.ForgeFedPush) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsClosedPropertyIterator{ + alias: this.alias, + forgefedPushMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertForgeFedRepository inserts a Repository value at the specified index for +// a property "closed". Existing elements at that index and higher are shifted +// back once. Invalidates all iterators. +func (this *ActivityStreamsClosedProperty) InsertForgeFedRepository(idx int, v vocab.ForgeFedRepository) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsClosedPropertyIterator{ + alias: this.alias, + forgefedRepositoryMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertForgeFedTicket inserts a Ticket value at the specified index for a +// property "closed". Existing elements at that index and higher are shifted +// back once. Invalidates all iterators. +func (this *ActivityStreamsClosedProperty) InsertForgeFedTicket(idx int, v vocab.ForgeFedTicket) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsClosedPropertyIterator{ + alias: this.alias, + forgefedTicketMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertForgeFedTicketDependency inserts a TicketDependency value at the +// specified index for a property "closed". Existing elements at that index +// and higher are shifted back once. Invalidates all iterators. +func (this *ActivityStreamsClosedProperty) InsertForgeFedTicketDependency(idx int, v vocab.ForgeFedTicketDependency) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsClosedPropertyIterator{ + alias: this.alias, + forgefedTicketDependencyMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + // Insert inserts an IRI value at the specified index for a property "closed". // Existing elements at that index and higher are shifted back once. // Invalidates all iterators. @@ -4725,182 +5166,206 @@ func (this ActivityStreamsClosedProperty) Less(i, j int) bool { rhs := this.properties[j].GetActivityStreamsBlock() return lhs.LessThan(rhs) } else if idx1 == 13 { + lhs := this.properties[i].GetForgeFedBranch() + rhs := this.properties[j].GetForgeFedBranch() + return lhs.LessThan(rhs) + } else if idx1 == 14 { lhs := this.properties[i].GetActivityStreamsCollection() rhs := this.properties[j].GetActivityStreamsCollection() return lhs.LessThan(rhs) - } else if idx1 == 14 { + } else if idx1 == 15 { lhs := this.properties[i].GetActivityStreamsCollectionPage() rhs := this.properties[j].GetActivityStreamsCollectionPage() return lhs.LessThan(rhs) - } else if idx1 == 15 { + } else if idx1 == 16 { + lhs := this.properties[i].GetForgeFedCommit() + rhs := this.properties[j].GetForgeFedCommit() + return lhs.LessThan(rhs) + } else if idx1 == 17 { lhs := this.properties[i].GetActivityStreamsCreate() rhs := this.properties[j].GetActivityStreamsCreate() return lhs.LessThan(rhs) - } else if idx1 == 16 { + } else if idx1 == 18 { lhs := this.properties[i].GetActivityStreamsDelete() rhs := this.properties[j].GetActivityStreamsDelete() return lhs.LessThan(rhs) - } else if idx1 == 17 { + } else if idx1 == 19 { lhs := this.properties[i].GetActivityStreamsDislike() rhs := this.properties[j].GetActivityStreamsDislike() return lhs.LessThan(rhs) - } else if idx1 == 18 { + } else if idx1 == 20 { lhs := this.properties[i].GetActivityStreamsDocument() rhs := this.properties[j].GetActivityStreamsDocument() return lhs.LessThan(rhs) - } else if idx1 == 19 { + } else if idx1 == 21 { lhs := this.properties[i].GetTootEmoji() rhs := this.properties[j].GetTootEmoji() return lhs.LessThan(rhs) - } else if idx1 == 20 { + } else if idx1 == 22 { lhs := this.properties[i].GetActivityStreamsEvent() rhs := this.properties[j].GetActivityStreamsEvent() return lhs.LessThan(rhs) - } else if idx1 == 21 { + } else if idx1 == 23 { lhs := this.properties[i].GetActivityStreamsFlag() rhs := this.properties[j].GetActivityStreamsFlag() return lhs.LessThan(rhs) - } else if idx1 == 22 { + } else if idx1 == 24 { lhs := this.properties[i].GetActivityStreamsFollow() rhs := this.properties[j].GetActivityStreamsFollow() return lhs.LessThan(rhs) - } else if idx1 == 23 { + } else if idx1 == 25 { lhs := this.properties[i].GetActivityStreamsGroup() rhs := this.properties[j].GetActivityStreamsGroup() return lhs.LessThan(rhs) - } else if idx1 == 24 { + } else if idx1 == 26 { lhs := this.properties[i].GetTootIdentityProof() rhs := this.properties[j].GetTootIdentityProof() return lhs.LessThan(rhs) - } else if idx1 == 25 { + } else if idx1 == 27 { lhs := this.properties[i].GetActivityStreamsIgnore() rhs := this.properties[j].GetActivityStreamsIgnore() return lhs.LessThan(rhs) - } else if idx1 == 26 { + } else if idx1 == 28 { lhs := this.properties[i].GetActivityStreamsImage() rhs := this.properties[j].GetActivityStreamsImage() return lhs.LessThan(rhs) - } else if idx1 == 27 { + } else if idx1 == 29 { lhs := this.properties[i].GetActivityStreamsIntransitiveActivity() rhs := this.properties[j].GetActivityStreamsIntransitiveActivity() return lhs.LessThan(rhs) - } else if idx1 == 28 { + } else if idx1 == 30 { lhs := this.properties[i].GetActivityStreamsInvite() rhs := this.properties[j].GetActivityStreamsInvite() return lhs.LessThan(rhs) - } else if idx1 == 29 { + } else if idx1 == 31 { lhs := this.properties[i].GetActivityStreamsJoin() rhs := this.properties[j].GetActivityStreamsJoin() return lhs.LessThan(rhs) - } else if idx1 == 30 { + } else if idx1 == 32 { lhs := this.properties[i].GetActivityStreamsLeave() rhs := this.properties[j].GetActivityStreamsLeave() return lhs.LessThan(rhs) - } else if idx1 == 31 { + } else if idx1 == 33 { lhs := this.properties[i].GetActivityStreamsLike() rhs := this.properties[j].GetActivityStreamsLike() return lhs.LessThan(rhs) - } else if idx1 == 32 { + } else if idx1 == 34 { lhs := this.properties[i].GetActivityStreamsListen() rhs := this.properties[j].GetActivityStreamsListen() return lhs.LessThan(rhs) - } else if idx1 == 33 { + } else if idx1 == 35 { lhs := this.properties[i].GetActivityStreamsMention() rhs := this.properties[j].GetActivityStreamsMention() return lhs.LessThan(rhs) - } else if idx1 == 34 { + } else if idx1 == 36 { lhs := this.properties[i].GetActivityStreamsMove() rhs := this.properties[j].GetActivityStreamsMove() return lhs.LessThan(rhs) - } else if idx1 == 35 { + } else if idx1 == 37 { lhs := this.properties[i].GetActivityStreamsNote() rhs := this.properties[j].GetActivityStreamsNote() return lhs.LessThan(rhs) - } else if idx1 == 36 { + } else if idx1 == 38 { lhs := this.properties[i].GetActivityStreamsOffer() rhs := this.properties[j].GetActivityStreamsOffer() return lhs.LessThan(rhs) - } else if idx1 == 37 { + } else if idx1 == 39 { lhs := this.properties[i].GetActivityStreamsOrderedCollection() rhs := this.properties[j].GetActivityStreamsOrderedCollection() return lhs.LessThan(rhs) - } else if idx1 == 38 { + } else if idx1 == 40 { lhs := this.properties[i].GetActivityStreamsOrderedCollectionPage() rhs := this.properties[j].GetActivityStreamsOrderedCollectionPage() return lhs.LessThan(rhs) - } else if idx1 == 39 { + } else if idx1 == 41 { lhs := this.properties[i].GetActivityStreamsOrganization() rhs := this.properties[j].GetActivityStreamsOrganization() return lhs.LessThan(rhs) - } else if idx1 == 40 { + } else if idx1 == 42 { lhs := this.properties[i].GetActivityStreamsPage() rhs := this.properties[j].GetActivityStreamsPage() return lhs.LessThan(rhs) - } else if idx1 == 41 { + } else if idx1 == 43 { lhs := this.properties[i].GetActivityStreamsPerson() rhs := this.properties[j].GetActivityStreamsPerson() return lhs.LessThan(rhs) - } else if idx1 == 42 { + } else if idx1 == 44 { lhs := this.properties[i].GetActivityStreamsPlace() rhs := this.properties[j].GetActivityStreamsPlace() return lhs.LessThan(rhs) - } else if idx1 == 43 { + } else if idx1 == 45 { lhs := this.properties[i].GetActivityStreamsProfile() rhs := this.properties[j].GetActivityStreamsProfile() return lhs.LessThan(rhs) - } else if idx1 == 44 { + } else if idx1 == 46 { + lhs := this.properties[i].GetForgeFedPush() + rhs := this.properties[j].GetForgeFedPush() + return lhs.LessThan(rhs) + } else if idx1 == 47 { lhs := this.properties[i].GetActivityStreamsQuestion() rhs := this.properties[j].GetActivityStreamsQuestion() return lhs.LessThan(rhs) - } else if idx1 == 45 { + } else if idx1 == 48 { lhs := this.properties[i].GetActivityStreamsRead() rhs := this.properties[j].GetActivityStreamsRead() return lhs.LessThan(rhs) - } else if idx1 == 46 { + } else if idx1 == 49 { lhs := this.properties[i].GetActivityStreamsReject() rhs := this.properties[j].GetActivityStreamsReject() return lhs.LessThan(rhs) - } else if idx1 == 47 { + } else if idx1 == 50 { lhs := this.properties[i].GetActivityStreamsRelationship() rhs := this.properties[j].GetActivityStreamsRelationship() return lhs.LessThan(rhs) - } else if idx1 == 48 { + } else if idx1 == 51 { lhs := this.properties[i].GetActivityStreamsRemove() rhs := this.properties[j].GetActivityStreamsRemove() return lhs.LessThan(rhs) - } else if idx1 == 49 { + } else if idx1 == 52 { + lhs := this.properties[i].GetForgeFedRepository() + rhs := this.properties[j].GetForgeFedRepository() + return lhs.LessThan(rhs) + } else if idx1 == 53 { lhs := this.properties[i].GetActivityStreamsService() rhs := this.properties[j].GetActivityStreamsService() return lhs.LessThan(rhs) - } else if idx1 == 50 { + } else if idx1 == 54 { lhs := this.properties[i].GetActivityStreamsTentativeAccept() rhs := this.properties[j].GetActivityStreamsTentativeAccept() return lhs.LessThan(rhs) - } else if idx1 == 51 { + } else if idx1 == 55 { lhs := this.properties[i].GetActivityStreamsTentativeReject() rhs := this.properties[j].GetActivityStreamsTentativeReject() return lhs.LessThan(rhs) - } else if idx1 == 52 { + } else if idx1 == 56 { + lhs := this.properties[i].GetForgeFedTicket() + rhs := this.properties[j].GetForgeFedTicket() + return lhs.LessThan(rhs) + } else if idx1 == 57 { + lhs := this.properties[i].GetForgeFedTicketDependency() + rhs := this.properties[j].GetForgeFedTicketDependency() + return lhs.LessThan(rhs) + } else if idx1 == 58 { lhs := this.properties[i].GetActivityStreamsTombstone() rhs := this.properties[j].GetActivityStreamsTombstone() return lhs.LessThan(rhs) - } else if idx1 == 53 { + } else if idx1 == 59 { lhs := this.properties[i].GetActivityStreamsTravel() rhs := this.properties[j].GetActivityStreamsTravel() return lhs.LessThan(rhs) - } else if idx1 == 54 { + } else if idx1 == 60 { lhs := this.properties[i].GetActivityStreamsUndo() rhs := this.properties[j].GetActivityStreamsUndo() return lhs.LessThan(rhs) - } else if idx1 == 55 { + } else if idx1 == 61 { lhs := this.properties[i].GetActivityStreamsUpdate() rhs := this.properties[j].GetActivityStreamsUpdate() return lhs.LessThan(rhs) - } else if idx1 == 56 { + } else if idx1 == 62 { lhs := this.properties[i].GetActivityStreamsVideo() rhs := this.properties[j].GetActivityStreamsVideo() return lhs.LessThan(rhs) - } else if idx1 == 57 { + } else if idx1 == 63 { lhs := this.properties[i].GetActivityStreamsView() rhs := this.properties[j].GetActivityStreamsView() return lhs.LessThan(rhs) @@ -5701,6 +6166,90 @@ func (this *ActivityStreamsClosedProperty) PrependActivityStreamsView(v vocab.Ac } } +// PrependForgeFedBranch prepends a Branch value to the front of a list of the +// property "closed". Invalidates all iterators. +func (this *ActivityStreamsClosedProperty) PrependForgeFedBranch(v vocab.ForgeFedBranch) { + this.properties = append([]*ActivityStreamsClosedPropertyIterator{{ + alias: this.alias, + forgefedBranchMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependForgeFedCommit prepends a Commit value to the front of a list of the +// property "closed". Invalidates all iterators. +func (this *ActivityStreamsClosedProperty) PrependForgeFedCommit(v vocab.ForgeFedCommit) { + this.properties = append([]*ActivityStreamsClosedPropertyIterator{{ + alias: this.alias, + forgefedCommitMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependForgeFedPush prepends a Push value to the front of a list of the +// property "closed". Invalidates all iterators. +func (this *ActivityStreamsClosedProperty) PrependForgeFedPush(v vocab.ForgeFedPush) { + this.properties = append([]*ActivityStreamsClosedPropertyIterator{{ + alias: this.alias, + forgefedPushMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependForgeFedRepository prepends a Repository value to the front of a list of +// the property "closed". Invalidates all iterators. +func (this *ActivityStreamsClosedProperty) PrependForgeFedRepository(v vocab.ForgeFedRepository) { + this.properties = append([]*ActivityStreamsClosedPropertyIterator{{ + alias: this.alias, + forgefedRepositoryMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependForgeFedTicket prepends a Ticket value to the front of a list of the +// property "closed". Invalidates all iterators. +func (this *ActivityStreamsClosedProperty) PrependForgeFedTicket(v vocab.ForgeFedTicket) { + this.properties = append([]*ActivityStreamsClosedPropertyIterator{{ + alias: this.alias, + forgefedTicketMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependForgeFedTicketDependency prepends a TicketDependency value to the front +// of a list of the property "closed". Invalidates all iterators. +func (this *ActivityStreamsClosedProperty) PrependForgeFedTicketDependency(v vocab.ForgeFedTicketDependency) { + this.properties = append([]*ActivityStreamsClosedPropertyIterator{{ + alias: this.alias, + forgefedTicketDependencyMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + // PrependIRI prepends an IRI value to the front of a list of the property // "closed". func (this *ActivityStreamsClosedProperty) PrependIRI(v *url.URL) { @@ -6527,6 +7076,83 @@ func (this *ActivityStreamsClosedProperty) SetActivityStreamsView(idx int, v voc } } +// SetForgeFedBranch sets a Branch value to be at the specified index for the +// property "closed". Panics if the index is out of bounds. Invalidates all +// iterators. +func (this *ActivityStreamsClosedProperty) SetForgeFedBranch(idx int, v vocab.ForgeFedBranch) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsClosedPropertyIterator{ + alias: this.alias, + forgefedBranchMember: v, + myIdx: idx, + parent: this, + } +} + +// SetForgeFedCommit sets a Commit value to be at the specified index for the +// property "closed". Panics if the index is out of bounds. Invalidates all +// iterators. +func (this *ActivityStreamsClosedProperty) SetForgeFedCommit(idx int, v vocab.ForgeFedCommit) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsClosedPropertyIterator{ + alias: this.alias, + forgefedCommitMember: v, + myIdx: idx, + parent: this, + } +} + +// SetForgeFedPush sets a Push value to be at the specified index for the property +// "closed". Panics if the index is out of bounds. Invalidates all iterators. +func (this *ActivityStreamsClosedProperty) SetForgeFedPush(idx int, v vocab.ForgeFedPush) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsClosedPropertyIterator{ + alias: this.alias, + forgefedPushMember: v, + myIdx: idx, + parent: this, + } +} + +// SetForgeFedRepository sets a Repository value to be at the specified index for +// the property "closed". Panics if the index is out of bounds. Invalidates +// all iterators. +func (this *ActivityStreamsClosedProperty) SetForgeFedRepository(idx int, v vocab.ForgeFedRepository) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsClosedPropertyIterator{ + alias: this.alias, + forgefedRepositoryMember: v, + myIdx: idx, + parent: this, + } +} + +// SetForgeFedTicket sets a Ticket value to be at the specified index for the +// property "closed". Panics if the index is out of bounds. Invalidates all +// iterators. +func (this *ActivityStreamsClosedProperty) SetForgeFedTicket(idx int, v vocab.ForgeFedTicket) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsClosedPropertyIterator{ + alias: this.alias, + forgefedTicketMember: v, + myIdx: idx, + parent: this, + } +} + +// SetForgeFedTicketDependency sets a TicketDependency value to be at the +// specified index for the property "closed". Panics if the index is out of +// bounds. Invalidates all iterators. +func (this *ActivityStreamsClosedProperty) SetForgeFedTicketDependency(idx int, v vocab.ForgeFedTicketDependency) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsClosedPropertyIterator{ + alias: this.alias, + forgefedTicketDependencyMember: v, + myIdx: idx, + parent: this, + } +} + // SetIRI sets an IRI value to be at the specified index for the property // "closed". Panics if the index is out of bounds. func (this *ActivityStreamsClosedProperty) SetIRI(idx int, v *url.URL) { diff --git a/streams/impl/activitystreams/property_context/gen_pkg.go b/streams/impl/activitystreams/property_context/gen_pkg.go index f4de7a4..54bf7c0 100644 --- a/streams/impl/activitystreams/property_context/gen_pkg.go +++ b/streams/impl/activitystreams/property_context/gen_pkg.go @@ -45,6 +45,10 @@ type privateManager interface { // 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" @@ -53,6 +57,10 @@ type privateManager interface { // 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" @@ -177,6 +185,9 @@ type privateManager interface { // 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" @@ -197,6 +208,10 @@ type privateManager interface { // 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" @@ -209,6 +224,14 @@ type privateManager interface { // 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" diff --git a/streams/impl/activitystreams/property_context/gen_property_activitystreams_context.go b/streams/impl/activitystreams/property_context/gen_property_activitystreams_context.go index 6678dda..a173a46 100644 --- a/streams/impl/activitystreams/property_context/gen_property_activitystreams_context.go +++ b/streams/impl/activitystreams/property_context/gen_property_activitystreams_context.go @@ -25,8 +25,10 @@ type ActivityStreamsContextPropertyIterator struct { 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 @@ -56,14 +58,18 @@ type ActivityStreamsContextPropertyIterator struct { 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 @@ -169,6 +175,12 @@ func deserializeActivityStreamsContextPropertyIterator(i interface{}, aliasMap m alias: alias, } return this, nil + } else if v, err := mgr.DeserializeBranchForgeFed()(m, aliasMap); err == nil { + this := &ActivityStreamsContextPropertyIterator{ + alias: alias, + forgefedBranchMember: v, + } + return this, nil } else if v, err := mgr.DeserializeCollectionActivityStreams()(m, aliasMap); err == nil { this := &ActivityStreamsContextPropertyIterator{ activitystreamsCollectionMember: v, @@ -181,6 +193,12 @@ func deserializeActivityStreamsContextPropertyIterator(i interface{}, aliasMap m alias: alias, } return this, nil + } else if v, err := mgr.DeserializeCommitForgeFed()(m, aliasMap); err == nil { + this := &ActivityStreamsContextPropertyIterator{ + alias: alias, + forgefedCommitMember: v, + } + return this, nil } else if v, err := mgr.DeserializeCreateActivityStreams()(m, aliasMap); err == nil { this := &ActivityStreamsContextPropertyIterator{ activitystreamsCreateMember: v, @@ -355,6 +373,12 @@ func deserializeActivityStreamsContextPropertyIterator(i interface{}, aliasMap m alias: alias, } return this, nil + } else if v, err := mgr.DeserializePushForgeFed()(m, aliasMap); err == nil { + this := &ActivityStreamsContextPropertyIterator{ + alias: alias, + forgefedPushMember: v, + } + return this, nil } else if v, err := mgr.DeserializeQuestionActivityStreams()(m, aliasMap); err == nil { this := &ActivityStreamsContextPropertyIterator{ activitystreamsQuestionMember: v, @@ -385,6 +409,12 @@ func deserializeActivityStreamsContextPropertyIterator(i interface{}, aliasMap m alias: alias, } return this, nil + } else if v, err := mgr.DeserializeRepositoryForgeFed()(m, aliasMap); err == nil { + this := &ActivityStreamsContextPropertyIterator{ + alias: alias, + forgefedRepositoryMember: v, + } + return this, nil } else if v, err := mgr.DeserializeServiceActivityStreams()(m, aliasMap); err == nil { this := &ActivityStreamsContextPropertyIterator{ activitystreamsServiceMember: v, @@ -403,6 +433,18 @@ func deserializeActivityStreamsContextPropertyIterator(i interface{}, aliasMap m alias: alias, } return this, nil + } else if v, err := mgr.DeserializeTicketForgeFed()(m, aliasMap); err == nil { + this := &ActivityStreamsContextPropertyIterator{ + alias: alias, + forgefedTicketMember: v, + } + return this, nil + } else if v, err := mgr.DeserializeTicketDependencyForgeFed()(m, aliasMap); err == nil { + this := &ActivityStreamsContextPropertyIterator{ + alias: alias, + forgefedTicketDependencyMember: v, + } + return this, nil } else if v, err := mgr.DeserializeTombstoneActivityStreams()(m, aliasMap); err == nil { this := &ActivityStreamsContextPropertyIterator{ activitystreamsTombstoneMember: v, @@ -826,6 +868,44 @@ func (this ActivityStreamsContextPropertyIterator) GetActivityStreamsView() voca return this.activitystreamsViewMember } +// GetForgeFedBranch returns the value of this property. When IsForgeFedBranch +// returns false, GetForgeFedBranch will return an arbitrary value. +func (this ActivityStreamsContextPropertyIterator) GetForgeFedBranch() vocab.ForgeFedBranch { + return this.forgefedBranchMember +} + +// GetForgeFedCommit returns the value of this property. When IsForgeFedCommit +// returns false, GetForgeFedCommit will return an arbitrary value. +func (this ActivityStreamsContextPropertyIterator) GetForgeFedCommit() vocab.ForgeFedCommit { + return this.forgefedCommitMember +} + +// GetForgeFedPush returns the value of this property. When IsForgeFedPush returns +// false, GetForgeFedPush will return an arbitrary value. +func (this ActivityStreamsContextPropertyIterator) GetForgeFedPush() vocab.ForgeFedPush { + return this.forgefedPushMember +} + +// GetForgeFedRepository returns the value of this property. When +// IsForgeFedRepository returns false, GetForgeFedRepository will return an +// arbitrary value. +func (this ActivityStreamsContextPropertyIterator) GetForgeFedRepository() vocab.ForgeFedRepository { + return this.forgefedRepositoryMember +} + +// GetForgeFedTicket returns the value of this property. When IsForgeFedTicket +// returns false, GetForgeFedTicket will return an arbitrary value. +func (this ActivityStreamsContextPropertyIterator) GetForgeFedTicket() vocab.ForgeFedTicket { + return this.forgefedTicketMember +} + +// GetForgeFedTicketDependency returns the value of this property. When +// IsForgeFedTicketDependency returns false, GetForgeFedTicketDependency will +// return an arbitrary value. +func (this ActivityStreamsContextPropertyIterator) GetForgeFedTicketDependency() vocab.ForgeFedTicketDependency { + return this.forgefedTicketDependencyMember +} + // GetIRI returns the IRI of this property. When IsIRI returns false, GetIRI will // return an arbitrary value. func (this ActivityStreamsContextPropertyIterator) GetIRI() *url.URL { @@ -881,12 +961,18 @@ func (this ActivityStreamsContextPropertyIterator) GetType() vocab.Type { 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() } @@ -974,6 +1060,9 @@ func (this ActivityStreamsContextPropertyIterator) GetType() vocab.Type { if this.IsActivityStreamsProfile() { return this.GetActivityStreamsProfile() } + if this.IsForgeFedPush() { + return this.GetForgeFedPush() + } if this.IsActivityStreamsQuestion() { return this.GetActivityStreamsQuestion() } @@ -989,6 +1078,9 @@ func (this ActivityStreamsContextPropertyIterator) GetType() vocab.Type { if this.IsActivityStreamsRemove() { return this.GetActivityStreamsRemove() } + if this.IsForgeFedRepository() { + return this.GetForgeFedRepository() + } if this.IsActivityStreamsService() { return this.GetActivityStreamsService() } @@ -998,6 +1090,12 @@ func (this ActivityStreamsContextPropertyIterator) GetType() vocab.Type { if this.IsActivityStreamsTentativeReject() { return this.GetActivityStreamsTentativeReject() } + if this.IsForgeFedTicket() { + return this.GetForgeFedTicket() + } + if this.IsForgeFedTicketDependency() { + return this.GetForgeFedTicketDependency() + } if this.IsActivityStreamsTombstone() { return this.GetActivityStreamsTombstone() } @@ -1033,8 +1131,10 @@ func (this ActivityStreamsContextPropertyIterator) HasAny() bool { this.IsActivityStreamsArticle() || this.IsActivityStreamsAudio() || this.IsActivityStreamsBlock() || + this.IsForgeFedBranch() || this.IsActivityStreamsCollection() || this.IsActivityStreamsCollectionPage() || + this.IsForgeFedCommit() || this.IsActivityStreamsCreate() || this.IsActivityStreamsDelete() || this.IsActivityStreamsDislike() || @@ -1064,14 +1164,18 @@ func (this ActivityStreamsContextPropertyIterator) HasAny() bool { 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() || @@ -1464,6 +1568,48 @@ func (this ActivityStreamsContextPropertyIterator) IsActivityStreamsView() bool return this.activitystreamsViewMember != nil } +// IsForgeFedBranch returns true if this property has a type of "Branch". When +// true, use the GetForgeFedBranch and SetForgeFedBranch methods to access and +// set this property. +func (this ActivityStreamsContextPropertyIterator) IsForgeFedBranch() bool { + return this.forgefedBranchMember != nil +} + +// IsForgeFedCommit returns true if this property has a type of "Commit". When +// true, use the GetForgeFedCommit and SetForgeFedCommit methods to access and +// set this property. +func (this ActivityStreamsContextPropertyIterator) IsForgeFedCommit() bool { + return this.forgefedCommitMember != nil +} + +// IsForgeFedPush returns true if this property has a type of "Push". When true, +// use the GetForgeFedPush and SetForgeFedPush methods to access and set this +// property. +func (this ActivityStreamsContextPropertyIterator) IsForgeFedPush() bool { + return this.forgefedPushMember != nil +} + +// IsForgeFedRepository returns true if this property has a type of "Repository". +// When true, use the GetForgeFedRepository and SetForgeFedRepository methods +// to access and set this property. +func (this ActivityStreamsContextPropertyIterator) IsForgeFedRepository() bool { + return this.forgefedRepositoryMember != nil +} + +// IsForgeFedTicket returns true if this property has a type of "Ticket". When +// true, use the GetForgeFedTicket and SetForgeFedTicket methods to access and +// set this property. +func (this ActivityStreamsContextPropertyIterator) IsForgeFedTicket() bool { + return this.forgefedTicketMember != nil +} + +// IsForgeFedTicketDependency returns true if this property has a type of +// "TicketDependency". When true, use the GetForgeFedTicketDependency and +// SetForgeFedTicketDependency methods to access and set this property. +func (this ActivityStreamsContextPropertyIterator) IsForgeFedTicketDependency() bool { + return this.forgefedTicketDependencyMember != nil +} + // IsIRI returns true if this property is an IRI. When true, use GetIRI and SetIRI // to access and set this property func (this ActivityStreamsContextPropertyIterator) IsIRI() bool { @@ -1511,10 +1657,14 @@ func (this ActivityStreamsContextPropertyIterator) JSONLDContext() map[string]st 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() { @@ -1573,6 +1723,8 @@ func (this ActivityStreamsContextPropertyIterator) JSONLDContext() map[string]st 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() { @@ -1583,12 +1735,18 @@ func (this ActivityStreamsContextPropertyIterator) JSONLDContext() map[string]st 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() { @@ -1650,141 +1808,159 @@ func (this ActivityStreamsContextPropertyIterator) KindIndex() int { if this.IsActivityStreamsBlock() { return 10 } - if this.IsActivityStreamsCollection() { + if this.IsForgeFedBranch() { return 11 } - if this.IsActivityStreamsCollectionPage() { + if this.IsActivityStreamsCollection() { return 12 } - if this.IsActivityStreamsCreate() { + if this.IsActivityStreamsCollectionPage() { return 13 } - if this.IsActivityStreamsDelete() { + if this.IsForgeFedCommit() { return 14 } - if this.IsActivityStreamsDislike() { + if this.IsActivityStreamsCreate() { return 15 } - if this.IsActivityStreamsDocument() { + if this.IsActivityStreamsDelete() { return 16 } - if this.IsTootEmoji() { + if this.IsActivityStreamsDislike() { return 17 } - if this.IsActivityStreamsEvent() { + if this.IsActivityStreamsDocument() { return 18 } - if this.IsActivityStreamsFlag() { + if this.IsTootEmoji() { return 19 } - if this.IsActivityStreamsFollow() { + if this.IsActivityStreamsEvent() { return 20 } - if this.IsActivityStreamsGroup() { + if this.IsActivityStreamsFlag() { return 21 } - if this.IsTootIdentityProof() { + if this.IsActivityStreamsFollow() { return 22 } - if this.IsActivityStreamsIgnore() { + if this.IsActivityStreamsGroup() { return 23 } - if this.IsActivityStreamsImage() { + if this.IsTootIdentityProof() { return 24 } - if this.IsActivityStreamsIntransitiveActivity() { + if this.IsActivityStreamsIgnore() { return 25 } - if this.IsActivityStreamsInvite() { + if this.IsActivityStreamsImage() { return 26 } - if this.IsActivityStreamsJoin() { + if this.IsActivityStreamsIntransitiveActivity() { return 27 } - if this.IsActivityStreamsLeave() { + if this.IsActivityStreamsInvite() { return 28 } - if this.IsActivityStreamsLike() { + if this.IsActivityStreamsJoin() { return 29 } - if this.IsActivityStreamsListen() { + if this.IsActivityStreamsLeave() { return 30 } - if this.IsActivityStreamsMention() { + if this.IsActivityStreamsLike() { return 31 } - if this.IsActivityStreamsMove() { + if this.IsActivityStreamsListen() { return 32 } - if this.IsActivityStreamsNote() { + if this.IsActivityStreamsMention() { return 33 } - if this.IsActivityStreamsOffer() { + if this.IsActivityStreamsMove() { return 34 } - if this.IsActivityStreamsOrderedCollection() { + if this.IsActivityStreamsNote() { return 35 } - if this.IsActivityStreamsOrderedCollectionPage() { + if this.IsActivityStreamsOffer() { return 36 } - if this.IsActivityStreamsOrganization() { + if this.IsActivityStreamsOrderedCollection() { return 37 } - if this.IsActivityStreamsPage() { + if this.IsActivityStreamsOrderedCollectionPage() { return 38 } - if this.IsActivityStreamsPerson() { + if this.IsActivityStreamsOrganization() { return 39 } - if this.IsActivityStreamsPlace() { + if this.IsActivityStreamsPage() { return 40 } - if this.IsActivityStreamsProfile() { + if this.IsActivityStreamsPerson() { return 41 } - if this.IsActivityStreamsQuestion() { + if this.IsActivityStreamsPlace() { return 42 } - if this.IsActivityStreamsRead() { + if this.IsActivityStreamsProfile() { return 43 } - if this.IsActivityStreamsReject() { + if this.IsForgeFedPush() { return 44 } - if this.IsActivityStreamsRelationship() { + if this.IsActivityStreamsQuestion() { return 45 } - if this.IsActivityStreamsRemove() { + if this.IsActivityStreamsRead() { return 46 } - if this.IsActivityStreamsService() { + if this.IsActivityStreamsReject() { return 47 } - if this.IsActivityStreamsTentativeAccept() { + if this.IsActivityStreamsRelationship() { return 48 } - if this.IsActivityStreamsTentativeReject() { + if this.IsActivityStreamsRemove() { return 49 } - if this.IsActivityStreamsTombstone() { + if this.IsForgeFedRepository() { return 50 } - if this.IsActivityStreamsTravel() { + if this.IsActivityStreamsService() { return 51 } - if this.IsActivityStreamsUndo() { + if this.IsActivityStreamsTentativeAccept() { return 52 } - if this.IsActivityStreamsUpdate() { + if this.IsActivityStreamsTentativeReject() { return 53 } - if this.IsActivityStreamsVideo() { + if this.IsForgeFedTicket() { return 54 } - if this.IsActivityStreamsView() { + 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 } @@ -1824,10 +2000,14 @@ func (this ActivityStreamsContextPropertyIterator) LessThan(o vocab.ActivityStre 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() { @@ -1886,6 +2066,8 @@ func (this ActivityStreamsContextPropertyIterator) LessThan(o vocab.ActivityStre 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() { @@ -1896,12 +2078,18 @@ func (this ActivityStreamsContextPropertyIterator) LessThan(o vocab.ActivityStre 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() { @@ -2325,6 +2513,48 @@ func (this *ActivityStreamsContextPropertyIterator) SetActivityStreamsView(v voc this.activitystreamsViewMember = v } +// SetForgeFedBranch sets the value of this property. Calling IsForgeFedBranch +// afterwards returns true. +func (this *ActivityStreamsContextPropertyIterator) SetForgeFedBranch(v vocab.ForgeFedBranch) { + this.clear() + this.forgefedBranchMember = v +} + +// SetForgeFedCommit sets the value of this property. Calling IsForgeFedCommit +// afterwards returns true. +func (this *ActivityStreamsContextPropertyIterator) SetForgeFedCommit(v vocab.ForgeFedCommit) { + this.clear() + this.forgefedCommitMember = v +} + +// SetForgeFedPush sets the value of this property. Calling IsForgeFedPush +// afterwards returns true. +func (this *ActivityStreamsContextPropertyIterator) SetForgeFedPush(v vocab.ForgeFedPush) { + this.clear() + this.forgefedPushMember = v +} + +// SetForgeFedRepository sets the value of this property. Calling +// IsForgeFedRepository afterwards returns true. +func (this *ActivityStreamsContextPropertyIterator) SetForgeFedRepository(v vocab.ForgeFedRepository) { + this.clear() + this.forgefedRepositoryMember = v +} + +// SetForgeFedTicket sets the value of this property. Calling IsForgeFedTicket +// afterwards returns true. +func (this *ActivityStreamsContextPropertyIterator) SetForgeFedTicket(v vocab.ForgeFedTicket) { + this.clear() + this.forgefedTicketMember = v +} + +// SetForgeFedTicketDependency sets the value of this property. Calling +// IsForgeFedTicketDependency afterwards returns true. +func (this *ActivityStreamsContextPropertyIterator) SetForgeFedTicketDependency(v vocab.ForgeFedTicketDependency) { + this.clear() + this.forgefedTicketDependencyMember = v +} + // SetIRI sets the value of this property. Calling IsIRI afterwards returns true. func (this *ActivityStreamsContextPropertyIterator) SetIRI(v *url.URL) { this.clear() @@ -2392,6 +2622,10 @@ func (this *ActivityStreamsContextPropertyIterator) SetType(t vocab.Type) error 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 @@ -2400,6 +2634,10 @@ func (this *ActivityStreamsContextPropertyIterator) SetType(t vocab.Type) error 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 @@ -2516,6 +2754,10 @@ func (this *ActivityStreamsContextPropertyIterator) SetType(t vocab.Type) error 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 @@ -2536,6 +2778,10 @@ func (this *ActivityStreamsContextPropertyIterator) SetType(t vocab.Type) error 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 @@ -2548,6 +2794,14 @@ func (this *ActivityStreamsContextPropertyIterator) SetType(t vocab.Type) error 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 @@ -2590,8 +2844,10 @@ func (this *ActivityStreamsContextPropertyIterator) clear() { 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 @@ -2621,14 +2877,18 @@ func (this *ActivityStreamsContextPropertyIterator) clear() { 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 @@ -2666,10 +2926,14 @@ func (this ActivityStreamsContextPropertyIterator) serialize() (interface{}, err 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() { @@ -2728,6 +2992,8 @@ func (this ActivityStreamsContextPropertyIterator) serialize() (interface{}, err 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() { @@ -2738,12 +3004,18 @@ func (this ActivityStreamsContextPropertyIterator) serialize() (interface{}, err 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() { @@ -3431,6 +3703,74 @@ func (this *ActivityStreamsContextProperty) AppendActivityStreamsView(v vocab.Ac }) } +// AppendForgeFedBranch appends a Branch value to the back of a list of the +// property "context". Invalidates iterators that are traversing using Prev. +func (this *ActivityStreamsContextProperty) AppendForgeFedBranch(v vocab.ForgeFedBranch) { + this.properties = append(this.properties, &ActivityStreamsContextPropertyIterator{ + alias: this.alias, + forgefedBranchMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendForgeFedCommit appends a Commit value to the back of a list of the +// property "context". Invalidates iterators that are traversing using Prev. +func (this *ActivityStreamsContextProperty) AppendForgeFedCommit(v vocab.ForgeFedCommit) { + this.properties = append(this.properties, &ActivityStreamsContextPropertyIterator{ + alias: this.alias, + forgefedCommitMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendForgeFedPush appends a Push value to the back of a list of the property +// "context". Invalidates iterators that are traversing using Prev. +func (this *ActivityStreamsContextProperty) AppendForgeFedPush(v vocab.ForgeFedPush) { + this.properties = append(this.properties, &ActivityStreamsContextPropertyIterator{ + alias: this.alias, + forgefedPushMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendForgeFedRepository appends a Repository value to the back of a list of +// the property "context". Invalidates iterators that are traversing using +// Prev. +func (this *ActivityStreamsContextProperty) AppendForgeFedRepository(v vocab.ForgeFedRepository) { + this.properties = append(this.properties, &ActivityStreamsContextPropertyIterator{ + alias: this.alias, + forgefedRepositoryMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendForgeFedTicket appends a Ticket value to the back of a list of the +// property "context". Invalidates iterators that are traversing using Prev. +func (this *ActivityStreamsContextProperty) AppendForgeFedTicket(v vocab.ForgeFedTicket) { + this.properties = append(this.properties, &ActivityStreamsContextPropertyIterator{ + alias: this.alias, + forgefedTicketMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendForgeFedTicketDependency appends a TicketDependency value to the back of +// a list of the property "context". Invalidates iterators that are traversing +// using Prev. +func (this *ActivityStreamsContextProperty) AppendForgeFedTicketDependency(v vocab.ForgeFedTicketDependency) { + this.properties = append(this.properties, &ActivityStreamsContextPropertyIterator{ + alias: this.alias, + forgefedTicketDependencyMember: v, + myIdx: this.Len(), + parent: this, + }) +} + // AppendIRI appends an IRI value to the back of a list of the property "context" func (this *ActivityStreamsContextProperty) AppendIRI(v *url.URL) { this.properties = append(this.properties, &ActivityStreamsContextPropertyIterator{ @@ -4427,6 +4767,108 @@ func (this *ActivityStreamsContextProperty) InsertActivityStreamsView(idx int, v } } +// InsertForgeFedBranch inserts a Branch value at the specified index for a +// property "context". Existing elements at that index and higher are shifted +// back once. Invalidates all iterators. +func (this *ActivityStreamsContextProperty) InsertForgeFedBranch(idx int, v vocab.ForgeFedBranch) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsContextPropertyIterator{ + alias: this.alias, + forgefedBranchMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertForgeFedCommit inserts a Commit value at the specified index for a +// property "context". Existing elements at that index and higher are shifted +// back once. Invalidates all iterators. +func (this *ActivityStreamsContextProperty) InsertForgeFedCommit(idx int, v vocab.ForgeFedCommit) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsContextPropertyIterator{ + alias: this.alias, + forgefedCommitMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertForgeFedPush inserts a Push value at the specified index for a property +// "context". Existing elements at that index and higher are shifted back +// once. Invalidates all iterators. +func (this *ActivityStreamsContextProperty) InsertForgeFedPush(idx int, v vocab.ForgeFedPush) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsContextPropertyIterator{ + alias: this.alias, + forgefedPushMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertForgeFedRepository inserts a Repository value at the specified index for +// a property "context". Existing elements at that index and higher are +// shifted back once. Invalidates all iterators. +func (this *ActivityStreamsContextProperty) InsertForgeFedRepository(idx int, v vocab.ForgeFedRepository) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsContextPropertyIterator{ + alias: this.alias, + forgefedRepositoryMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertForgeFedTicket inserts a Ticket value at the specified index for a +// property "context". Existing elements at that index and higher are shifted +// back once. Invalidates all iterators. +func (this *ActivityStreamsContextProperty) InsertForgeFedTicket(idx int, v vocab.ForgeFedTicket) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsContextPropertyIterator{ + alias: this.alias, + forgefedTicketMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertForgeFedTicketDependency inserts a TicketDependency value at the +// specified index for a property "context". Existing elements at that index +// and higher are shifted back once. Invalidates all iterators. +func (this *ActivityStreamsContextProperty) InsertForgeFedTicketDependency(idx int, v vocab.ForgeFedTicketDependency) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsContextPropertyIterator{ + alias: this.alias, + forgefedTicketDependencyMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + // Insert inserts an IRI value at the specified index for a property "context". // Existing elements at that index and higher are shifted back once. // Invalidates all iterators. @@ -4584,182 +5026,206 @@ func (this ActivityStreamsContextProperty) Less(i, j int) bool { rhs := this.properties[j].GetActivityStreamsBlock() return lhs.LessThan(rhs) } else if idx1 == 11 { + lhs := this.properties[i].GetForgeFedBranch() + rhs := this.properties[j].GetForgeFedBranch() + return lhs.LessThan(rhs) + } else if idx1 == 12 { lhs := this.properties[i].GetActivityStreamsCollection() rhs := this.properties[j].GetActivityStreamsCollection() return lhs.LessThan(rhs) - } else if idx1 == 12 { + } else if idx1 == 13 { lhs := this.properties[i].GetActivityStreamsCollectionPage() rhs := this.properties[j].GetActivityStreamsCollectionPage() return lhs.LessThan(rhs) - } else if idx1 == 13 { + } else if idx1 == 14 { + lhs := this.properties[i].GetForgeFedCommit() + rhs := this.properties[j].GetForgeFedCommit() + return lhs.LessThan(rhs) + } else if idx1 == 15 { lhs := this.properties[i].GetActivityStreamsCreate() rhs := this.properties[j].GetActivityStreamsCreate() return lhs.LessThan(rhs) - } else if idx1 == 14 { + } else if idx1 == 16 { lhs := this.properties[i].GetActivityStreamsDelete() rhs := this.properties[j].GetActivityStreamsDelete() return lhs.LessThan(rhs) - } else if idx1 == 15 { + } else if idx1 == 17 { lhs := this.properties[i].GetActivityStreamsDislike() rhs := this.properties[j].GetActivityStreamsDislike() return lhs.LessThan(rhs) - } else if idx1 == 16 { + } else if idx1 == 18 { lhs := this.properties[i].GetActivityStreamsDocument() rhs := this.properties[j].GetActivityStreamsDocument() return lhs.LessThan(rhs) - } else if idx1 == 17 { + } else if idx1 == 19 { lhs := this.properties[i].GetTootEmoji() rhs := this.properties[j].GetTootEmoji() return lhs.LessThan(rhs) - } else if idx1 == 18 { + } else if idx1 == 20 { lhs := this.properties[i].GetActivityStreamsEvent() rhs := this.properties[j].GetActivityStreamsEvent() return lhs.LessThan(rhs) - } else if idx1 == 19 { + } else if idx1 == 21 { lhs := this.properties[i].GetActivityStreamsFlag() rhs := this.properties[j].GetActivityStreamsFlag() return lhs.LessThan(rhs) - } else if idx1 == 20 { + } else if idx1 == 22 { lhs := this.properties[i].GetActivityStreamsFollow() rhs := this.properties[j].GetActivityStreamsFollow() return lhs.LessThan(rhs) - } else if idx1 == 21 { + } else if idx1 == 23 { lhs := this.properties[i].GetActivityStreamsGroup() rhs := this.properties[j].GetActivityStreamsGroup() return lhs.LessThan(rhs) - } else if idx1 == 22 { + } else if idx1 == 24 { lhs := this.properties[i].GetTootIdentityProof() rhs := this.properties[j].GetTootIdentityProof() return lhs.LessThan(rhs) - } else if idx1 == 23 { + } else if idx1 == 25 { lhs := this.properties[i].GetActivityStreamsIgnore() rhs := this.properties[j].GetActivityStreamsIgnore() return lhs.LessThan(rhs) - } else if idx1 == 24 { + } else if idx1 == 26 { lhs := this.properties[i].GetActivityStreamsImage() rhs := this.properties[j].GetActivityStreamsImage() return lhs.LessThan(rhs) - } else if idx1 == 25 { + } else if idx1 == 27 { lhs := this.properties[i].GetActivityStreamsIntransitiveActivity() rhs := this.properties[j].GetActivityStreamsIntransitiveActivity() return lhs.LessThan(rhs) - } else if idx1 == 26 { + } else if idx1 == 28 { lhs := this.properties[i].GetActivityStreamsInvite() rhs := this.properties[j].GetActivityStreamsInvite() return lhs.LessThan(rhs) - } else if idx1 == 27 { + } else if idx1 == 29 { lhs := this.properties[i].GetActivityStreamsJoin() rhs := this.properties[j].GetActivityStreamsJoin() return lhs.LessThan(rhs) - } else if idx1 == 28 { + } else if idx1 == 30 { lhs := this.properties[i].GetActivityStreamsLeave() rhs := this.properties[j].GetActivityStreamsLeave() return lhs.LessThan(rhs) - } else if idx1 == 29 { + } else if idx1 == 31 { lhs := this.properties[i].GetActivityStreamsLike() rhs := this.properties[j].GetActivityStreamsLike() return lhs.LessThan(rhs) - } else if idx1 == 30 { + } else if idx1 == 32 { lhs := this.properties[i].GetActivityStreamsListen() rhs := this.properties[j].GetActivityStreamsListen() return lhs.LessThan(rhs) - } else if idx1 == 31 { + } else if idx1 == 33 { lhs := this.properties[i].GetActivityStreamsMention() rhs := this.properties[j].GetActivityStreamsMention() return lhs.LessThan(rhs) - } else if idx1 == 32 { + } else if idx1 == 34 { lhs := this.properties[i].GetActivityStreamsMove() rhs := this.properties[j].GetActivityStreamsMove() return lhs.LessThan(rhs) - } else if idx1 == 33 { + } else if idx1 == 35 { lhs := this.properties[i].GetActivityStreamsNote() rhs := this.properties[j].GetActivityStreamsNote() return lhs.LessThan(rhs) - } else if idx1 == 34 { + } else if idx1 == 36 { lhs := this.properties[i].GetActivityStreamsOffer() rhs := this.properties[j].GetActivityStreamsOffer() return lhs.LessThan(rhs) - } else if idx1 == 35 { + } else if idx1 == 37 { lhs := this.properties[i].GetActivityStreamsOrderedCollection() rhs := this.properties[j].GetActivityStreamsOrderedCollection() return lhs.LessThan(rhs) - } else if idx1 == 36 { + } else if idx1 == 38 { lhs := this.properties[i].GetActivityStreamsOrderedCollectionPage() rhs := this.properties[j].GetActivityStreamsOrderedCollectionPage() return lhs.LessThan(rhs) - } else if idx1 == 37 { + } else if idx1 == 39 { lhs := this.properties[i].GetActivityStreamsOrganization() rhs := this.properties[j].GetActivityStreamsOrganization() return lhs.LessThan(rhs) - } else if idx1 == 38 { + } else if idx1 == 40 { lhs := this.properties[i].GetActivityStreamsPage() rhs := this.properties[j].GetActivityStreamsPage() return lhs.LessThan(rhs) - } else if idx1 == 39 { + } else if idx1 == 41 { lhs := this.properties[i].GetActivityStreamsPerson() rhs := this.properties[j].GetActivityStreamsPerson() return lhs.LessThan(rhs) - } else if idx1 == 40 { + } else if idx1 == 42 { lhs := this.properties[i].GetActivityStreamsPlace() rhs := this.properties[j].GetActivityStreamsPlace() return lhs.LessThan(rhs) - } else if idx1 == 41 { + } else if idx1 == 43 { lhs := this.properties[i].GetActivityStreamsProfile() rhs := this.properties[j].GetActivityStreamsProfile() return lhs.LessThan(rhs) - } else if idx1 == 42 { + } else if idx1 == 44 { + lhs := this.properties[i].GetForgeFedPush() + rhs := this.properties[j].GetForgeFedPush() + return lhs.LessThan(rhs) + } else if idx1 == 45 { lhs := this.properties[i].GetActivityStreamsQuestion() rhs := this.properties[j].GetActivityStreamsQuestion() return lhs.LessThan(rhs) - } else if idx1 == 43 { + } else if idx1 == 46 { lhs := this.properties[i].GetActivityStreamsRead() rhs := this.properties[j].GetActivityStreamsRead() return lhs.LessThan(rhs) - } else if idx1 == 44 { + } else if idx1 == 47 { lhs := this.properties[i].GetActivityStreamsReject() rhs := this.properties[j].GetActivityStreamsReject() return lhs.LessThan(rhs) - } else if idx1 == 45 { + } else if idx1 == 48 { lhs := this.properties[i].GetActivityStreamsRelationship() rhs := this.properties[j].GetActivityStreamsRelationship() return lhs.LessThan(rhs) - } else if idx1 == 46 { + } else if idx1 == 49 { lhs := this.properties[i].GetActivityStreamsRemove() rhs := this.properties[j].GetActivityStreamsRemove() return lhs.LessThan(rhs) - } else if idx1 == 47 { + } else if idx1 == 50 { + lhs := this.properties[i].GetForgeFedRepository() + rhs := this.properties[j].GetForgeFedRepository() + return lhs.LessThan(rhs) + } else if idx1 == 51 { lhs := this.properties[i].GetActivityStreamsService() rhs := this.properties[j].GetActivityStreamsService() return lhs.LessThan(rhs) - } else if idx1 == 48 { + } else if idx1 == 52 { lhs := this.properties[i].GetActivityStreamsTentativeAccept() rhs := this.properties[j].GetActivityStreamsTentativeAccept() return lhs.LessThan(rhs) - } else if idx1 == 49 { + } else if idx1 == 53 { lhs := this.properties[i].GetActivityStreamsTentativeReject() rhs := this.properties[j].GetActivityStreamsTentativeReject() return lhs.LessThan(rhs) - } else if idx1 == 50 { + } else if idx1 == 54 { + lhs := this.properties[i].GetForgeFedTicket() + rhs := this.properties[j].GetForgeFedTicket() + return lhs.LessThan(rhs) + } else if idx1 == 55 { + lhs := this.properties[i].GetForgeFedTicketDependency() + rhs := this.properties[j].GetForgeFedTicketDependency() + return lhs.LessThan(rhs) + } else if idx1 == 56 { lhs := this.properties[i].GetActivityStreamsTombstone() rhs := this.properties[j].GetActivityStreamsTombstone() return lhs.LessThan(rhs) - } else if idx1 == 51 { + } else if idx1 == 57 { lhs := this.properties[i].GetActivityStreamsTravel() rhs := this.properties[j].GetActivityStreamsTravel() return lhs.LessThan(rhs) - } else if idx1 == 52 { + } else if idx1 == 58 { lhs := this.properties[i].GetActivityStreamsUndo() rhs := this.properties[j].GetActivityStreamsUndo() return lhs.LessThan(rhs) - } else if idx1 == 53 { + } else if idx1 == 59 { lhs := this.properties[i].GetActivityStreamsUpdate() rhs := this.properties[j].GetActivityStreamsUpdate() return lhs.LessThan(rhs) - } else if idx1 == 54 { + } else if idx1 == 60 { lhs := this.properties[i].GetActivityStreamsVideo() rhs := this.properties[j].GetActivityStreamsVideo() return lhs.LessThan(rhs) - } else if idx1 == 55 { + } else if idx1 == 61 { lhs := this.properties[i].GetActivityStreamsView() rhs := this.properties[j].GetActivityStreamsView() return lhs.LessThan(rhs) @@ -5560,6 +6026,90 @@ func (this *ActivityStreamsContextProperty) PrependActivityStreamsView(v vocab.A } } +// PrependForgeFedBranch prepends a Branch value to the front of a list of the +// property "context". Invalidates all iterators. +func (this *ActivityStreamsContextProperty) PrependForgeFedBranch(v vocab.ForgeFedBranch) { + this.properties = append([]*ActivityStreamsContextPropertyIterator{{ + alias: this.alias, + forgefedBranchMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependForgeFedCommit prepends a Commit value to the front of a list of the +// property "context". Invalidates all iterators. +func (this *ActivityStreamsContextProperty) PrependForgeFedCommit(v vocab.ForgeFedCommit) { + this.properties = append([]*ActivityStreamsContextPropertyIterator{{ + alias: this.alias, + forgefedCommitMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependForgeFedPush prepends a Push value to the front of a list of the +// property "context". Invalidates all iterators. +func (this *ActivityStreamsContextProperty) PrependForgeFedPush(v vocab.ForgeFedPush) { + this.properties = append([]*ActivityStreamsContextPropertyIterator{{ + alias: this.alias, + forgefedPushMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependForgeFedRepository prepends a Repository value to the front of a list of +// the property "context". Invalidates all iterators. +func (this *ActivityStreamsContextProperty) PrependForgeFedRepository(v vocab.ForgeFedRepository) { + this.properties = append([]*ActivityStreamsContextPropertyIterator{{ + alias: this.alias, + forgefedRepositoryMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependForgeFedTicket prepends a Ticket value to the front of a list of the +// property "context". Invalidates all iterators. +func (this *ActivityStreamsContextProperty) PrependForgeFedTicket(v vocab.ForgeFedTicket) { + this.properties = append([]*ActivityStreamsContextPropertyIterator{{ + alias: this.alias, + forgefedTicketMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependForgeFedTicketDependency prepends a TicketDependency value to the front +// of a list of the property "context". Invalidates all iterators. +func (this *ActivityStreamsContextProperty) PrependForgeFedTicketDependency(v vocab.ForgeFedTicketDependency) { + this.properties = append([]*ActivityStreamsContextPropertyIterator{{ + alias: this.alias, + forgefedTicketDependencyMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + // PrependIRI prepends an IRI value to the front of a list of the property // "context". func (this *ActivityStreamsContextProperty) PrependIRI(v *url.URL) { @@ -6356,6 +6906,83 @@ func (this *ActivityStreamsContextProperty) SetActivityStreamsView(idx int, v vo } } +// SetForgeFedBranch sets a Branch value to be at the specified index for the +// property "context". Panics if the index is out of bounds. Invalidates all +// iterators. +func (this *ActivityStreamsContextProperty) SetForgeFedBranch(idx int, v vocab.ForgeFedBranch) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsContextPropertyIterator{ + alias: this.alias, + forgefedBranchMember: v, + myIdx: idx, + parent: this, + } +} + +// SetForgeFedCommit sets a Commit value to be at the specified index for the +// property "context". Panics if the index is out of bounds. Invalidates all +// iterators. +func (this *ActivityStreamsContextProperty) SetForgeFedCommit(idx int, v vocab.ForgeFedCommit) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsContextPropertyIterator{ + alias: this.alias, + forgefedCommitMember: v, + myIdx: idx, + parent: this, + } +} + +// SetForgeFedPush sets a Push value to be at the specified index for the property +// "context". Panics if the index is out of bounds. Invalidates all iterators. +func (this *ActivityStreamsContextProperty) SetForgeFedPush(idx int, v vocab.ForgeFedPush) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsContextPropertyIterator{ + alias: this.alias, + forgefedPushMember: v, + myIdx: idx, + parent: this, + } +} + +// SetForgeFedRepository sets a Repository value to be at the specified index for +// the property "context". Panics if the index is out of bounds. Invalidates +// all iterators. +func (this *ActivityStreamsContextProperty) SetForgeFedRepository(idx int, v vocab.ForgeFedRepository) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsContextPropertyIterator{ + alias: this.alias, + forgefedRepositoryMember: v, + myIdx: idx, + parent: this, + } +} + +// SetForgeFedTicket sets a Ticket value to be at the specified index for the +// property "context". Panics if the index is out of bounds. Invalidates all +// iterators. +func (this *ActivityStreamsContextProperty) SetForgeFedTicket(idx int, v vocab.ForgeFedTicket) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsContextPropertyIterator{ + alias: this.alias, + forgefedTicketMember: v, + myIdx: idx, + parent: this, + } +} + +// SetForgeFedTicketDependency sets a TicketDependency value to be at the +// specified index for the property "context". Panics if the index is out of +// bounds. Invalidates all iterators. +func (this *ActivityStreamsContextProperty) SetForgeFedTicketDependency(idx int, v vocab.ForgeFedTicketDependency) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsContextPropertyIterator{ + alias: this.alias, + forgefedTicketDependencyMember: v, + myIdx: idx, + parent: this, + } +} + // SetIRI sets an IRI value to be at the specified index for the property // "context". Panics if the index is out of bounds. func (this *ActivityStreamsContextProperty) SetIRI(idx int, v *url.URL) { diff --git a/streams/impl/activitystreams/property_describes/gen_pkg.go b/streams/impl/activitystreams/property_describes/gen_pkg.go index 0252335..553d52a 100644 --- a/streams/impl/activitystreams/property_describes/gen_pkg.go +++ b/streams/impl/activitystreams/property_describes/gen_pkg.go @@ -45,6 +45,10 @@ type privateManager interface { // 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" @@ -53,6 +57,10 @@ type privateManager interface { // 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" @@ -169,6 +177,9 @@ type privateManager interface { // 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" @@ -189,6 +200,10 @@ type privateManager interface { // 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" @@ -201,6 +216,14 @@ type privateManager interface { // 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" diff --git a/streams/impl/activitystreams/property_describes/gen_property_activitystreams_describes.go b/streams/impl/activitystreams/property_describes/gen_property_activitystreams_describes.go index 08be558..1f66d6c 100644 --- a/streams/impl/activitystreams/property_describes/gen_property_activitystreams_describes.go +++ b/streams/impl/activitystreams/property_describes/gen_property_activitystreams_describes.go @@ -24,8 +24,10 @@ type ActivityStreamsDescribesProperty struct { 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 @@ -54,14 +56,18 @@ type ActivityStreamsDescribesProperty struct { 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 @@ -161,6 +167,12 @@ func DeserializeDescribesProperty(m map[string]interface{}, aliasMap map[string] alias: alias, } return this, nil + } else if v, err := mgr.DeserializeBranchForgeFed()(m, aliasMap); err == nil { + this := &ActivityStreamsDescribesProperty{ + alias: alias, + forgefedBranchMember: v, + } + return this, nil } else if v, err := mgr.DeserializeCollectionActivityStreams()(m, aliasMap); err == nil { this := &ActivityStreamsDescribesProperty{ activitystreamsCollectionMember: v, @@ -173,6 +185,12 @@ func DeserializeDescribesProperty(m map[string]interface{}, aliasMap map[string] alias: alias, } return this, nil + } else if v, err := mgr.DeserializeCommitForgeFed()(m, aliasMap); err == nil { + this := &ActivityStreamsDescribesProperty{ + alias: alias, + forgefedCommitMember: v, + } + return this, nil } else if v, err := mgr.DeserializeCreateActivityStreams()(m, aliasMap); err == nil { this := &ActivityStreamsDescribesProperty{ activitystreamsCreateMember: v, @@ -341,6 +359,12 @@ func DeserializeDescribesProperty(m map[string]interface{}, aliasMap map[string] alias: alias, } return this, nil + } else if v, err := mgr.DeserializePushForgeFed()(m, aliasMap); err == nil { + this := &ActivityStreamsDescribesProperty{ + alias: alias, + forgefedPushMember: v, + } + return this, nil } else if v, err := mgr.DeserializeQuestionActivityStreams()(m, aliasMap); err == nil { this := &ActivityStreamsDescribesProperty{ activitystreamsQuestionMember: v, @@ -371,6 +395,12 @@ func DeserializeDescribesProperty(m map[string]interface{}, aliasMap map[string] alias: alias, } return this, nil + } else if v, err := mgr.DeserializeRepositoryForgeFed()(m, aliasMap); err == nil { + this := &ActivityStreamsDescribesProperty{ + alias: alias, + forgefedRepositoryMember: v, + } + return this, nil } else if v, err := mgr.DeserializeServiceActivityStreams()(m, aliasMap); err == nil { this := &ActivityStreamsDescribesProperty{ activitystreamsServiceMember: v, @@ -389,6 +419,18 @@ func DeserializeDescribesProperty(m map[string]interface{}, aliasMap map[string] alias: alias, } return this, nil + } else if v, err := mgr.DeserializeTicketForgeFed()(m, aliasMap); err == nil { + this := &ActivityStreamsDescribesProperty{ + alias: alias, + forgefedTicketMember: v, + } + return this, nil + } else if v, err := mgr.DeserializeTicketDependencyForgeFed()(m, aliasMap); err == nil { + this := &ActivityStreamsDescribesProperty{ + alias: alias, + forgefedTicketDependencyMember: v, + } + return this, nil } else if v, err := mgr.DeserializeTombstoneActivityStreams()(m, aliasMap); err == nil { this := &ActivityStreamsDescribesProperty{ activitystreamsTombstoneMember: v, @@ -454,8 +496,10 @@ func (this *ActivityStreamsDescribesProperty) Clear() { 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 @@ -484,14 +528,18 @@ func (this *ActivityStreamsDescribesProperty) Clear() { 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 @@ -866,6 +914,44 @@ func (this ActivityStreamsDescribesProperty) GetActivityStreamsView() vocab.Acti return this.activitystreamsViewMember } +// GetForgeFedBranch returns the value of this property. When IsForgeFedBranch +// returns false, GetForgeFedBranch will return an arbitrary value. +func (this ActivityStreamsDescribesProperty) GetForgeFedBranch() vocab.ForgeFedBranch { + return this.forgefedBranchMember +} + +// GetForgeFedCommit returns the value of this property. When IsForgeFedCommit +// returns false, GetForgeFedCommit will return an arbitrary value. +func (this ActivityStreamsDescribesProperty) GetForgeFedCommit() vocab.ForgeFedCommit { + return this.forgefedCommitMember +} + +// GetForgeFedPush returns the value of this property. When IsForgeFedPush returns +// false, GetForgeFedPush will return an arbitrary value. +func (this ActivityStreamsDescribesProperty) GetForgeFedPush() vocab.ForgeFedPush { + return this.forgefedPushMember +} + +// GetForgeFedRepository returns the value of this property. When +// IsForgeFedRepository returns false, GetForgeFedRepository will return an +// arbitrary value. +func (this ActivityStreamsDescribesProperty) GetForgeFedRepository() vocab.ForgeFedRepository { + return this.forgefedRepositoryMember +} + +// GetForgeFedTicket returns the value of this property. When IsForgeFedTicket +// returns false, GetForgeFedTicket will return an arbitrary value. +func (this ActivityStreamsDescribesProperty) GetForgeFedTicket() vocab.ForgeFedTicket { + return this.forgefedTicketMember +} + +// GetForgeFedTicketDependency returns the value of this property. When +// IsForgeFedTicketDependency returns false, GetForgeFedTicketDependency will +// return an arbitrary value. +func (this ActivityStreamsDescribesProperty) GetForgeFedTicketDependency() vocab.ForgeFedTicketDependency { + return this.forgefedTicketDependencyMember +} + // GetIRI returns the IRI of this property. When IsIRI returns false, GetIRI will // return an arbitrary value. func (this ActivityStreamsDescribesProperty) GetIRI() *url.URL { @@ -918,12 +1004,18 @@ func (this ActivityStreamsDescribesProperty) GetType() vocab.Type { 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() } @@ -1008,6 +1100,9 @@ func (this ActivityStreamsDescribesProperty) GetType() vocab.Type { if this.IsActivityStreamsProfile() { return this.GetActivityStreamsProfile() } + if this.IsForgeFedPush() { + return this.GetForgeFedPush() + } if this.IsActivityStreamsQuestion() { return this.GetActivityStreamsQuestion() } @@ -1023,6 +1118,9 @@ func (this ActivityStreamsDescribesProperty) GetType() vocab.Type { if this.IsActivityStreamsRemove() { return this.GetActivityStreamsRemove() } + if this.IsForgeFedRepository() { + return this.GetForgeFedRepository() + } if this.IsActivityStreamsService() { return this.GetActivityStreamsService() } @@ -1032,6 +1130,12 @@ func (this ActivityStreamsDescribesProperty) GetType() vocab.Type { if this.IsActivityStreamsTentativeReject() { return this.GetActivityStreamsTentativeReject() } + if this.IsForgeFedTicket() { + return this.GetForgeFedTicket() + } + if this.IsForgeFedTicketDependency() { + return this.GetForgeFedTicketDependency() + } if this.IsActivityStreamsTombstone() { return this.GetActivityStreamsTombstone() } @@ -1066,8 +1170,10 @@ func (this ActivityStreamsDescribesProperty) HasAny() bool { this.IsActivityStreamsArticle() || this.IsActivityStreamsAudio() || this.IsActivityStreamsBlock() || + this.IsForgeFedBranch() || this.IsActivityStreamsCollection() || this.IsActivityStreamsCollectionPage() || + this.IsForgeFedCommit() || this.IsActivityStreamsCreate() || this.IsActivityStreamsDelete() || this.IsActivityStreamsDislike() || @@ -1096,14 +1202,18 @@ func (this ActivityStreamsDescribesProperty) HasAny() bool { 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() || @@ -1482,6 +1592,48 @@ func (this ActivityStreamsDescribesProperty) IsActivityStreamsView() bool { return this.activitystreamsViewMember != nil } +// IsForgeFedBranch returns true if this property has a type of "Branch". When +// true, use the GetForgeFedBranch and SetForgeFedBranch methods to access and +// set this property. +func (this ActivityStreamsDescribesProperty) IsForgeFedBranch() bool { + return this.forgefedBranchMember != nil +} + +// IsForgeFedCommit returns true if this property has a type of "Commit". When +// true, use the GetForgeFedCommit and SetForgeFedCommit methods to access and +// set this property. +func (this ActivityStreamsDescribesProperty) IsForgeFedCommit() bool { + return this.forgefedCommitMember != nil +} + +// IsForgeFedPush returns true if this property has a type of "Push". When true, +// use the GetForgeFedPush and SetForgeFedPush methods to access and set this +// property. +func (this ActivityStreamsDescribesProperty) IsForgeFedPush() bool { + return this.forgefedPushMember != nil +} + +// IsForgeFedRepository returns true if this property has a type of "Repository". +// When true, use the GetForgeFedRepository and SetForgeFedRepository methods +// to access and set this property. +func (this ActivityStreamsDescribesProperty) IsForgeFedRepository() bool { + return this.forgefedRepositoryMember != nil +} + +// IsForgeFedTicket returns true if this property has a type of "Ticket". When +// true, use the GetForgeFedTicket and SetForgeFedTicket methods to access and +// set this property. +func (this ActivityStreamsDescribesProperty) IsForgeFedTicket() bool { + return this.forgefedTicketMember != nil +} + +// IsForgeFedTicketDependency returns true if this property has a type of +// "TicketDependency". When true, use the GetForgeFedTicketDependency and +// SetForgeFedTicketDependency methods to access and set this property. +func (this ActivityStreamsDescribesProperty) IsForgeFedTicketDependency() bool { + return this.forgefedTicketDependencyMember != nil +} + // IsIRI returns true if this property is an IRI. When true, use GetIRI and SetIRI // to access and set this property func (this ActivityStreamsDescribesProperty) IsIRI() bool { @@ -1527,10 +1679,14 @@ func (this ActivityStreamsDescribesProperty) JSONLDContext() map[string]string { 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() { @@ -1587,6 +1743,8 @@ func (this ActivityStreamsDescribesProperty) JSONLDContext() map[string]string { 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() { @@ -1597,12 +1755,18 @@ func (this ActivityStreamsDescribesProperty) JSONLDContext() map[string]string { 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() { @@ -1661,138 +1825,156 @@ func (this ActivityStreamsDescribesProperty) KindIndex() int { if this.IsActivityStreamsBlock() { return 9 } - if this.IsActivityStreamsCollection() { + if this.IsForgeFedBranch() { return 10 } - if this.IsActivityStreamsCollectionPage() { + if this.IsActivityStreamsCollection() { return 11 } - if this.IsActivityStreamsCreate() { + if this.IsActivityStreamsCollectionPage() { return 12 } - if this.IsActivityStreamsDelete() { + if this.IsForgeFedCommit() { return 13 } - if this.IsActivityStreamsDislike() { + if this.IsActivityStreamsCreate() { return 14 } - if this.IsActivityStreamsDocument() { + if this.IsActivityStreamsDelete() { return 15 } - if this.IsTootEmoji() { + if this.IsActivityStreamsDislike() { return 16 } - if this.IsActivityStreamsEvent() { + if this.IsActivityStreamsDocument() { return 17 } - if this.IsActivityStreamsFlag() { + if this.IsTootEmoji() { return 18 } - if this.IsActivityStreamsFollow() { + if this.IsActivityStreamsEvent() { return 19 } - if this.IsActivityStreamsGroup() { + if this.IsActivityStreamsFlag() { return 20 } - if this.IsTootIdentityProof() { + if this.IsActivityStreamsFollow() { return 21 } - if this.IsActivityStreamsIgnore() { + if this.IsActivityStreamsGroup() { return 22 } - if this.IsActivityStreamsImage() { + if this.IsTootIdentityProof() { return 23 } - if this.IsActivityStreamsIntransitiveActivity() { + if this.IsActivityStreamsIgnore() { return 24 } - if this.IsActivityStreamsInvite() { + if this.IsActivityStreamsImage() { return 25 } - if this.IsActivityStreamsJoin() { + if this.IsActivityStreamsIntransitiveActivity() { return 26 } - if this.IsActivityStreamsLeave() { + if this.IsActivityStreamsInvite() { return 27 } - if this.IsActivityStreamsLike() { + if this.IsActivityStreamsJoin() { return 28 } - if this.IsActivityStreamsListen() { + if this.IsActivityStreamsLeave() { return 29 } - if this.IsActivityStreamsMove() { + if this.IsActivityStreamsLike() { return 30 } - if this.IsActivityStreamsNote() { + if this.IsActivityStreamsListen() { return 31 } - if this.IsActivityStreamsOffer() { + if this.IsActivityStreamsMove() { return 32 } - if this.IsActivityStreamsOrderedCollection() { + if this.IsActivityStreamsNote() { return 33 } - if this.IsActivityStreamsOrderedCollectionPage() { + if this.IsActivityStreamsOffer() { return 34 } - if this.IsActivityStreamsOrganization() { + if this.IsActivityStreamsOrderedCollection() { return 35 } - if this.IsActivityStreamsPage() { + if this.IsActivityStreamsOrderedCollectionPage() { return 36 } - if this.IsActivityStreamsPerson() { + if this.IsActivityStreamsOrganization() { return 37 } - if this.IsActivityStreamsPlace() { + if this.IsActivityStreamsPage() { return 38 } - if this.IsActivityStreamsProfile() { + if this.IsActivityStreamsPerson() { return 39 } - if this.IsActivityStreamsQuestion() { + if this.IsActivityStreamsPlace() { return 40 } - if this.IsActivityStreamsRead() { + if this.IsActivityStreamsProfile() { return 41 } - if this.IsActivityStreamsReject() { + if this.IsForgeFedPush() { return 42 } - if this.IsActivityStreamsRelationship() { + if this.IsActivityStreamsQuestion() { return 43 } - if this.IsActivityStreamsRemove() { + if this.IsActivityStreamsRead() { return 44 } - if this.IsActivityStreamsService() { + if this.IsActivityStreamsReject() { return 45 } - if this.IsActivityStreamsTentativeAccept() { + if this.IsActivityStreamsRelationship() { return 46 } - if this.IsActivityStreamsTentativeReject() { + if this.IsActivityStreamsRemove() { return 47 } - if this.IsActivityStreamsTombstone() { + if this.IsForgeFedRepository() { return 48 } - if this.IsActivityStreamsTravel() { + if this.IsActivityStreamsService() { return 49 } - if this.IsActivityStreamsUndo() { + if this.IsActivityStreamsTentativeAccept() { return 50 } - if this.IsActivityStreamsUpdate() { + if this.IsActivityStreamsTentativeReject() { return 51 } - if this.IsActivityStreamsVideo() { + if this.IsForgeFedTicket() { return 52 } - if this.IsActivityStreamsView() { + if this.IsForgeFedTicketDependency() { return 53 } + if this.IsActivityStreamsTombstone() { + return 54 + } + if this.IsActivityStreamsTravel() { + return 55 + } + if this.IsActivityStreamsUndo() { + return 56 + } + if this.IsActivityStreamsUpdate() { + return 57 + } + if this.IsActivityStreamsVideo() { + return 58 + } + if this.IsActivityStreamsView() { + return 59 + } if this.IsIRI() { return -2 } @@ -1830,10 +2012,14 @@ func (this ActivityStreamsDescribesProperty) LessThan(o vocab.ActivityStreamsDes 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() { @@ -1890,6 +2076,8 @@ func (this ActivityStreamsDescribesProperty) LessThan(o vocab.ActivityStreamsDes 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() { @@ -1900,12 +2088,18 @@ func (this ActivityStreamsDescribesProperty) LessThan(o vocab.ActivityStreamsDes 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() { @@ -1958,10 +2152,14 @@ func (this ActivityStreamsDescribesProperty) Serialize() (interface{}, error) { 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() { @@ -2018,6 +2216,8 @@ func (this ActivityStreamsDescribesProperty) Serialize() (interface{}, error) { 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() { @@ -2028,12 +2228,18 @@ func (this ActivityStreamsDescribesProperty) Serialize() (interface{}, error) { 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() { @@ -2416,6 +2622,48 @@ func (this *ActivityStreamsDescribesProperty) SetActivityStreamsView(v vocab.Act this.activitystreamsViewMember = v } +// SetForgeFedBranch sets the value of this property. Calling IsForgeFedBranch +// afterwards returns true. +func (this *ActivityStreamsDescribesProperty) SetForgeFedBranch(v vocab.ForgeFedBranch) { + this.Clear() + this.forgefedBranchMember = v +} + +// SetForgeFedCommit sets the value of this property. Calling IsForgeFedCommit +// afterwards returns true. +func (this *ActivityStreamsDescribesProperty) SetForgeFedCommit(v vocab.ForgeFedCommit) { + this.Clear() + this.forgefedCommitMember = v +} + +// SetForgeFedPush sets the value of this property. Calling IsForgeFedPush +// afterwards returns true. +func (this *ActivityStreamsDescribesProperty) SetForgeFedPush(v vocab.ForgeFedPush) { + this.Clear() + this.forgefedPushMember = v +} + +// SetForgeFedRepository sets the value of this property. Calling +// IsForgeFedRepository afterwards returns true. +func (this *ActivityStreamsDescribesProperty) SetForgeFedRepository(v vocab.ForgeFedRepository) { + this.Clear() + this.forgefedRepositoryMember = v +} + +// SetForgeFedTicket sets the value of this property. Calling IsForgeFedTicket +// afterwards returns true. +func (this *ActivityStreamsDescribesProperty) SetForgeFedTicket(v vocab.ForgeFedTicket) { + this.Clear() + this.forgefedTicketMember = v +} + +// SetForgeFedTicketDependency sets the value of this property. Calling +// IsForgeFedTicketDependency afterwards returns true. +func (this *ActivityStreamsDescribesProperty) SetForgeFedTicketDependency(v vocab.ForgeFedTicketDependency) { + this.Clear() + this.forgefedTicketDependencyMember = v +} + // SetIRI sets the value of this property. Calling IsIRI afterwards returns true. func (this *ActivityStreamsDescribesProperty) SetIRI(v *url.URL) { this.Clear() @@ -2479,6 +2727,10 @@ func (this *ActivityStreamsDescribesProperty) SetType(t vocab.Type) error { 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 @@ -2487,6 +2739,10 @@ func (this *ActivityStreamsDescribesProperty) SetType(t vocab.Type) error { 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 @@ -2599,6 +2855,10 @@ func (this *ActivityStreamsDescribesProperty) SetType(t vocab.Type) error { 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 @@ -2619,6 +2879,10 @@ func (this *ActivityStreamsDescribesProperty) SetType(t vocab.Type) error { 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 @@ -2631,6 +2895,14 @@ func (this *ActivityStreamsDescribesProperty) SetType(t vocab.Type) error { 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 diff --git a/streams/impl/activitystreams/property_formertype/gen_pkg.go b/streams/impl/activitystreams/property_formertype/gen_pkg.go index 0efc137..899db00 100644 --- a/streams/impl/activitystreams/property_formertype/gen_pkg.go +++ b/streams/impl/activitystreams/property_formertype/gen_pkg.go @@ -45,6 +45,10 @@ type privateManager interface { // 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" @@ -53,6 +57,10 @@ type privateManager interface { // 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" @@ -169,6 +177,9 @@ type privateManager interface { // 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" @@ -189,6 +200,10 @@ type privateManager interface { // 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" @@ -201,6 +216,14 @@ type privateManager interface { // 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" diff --git a/streams/impl/activitystreams/property_formertype/gen_property_activitystreams_formerType.go b/streams/impl/activitystreams/property_formertype/gen_property_activitystreams_formerType.go index 6b19146..d4dd9bb 100644 --- a/streams/impl/activitystreams/property_formertype/gen_property_activitystreams_formerType.go +++ b/streams/impl/activitystreams/property_formertype/gen_property_activitystreams_formerType.go @@ -27,8 +27,10 @@ type ActivityStreamsFormerTypePropertyIterator struct { 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 @@ -57,14 +59,18 @@ type ActivityStreamsFormerTypePropertyIterator struct { 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 @@ -164,6 +170,12 @@ func deserializeActivityStreamsFormerTypePropertyIterator(i interface{}, aliasMa alias: alias, } return this, nil + } else if v, err := mgr.DeserializeBranchForgeFed()(m, aliasMap); err == nil { + this := &ActivityStreamsFormerTypePropertyIterator{ + alias: alias, + forgefedBranchMember: v, + } + return this, nil } else if v, err := mgr.DeserializeCollectionActivityStreams()(m, aliasMap); err == nil { this := &ActivityStreamsFormerTypePropertyIterator{ activitystreamsCollectionMember: v, @@ -176,6 +188,12 @@ func deserializeActivityStreamsFormerTypePropertyIterator(i interface{}, aliasMa alias: alias, } return this, nil + } else if v, err := mgr.DeserializeCommitForgeFed()(m, aliasMap); err == nil { + this := &ActivityStreamsFormerTypePropertyIterator{ + alias: alias, + forgefedCommitMember: v, + } + return this, nil } else if v, err := mgr.DeserializeCreateActivityStreams()(m, aliasMap); err == nil { this := &ActivityStreamsFormerTypePropertyIterator{ activitystreamsCreateMember: v, @@ -344,6 +362,12 @@ func deserializeActivityStreamsFormerTypePropertyIterator(i interface{}, aliasMa alias: alias, } return this, nil + } else if v, err := mgr.DeserializePushForgeFed()(m, aliasMap); err == nil { + this := &ActivityStreamsFormerTypePropertyIterator{ + alias: alias, + forgefedPushMember: v, + } + return this, nil } else if v, err := mgr.DeserializeQuestionActivityStreams()(m, aliasMap); err == nil { this := &ActivityStreamsFormerTypePropertyIterator{ activitystreamsQuestionMember: v, @@ -374,6 +398,12 @@ func deserializeActivityStreamsFormerTypePropertyIterator(i interface{}, aliasMa alias: alias, } return this, nil + } else if v, err := mgr.DeserializeRepositoryForgeFed()(m, aliasMap); err == nil { + this := &ActivityStreamsFormerTypePropertyIterator{ + alias: alias, + forgefedRepositoryMember: v, + } + return this, nil } else if v, err := mgr.DeserializeServiceActivityStreams()(m, aliasMap); err == nil { this := &ActivityStreamsFormerTypePropertyIterator{ activitystreamsServiceMember: v, @@ -392,6 +422,18 @@ func deserializeActivityStreamsFormerTypePropertyIterator(i interface{}, aliasMa alias: alias, } return this, nil + } else if v, err := mgr.DeserializeTicketForgeFed()(m, aliasMap); err == nil { + this := &ActivityStreamsFormerTypePropertyIterator{ + alias: alias, + forgefedTicketMember: v, + } + return this, nil + } else if v, err := mgr.DeserializeTicketDependencyForgeFed()(m, aliasMap); err == nil { + this := &ActivityStreamsFormerTypePropertyIterator{ + alias: alias, + forgefedTicketDependencyMember: v, + } + return this, nil } else if v, err := mgr.DeserializeTombstoneActivityStreams()(m, aliasMap); err == nil { this := &ActivityStreamsFormerTypePropertyIterator{ activitystreamsTombstoneMember: v, @@ -809,6 +851,44 @@ func (this ActivityStreamsFormerTypePropertyIterator) GetActivityStreamsView() v return this.activitystreamsViewMember } +// GetForgeFedBranch returns the value of this property. When IsForgeFedBranch +// returns false, GetForgeFedBranch will return an arbitrary value. +func (this ActivityStreamsFormerTypePropertyIterator) GetForgeFedBranch() vocab.ForgeFedBranch { + return this.forgefedBranchMember +} + +// GetForgeFedCommit returns the value of this property. When IsForgeFedCommit +// returns false, GetForgeFedCommit will return an arbitrary value. +func (this ActivityStreamsFormerTypePropertyIterator) GetForgeFedCommit() vocab.ForgeFedCommit { + return this.forgefedCommitMember +} + +// GetForgeFedPush returns the value of this property. When IsForgeFedPush returns +// false, GetForgeFedPush will return an arbitrary value. +func (this ActivityStreamsFormerTypePropertyIterator) GetForgeFedPush() vocab.ForgeFedPush { + return this.forgefedPushMember +} + +// GetForgeFedRepository returns the value of this property. When +// IsForgeFedRepository returns false, GetForgeFedRepository will return an +// arbitrary value. +func (this ActivityStreamsFormerTypePropertyIterator) GetForgeFedRepository() vocab.ForgeFedRepository { + return this.forgefedRepositoryMember +} + +// GetForgeFedTicket returns the value of this property. When IsForgeFedTicket +// returns false, GetForgeFedTicket will return an arbitrary value. +func (this ActivityStreamsFormerTypePropertyIterator) GetForgeFedTicket() vocab.ForgeFedTicket { + return this.forgefedTicketMember +} + +// GetForgeFedTicketDependency returns the value of this property. When +// IsForgeFedTicketDependency returns false, GetForgeFedTicketDependency will +// return an arbitrary value. +func (this ActivityStreamsFormerTypePropertyIterator) GetForgeFedTicketDependency() vocab.ForgeFedTicketDependency { + return this.forgefedTicketDependencyMember +} + // GetIRI returns the IRI of this property. When IsIRI returns false, GetIRI will // return an arbitrary value. func (this ActivityStreamsFormerTypePropertyIterator) GetIRI() *url.URL { @@ -861,12 +941,18 @@ func (this ActivityStreamsFormerTypePropertyIterator) GetType() vocab.Type { 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() } @@ -951,6 +1037,9 @@ func (this ActivityStreamsFormerTypePropertyIterator) GetType() vocab.Type { if this.IsActivityStreamsProfile() { return this.GetActivityStreamsProfile() } + if this.IsForgeFedPush() { + return this.GetForgeFedPush() + } if this.IsActivityStreamsQuestion() { return this.GetActivityStreamsQuestion() } @@ -966,6 +1055,9 @@ func (this ActivityStreamsFormerTypePropertyIterator) GetType() vocab.Type { if this.IsActivityStreamsRemove() { return this.GetActivityStreamsRemove() } + if this.IsForgeFedRepository() { + return this.GetForgeFedRepository() + } if this.IsActivityStreamsService() { return this.GetActivityStreamsService() } @@ -975,6 +1067,12 @@ func (this ActivityStreamsFormerTypePropertyIterator) GetType() vocab.Type { if this.IsActivityStreamsTentativeReject() { return this.GetActivityStreamsTentativeReject() } + if this.IsForgeFedTicket() { + return this.GetForgeFedTicket() + } + if this.IsForgeFedTicketDependency() { + return this.GetForgeFedTicketDependency() + } if this.IsActivityStreamsTombstone() { return this.GetActivityStreamsTombstone() } @@ -1016,8 +1114,10 @@ func (this ActivityStreamsFormerTypePropertyIterator) HasAny() bool { this.IsActivityStreamsArticle() || this.IsActivityStreamsAudio() || this.IsActivityStreamsBlock() || + this.IsForgeFedBranch() || this.IsActivityStreamsCollection() || this.IsActivityStreamsCollectionPage() || + this.IsForgeFedCommit() || this.IsActivityStreamsCreate() || this.IsActivityStreamsDelete() || this.IsActivityStreamsDislike() || @@ -1046,14 +1146,18 @@ func (this ActivityStreamsFormerTypePropertyIterator) HasAny() bool { 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() || @@ -1432,6 +1536,48 @@ func (this ActivityStreamsFormerTypePropertyIterator) IsActivityStreamsView() bo return this.activitystreamsViewMember != nil } +// IsForgeFedBranch returns true if this property has a type of "Branch". When +// true, use the GetForgeFedBranch and SetForgeFedBranch methods to access and +// set this property. +func (this ActivityStreamsFormerTypePropertyIterator) IsForgeFedBranch() bool { + return this.forgefedBranchMember != nil +} + +// IsForgeFedCommit returns true if this property has a type of "Commit". When +// true, use the GetForgeFedCommit and SetForgeFedCommit methods to access and +// set this property. +func (this ActivityStreamsFormerTypePropertyIterator) IsForgeFedCommit() bool { + return this.forgefedCommitMember != nil +} + +// IsForgeFedPush returns true if this property has a type of "Push". When true, +// use the GetForgeFedPush and SetForgeFedPush methods to access and set this +// property. +func (this ActivityStreamsFormerTypePropertyIterator) IsForgeFedPush() bool { + return this.forgefedPushMember != nil +} + +// IsForgeFedRepository returns true if this property has a type of "Repository". +// When true, use the GetForgeFedRepository and SetForgeFedRepository methods +// to access and set this property. +func (this ActivityStreamsFormerTypePropertyIterator) IsForgeFedRepository() bool { + return this.forgefedRepositoryMember != nil +} + +// IsForgeFedTicket returns true if this property has a type of "Ticket". When +// true, use the GetForgeFedTicket and SetForgeFedTicket methods to access and +// set this property. +func (this ActivityStreamsFormerTypePropertyIterator) IsForgeFedTicket() bool { + return this.forgefedTicketMember != nil +} + +// IsForgeFedTicketDependency returns true if this property has a type of +// "TicketDependency". When true, use the GetForgeFedTicketDependency and +// SetForgeFedTicketDependency methods to access and set this property. +func (this ActivityStreamsFormerTypePropertyIterator) IsForgeFedTicketDependency() bool { + return this.forgefedTicketDependencyMember != nil +} + // IsIRI returns true if this property is an IRI. When true, use GetIRI and SetIRI // to access and set this property func (this ActivityStreamsFormerTypePropertyIterator) IsIRI() bool { @@ -1484,10 +1630,14 @@ func (this ActivityStreamsFormerTypePropertyIterator) JSONLDContext() map[string 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() { @@ -1544,6 +1694,8 @@ func (this ActivityStreamsFormerTypePropertyIterator) JSONLDContext() map[string 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() { @@ -1554,12 +1706,18 @@ func (this ActivityStreamsFormerTypePropertyIterator) JSONLDContext() map[string 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() { @@ -1621,138 +1779,156 @@ func (this ActivityStreamsFormerTypePropertyIterator) KindIndex() int { if this.IsActivityStreamsBlock() { return 10 } - if this.IsActivityStreamsCollection() { + if this.IsForgeFedBranch() { return 11 } - if this.IsActivityStreamsCollectionPage() { + if this.IsActivityStreamsCollection() { return 12 } - if this.IsActivityStreamsCreate() { + if this.IsActivityStreamsCollectionPage() { return 13 } - if this.IsActivityStreamsDelete() { + if this.IsForgeFedCommit() { return 14 } - if this.IsActivityStreamsDislike() { + if this.IsActivityStreamsCreate() { return 15 } - if this.IsActivityStreamsDocument() { + if this.IsActivityStreamsDelete() { return 16 } - if this.IsTootEmoji() { + if this.IsActivityStreamsDislike() { return 17 } - if this.IsActivityStreamsEvent() { + if this.IsActivityStreamsDocument() { return 18 } - if this.IsActivityStreamsFlag() { + if this.IsTootEmoji() { return 19 } - if this.IsActivityStreamsFollow() { + if this.IsActivityStreamsEvent() { return 20 } - if this.IsActivityStreamsGroup() { + if this.IsActivityStreamsFlag() { return 21 } - if this.IsTootIdentityProof() { + if this.IsActivityStreamsFollow() { return 22 } - if this.IsActivityStreamsIgnore() { + if this.IsActivityStreamsGroup() { return 23 } - if this.IsActivityStreamsImage() { + if this.IsTootIdentityProof() { return 24 } - if this.IsActivityStreamsIntransitiveActivity() { + if this.IsActivityStreamsIgnore() { return 25 } - if this.IsActivityStreamsInvite() { + if this.IsActivityStreamsImage() { return 26 } - if this.IsActivityStreamsJoin() { + if this.IsActivityStreamsIntransitiveActivity() { return 27 } - if this.IsActivityStreamsLeave() { + if this.IsActivityStreamsInvite() { return 28 } - if this.IsActivityStreamsLike() { + if this.IsActivityStreamsJoin() { return 29 } - if this.IsActivityStreamsListen() { + if this.IsActivityStreamsLeave() { return 30 } - if this.IsActivityStreamsMove() { + if this.IsActivityStreamsLike() { return 31 } - if this.IsActivityStreamsNote() { + if this.IsActivityStreamsListen() { return 32 } - if this.IsActivityStreamsOffer() { + if this.IsActivityStreamsMove() { return 33 } - if this.IsActivityStreamsOrderedCollection() { + if this.IsActivityStreamsNote() { return 34 } - if this.IsActivityStreamsOrderedCollectionPage() { + if this.IsActivityStreamsOffer() { return 35 } - if this.IsActivityStreamsOrganization() { + if this.IsActivityStreamsOrderedCollection() { return 36 } - if this.IsActivityStreamsPage() { + if this.IsActivityStreamsOrderedCollectionPage() { return 37 } - if this.IsActivityStreamsPerson() { + if this.IsActivityStreamsOrganization() { return 38 } - if this.IsActivityStreamsPlace() { + if this.IsActivityStreamsPage() { return 39 } - if this.IsActivityStreamsProfile() { + if this.IsActivityStreamsPerson() { return 40 } - if this.IsActivityStreamsQuestion() { + if this.IsActivityStreamsPlace() { return 41 } - if this.IsActivityStreamsRead() { + if this.IsActivityStreamsProfile() { return 42 } - if this.IsActivityStreamsReject() { + if this.IsForgeFedPush() { return 43 } - if this.IsActivityStreamsRelationship() { + if this.IsActivityStreamsQuestion() { return 44 } - if this.IsActivityStreamsRemove() { + if this.IsActivityStreamsRead() { return 45 } - if this.IsActivityStreamsService() { + if this.IsActivityStreamsReject() { return 46 } - if this.IsActivityStreamsTentativeAccept() { + if this.IsActivityStreamsRelationship() { return 47 } - if this.IsActivityStreamsTentativeReject() { + if this.IsActivityStreamsRemove() { return 48 } - if this.IsActivityStreamsTombstone() { + if this.IsForgeFedRepository() { return 49 } - if this.IsActivityStreamsTravel() { + if this.IsActivityStreamsService() { return 50 } - if this.IsActivityStreamsUndo() { + if this.IsActivityStreamsTentativeAccept() { return 51 } - if this.IsActivityStreamsUpdate() { + if this.IsActivityStreamsTentativeReject() { return 52 } - if this.IsActivityStreamsVideo() { + if this.IsForgeFedTicket() { return 53 } - if this.IsActivityStreamsView() { + if this.IsForgeFedTicketDependency() { return 54 } + if this.IsActivityStreamsTombstone() { + return 55 + } + if this.IsActivityStreamsTravel() { + return 56 + } + if this.IsActivityStreamsUndo() { + return 57 + } + if this.IsActivityStreamsUpdate() { + return 58 + } + if this.IsActivityStreamsVideo() { + return 59 + } + if this.IsActivityStreamsView() { + return 60 + } if this.IsIRI() { return -2 } @@ -1792,10 +1968,14 @@ func (this ActivityStreamsFormerTypePropertyIterator) LessThan(o vocab.ActivityS 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() { @@ -1852,6 +2032,8 @@ func (this ActivityStreamsFormerTypePropertyIterator) LessThan(o vocab.ActivityS 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() { @@ -1862,12 +2044,18 @@ func (this ActivityStreamsFormerTypePropertyIterator) LessThan(o vocab.ActivityS 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() { @@ -2277,6 +2465,48 @@ func (this *ActivityStreamsFormerTypePropertyIterator) SetActivityStreamsView(v this.activitystreamsViewMember = v } +// SetForgeFedBranch sets the value of this property. Calling IsForgeFedBranch +// afterwards returns true. +func (this *ActivityStreamsFormerTypePropertyIterator) SetForgeFedBranch(v vocab.ForgeFedBranch) { + this.clear() + this.forgefedBranchMember = v +} + +// SetForgeFedCommit sets the value of this property. Calling IsForgeFedCommit +// afterwards returns true. +func (this *ActivityStreamsFormerTypePropertyIterator) SetForgeFedCommit(v vocab.ForgeFedCommit) { + this.clear() + this.forgefedCommitMember = v +} + +// SetForgeFedPush sets the value of this property. Calling IsForgeFedPush +// afterwards returns true. +func (this *ActivityStreamsFormerTypePropertyIterator) SetForgeFedPush(v vocab.ForgeFedPush) { + this.clear() + this.forgefedPushMember = v +} + +// SetForgeFedRepository sets the value of this property. Calling +// IsForgeFedRepository afterwards returns true. +func (this *ActivityStreamsFormerTypePropertyIterator) SetForgeFedRepository(v vocab.ForgeFedRepository) { + this.clear() + this.forgefedRepositoryMember = v +} + +// SetForgeFedTicket sets the value of this property. Calling IsForgeFedTicket +// afterwards returns true. +func (this *ActivityStreamsFormerTypePropertyIterator) SetForgeFedTicket(v vocab.ForgeFedTicket) { + this.clear() + this.forgefedTicketMember = v +} + +// SetForgeFedTicketDependency sets the value of this property. Calling +// IsForgeFedTicketDependency afterwards returns true. +func (this *ActivityStreamsFormerTypePropertyIterator) SetForgeFedTicketDependency(v vocab.ForgeFedTicketDependency) { + this.clear() + this.forgefedTicketDependencyMember = v +} + // SetIRI sets the value of this property. Calling IsIRI afterwards returns true. func (this *ActivityStreamsFormerTypePropertyIterator) SetIRI(v *url.URL) { this.clear() @@ -2340,6 +2570,10 @@ func (this *ActivityStreamsFormerTypePropertyIterator) SetType(t vocab.Type) err 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 @@ -2348,6 +2582,10 @@ func (this *ActivityStreamsFormerTypePropertyIterator) SetType(t vocab.Type) err 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 @@ -2460,6 +2698,10 @@ func (this *ActivityStreamsFormerTypePropertyIterator) SetType(t vocab.Type) err 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 @@ -2480,6 +2722,10 @@ func (this *ActivityStreamsFormerTypePropertyIterator) SetType(t vocab.Type) err 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 @@ -2492,6 +2738,14 @@ func (this *ActivityStreamsFormerTypePropertyIterator) SetType(t vocab.Type) err 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 @@ -2542,8 +2796,10 @@ func (this *ActivityStreamsFormerTypePropertyIterator) clear() { 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 @@ -2572,14 +2828,18 @@ func (this *ActivityStreamsFormerTypePropertyIterator) clear() { 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 @@ -2617,10 +2877,14 @@ func (this ActivityStreamsFormerTypePropertyIterator) serialize() (interface{}, 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() { @@ -2677,6 +2941,8 @@ func (this ActivityStreamsFormerTypePropertyIterator) serialize() (interface{}, 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() { @@ -2687,12 +2953,18 @@ func (this ActivityStreamsFormerTypePropertyIterator) serialize() (interface{}, 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() { @@ -3357,6 +3629,74 @@ func (this *ActivityStreamsFormerTypeProperty) AppendActivityStreamsView(v vocab }) } +// AppendForgeFedBranch appends a Branch value to the back of a list of the +// property "formerType". Invalidates iterators that are traversing using Prev. +func (this *ActivityStreamsFormerTypeProperty) AppendForgeFedBranch(v vocab.ForgeFedBranch) { + this.properties = append(this.properties, &ActivityStreamsFormerTypePropertyIterator{ + alias: this.alias, + forgefedBranchMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendForgeFedCommit appends a Commit value to the back of a list of the +// property "formerType". Invalidates iterators that are traversing using Prev. +func (this *ActivityStreamsFormerTypeProperty) AppendForgeFedCommit(v vocab.ForgeFedCommit) { + this.properties = append(this.properties, &ActivityStreamsFormerTypePropertyIterator{ + alias: this.alias, + forgefedCommitMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendForgeFedPush appends a Push value to the back of a list of the property +// "formerType". Invalidates iterators that are traversing using Prev. +func (this *ActivityStreamsFormerTypeProperty) AppendForgeFedPush(v vocab.ForgeFedPush) { + this.properties = append(this.properties, &ActivityStreamsFormerTypePropertyIterator{ + alias: this.alias, + forgefedPushMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendForgeFedRepository appends a Repository value to the back of a list of +// the property "formerType". Invalidates iterators that are traversing using +// Prev. +func (this *ActivityStreamsFormerTypeProperty) AppendForgeFedRepository(v vocab.ForgeFedRepository) { + this.properties = append(this.properties, &ActivityStreamsFormerTypePropertyIterator{ + alias: this.alias, + forgefedRepositoryMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendForgeFedTicket appends a Ticket value to the back of a list of the +// property "formerType". Invalidates iterators that are traversing using Prev. +func (this *ActivityStreamsFormerTypeProperty) AppendForgeFedTicket(v vocab.ForgeFedTicket) { + this.properties = append(this.properties, &ActivityStreamsFormerTypePropertyIterator{ + alias: this.alias, + forgefedTicketMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendForgeFedTicketDependency appends a TicketDependency value to the back of +// a list of the property "formerType". Invalidates iterators that are +// traversing using Prev. +func (this *ActivityStreamsFormerTypeProperty) AppendForgeFedTicketDependency(v vocab.ForgeFedTicketDependency) { + this.properties = append(this.properties, &ActivityStreamsFormerTypePropertyIterator{ + alias: this.alias, + forgefedTicketDependencyMember: v, + myIdx: this.Len(), + parent: this, + }) +} + // AppendIRI appends an IRI value to the back of a list of the property // "formerType" func (this *ActivityStreamsFormerTypeProperty) AppendIRI(v *url.URL) { @@ -4333,6 +4673,108 @@ func (this *ActivityStreamsFormerTypeProperty) InsertActivityStreamsView(idx int } } +// InsertForgeFedBranch inserts a Branch value at the specified index for a +// property "formerType". Existing elements at that index and higher are +// shifted back once. Invalidates all iterators. +func (this *ActivityStreamsFormerTypeProperty) InsertForgeFedBranch(idx int, v vocab.ForgeFedBranch) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsFormerTypePropertyIterator{ + alias: this.alias, + forgefedBranchMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertForgeFedCommit inserts a Commit value at the specified index for a +// property "formerType". Existing elements at that index and higher are +// shifted back once. Invalidates all iterators. +func (this *ActivityStreamsFormerTypeProperty) InsertForgeFedCommit(idx int, v vocab.ForgeFedCommit) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsFormerTypePropertyIterator{ + alias: this.alias, + forgefedCommitMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertForgeFedPush inserts a Push value at the specified index for a property +// "formerType". Existing elements at that index and higher are shifted back +// once. Invalidates all iterators. +func (this *ActivityStreamsFormerTypeProperty) InsertForgeFedPush(idx int, v vocab.ForgeFedPush) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsFormerTypePropertyIterator{ + alias: this.alias, + forgefedPushMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertForgeFedRepository inserts a Repository value at the specified index for +// a property "formerType". Existing elements at that index and higher are +// shifted back once. Invalidates all iterators. +func (this *ActivityStreamsFormerTypeProperty) InsertForgeFedRepository(idx int, v vocab.ForgeFedRepository) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsFormerTypePropertyIterator{ + alias: this.alias, + forgefedRepositoryMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertForgeFedTicket inserts a Ticket value at the specified index for a +// property "formerType". Existing elements at that index and higher are +// shifted back once. Invalidates all iterators. +func (this *ActivityStreamsFormerTypeProperty) InsertForgeFedTicket(idx int, v vocab.ForgeFedTicket) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsFormerTypePropertyIterator{ + alias: this.alias, + forgefedTicketMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertForgeFedTicketDependency inserts a TicketDependency value at the +// specified index for a property "formerType". Existing elements at that +// index and higher are shifted back once. Invalidates all iterators. +func (this *ActivityStreamsFormerTypeProperty) InsertForgeFedTicketDependency(idx int, v vocab.ForgeFedTicketDependency) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsFormerTypePropertyIterator{ + alias: this.alias, + forgefedTicketDependencyMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + // Insert inserts an IRI value at the specified index for a property "formerType". // Existing elements at that index and higher are shifted back once. // Invalidates all iterators. @@ -4508,178 +4950,202 @@ func (this ActivityStreamsFormerTypeProperty) Less(i, j int) bool { rhs := this.properties[j].GetActivityStreamsBlock() return lhs.LessThan(rhs) } else if idx1 == 11 { + lhs := this.properties[i].GetForgeFedBranch() + rhs := this.properties[j].GetForgeFedBranch() + return lhs.LessThan(rhs) + } else if idx1 == 12 { lhs := this.properties[i].GetActivityStreamsCollection() rhs := this.properties[j].GetActivityStreamsCollection() return lhs.LessThan(rhs) - } else if idx1 == 12 { + } else if idx1 == 13 { lhs := this.properties[i].GetActivityStreamsCollectionPage() rhs := this.properties[j].GetActivityStreamsCollectionPage() return lhs.LessThan(rhs) - } else if idx1 == 13 { + } else if idx1 == 14 { + lhs := this.properties[i].GetForgeFedCommit() + rhs := this.properties[j].GetForgeFedCommit() + return lhs.LessThan(rhs) + } else if idx1 == 15 { lhs := this.properties[i].GetActivityStreamsCreate() rhs := this.properties[j].GetActivityStreamsCreate() return lhs.LessThan(rhs) - } else if idx1 == 14 { + } else if idx1 == 16 { lhs := this.properties[i].GetActivityStreamsDelete() rhs := this.properties[j].GetActivityStreamsDelete() return lhs.LessThan(rhs) - } else if idx1 == 15 { + } else if idx1 == 17 { lhs := this.properties[i].GetActivityStreamsDislike() rhs := this.properties[j].GetActivityStreamsDislike() return lhs.LessThan(rhs) - } else if idx1 == 16 { + } else if idx1 == 18 { lhs := this.properties[i].GetActivityStreamsDocument() rhs := this.properties[j].GetActivityStreamsDocument() return lhs.LessThan(rhs) - } else if idx1 == 17 { + } else if idx1 == 19 { lhs := this.properties[i].GetTootEmoji() rhs := this.properties[j].GetTootEmoji() return lhs.LessThan(rhs) - } else if idx1 == 18 { + } else if idx1 == 20 { lhs := this.properties[i].GetActivityStreamsEvent() rhs := this.properties[j].GetActivityStreamsEvent() return lhs.LessThan(rhs) - } else if idx1 == 19 { + } else if idx1 == 21 { lhs := this.properties[i].GetActivityStreamsFlag() rhs := this.properties[j].GetActivityStreamsFlag() return lhs.LessThan(rhs) - } else if idx1 == 20 { + } else if idx1 == 22 { lhs := this.properties[i].GetActivityStreamsFollow() rhs := this.properties[j].GetActivityStreamsFollow() return lhs.LessThan(rhs) - } else if idx1 == 21 { + } else if idx1 == 23 { lhs := this.properties[i].GetActivityStreamsGroup() rhs := this.properties[j].GetActivityStreamsGroup() return lhs.LessThan(rhs) - } else if idx1 == 22 { + } else if idx1 == 24 { lhs := this.properties[i].GetTootIdentityProof() rhs := this.properties[j].GetTootIdentityProof() return lhs.LessThan(rhs) - } else if idx1 == 23 { + } else if idx1 == 25 { lhs := this.properties[i].GetActivityStreamsIgnore() rhs := this.properties[j].GetActivityStreamsIgnore() return lhs.LessThan(rhs) - } else if idx1 == 24 { + } else if idx1 == 26 { lhs := this.properties[i].GetActivityStreamsImage() rhs := this.properties[j].GetActivityStreamsImage() return lhs.LessThan(rhs) - } else if idx1 == 25 { + } else if idx1 == 27 { lhs := this.properties[i].GetActivityStreamsIntransitiveActivity() rhs := this.properties[j].GetActivityStreamsIntransitiveActivity() return lhs.LessThan(rhs) - } else if idx1 == 26 { + } else if idx1 == 28 { lhs := this.properties[i].GetActivityStreamsInvite() rhs := this.properties[j].GetActivityStreamsInvite() return lhs.LessThan(rhs) - } else if idx1 == 27 { + } else if idx1 == 29 { lhs := this.properties[i].GetActivityStreamsJoin() rhs := this.properties[j].GetActivityStreamsJoin() return lhs.LessThan(rhs) - } else if idx1 == 28 { + } else if idx1 == 30 { lhs := this.properties[i].GetActivityStreamsLeave() rhs := this.properties[j].GetActivityStreamsLeave() return lhs.LessThan(rhs) - } else if idx1 == 29 { + } else if idx1 == 31 { lhs := this.properties[i].GetActivityStreamsLike() rhs := this.properties[j].GetActivityStreamsLike() return lhs.LessThan(rhs) - } else if idx1 == 30 { + } else if idx1 == 32 { lhs := this.properties[i].GetActivityStreamsListen() rhs := this.properties[j].GetActivityStreamsListen() return lhs.LessThan(rhs) - } else if idx1 == 31 { + } else if idx1 == 33 { lhs := this.properties[i].GetActivityStreamsMove() rhs := this.properties[j].GetActivityStreamsMove() return lhs.LessThan(rhs) - } else if idx1 == 32 { + } else if idx1 == 34 { lhs := this.properties[i].GetActivityStreamsNote() rhs := this.properties[j].GetActivityStreamsNote() return lhs.LessThan(rhs) - } else if idx1 == 33 { + } else if idx1 == 35 { lhs := this.properties[i].GetActivityStreamsOffer() rhs := this.properties[j].GetActivityStreamsOffer() return lhs.LessThan(rhs) - } else if idx1 == 34 { + } else if idx1 == 36 { lhs := this.properties[i].GetActivityStreamsOrderedCollection() rhs := this.properties[j].GetActivityStreamsOrderedCollection() return lhs.LessThan(rhs) - } else if idx1 == 35 { + } else if idx1 == 37 { lhs := this.properties[i].GetActivityStreamsOrderedCollectionPage() rhs := this.properties[j].GetActivityStreamsOrderedCollectionPage() return lhs.LessThan(rhs) - } else if idx1 == 36 { + } else if idx1 == 38 { lhs := this.properties[i].GetActivityStreamsOrganization() rhs := this.properties[j].GetActivityStreamsOrganization() return lhs.LessThan(rhs) - } else if idx1 == 37 { + } else if idx1 == 39 { lhs := this.properties[i].GetActivityStreamsPage() rhs := this.properties[j].GetActivityStreamsPage() return lhs.LessThan(rhs) - } else if idx1 == 38 { + } else if idx1 == 40 { lhs := this.properties[i].GetActivityStreamsPerson() rhs := this.properties[j].GetActivityStreamsPerson() return lhs.LessThan(rhs) - } else if idx1 == 39 { + } else if idx1 == 41 { lhs := this.properties[i].GetActivityStreamsPlace() rhs := this.properties[j].GetActivityStreamsPlace() return lhs.LessThan(rhs) - } else if idx1 == 40 { + } else if idx1 == 42 { lhs := this.properties[i].GetActivityStreamsProfile() rhs := this.properties[j].GetActivityStreamsProfile() return lhs.LessThan(rhs) - } else if idx1 == 41 { + } else if idx1 == 43 { + lhs := this.properties[i].GetForgeFedPush() + rhs := this.properties[j].GetForgeFedPush() + return lhs.LessThan(rhs) + } else if idx1 == 44 { lhs := this.properties[i].GetActivityStreamsQuestion() rhs := this.properties[j].GetActivityStreamsQuestion() return lhs.LessThan(rhs) - } else if idx1 == 42 { + } else if idx1 == 45 { lhs := this.properties[i].GetActivityStreamsRead() rhs := this.properties[j].GetActivityStreamsRead() return lhs.LessThan(rhs) - } else if idx1 == 43 { + } else if idx1 == 46 { lhs := this.properties[i].GetActivityStreamsReject() rhs := this.properties[j].GetActivityStreamsReject() return lhs.LessThan(rhs) - } else if idx1 == 44 { + } else if idx1 == 47 { lhs := this.properties[i].GetActivityStreamsRelationship() rhs := this.properties[j].GetActivityStreamsRelationship() return lhs.LessThan(rhs) - } else if idx1 == 45 { + } else if idx1 == 48 { lhs := this.properties[i].GetActivityStreamsRemove() rhs := this.properties[j].GetActivityStreamsRemove() return lhs.LessThan(rhs) - } else if idx1 == 46 { + } else if idx1 == 49 { + lhs := this.properties[i].GetForgeFedRepository() + rhs := this.properties[j].GetForgeFedRepository() + return lhs.LessThan(rhs) + } else if idx1 == 50 { lhs := this.properties[i].GetActivityStreamsService() rhs := this.properties[j].GetActivityStreamsService() return lhs.LessThan(rhs) - } else if idx1 == 47 { + } else if idx1 == 51 { lhs := this.properties[i].GetActivityStreamsTentativeAccept() rhs := this.properties[j].GetActivityStreamsTentativeAccept() return lhs.LessThan(rhs) - } else if idx1 == 48 { + } else if idx1 == 52 { lhs := this.properties[i].GetActivityStreamsTentativeReject() rhs := this.properties[j].GetActivityStreamsTentativeReject() return lhs.LessThan(rhs) - } else if idx1 == 49 { + } else if idx1 == 53 { + lhs := this.properties[i].GetForgeFedTicket() + rhs := this.properties[j].GetForgeFedTicket() + return lhs.LessThan(rhs) + } else if idx1 == 54 { + lhs := this.properties[i].GetForgeFedTicketDependency() + rhs := this.properties[j].GetForgeFedTicketDependency() + return lhs.LessThan(rhs) + } else if idx1 == 55 { lhs := this.properties[i].GetActivityStreamsTombstone() rhs := this.properties[j].GetActivityStreamsTombstone() return lhs.LessThan(rhs) - } else if idx1 == 50 { + } else if idx1 == 56 { lhs := this.properties[i].GetActivityStreamsTravel() rhs := this.properties[j].GetActivityStreamsTravel() return lhs.LessThan(rhs) - } else if idx1 == 51 { + } else if idx1 == 57 { lhs := this.properties[i].GetActivityStreamsUndo() rhs := this.properties[j].GetActivityStreamsUndo() return lhs.LessThan(rhs) - } else if idx1 == 52 { + } else if idx1 == 58 { lhs := this.properties[i].GetActivityStreamsUpdate() rhs := this.properties[j].GetActivityStreamsUpdate() return lhs.LessThan(rhs) - } else if idx1 == 53 { + } else if idx1 == 59 { lhs := this.properties[i].GetActivityStreamsVideo() rhs := this.properties[j].GetActivityStreamsVideo() return lhs.LessThan(rhs) - } else if idx1 == 54 { + } else if idx1 == 60 { lhs := this.properties[i].GetActivityStreamsView() rhs := this.properties[j].GetActivityStreamsView() return lhs.LessThan(rhs) @@ -5452,6 +5918,90 @@ func (this *ActivityStreamsFormerTypeProperty) PrependActivityStreamsView(v voca } } +// PrependForgeFedBranch prepends a Branch value to the front of a list of the +// property "formerType". Invalidates all iterators. +func (this *ActivityStreamsFormerTypeProperty) PrependForgeFedBranch(v vocab.ForgeFedBranch) { + this.properties = append([]*ActivityStreamsFormerTypePropertyIterator{{ + alias: this.alias, + forgefedBranchMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependForgeFedCommit prepends a Commit value to the front of a list of the +// property "formerType". Invalidates all iterators. +func (this *ActivityStreamsFormerTypeProperty) PrependForgeFedCommit(v vocab.ForgeFedCommit) { + this.properties = append([]*ActivityStreamsFormerTypePropertyIterator{{ + alias: this.alias, + forgefedCommitMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependForgeFedPush prepends a Push value to the front of a list of the +// property "formerType". Invalidates all iterators. +func (this *ActivityStreamsFormerTypeProperty) PrependForgeFedPush(v vocab.ForgeFedPush) { + this.properties = append([]*ActivityStreamsFormerTypePropertyIterator{{ + alias: this.alias, + forgefedPushMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependForgeFedRepository prepends a Repository value to the front of a list of +// the property "formerType". Invalidates all iterators. +func (this *ActivityStreamsFormerTypeProperty) PrependForgeFedRepository(v vocab.ForgeFedRepository) { + this.properties = append([]*ActivityStreamsFormerTypePropertyIterator{{ + alias: this.alias, + forgefedRepositoryMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependForgeFedTicket prepends a Ticket value to the front of a list of the +// property "formerType". Invalidates all iterators. +func (this *ActivityStreamsFormerTypeProperty) PrependForgeFedTicket(v vocab.ForgeFedTicket) { + this.properties = append([]*ActivityStreamsFormerTypePropertyIterator{{ + alias: this.alias, + forgefedTicketMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependForgeFedTicketDependency prepends a TicketDependency value to the front +// of a list of the property "formerType". Invalidates all iterators. +func (this *ActivityStreamsFormerTypeProperty) PrependForgeFedTicketDependency(v vocab.ForgeFedTicketDependency) { + this.properties = append([]*ActivityStreamsFormerTypePropertyIterator{{ + alias: this.alias, + forgefedTicketDependencyMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + // PrependIRI prepends an IRI value to the front of a list of the property // "formerType". func (this *ActivityStreamsFormerTypeProperty) PrependIRI(v *url.URL) { @@ -6237,6 +6787,84 @@ func (this *ActivityStreamsFormerTypeProperty) SetActivityStreamsView(idx int, v } } +// SetForgeFedBranch sets a Branch value to be at the specified index for the +// property "formerType". Panics if the index is out of bounds. Invalidates +// all iterators. +func (this *ActivityStreamsFormerTypeProperty) SetForgeFedBranch(idx int, v vocab.ForgeFedBranch) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsFormerTypePropertyIterator{ + alias: this.alias, + forgefedBranchMember: v, + myIdx: idx, + parent: this, + } +} + +// SetForgeFedCommit sets a Commit value to be at the specified index for the +// property "formerType". Panics if the index is out of bounds. Invalidates +// all iterators. +func (this *ActivityStreamsFormerTypeProperty) SetForgeFedCommit(idx int, v vocab.ForgeFedCommit) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsFormerTypePropertyIterator{ + alias: this.alias, + forgefedCommitMember: v, + myIdx: idx, + parent: this, + } +} + +// SetForgeFedPush sets a Push value to be at the specified index for the property +// "formerType". Panics if the index is out of bounds. Invalidates all +// iterators. +func (this *ActivityStreamsFormerTypeProperty) SetForgeFedPush(idx int, v vocab.ForgeFedPush) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsFormerTypePropertyIterator{ + alias: this.alias, + forgefedPushMember: v, + myIdx: idx, + parent: this, + } +} + +// SetForgeFedRepository sets a Repository value to be at the specified index for +// the property "formerType". Panics if the index is out of bounds. +// Invalidates all iterators. +func (this *ActivityStreamsFormerTypeProperty) SetForgeFedRepository(idx int, v vocab.ForgeFedRepository) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsFormerTypePropertyIterator{ + alias: this.alias, + forgefedRepositoryMember: v, + myIdx: idx, + parent: this, + } +} + +// SetForgeFedTicket sets a Ticket value to be at the specified index for the +// property "formerType". Panics if the index is out of bounds. Invalidates +// all iterators. +func (this *ActivityStreamsFormerTypeProperty) SetForgeFedTicket(idx int, v vocab.ForgeFedTicket) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsFormerTypePropertyIterator{ + alias: this.alias, + forgefedTicketMember: v, + myIdx: idx, + parent: this, + } +} + +// SetForgeFedTicketDependency sets a TicketDependency value to be at the +// specified index for the property "formerType". Panics if the index is out +// of bounds. Invalidates all iterators. +func (this *ActivityStreamsFormerTypeProperty) SetForgeFedTicketDependency(idx int, v vocab.ForgeFedTicketDependency) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsFormerTypePropertyIterator{ + alias: this.alias, + forgefedTicketDependencyMember: v, + myIdx: idx, + parent: this, + } +} + // SetIRI sets an IRI value to be at the specified index for the property // "formerType". Panics if the index is out of bounds. func (this *ActivityStreamsFormerTypeProperty) SetIRI(idx int, v *url.URL) { diff --git a/streams/impl/activitystreams/property_generator/gen_pkg.go b/streams/impl/activitystreams/property_generator/gen_pkg.go index 4d28586..b388dfe 100644 --- a/streams/impl/activitystreams/property_generator/gen_pkg.go +++ b/streams/impl/activitystreams/property_generator/gen_pkg.go @@ -45,6 +45,10 @@ type privateManager interface { // 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" @@ -53,6 +57,10 @@ type privateManager interface { // 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" @@ -177,6 +185,9 @@ type privateManager interface { // 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" @@ -197,6 +208,10 @@ type privateManager interface { // 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" @@ -209,6 +224,14 @@ type privateManager interface { // 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" diff --git a/streams/impl/activitystreams/property_generator/gen_property_activitystreams_generator.go b/streams/impl/activitystreams/property_generator/gen_property_activitystreams_generator.go index af2083d..074ed84 100644 --- a/streams/impl/activitystreams/property_generator/gen_property_activitystreams_generator.go +++ b/streams/impl/activitystreams/property_generator/gen_property_activitystreams_generator.go @@ -25,8 +25,10 @@ type ActivityStreamsGeneratorPropertyIterator struct { 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 @@ -56,14 +58,18 @@ type ActivityStreamsGeneratorPropertyIterator struct { 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 @@ -169,6 +175,12 @@ func deserializeActivityStreamsGeneratorPropertyIterator(i interface{}, aliasMap alias: alias, } return this, nil + } else if v, err := mgr.DeserializeBranchForgeFed()(m, aliasMap); err == nil { + this := &ActivityStreamsGeneratorPropertyIterator{ + alias: alias, + forgefedBranchMember: v, + } + return this, nil } else if v, err := mgr.DeserializeCollectionActivityStreams()(m, aliasMap); err == nil { this := &ActivityStreamsGeneratorPropertyIterator{ activitystreamsCollectionMember: v, @@ -181,6 +193,12 @@ func deserializeActivityStreamsGeneratorPropertyIterator(i interface{}, aliasMap alias: alias, } return this, nil + } else if v, err := mgr.DeserializeCommitForgeFed()(m, aliasMap); err == nil { + this := &ActivityStreamsGeneratorPropertyIterator{ + alias: alias, + forgefedCommitMember: v, + } + return this, nil } else if v, err := mgr.DeserializeCreateActivityStreams()(m, aliasMap); err == nil { this := &ActivityStreamsGeneratorPropertyIterator{ activitystreamsCreateMember: v, @@ -355,6 +373,12 @@ func deserializeActivityStreamsGeneratorPropertyIterator(i interface{}, aliasMap alias: alias, } return this, nil + } else if v, err := mgr.DeserializePushForgeFed()(m, aliasMap); err == nil { + this := &ActivityStreamsGeneratorPropertyIterator{ + alias: alias, + forgefedPushMember: v, + } + return this, nil } else if v, err := mgr.DeserializeQuestionActivityStreams()(m, aliasMap); err == nil { this := &ActivityStreamsGeneratorPropertyIterator{ activitystreamsQuestionMember: v, @@ -385,6 +409,12 @@ func deserializeActivityStreamsGeneratorPropertyIterator(i interface{}, aliasMap alias: alias, } return this, nil + } else if v, err := mgr.DeserializeRepositoryForgeFed()(m, aliasMap); err == nil { + this := &ActivityStreamsGeneratorPropertyIterator{ + alias: alias, + forgefedRepositoryMember: v, + } + return this, nil } else if v, err := mgr.DeserializeServiceActivityStreams()(m, aliasMap); err == nil { this := &ActivityStreamsGeneratorPropertyIterator{ activitystreamsServiceMember: v, @@ -403,6 +433,18 @@ func deserializeActivityStreamsGeneratorPropertyIterator(i interface{}, aliasMap alias: alias, } return this, nil + } else if v, err := mgr.DeserializeTicketForgeFed()(m, aliasMap); err == nil { + this := &ActivityStreamsGeneratorPropertyIterator{ + alias: alias, + forgefedTicketMember: v, + } + return this, nil + } else if v, err := mgr.DeserializeTicketDependencyForgeFed()(m, aliasMap); err == nil { + this := &ActivityStreamsGeneratorPropertyIterator{ + alias: alias, + forgefedTicketDependencyMember: v, + } + return this, nil } else if v, err := mgr.DeserializeTombstoneActivityStreams()(m, aliasMap); err == nil { this := &ActivityStreamsGeneratorPropertyIterator{ activitystreamsTombstoneMember: v, @@ -826,6 +868,44 @@ func (this ActivityStreamsGeneratorPropertyIterator) GetActivityStreamsView() vo return this.activitystreamsViewMember } +// GetForgeFedBranch returns the value of this property. When IsForgeFedBranch +// returns false, GetForgeFedBranch will return an arbitrary value. +func (this ActivityStreamsGeneratorPropertyIterator) GetForgeFedBranch() vocab.ForgeFedBranch { + return this.forgefedBranchMember +} + +// GetForgeFedCommit returns the value of this property. When IsForgeFedCommit +// returns false, GetForgeFedCommit will return an arbitrary value. +func (this ActivityStreamsGeneratorPropertyIterator) GetForgeFedCommit() vocab.ForgeFedCommit { + return this.forgefedCommitMember +} + +// GetForgeFedPush returns the value of this property. When IsForgeFedPush returns +// false, GetForgeFedPush will return an arbitrary value. +func (this ActivityStreamsGeneratorPropertyIterator) GetForgeFedPush() vocab.ForgeFedPush { + return this.forgefedPushMember +} + +// GetForgeFedRepository returns the value of this property. When +// IsForgeFedRepository returns false, GetForgeFedRepository will return an +// arbitrary value. +func (this ActivityStreamsGeneratorPropertyIterator) GetForgeFedRepository() vocab.ForgeFedRepository { + return this.forgefedRepositoryMember +} + +// GetForgeFedTicket returns the value of this property. When IsForgeFedTicket +// returns false, GetForgeFedTicket will return an arbitrary value. +func (this ActivityStreamsGeneratorPropertyIterator) GetForgeFedTicket() vocab.ForgeFedTicket { + return this.forgefedTicketMember +} + +// GetForgeFedTicketDependency returns the value of this property. When +// IsForgeFedTicketDependency returns false, GetForgeFedTicketDependency will +// return an arbitrary value. +func (this ActivityStreamsGeneratorPropertyIterator) GetForgeFedTicketDependency() vocab.ForgeFedTicketDependency { + return this.forgefedTicketDependencyMember +} + // GetIRI returns the IRI of this property. When IsIRI returns false, GetIRI will // return an arbitrary value. func (this ActivityStreamsGeneratorPropertyIterator) GetIRI() *url.URL { @@ -881,12 +961,18 @@ func (this ActivityStreamsGeneratorPropertyIterator) GetType() vocab.Type { 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() } @@ -974,6 +1060,9 @@ func (this ActivityStreamsGeneratorPropertyIterator) GetType() vocab.Type { if this.IsActivityStreamsProfile() { return this.GetActivityStreamsProfile() } + if this.IsForgeFedPush() { + return this.GetForgeFedPush() + } if this.IsActivityStreamsQuestion() { return this.GetActivityStreamsQuestion() } @@ -989,6 +1078,9 @@ func (this ActivityStreamsGeneratorPropertyIterator) GetType() vocab.Type { if this.IsActivityStreamsRemove() { return this.GetActivityStreamsRemove() } + if this.IsForgeFedRepository() { + return this.GetForgeFedRepository() + } if this.IsActivityStreamsService() { return this.GetActivityStreamsService() } @@ -998,6 +1090,12 @@ func (this ActivityStreamsGeneratorPropertyIterator) GetType() vocab.Type { if this.IsActivityStreamsTentativeReject() { return this.GetActivityStreamsTentativeReject() } + if this.IsForgeFedTicket() { + return this.GetForgeFedTicket() + } + if this.IsForgeFedTicketDependency() { + return this.GetForgeFedTicketDependency() + } if this.IsActivityStreamsTombstone() { return this.GetActivityStreamsTombstone() } @@ -1033,8 +1131,10 @@ func (this ActivityStreamsGeneratorPropertyIterator) HasAny() bool { this.IsActivityStreamsArticle() || this.IsActivityStreamsAudio() || this.IsActivityStreamsBlock() || + this.IsForgeFedBranch() || this.IsActivityStreamsCollection() || this.IsActivityStreamsCollectionPage() || + this.IsForgeFedCommit() || this.IsActivityStreamsCreate() || this.IsActivityStreamsDelete() || this.IsActivityStreamsDislike() || @@ -1064,14 +1164,18 @@ func (this ActivityStreamsGeneratorPropertyIterator) HasAny() bool { 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() || @@ -1464,6 +1568,48 @@ func (this ActivityStreamsGeneratorPropertyIterator) IsActivityStreamsView() boo return this.activitystreamsViewMember != nil } +// IsForgeFedBranch returns true if this property has a type of "Branch". When +// true, use the GetForgeFedBranch and SetForgeFedBranch methods to access and +// set this property. +func (this ActivityStreamsGeneratorPropertyIterator) IsForgeFedBranch() bool { + return this.forgefedBranchMember != nil +} + +// IsForgeFedCommit returns true if this property has a type of "Commit". When +// true, use the GetForgeFedCommit and SetForgeFedCommit methods to access and +// set this property. +func (this ActivityStreamsGeneratorPropertyIterator) IsForgeFedCommit() bool { + return this.forgefedCommitMember != nil +} + +// IsForgeFedPush returns true if this property has a type of "Push". When true, +// use the GetForgeFedPush and SetForgeFedPush methods to access and set this +// property. +func (this ActivityStreamsGeneratorPropertyIterator) IsForgeFedPush() bool { + return this.forgefedPushMember != nil +} + +// IsForgeFedRepository returns true if this property has a type of "Repository". +// When true, use the GetForgeFedRepository and SetForgeFedRepository methods +// to access and set this property. +func (this ActivityStreamsGeneratorPropertyIterator) IsForgeFedRepository() bool { + return this.forgefedRepositoryMember != nil +} + +// IsForgeFedTicket returns true if this property has a type of "Ticket". When +// true, use the GetForgeFedTicket and SetForgeFedTicket methods to access and +// set this property. +func (this ActivityStreamsGeneratorPropertyIterator) IsForgeFedTicket() bool { + return this.forgefedTicketMember != nil +} + +// IsForgeFedTicketDependency returns true if this property has a type of +// "TicketDependency". When true, use the GetForgeFedTicketDependency and +// SetForgeFedTicketDependency methods to access and set this property. +func (this ActivityStreamsGeneratorPropertyIterator) IsForgeFedTicketDependency() bool { + return this.forgefedTicketDependencyMember != nil +} + // IsIRI returns true if this property is an IRI. When true, use GetIRI and SetIRI // to access and set this property func (this ActivityStreamsGeneratorPropertyIterator) IsIRI() bool { @@ -1511,10 +1657,14 @@ func (this ActivityStreamsGeneratorPropertyIterator) JSONLDContext() map[string] 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() { @@ -1573,6 +1723,8 @@ func (this ActivityStreamsGeneratorPropertyIterator) JSONLDContext() map[string] 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() { @@ -1583,12 +1735,18 @@ func (this ActivityStreamsGeneratorPropertyIterator) JSONLDContext() map[string] 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() { @@ -1650,141 +1808,159 @@ func (this ActivityStreamsGeneratorPropertyIterator) KindIndex() int { if this.IsActivityStreamsBlock() { return 10 } - if this.IsActivityStreamsCollection() { + if this.IsForgeFedBranch() { return 11 } - if this.IsActivityStreamsCollectionPage() { + if this.IsActivityStreamsCollection() { return 12 } - if this.IsActivityStreamsCreate() { + if this.IsActivityStreamsCollectionPage() { return 13 } - if this.IsActivityStreamsDelete() { + if this.IsForgeFedCommit() { return 14 } - if this.IsActivityStreamsDislike() { + if this.IsActivityStreamsCreate() { return 15 } - if this.IsActivityStreamsDocument() { + if this.IsActivityStreamsDelete() { return 16 } - if this.IsTootEmoji() { + if this.IsActivityStreamsDislike() { return 17 } - if this.IsActivityStreamsEvent() { + if this.IsActivityStreamsDocument() { return 18 } - if this.IsActivityStreamsFlag() { + if this.IsTootEmoji() { return 19 } - if this.IsActivityStreamsFollow() { + if this.IsActivityStreamsEvent() { return 20 } - if this.IsActivityStreamsGroup() { + if this.IsActivityStreamsFlag() { return 21 } - if this.IsTootIdentityProof() { + if this.IsActivityStreamsFollow() { return 22 } - if this.IsActivityStreamsIgnore() { + if this.IsActivityStreamsGroup() { return 23 } - if this.IsActivityStreamsImage() { + if this.IsTootIdentityProof() { return 24 } - if this.IsActivityStreamsIntransitiveActivity() { + if this.IsActivityStreamsIgnore() { return 25 } - if this.IsActivityStreamsInvite() { + if this.IsActivityStreamsImage() { return 26 } - if this.IsActivityStreamsJoin() { + if this.IsActivityStreamsIntransitiveActivity() { return 27 } - if this.IsActivityStreamsLeave() { + if this.IsActivityStreamsInvite() { return 28 } - if this.IsActivityStreamsLike() { + if this.IsActivityStreamsJoin() { return 29 } - if this.IsActivityStreamsListen() { + if this.IsActivityStreamsLeave() { return 30 } - if this.IsActivityStreamsMention() { + if this.IsActivityStreamsLike() { return 31 } - if this.IsActivityStreamsMove() { + if this.IsActivityStreamsListen() { return 32 } - if this.IsActivityStreamsNote() { + if this.IsActivityStreamsMention() { return 33 } - if this.IsActivityStreamsOffer() { + if this.IsActivityStreamsMove() { return 34 } - if this.IsActivityStreamsOrderedCollection() { + if this.IsActivityStreamsNote() { return 35 } - if this.IsActivityStreamsOrderedCollectionPage() { + if this.IsActivityStreamsOffer() { return 36 } - if this.IsActivityStreamsOrganization() { + if this.IsActivityStreamsOrderedCollection() { return 37 } - if this.IsActivityStreamsPage() { + if this.IsActivityStreamsOrderedCollectionPage() { return 38 } - if this.IsActivityStreamsPerson() { + if this.IsActivityStreamsOrganization() { return 39 } - if this.IsActivityStreamsPlace() { + if this.IsActivityStreamsPage() { return 40 } - if this.IsActivityStreamsProfile() { + if this.IsActivityStreamsPerson() { return 41 } - if this.IsActivityStreamsQuestion() { + if this.IsActivityStreamsPlace() { return 42 } - if this.IsActivityStreamsRead() { + if this.IsActivityStreamsProfile() { return 43 } - if this.IsActivityStreamsReject() { + if this.IsForgeFedPush() { return 44 } - if this.IsActivityStreamsRelationship() { + if this.IsActivityStreamsQuestion() { return 45 } - if this.IsActivityStreamsRemove() { + if this.IsActivityStreamsRead() { return 46 } - if this.IsActivityStreamsService() { + if this.IsActivityStreamsReject() { return 47 } - if this.IsActivityStreamsTentativeAccept() { + if this.IsActivityStreamsRelationship() { return 48 } - if this.IsActivityStreamsTentativeReject() { + if this.IsActivityStreamsRemove() { return 49 } - if this.IsActivityStreamsTombstone() { + if this.IsForgeFedRepository() { return 50 } - if this.IsActivityStreamsTravel() { + if this.IsActivityStreamsService() { return 51 } - if this.IsActivityStreamsUndo() { + if this.IsActivityStreamsTentativeAccept() { return 52 } - if this.IsActivityStreamsUpdate() { + if this.IsActivityStreamsTentativeReject() { return 53 } - if this.IsActivityStreamsVideo() { + if this.IsForgeFedTicket() { return 54 } - if this.IsActivityStreamsView() { + 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 } @@ -1824,10 +2000,14 @@ func (this ActivityStreamsGeneratorPropertyIterator) LessThan(o vocab.ActivitySt 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() { @@ -1886,6 +2066,8 @@ func (this ActivityStreamsGeneratorPropertyIterator) LessThan(o vocab.ActivitySt 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() { @@ -1896,12 +2078,18 @@ func (this ActivityStreamsGeneratorPropertyIterator) LessThan(o vocab.ActivitySt 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() { @@ -2325,6 +2513,48 @@ func (this *ActivityStreamsGeneratorPropertyIterator) SetActivityStreamsView(v v this.activitystreamsViewMember = v } +// SetForgeFedBranch sets the value of this property. Calling IsForgeFedBranch +// afterwards returns true. +func (this *ActivityStreamsGeneratorPropertyIterator) SetForgeFedBranch(v vocab.ForgeFedBranch) { + this.clear() + this.forgefedBranchMember = v +} + +// SetForgeFedCommit sets the value of this property. Calling IsForgeFedCommit +// afterwards returns true. +func (this *ActivityStreamsGeneratorPropertyIterator) SetForgeFedCommit(v vocab.ForgeFedCommit) { + this.clear() + this.forgefedCommitMember = v +} + +// SetForgeFedPush sets the value of this property. Calling IsForgeFedPush +// afterwards returns true. +func (this *ActivityStreamsGeneratorPropertyIterator) SetForgeFedPush(v vocab.ForgeFedPush) { + this.clear() + this.forgefedPushMember = v +} + +// SetForgeFedRepository sets the value of this property. Calling +// IsForgeFedRepository afterwards returns true. +func (this *ActivityStreamsGeneratorPropertyIterator) SetForgeFedRepository(v vocab.ForgeFedRepository) { + this.clear() + this.forgefedRepositoryMember = v +} + +// SetForgeFedTicket sets the value of this property. Calling IsForgeFedTicket +// afterwards returns true. +func (this *ActivityStreamsGeneratorPropertyIterator) SetForgeFedTicket(v vocab.ForgeFedTicket) { + this.clear() + this.forgefedTicketMember = v +} + +// SetForgeFedTicketDependency sets the value of this property. Calling +// IsForgeFedTicketDependency afterwards returns true. +func (this *ActivityStreamsGeneratorPropertyIterator) SetForgeFedTicketDependency(v vocab.ForgeFedTicketDependency) { + this.clear() + this.forgefedTicketDependencyMember = v +} + // SetIRI sets the value of this property. Calling IsIRI afterwards returns true. func (this *ActivityStreamsGeneratorPropertyIterator) SetIRI(v *url.URL) { this.clear() @@ -2392,6 +2622,10 @@ func (this *ActivityStreamsGeneratorPropertyIterator) SetType(t vocab.Type) erro 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 @@ -2400,6 +2634,10 @@ func (this *ActivityStreamsGeneratorPropertyIterator) SetType(t vocab.Type) erro 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 @@ -2516,6 +2754,10 @@ func (this *ActivityStreamsGeneratorPropertyIterator) SetType(t vocab.Type) erro 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 @@ -2536,6 +2778,10 @@ func (this *ActivityStreamsGeneratorPropertyIterator) SetType(t vocab.Type) erro 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 @@ -2548,6 +2794,14 @@ func (this *ActivityStreamsGeneratorPropertyIterator) SetType(t vocab.Type) erro 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 @@ -2590,8 +2844,10 @@ func (this *ActivityStreamsGeneratorPropertyIterator) clear() { 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 @@ -2621,14 +2877,18 @@ func (this *ActivityStreamsGeneratorPropertyIterator) clear() { 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 @@ -2666,10 +2926,14 @@ func (this ActivityStreamsGeneratorPropertyIterator) serialize() (interface{}, e 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() { @@ -2728,6 +2992,8 @@ func (this ActivityStreamsGeneratorPropertyIterator) serialize() (interface{}, e 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() { @@ -2738,12 +3004,18 @@ func (this ActivityStreamsGeneratorPropertyIterator) serialize() (interface{}, e 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() { @@ -3431,6 +3703,74 @@ func (this *ActivityStreamsGeneratorProperty) AppendActivityStreamsView(v vocab. }) } +// AppendForgeFedBranch appends a Branch value to the back of a list of the +// property "generator". Invalidates iterators that are traversing using Prev. +func (this *ActivityStreamsGeneratorProperty) AppendForgeFedBranch(v vocab.ForgeFedBranch) { + this.properties = append(this.properties, &ActivityStreamsGeneratorPropertyIterator{ + alias: this.alias, + forgefedBranchMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendForgeFedCommit appends a Commit value to the back of a list of the +// property "generator". Invalidates iterators that are traversing using Prev. +func (this *ActivityStreamsGeneratorProperty) AppendForgeFedCommit(v vocab.ForgeFedCommit) { + this.properties = append(this.properties, &ActivityStreamsGeneratorPropertyIterator{ + alias: this.alias, + forgefedCommitMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendForgeFedPush appends a Push value to the back of a list of the property +// "generator". Invalidates iterators that are traversing using Prev. +func (this *ActivityStreamsGeneratorProperty) AppendForgeFedPush(v vocab.ForgeFedPush) { + this.properties = append(this.properties, &ActivityStreamsGeneratorPropertyIterator{ + alias: this.alias, + forgefedPushMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendForgeFedRepository appends a Repository value to the back of a list of +// the property "generator". Invalidates iterators that are traversing using +// Prev. +func (this *ActivityStreamsGeneratorProperty) AppendForgeFedRepository(v vocab.ForgeFedRepository) { + this.properties = append(this.properties, &ActivityStreamsGeneratorPropertyIterator{ + alias: this.alias, + forgefedRepositoryMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendForgeFedTicket appends a Ticket value to the back of a list of the +// property "generator". Invalidates iterators that are traversing using Prev. +func (this *ActivityStreamsGeneratorProperty) AppendForgeFedTicket(v vocab.ForgeFedTicket) { + this.properties = append(this.properties, &ActivityStreamsGeneratorPropertyIterator{ + alias: this.alias, + forgefedTicketMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendForgeFedTicketDependency appends a TicketDependency value to the back of +// a list of the property "generator". Invalidates iterators that are +// traversing using Prev. +func (this *ActivityStreamsGeneratorProperty) AppendForgeFedTicketDependency(v vocab.ForgeFedTicketDependency) { + this.properties = append(this.properties, &ActivityStreamsGeneratorPropertyIterator{ + alias: this.alias, + forgefedTicketDependencyMember: v, + myIdx: this.Len(), + parent: this, + }) +} + // AppendIRI appends an IRI value to the back of a list of the property "generator" func (this *ActivityStreamsGeneratorProperty) AppendIRI(v *url.URL) { this.properties = append(this.properties, &ActivityStreamsGeneratorPropertyIterator{ @@ -4427,6 +4767,108 @@ func (this *ActivityStreamsGeneratorProperty) InsertActivityStreamsView(idx int, } } +// InsertForgeFedBranch inserts a Branch value at the specified index for a +// property "generator". Existing elements at that index and higher are +// shifted back once. Invalidates all iterators. +func (this *ActivityStreamsGeneratorProperty) InsertForgeFedBranch(idx int, v vocab.ForgeFedBranch) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsGeneratorPropertyIterator{ + alias: this.alias, + forgefedBranchMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertForgeFedCommit inserts a Commit value at the specified index for a +// property "generator". Existing elements at that index and higher are +// shifted back once. Invalidates all iterators. +func (this *ActivityStreamsGeneratorProperty) InsertForgeFedCommit(idx int, v vocab.ForgeFedCommit) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsGeneratorPropertyIterator{ + alias: this.alias, + forgefedCommitMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertForgeFedPush inserts a Push value at the specified index for a property +// "generator". Existing elements at that index and higher are shifted back +// once. Invalidates all iterators. +func (this *ActivityStreamsGeneratorProperty) InsertForgeFedPush(idx int, v vocab.ForgeFedPush) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsGeneratorPropertyIterator{ + alias: this.alias, + forgefedPushMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertForgeFedRepository inserts a Repository value at the specified index for +// a property "generator". Existing elements at that index and higher are +// shifted back once. Invalidates all iterators. +func (this *ActivityStreamsGeneratorProperty) InsertForgeFedRepository(idx int, v vocab.ForgeFedRepository) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsGeneratorPropertyIterator{ + alias: this.alias, + forgefedRepositoryMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertForgeFedTicket inserts a Ticket value at the specified index for a +// property "generator". Existing elements at that index and higher are +// shifted back once. Invalidates all iterators. +func (this *ActivityStreamsGeneratorProperty) InsertForgeFedTicket(idx int, v vocab.ForgeFedTicket) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsGeneratorPropertyIterator{ + alias: this.alias, + forgefedTicketMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertForgeFedTicketDependency inserts a TicketDependency value at the +// specified index for a property "generator". Existing elements at that index +// and higher are shifted back once. Invalidates all iterators. +func (this *ActivityStreamsGeneratorProperty) InsertForgeFedTicketDependency(idx int, v vocab.ForgeFedTicketDependency) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsGeneratorPropertyIterator{ + alias: this.alias, + forgefedTicketDependencyMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + // Insert inserts an IRI value at the specified index for a property "generator". // Existing elements at that index and higher are shifted back once. // Invalidates all iterators. @@ -4584,182 +5026,206 @@ func (this ActivityStreamsGeneratorProperty) Less(i, j int) bool { rhs := this.properties[j].GetActivityStreamsBlock() return lhs.LessThan(rhs) } else if idx1 == 11 { + lhs := this.properties[i].GetForgeFedBranch() + rhs := this.properties[j].GetForgeFedBranch() + return lhs.LessThan(rhs) + } else if idx1 == 12 { lhs := this.properties[i].GetActivityStreamsCollection() rhs := this.properties[j].GetActivityStreamsCollection() return lhs.LessThan(rhs) - } else if idx1 == 12 { + } else if idx1 == 13 { lhs := this.properties[i].GetActivityStreamsCollectionPage() rhs := this.properties[j].GetActivityStreamsCollectionPage() return lhs.LessThan(rhs) - } else if idx1 == 13 { + } else if idx1 == 14 { + lhs := this.properties[i].GetForgeFedCommit() + rhs := this.properties[j].GetForgeFedCommit() + return lhs.LessThan(rhs) + } else if idx1 == 15 { lhs := this.properties[i].GetActivityStreamsCreate() rhs := this.properties[j].GetActivityStreamsCreate() return lhs.LessThan(rhs) - } else if idx1 == 14 { + } else if idx1 == 16 { lhs := this.properties[i].GetActivityStreamsDelete() rhs := this.properties[j].GetActivityStreamsDelete() return lhs.LessThan(rhs) - } else if idx1 == 15 { + } else if idx1 == 17 { lhs := this.properties[i].GetActivityStreamsDislike() rhs := this.properties[j].GetActivityStreamsDislike() return lhs.LessThan(rhs) - } else if idx1 == 16 { + } else if idx1 == 18 { lhs := this.properties[i].GetActivityStreamsDocument() rhs := this.properties[j].GetActivityStreamsDocument() return lhs.LessThan(rhs) - } else if idx1 == 17 { + } else if idx1 == 19 { lhs := this.properties[i].GetTootEmoji() rhs := this.properties[j].GetTootEmoji() return lhs.LessThan(rhs) - } else if idx1 == 18 { + } else if idx1 == 20 { lhs := this.properties[i].GetActivityStreamsEvent() rhs := this.properties[j].GetActivityStreamsEvent() return lhs.LessThan(rhs) - } else if idx1 == 19 { + } else if idx1 == 21 { lhs := this.properties[i].GetActivityStreamsFlag() rhs := this.properties[j].GetActivityStreamsFlag() return lhs.LessThan(rhs) - } else if idx1 == 20 { + } else if idx1 == 22 { lhs := this.properties[i].GetActivityStreamsFollow() rhs := this.properties[j].GetActivityStreamsFollow() return lhs.LessThan(rhs) - } else if idx1 == 21 { + } else if idx1 == 23 { lhs := this.properties[i].GetActivityStreamsGroup() rhs := this.properties[j].GetActivityStreamsGroup() return lhs.LessThan(rhs) - } else if idx1 == 22 { + } else if idx1 == 24 { lhs := this.properties[i].GetTootIdentityProof() rhs := this.properties[j].GetTootIdentityProof() return lhs.LessThan(rhs) - } else if idx1 == 23 { + } else if idx1 == 25 { lhs := this.properties[i].GetActivityStreamsIgnore() rhs := this.properties[j].GetActivityStreamsIgnore() return lhs.LessThan(rhs) - } else if idx1 == 24 { + } else if idx1 == 26 { lhs := this.properties[i].GetActivityStreamsImage() rhs := this.properties[j].GetActivityStreamsImage() return lhs.LessThan(rhs) - } else if idx1 == 25 { + } else if idx1 == 27 { lhs := this.properties[i].GetActivityStreamsIntransitiveActivity() rhs := this.properties[j].GetActivityStreamsIntransitiveActivity() return lhs.LessThan(rhs) - } else if idx1 == 26 { + } else if idx1 == 28 { lhs := this.properties[i].GetActivityStreamsInvite() rhs := this.properties[j].GetActivityStreamsInvite() return lhs.LessThan(rhs) - } else if idx1 == 27 { + } else if idx1 == 29 { lhs := this.properties[i].GetActivityStreamsJoin() rhs := this.properties[j].GetActivityStreamsJoin() return lhs.LessThan(rhs) - } else if idx1 == 28 { + } else if idx1 == 30 { lhs := this.properties[i].GetActivityStreamsLeave() rhs := this.properties[j].GetActivityStreamsLeave() return lhs.LessThan(rhs) - } else if idx1 == 29 { + } else if idx1 == 31 { lhs := this.properties[i].GetActivityStreamsLike() rhs := this.properties[j].GetActivityStreamsLike() return lhs.LessThan(rhs) - } else if idx1 == 30 { + } else if idx1 == 32 { lhs := this.properties[i].GetActivityStreamsListen() rhs := this.properties[j].GetActivityStreamsListen() return lhs.LessThan(rhs) - } else if idx1 == 31 { + } else if idx1 == 33 { lhs := this.properties[i].GetActivityStreamsMention() rhs := this.properties[j].GetActivityStreamsMention() return lhs.LessThan(rhs) - } else if idx1 == 32 { + } else if idx1 == 34 { lhs := this.properties[i].GetActivityStreamsMove() rhs := this.properties[j].GetActivityStreamsMove() return lhs.LessThan(rhs) - } else if idx1 == 33 { + } else if idx1 == 35 { lhs := this.properties[i].GetActivityStreamsNote() rhs := this.properties[j].GetActivityStreamsNote() return lhs.LessThan(rhs) - } else if idx1 == 34 { + } else if idx1 == 36 { lhs := this.properties[i].GetActivityStreamsOffer() rhs := this.properties[j].GetActivityStreamsOffer() return lhs.LessThan(rhs) - } else if idx1 == 35 { + } else if idx1 == 37 { lhs := this.properties[i].GetActivityStreamsOrderedCollection() rhs := this.properties[j].GetActivityStreamsOrderedCollection() return lhs.LessThan(rhs) - } else if idx1 == 36 { + } else if idx1 == 38 { lhs := this.properties[i].GetActivityStreamsOrderedCollectionPage() rhs := this.properties[j].GetActivityStreamsOrderedCollectionPage() return lhs.LessThan(rhs) - } else if idx1 == 37 { + } else if idx1 == 39 { lhs := this.properties[i].GetActivityStreamsOrganization() rhs := this.properties[j].GetActivityStreamsOrganization() return lhs.LessThan(rhs) - } else if idx1 == 38 { + } else if idx1 == 40 { lhs := this.properties[i].GetActivityStreamsPage() rhs := this.properties[j].GetActivityStreamsPage() return lhs.LessThan(rhs) - } else if idx1 == 39 { + } else if idx1 == 41 { lhs := this.properties[i].GetActivityStreamsPerson() rhs := this.properties[j].GetActivityStreamsPerson() return lhs.LessThan(rhs) - } else if idx1 == 40 { + } else if idx1 == 42 { lhs := this.properties[i].GetActivityStreamsPlace() rhs := this.properties[j].GetActivityStreamsPlace() return lhs.LessThan(rhs) - } else if idx1 == 41 { + } else if idx1 == 43 { lhs := this.properties[i].GetActivityStreamsProfile() rhs := this.properties[j].GetActivityStreamsProfile() return lhs.LessThan(rhs) - } else if idx1 == 42 { + } else if idx1 == 44 { + lhs := this.properties[i].GetForgeFedPush() + rhs := this.properties[j].GetForgeFedPush() + return lhs.LessThan(rhs) + } else if idx1 == 45 { lhs := this.properties[i].GetActivityStreamsQuestion() rhs := this.properties[j].GetActivityStreamsQuestion() return lhs.LessThan(rhs) - } else if idx1 == 43 { + } else if idx1 == 46 { lhs := this.properties[i].GetActivityStreamsRead() rhs := this.properties[j].GetActivityStreamsRead() return lhs.LessThan(rhs) - } else if idx1 == 44 { + } else if idx1 == 47 { lhs := this.properties[i].GetActivityStreamsReject() rhs := this.properties[j].GetActivityStreamsReject() return lhs.LessThan(rhs) - } else if idx1 == 45 { + } else if idx1 == 48 { lhs := this.properties[i].GetActivityStreamsRelationship() rhs := this.properties[j].GetActivityStreamsRelationship() return lhs.LessThan(rhs) - } else if idx1 == 46 { + } else if idx1 == 49 { lhs := this.properties[i].GetActivityStreamsRemove() rhs := this.properties[j].GetActivityStreamsRemove() return lhs.LessThan(rhs) - } else if idx1 == 47 { + } else if idx1 == 50 { + lhs := this.properties[i].GetForgeFedRepository() + rhs := this.properties[j].GetForgeFedRepository() + return lhs.LessThan(rhs) + } else if idx1 == 51 { lhs := this.properties[i].GetActivityStreamsService() rhs := this.properties[j].GetActivityStreamsService() return lhs.LessThan(rhs) - } else if idx1 == 48 { + } else if idx1 == 52 { lhs := this.properties[i].GetActivityStreamsTentativeAccept() rhs := this.properties[j].GetActivityStreamsTentativeAccept() return lhs.LessThan(rhs) - } else if idx1 == 49 { + } else if idx1 == 53 { lhs := this.properties[i].GetActivityStreamsTentativeReject() rhs := this.properties[j].GetActivityStreamsTentativeReject() return lhs.LessThan(rhs) - } else if idx1 == 50 { + } else if idx1 == 54 { + lhs := this.properties[i].GetForgeFedTicket() + rhs := this.properties[j].GetForgeFedTicket() + return lhs.LessThan(rhs) + } else if idx1 == 55 { + lhs := this.properties[i].GetForgeFedTicketDependency() + rhs := this.properties[j].GetForgeFedTicketDependency() + return lhs.LessThan(rhs) + } else if idx1 == 56 { lhs := this.properties[i].GetActivityStreamsTombstone() rhs := this.properties[j].GetActivityStreamsTombstone() return lhs.LessThan(rhs) - } else if idx1 == 51 { + } else if idx1 == 57 { lhs := this.properties[i].GetActivityStreamsTravel() rhs := this.properties[j].GetActivityStreamsTravel() return lhs.LessThan(rhs) - } else if idx1 == 52 { + } else if idx1 == 58 { lhs := this.properties[i].GetActivityStreamsUndo() rhs := this.properties[j].GetActivityStreamsUndo() return lhs.LessThan(rhs) - } else if idx1 == 53 { + } else if idx1 == 59 { lhs := this.properties[i].GetActivityStreamsUpdate() rhs := this.properties[j].GetActivityStreamsUpdate() return lhs.LessThan(rhs) - } else if idx1 == 54 { + } else if idx1 == 60 { lhs := this.properties[i].GetActivityStreamsVideo() rhs := this.properties[j].GetActivityStreamsVideo() return lhs.LessThan(rhs) - } else if idx1 == 55 { + } else if idx1 == 61 { lhs := this.properties[i].GetActivityStreamsView() rhs := this.properties[j].GetActivityStreamsView() return lhs.LessThan(rhs) @@ -5560,6 +6026,90 @@ func (this *ActivityStreamsGeneratorProperty) PrependActivityStreamsView(v vocab } } +// PrependForgeFedBranch prepends a Branch value to the front of a list of the +// property "generator". Invalidates all iterators. +func (this *ActivityStreamsGeneratorProperty) PrependForgeFedBranch(v vocab.ForgeFedBranch) { + this.properties = append([]*ActivityStreamsGeneratorPropertyIterator{{ + alias: this.alias, + forgefedBranchMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependForgeFedCommit prepends a Commit value to the front of a list of the +// property "generator". Invalidates all iterators. +func (this *ActivityStreamsGeneratorProperty) PrependForgeFedCommit(v vocab.ForgeFedCommit) { + this.properties = append([]*ActivityStreamsGeneratorPropertyIterator{{ + alias: this.alias, + forgefedCommitMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependForgeFedPush prepends a Push value to the front of a list of the +// property "generator". Invalidates all iterators. +func (this *ActivityStreamsGeneratorProperty) PrependForgeFedPush(v vocab.ForgeFedPush) { + this.properties = append([]*ActivityStreamsGeneratorPropertyIterator{{ + alias: this.alias, + forgefedPushMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependForgeFedRepository prepends a Repository value to the front of a list of +// the property "generator". Invalidates all iterators. +func (this *ActivityStreamsGeneratorProperty) PrependForgeFedRepository(v vocab.ForgeFedRepository) { + this.properties = append([]*ActivityStreamsGeneratorPropertyIterator{{ + alias: this.alias, + forgefedRepositoryMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependForgeFedTicket prepends a Ticket value to the front of a list of the +// property "generator". Invalidates all iterators. +func (this *ActivityStreamsGeneratorProperty) PrependForgeFedTicket(v vocab.ForgeFedTicket) { + this.properties = append([]*ActivityStreamsGeneratorPropertyIterator{{ + alias: this.alias, + forgefedTicketMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependForgeFedTicketDependency prepends a TicketDependency value to the front +// of a list of the property "generator". Invalidates all iterators. +func (this *ActivityStreamsGeneratorProperty) PrependForgeFedTicketDependency(v vocab.ForgeFedTicketDependency) { + this.properties = append([]*ActivityStreamsGeneratorPropertyIterator{{ + alias: this.alias, + forgefedTicketDependencyMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + // PrependIRI prepends an IRI value to the front of a list of the property // "generator". func (this *ActivityStreamsGeneratorProperty) PrependIRI(v *url.URL) { @@ -6356,6 +6906,84 @@ func (this *ActivityStreamsGeneratorProperty) SetActivityStreamsView(idx int, v } } +// SetForgeFedBranch sets a Branch value to be at the specified index for the +// property "generator". Panics if the index is out of bounds. Invalidates all +// iterators. +func (this *ActivityStreamsGeneratorProperty) SetForgeFedBranch(idx int, v vocab.ForgeFedBranch) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsGeneratorPropertyIterator{ + alias: this.alias, + forgefedBranchMember: v, + myIdx: idx, + parent: this, + } +} + +// SetForgeFedCommit sets a Commit value to be at the specified index for the +// property "generator". Panics if the index is out of bounds. Invalidates all +// iterators. +func (this *ActivityStreamsGeneratorProperty) SetForgeFedCommit(idx int, v vocab.ForgeFedCommit) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsGeneratorPropertyIterator{ + alias: this.alias, + forgefedCommitMember: v, + myIdx: idx, + parent: this, + } +} + +// SetForgeFedPush sets a Push value to be at the specified index for the property +// "generator". Panics if the index is out of bounds. Invalidates all +// iterators. +func (this *ActivityStreamsGeneratorProperty) SetForgeFedPush(idx int, v vocab.ForgeFedPush) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsGeneratorPropertyIterator{ + alias: this.alias, + forgefedPushMember: v, + myIdx: idx, + parent: this, + } +} + +// SetForgeFedRepository sets a Repository value to be at the specified index for +// the property "generator". Panics if the index is out of bounds. Invalidates +// all iterators. +func (this *ActivityStreamsGeneratorProperty) SetForgeFedRepository(idx int, v vocab.ForgeFedRepository) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsGeneratorPropertyIterator{ + alias: this.alias, + forgefedRepositoryMember: v, + myIdx: idx, + parent: this, + } +} + +// SetForgeFedTicket sets a Ticket value to be at the specified index for the +// property "generator". Panics if the index is out of bounds. Invalidates all +// iterators. +func (this *ActivityStreamsGeneratorProperty) SetForgeFedTicket(idx int, v vocab.ForgeFedTicket) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsGeneratorPropertyIterator{ + alias: this.alias, + forgefedTicketMember: v, + myIdx: idx, + parent: this, + } +} + +// SetForgeFedTicketDependency sets a TicketDependency value to be at the +// specified index for the property "generator". Panics if the index is out of +// bounds. Invalidates all iterators. +func (this *ActivityStreamsGeneratorProperty) SetForgeFedTicketDependency(idx int, v vocab.ForgeFedTicketDependency) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsGeneratorPropertyIterator{ + alias: this.alias, + forgefedTicketDependencyMember: v, + myIdx: idx, + parent: this, + } +} + // SetIRI sets an IRI value to be at the specified index for the property // "generator". Panics if the index is out of bounds. func (this *ActivityStreamsGeneratorProperty) SetIRI(idx int, v *url.URL) { diff --git a/streams/impl/activitystreams/property_inreplyto/gen_pkg.go b/streams/impl/activitystreams/property_inreplyto/gen_pkg.go index 432a96c..2859716 100644 --- a/streams/impl/activitystreams/property_inreplyto/gen_pkg.go +++ b/streams/impl/activitystreams/property_inreplyto/gen_pkg.go @@ -45,6 +45,10 @@ type privateManager interface { // 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" @@ -53,6 +57,10 @@ type privateManager interface { // 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" @@ -177,6 +185,9 @@ type privateManager interface { // 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" @@ -197,6 +208,10 @@ type privateManager interface { // 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" @@ -209,6 +224,14 @@ type privateManager interface { // 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" diff --git a/streams/impl/activitystreams/property_inreplyto/gen_property_activitystreams_inReplyTo.go b/streams/impl/activitystreams/property_inreplyto/gen_property_activitystreams_inReplyTo.go index a63052b..02ca188 100644 --- a/streams/impl/activitystreams/property_inreplyto/gen_property_activitystreams_inReplyTo.go +++ b/streams/impl/activitystreams/property_inreplyto/gen_property_activitystreams_inReplyTo.go @@ -25,8 +25,10 @@ type ActivityStreamsInReplyToPropertyIterator struct { 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 @@ -56,14 +58,18 @@ type ActivityStreamsInReplyToPropertyIterator struct { 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 @@ -169,6 +175,12 @@ func deserializeActivityStreamsInReplyToPropertyIterator(i interface{}, aliasMap alias: alias, } return this, nil + } else if v, err := mgr.DeserializeBranchForgeFed()(m, aliasMap); err == nil { + this := &ActivityStreamsInReplyToPropertyIterator{ + alias: alias, + forgefedBranchMember: v, + } + return this, nil } else if v, err := mgr.DeserializeCollectionActivityStreams()(m, aliasMap); err == nil { this := &ActivityStreamsInReplyToPropertyIterator{ activitystreamsCollectionMember: v, @@ -181,6 +193,12 @@ func deserializeActivityStreamsInReplyToPropertyIterator(i interface{}, aliasMap alias: alias, } return this, nil + } else if v, err := mgr.DeserializeCommitForgeFed()(m, aliasMap); err == nil { + this := &ActivityStreamsInReplyToPropertyIterator{ + alias: alias, + forgefedCommitMember: v, + } + return this, nil } else if v, err := mgr.DeserializeCreateActivityStreams()(m, aliasMap); err == nil { this := &ActivityStreamsInReplyToPropertyIterator{ activitystreamsCreateMember: v, @@ -355,6 +373,12 @@ func deserializeActivityStreamsInReplyToPropertyIterator(i interface{}, aliasMap alias: alias, } return this, nil + } else if v, err := mgr.DeserializePushForgeFed()(m, aliasMap); err == nil { + this := &ActivityStreamsInReplyToPropertyIterator{ + alias: alias, + forgefedPushMember: v, + } + return this, nil } else if v, err := mgr.DeserializeQuestionActivityStreams()(m, aliasMap); err == nil { this := &ActivityStreamsInReplyToPropertyIterator{ activitystreamsQuestionMember: v, @@ -385,6 +409,12 @@ func deserializeActivityStreamsInReplyToPropertyIterator(i interface{}, aliasMap alias: alias, } return this, nil + } else if v, err := mgr.DeserializeRepositoryForgeFed()(m, aliasMap); err == nil { + this := &ActivityStreamsInReplyToPropertyIterator{ + alias: alias, + forgefedRepositoryMember: v, + } + return this, nil } else if v, err := mgr.DeserializeServiceActivityStreams()(m, aliasMap); err == nil { this := &ActivityStreamsInReplyToPropertyIterator{ activitystreamsServiceMember: v, @@ -403,6 +433,18 @@ func deserializeActivityStreamsInReplyToPropertyIterator(i interface{}, aliasMap alias: alias, } return this, nil + } else if v, err := mgr.DeserializeTicketForgeFed()(m, aliasMap); err == nil { + this := &ActivityStreamsInReplyToPropertyIterator{ + alias: alias, + forgefedTicketMember: v, + } + return this, nil + } else if v, err := mgr.DeserializeTicketDependencyForgeFed()(m, aliasMap); err == nil { + this := &ActivityStreamsInReplyToPropertyIterator{ + alias: alias, + forgefedTicketDependencyMember: v, + } + return this, nil } else if v, err := mgr.DeserializeTombstoneActivityStreams()(m, aliasMap); err == nil { this := &ActivityStreamsInReplyToPropertyIterator{ activitystreamsTombstoneMember: v, @@ -826,6 +868,44 @@ func (this ActivityStreamsInReplyToPropertyIterator) GetActivityStreamsView() vo return this.activitystreamsViewMember } +// GetForgeFedBranch returns the value of this property. When IsForgeFedBranch +// returns false, GetForgeFedBranch will return an arbitrary value. +func (this ActivityStreamsInReplyToPropertyIterator) GetForgeFedBranch() vocab.ForgeFedBranch { + return this.forgefedBranchMember +} + +// GetForgeFedCommit returns the value of this property. When IsForgeFedCommit +// returns false, GetForgeFedCommit will return an arbitrary value. +func (this ActivityStreamsInReplyToPropertyIterator) GetForgeFedCommit() vocab.ForgeFedCommit { + return this.forgefedCommitMember +} + +// GetForgeFedPush returns the value of this property. When IsForgeFedPush returns +// false, GetForgeFedPush will return an arbitrary value. +func (this ActivityStreamsInReplyToPropertyIterator) GetForgeFedPush() vocab.ForgeFedPush { + return this.forgefedPushMember +} + +// GetForgeFedRepository returns the value of this property. When +// IsForgeFedRepository returns false, GetForgeFedRepository will return an +// arbitrary value. +func (this ActivityStreamsInReplyToPropertyIterator) GetForgeFedRepository() vocab.ForgeFedRepository { + return this.forgefedRepositoryMember +} + +// GetForgeFedTicket returns the value of this property. When IsForgeFedTicket +// returns false, GetForgeFedTicket will return an arbitrary value. +func (this ActivityStreamsInReplyToPropertyIterator) GetForgeFedTicket() vocab.ForgeFedTicket { + return this.forgefedTicketMember +} + +// GetForgeFedTicketDependency returns the value of this property. When +// IsForgeFedTicketDependency returns false, GetForgeFedTicketDependency will +// return an arbitrary value. +func (this ActivityStreamsInReplyToPropertyIterator) GetForgeFedTicketDependency() vocab.ForgeFedTicketDependency { + return this.forgefedTicketDependencyMember +} + // GetIRI returns the IRI of this property. When IsIRI returns false, GetIRI will // return an arbitrary value. func (this ActivityStreamsInReplyToPropertyIterator) GetIRI() *url.URL { @@ -881,12 +961,18 @@ func (this ActivityStreamsInReplyToPropertyIterator) GetType() vocab.Type { 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() } @@ -974,6 +1060,9 @@ func (this ActivityStreamsInReplyToPropertyIterator) GetType() vocab.Type { if this.IsActivityStreamsProfile() { return this.GetActivityStreamsProfile() } + if this.IsForgeFedPush() { + return this.GetForgeFedPush() + } if this.IsActivityStreamsQuestion() { return this.GetActivityStreamsQuestion() } @@ -989,6 +1078,9 @@ func (this ActivityStreamsInReplyToPropertyIterator) GetType() vocab.Type { if this.IsActivityStreamsRemove() { return this.GetActivityStreamsRemove() } + if this.IsForgeFedRepository() { + return this.GetForgeFedRepository() + } if this.IsActivityStreamsService() { return this.GetActivityStreamsService() } @@ -998,6 +1090,12 @@ func (this ActivityStreamsInReplyToPropertyIterator) GetType() vocab.Type { if this.IsActivityStreamsTentativeReject() { return this.GetActivityStreamsTentativeReject() } + if this.IsForgeFedTicket() { + return this.GetForgeFedTicket() + } + if this.IsForgeFedTicketDependency() { + return this.GetForgeFedTicketDependency() + } if this.IsActivityStreamsTombstone() { return this.GetActivityStreamsTombstone() } @@ -1033,8 +1131,10 @@ func (this ActivityStreamsInReplyToPropertyIterator) HasAny() bool { this.IsActivityStreamsArticle() || this.IsActivityStreamsAudio() || this.IsActivityStreamsBlock() || + this.IsForgeFedBranch() || this.IsActivityStreamsCollection() || this.IsActivityStreamsCollectionPage() || + this.IsForgeFedCommit() || this.IsActivityStreamsCreate() || this.IsActivityStreamsDelete() || this.IsActivityStreamsDislike() || @@ -1064,14 +1164,18 @@ func (this ActivityStreamsInReplyToPropertyIterator) HasAny() bool { 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() || @@ -1464,6 +1568,48 @@ func (this ActivityStreamsInReplyToPropertyIterator) IsActivityStreamsView() boo return this.activitystreamsViewMember != nil } +// IsForgeFedBranch returns true if this property has a type of "Branch". When +// true, use the GetForgeFedBranch and SetForgeFedBranch methods to access and +// set this property. +func (this ActivityStreamsInReplyToPropertyIterator) IsForgeFedBranch() bool { + return this.forgefedBranchMember != nil +} + +// IsForgeFedCommit returns true if this property has a type of "Commit". When +// true, use the GetForgeFedCommit and SetForgeFedCommit methods to access and +// set this property. +func (this ActivityStreamsInReplyToPropertyIterator) IsForgeFedCommit() bool { + return this.forgefedCommitMember != nil +} + +// IsForgeFedPush returns true if this property has a type of "Push". When true, +// use the GetForgeFedPush and SetForgeFedPush methods to access and set this +// property. +func (this ActivityStreamsInReplyToPropertyIterator) IsForgeFedPush() bool { + return this.forgefedPushMember != nil +} + +// IsForgeFedRepository returns true if this property has a type of "Repository". +// When true, use the GetForgeFedRepository and SetForgeFedRepository methods +// to access and set this property. +func (this ActivityStreamsInReplyToPropertyIterator) IsForgeFedRepository() bool { + return this.forgefedRepositoryMember != nil +} + +// IsForgeFedTicket returns true if this property has a type of "Ticket". When +// true, use the GetForgeFedTicket and SetForgeFedTicket methods to access and +// set this property. +func (this ActivityStreamsInReplyToPropertyIterator) IsForgeFedTicket() bool { + return this.forgefedTicketMember != nil +} + +// IsForgeFedTicketDependency returns true if this property has a type of +// "TicketDependency". When true, use the GetForgeFedTicketDependency and +// SetForgeFedTicketDependency methods to access and set this property. +func (this ActivityStreamsInReplyToPropertyIterator) IsForgeFedTicketDependency() bool { + return this.forgefedTicketDependencyMember != nil +} + // IsIRI returns true if this property is an IRI. When true, use GetIRI and SetIRI // to access and set this property func (this ActivityStreamsInReplyToPropertyIterator) IsIRI() bool { @@ -1511,10 +1657,14 @@ func (this ActivityStreamsInReplyToPropertyIterator) JSONLDContext() map[string] 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() { @@ -1573,6 +1723,8 @@ func (this ActivityStreamsInReplyToPropertyIterator) JSONLDContext() map[string] 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() { @@ -1583,12 +1735,18 @@ func (this ActivityStreamsInReplyToPropertyIterator) JSONLDContext() map[string] 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() { @@ -1650,141 +1808,159 @@ func (this ActivityStreamsInReplyToPropertyIterator) KindIndex() int { if this.IsActivityStreamsBlock() { return 10 } - if this.IsActivityStreamsCollection() { + if this.IsForgeFedBranch() { return 11 } - if this.IsActivityStreamsCollectionPage() { + if this.IsActivityStreamsCollection() { return 12 } - if this.IsActivityStreamsCreate() { + if this.IsActivityStreamsCollectionPage() { return 13 } - if this.IsActivityStreamsDelete() { + if this.IsForgeFedCommit() { return 14 } - if this.IsActivityStreamsDislike() { + if this.IsActivityStreamsCreate() { return 15 } - if this.IsActivityStreamsDocument() { + if this.IsActivityStreamsDelete() { return 16 } - if this.IsTootEmoji() { + if this.IsActivityStreamsDislike() { return 17 } - if this.IsActivityStreamsEvent() { + if this.IsActivityStreamsDocument() { return 18 } - if this.IsActivityStreamsFlag() { + if this.IsTootEmoji() { return 19 } - if this.IsActivityStreamsFollow() { + if this.IsActivityStreamsEvent() { return 20 } - if this.IsActivityStreamsGroup() { + if this.IsActivityStreamsFlag() { return 21 } - if this.IsTootIdentityProof() { + if this.IsActivityStreamsFollow() { return 22 } - if this.IsActivityStreamsIgnore() { + if this.IsActivityStreamsGroup() { return 23 } - if this.IsActivityStreamsImage() { + if this.IsTootIdentityProof() { return 24 } - if this.IsActivityStreamsIntransitiveActivity() { + if this.IsActivityStreamsIgnore() { return 25 } - if this.IsActivityStreamsInvite() { + if this.IsActivityStreamsImage() { return 26 } - if this.IsActivityStreamsJoin() { + if this.IsActivityStreamsIntransitiveActivity() { return 27 } - if this.IsActivityStreamsLeave() { + if this.IsActivityStreamsInvite() { return 28 } - if this.IsActivityStreamsLike() { + if this.IsActivityStreamsJoin() { return 29 } - if this.IsActivityStreamsListen() { + if this.IsActivityStreamsLeave() { return 30 } - if this.IsActivityStreamsMention() { + if this.IsActivityStreamsLike() { return 31 } - if this.IsActivityStreamsMove() { + if this.IsActivityStreamsListen() { return 32 } - if this.IsActivityStreamsNote() { + if this.IsActivityStreamsMention() { return 33 } - if this.IsActivityStreamsOffer() { + if this.IsActivityStreamsMove() { return 34 } - if this.IsActivityStreamsOrderedCollection() { + if this.IsActivityStreamsNote() { return 35 } - if this.IsActivityStreamsOrderedCollectionPage() { + if this.IsActivityStreamsOffer() { return 36 } - if this.IsActivityStreamsOrganization() { + if this.IsActivityStreamsOrderedCollection() { return 37 } - if this.IsActivityStreamsPage() { + if this.IsActivityStreamsOrderedCollectionPage() { return 38 } - if this.IsActivityStreamsPerson() { + if this.IsActivityStreamsOrganization() { return 39 } - if this.IsActivityStreamsPlace() { + if this.IsActivityStreamsPage() { return 40 } - if this.IsActivityStreamsProfile() { + if this.IsActivityStreamsPerson() { return 41 } - if this.IsActivityStreamsQuestion() { + if this.IsActivityStreamsPlace() { return 42 } - if this.IsActivityStreamsRead() { + if this.IsActivityStreamsProfile() { return 43 } - if this.IsActivityStreamsReject() { + if this.IsForgeFedPush() { return 44 } - if this.IsActivityStreamsRelationship() { + if this.IsActivityStreamsQuestion() { return 45 } - if this.IsActivityStreamsRemove() { + if this.IsActivityStreamsRead() { return 46 } - if this.IsActivityStreamsService() { + if this.IsActivityStreamsReject() { return 47 } - if this.IsActivityStreamsTentativeAccept() { + if this.IsActivityStreamsRelationship() { return 48 } - if this.IsActivityStreamsTentativeReject() { + if this.IsActivityStreamsRemove() { return 49 } - if this.IsActivityStreamsTombstone() { + if this.IsForgeFedRepository() { return 50 } - if this.IsActivityStreamsTravel() { + if this.IsActivityStreamsService() { return 51 } - if this.IsActivityStreamsUndo() { + if this.IsActivityStreamsTentativeAccept() { return 52 } - if this.IsActivityStreamsUpdate() { + if this.IsActivityStreamsTentativeReject() { return 53 } - if this.IsActivityStreamsVideo() { + if this.IsForgeFedTicket() { return 54 } - if this.IsActivityStreamsView() { + 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 } @@ -1824,10 +2000,14 @@ func (this ActivityStreamsInReplyToPropertyIterator) LessThan(o vocab.ActivitySt 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() { @@ -1886,6 +2066,8 @@ func (this ActivityStreamsInReplyToPropertyIterator) LessThan(o vocab.ActivitySt 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() { @@ -1896,12 +2078,18 @@ func (this ActivityStreamsInReplyToPropertyIterator) LessThan(o vocab.ActivitySt 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() { @@ -2325,6 +2513,48 @@ func (this *ActivityStreamsInReplyToPropertyIterator) SetActivityStreamsView(v v this.activitystreamsViewMember = v } +// SetForgeFedBranch sets the value of this property. Calling IsForgeFedBranch +// afterwards returns true. +func (this *ActivityStreamsInReplyToPropertyIterator) SetForgeFedBranch(v vocab.ForgeFedBranch) { + this.clear() + this.forgefedBranchMember = v +} + +// SetForgeFedCommit sets the value of this property. Calling IsForgeFedCommit +// afterwards returns true. +func (this *ActivityStreamsInReplyToPropertyIterator) SetForgeFedCommit(v vocab.ForgeFedCommit) { + this.clear() + this.forgefedCommitMember = v +} + +// SetForgeFedPush sets the value of this property. Calling IsForgeFedPush +// afterwards returns true. +func (this *ActivityStreamsInReplyToPropertyIterator) SetForgeFedPush(v vocab.ForgeFedPush) { + this.clear() + this.forgefedPushMember = v +} + +// SetForgeFedRepository sets the value of this property. Calling +// IsForgeFedRepository afterwards returns true. +func (this *ActivityStreamsInReplyToPropertyIterator) SetForgeFedRepository(v vocab.ForgeFedRepository) { + this.clear() + this.forgefedRepositoryMember = v +} + +// SetForgeFedTicket sets the value of this property. Calling IsForgeFedTicket +// afterwards returns true. +func (this *ActivityStreamsInReplyToPropertyIterator) SetForgeFedTicket(v vocab.ForgeFedTicket) { + this.clear() + this.forgefedTicketMember = v +} + +// SetForgeFedTicketDependency sets the value of this property. Calling +// IsForgeFedTicketDependency afterwards returns true. +func (this *ActivityStreamsInReplyToPropertyIterator) SetForgeFedTicketDependency(v vocab.ForgeFedTicketDependency) { + this.clear() + this.forgefedTicketDependencyMember = v +} + // SetIRI sets the value of this property. Calling IsIRI afterwards returns true. func (this *ActivityStreamsInReplyToPropertyIterator) SetIRI(v *url.URL) { this.clear() @@ -2392,6 +2622,10 @@ func (this *ActivityStreamsInReplyToPropertyIterator) SetType(t vocab.Type) erro 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 @@ -2400,6 +2634,10 @@ func (this *ActivityStreamsInReplyToPropertyIterator) SetType(t vocab.Type) erro 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 @@ -2516,6 +2754,10 @@ func (this *ActivityStreamsInReplyToPropertyIterator) SetType(t vocab.Type) erro 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 @@ -2536,6 +2778,10 @@ func (this *ActivityStreamsInReplyToPropertyIterator) SetType(t vocab.Type) erro 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 @@ -2548,6 +2794,14 @@ func (this *ActivityStreamsInReplyToPropertyIterator) SetType(t vocab.Type) erro 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 @@ -2590,8 +2844,10 @@ func (this *ActivityStreamsInReplyToPropertyIterator) clear() { 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 @@ -2621,14 +2877,18 @@ func (this *ActivityStreamsInReplyToPropertyIterator) clear() { 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 @@ -2666,10 +2926,14 @@ func (this ActivityStreamsInReplyToPropertyIterator) serialize() (interface{}, e 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() { @@ -2728,6 +2992,8 @@ func (this ActivityStreamsInReplyToPropertyIterator) serialize() (interface{}, e 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() { @@ -2738,12 +3004,18 @@ func (this ActivityStreamsInReplyToPropertyIterator) serialize() (interface{}, e 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() { @@ -3431,6 +3703,74 @@ func (this *ActivityStreamsInReplyToProperty) AppendActivityStreamsView(v vocab. }) } +// AppendForgeFedBranch appends a Branch value to the back of a list of the +// property "inReplyTo". Invalidates iterators that are traversing using Prev. +func (this *ActivityStreamsInReplyToProperty) AppendForgeFedBranch(v vocab.ForgeFedBranch) { + this.properties = append(this.properties, &ActivityStreamsInReplyToPropertyIterator{ + alias: this.alias, + forgefedBranchMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendForgeFedCommit appends a Commit value to the back of a list of the +// property "inReplyTo". Invalidates iterators that are traversing using Prev. +func (this *ActivityStreamsInReplyToProperty) AppendForgeFedCommit(v vocab.ForgeFedCommit) { + this.properties = append(this.properties, &ActivityStreamsInReplyToPropertyIterator{ + alias: this.alias, + forgefedCommitMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendForgeFedPush appends a Push value to the back of a list of the property +// "inReplyTo". Invalidates iterators that are traversing using Prev. +func (this *ActivityStreamsInReplyToProperty) AppendForgeFedPush(v vocab.ForgeFedPush) { + this.properties = append(this.properties, &ActivityStreamsInReplyToPropertyIterator{ + alias: this.alias, + forgefedPushMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendForgeFedRepository appends a Repository value to the back of a list of +// the property "inReplyTo". Invalidates iterators that are traversing using +// Prev. +func (this *ActivityStreamsInReplyToProperty) AppendForgeFedRepository(v vocab.ForgeFedRepository) { + this.properties = append(this.properties, &ActivityStreamsInReplyToPropertyIterator{ + alias: this.alias, + forgefedRepositoryMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendForgeFedTicket appends a Ticket value to the back of a list of the +// property "inReplyTo". Invalidates iterators that are traversing using Prev. +func (this *ActivityStreamsInReplyToProperty) AppendForgeFedTicket(v vocab.ForgeFedTicket) { + this.properties = append(this.properties, &ActivityStreamsInReplyToPropertyIterator{ + alias: this.alias, + forgefedTicketMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendForgeFedTicketDependency appends a TicketDependency value to the back of +// a list of the property "inReplyTo". Invalidates iterators that are +// traversing using Prev. +func (this *ActivityStreamsInReplyToProperty) AppendForgeFedTicketDependency(v vocab.ForgeFedTicketDependency) { + this.properties = append(this.properties, &ActivityStreamsInReplyToPropertyIterator{ + alias: this.alias, + forgefedTicketDependencyMember: v, + myIdx: this.Len(), + parent: this, + }) +} + // AppendIRI appends an IRI value to the back of a list of the property "inReplyTo" func (this *ActivityStreamsInReplyToProperty) AppendIRI(v *url.URL) { this.properties = append(this.properties, &ActivityStreamsInReplyToPropertyIterator{ @@ -4427,6 +4767,108 @@ func (this *ActivityStreamsInReplyToProperty) InsertActivityStreamsView(idx int, } } +// InsertForgeFedBranch inserts a Branch value at the specified index for a +// property "inReplyTo". Existing elements at that index and higher are +// shifted back once. Invalidates all iterators. +func (this *ActivityStreamsInReplyToProperty) InsertForgeFedBranch(idx int, v vocab.ForgeFedBranch) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsInReplyToPropertyIterator{ + alias: this.alias, + forgefedBranchMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertForgeFedCommit inserts a Commit value at the specified index for a +// property "inReplyTo". Existing elements at that index and higher are +// shifted back once. Invalidates all iterators. +func (this *ActivityStreamsInReplyToProperty) InsertForgeFedCommit(idx int, v vocab.ForgeFedCommit) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsInReplyToPropertyIterator{ + alias: this.alias, + forgefedCommitMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertForgeFedPush inserts a Push value at the specified index for a property +// "inReplyTo". Existing elements at that index and higher are shifted back +// once. Invalidates all iterators. +func (this *ActivityStreamsInReplyToProperty) InsertForgeFedPush(idx int, v vocab.ForgeFedPush) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsInReplyToPropertyIterator{ + alias: this.alias, + forgefedPushMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertForgeFedRepository inserts a Repository value at the specified index for +// a property "inReplyTo". Existing elements at that index and higher are +// shifted back once. Invalidates all iterators. +func (this *ActivityStreamsInReplyToProperty) InsertForgeFedRepository(idx int, v vocab.ForgeFedRepository) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsInReplyToPropertyIterator{ + alias: this.alias, + forgefedRepositoryMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertForgeFedTicket inserts a Ticket value at the specified index for a +// property "inReplyTo". Existing elements at that index and higher are +// shifted back once. Invalidates all iterators. +func (this *ActivityStreamsInReplyToProperty) InsertForgeFedTicket(idx int, v vocab.ForgeFedTicket) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsInReplyToPropertyIterator{ + alias: this.alias, + forgefedTicketMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertForgeFedTicketDependency inserts a TicketDependency value at the +// specified index for a property "inReplyTo". Existing elements at that index +// and higher are shifted back once. Invalidates all iterators. +func (this *ActivityStreamsInReplyToProperty) InsertForgeFedTicketDependency(idx int, v vocab.ForgeFedTicketDependency) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsInReplyToPropertyIterator{ + alias: this.alias, + forgefedTicketDependencyMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + // Insert inserts an IRI value at the specified index for a property "inReplyTo". // Existing elements at that index and higher are shifted back once. // Invalidates all iterators. @@ -4584,182 +5026,206 @@ func (this ActivityStreamsInReplyToProperty) Less(i, j int) bool { rhs := this.properties[j].GetActivityStreamsBlock() return lhs.LessThan(rhs) } else if idx1 == 11 { + lhs := this.properties[i].GetForgeFedBranch() + rhs := this.properties[j].GetForgeFedBranch() + return lhs.LessThan(rhs) + } else if idx1 == 12 { lhs := this.properties[i].GetActivityStreamsCollection() rhs := this.properties[j].GetActivityStreamsCollection() return lhs.LessThan(rhs) - } else if idx1 == 12 { + } else if idx1 == 13 { lhs := this.properties[i].GetActivityStreamsCollectionPage() rhs := this.properties[j].GetActivityStreamsCollectionPage() return lhs.LessThan(rhs) - } else if idx1 == 13 { + } else if idx1 == 14 { + lhs := this.properties[i].GetForgeFedCommit() + rhs := this.properties[j].GetForgeFedCommit() + return lhs.LessThan(rhs) + } else if idx1 == 15 { lhs := this.properties[i].GetActivityStreamsCreate() rhs := this.properties[j].GetActivityStreamsCreate() return lhs.LessThan(rhs) - } else if idx1 == 14 { + } else if idx1 == 16 { lhs := this.properties[i].GetActivityStreamsDelete() rhs := this.properties[j].GetActivityStreamsDelete() return lhs.LessThan(rhs) - } else if idx1 == 15 { + } else if idx1 == 17 { lhs := this.properties[i].GetActivityStreamsDislike() rhs := this.properties[j].GetActivityStreamsDislike() return lhs.LessThan(rhs) - } else if idx1 == 16 { + } else if idx1 == 18 { lhs := this.properties[i].GetActivityStreamsDocument() rhs := this.properties[j].GetActivityStreamsDocument() return lhs.LessThan(rhs) - } else if idx1 == 17 { + } else if idx1 == 19 { lhs := this.properties[i].GetTootEmoji() rhs := this.properties[j].GetTootEmoji() return lhs.LessThan(rhs) - } else if idx1 == 18 { + } else if idx1 == 20 { lhs := this.properties[i].GetActivityStreamsEvent() rhs := this.properties[j].GetActivityStreamsEvent() return lhs.LessThan(rhs) - } else if idx1 == 19 { + } else if idx1 == 21 { lhs := this.properties[i].GetActivityStreamsFlag() rhs := this.properties[j].GetActivityStreamsFlag() return lhs.LessThan(rhs) - } else if idx1 == 20 { + } else if idx1 == 22 { lhs := this.properties[i].GetActivityStreamsFollow() rhs := this.properties[j].GetActivityStreamsFollow() return lhs.LessThan(rhs) - } else if idx1 == 21 { + } else if idx1 == 23 { lhs := this.properties[i].GetActivityStreamsGroup() rhs := this.properties[j].GetActivityStreamsGroup() return lhs.LessThan(rhs) - } else if idx1 == 22 { + } else if idx1 == 24 { lhs := this.properties[i].GetTootIdentityProof() rhs := this.properties[j].GetTootIdentityProof() return lhs.LessThan(rhs) - } else if idx1 == 23 { + } else if idx1 == 25 { lhs := this.properties[i].GetActivityStreamsIgnore() rhs := this.properties[j].GetActivityStreamsIgnore() return lhs.LessThan(rhs) - } else if idx1 == 24 { + } else if idx1 == 26 { lhs := this.properties[i].GetActivityStreamsImage() rhs := this.properties[j].GetActivityStreamsImage() return lhs.LessThan(rhs) - } else if idx1 == 25 { + } else if idx1 == 27 { lhs := this.properties[i].GetActivityStreamsIntransitiveActivity() rhs := this.properties[j].GetActivityStreamsIntransitiveActivity() return lhs.LessThan(rhs) - } else if idx1 == 26 { + } else if idx1 == 28 { lhs := this.properties[i].GetActivityStreamsInvite() rhs := this.properties[j].GetActivityStreamsInvite() return lhs.LessThan(rhs) - } else if idx1 == 27 { + } else if idx1 == 29 { lhs := this.properties[i].GetActivityStreamsJoin() rhs := this.properties[j].GetActivityStreamsJoin() return lhs.LessThan(rhs) - } else if idx1 == 28 { + } else if idx1 == 30 { lhs := this.properties[i].GetActivityStreamsLeave() rhs := this.properties[j].GetActivityStreamsLeave() return lhs.LessThan(rhs) - } else if idx1 == 29 { + } else if idx1 == 31 { lhs := this.properties[i].GetActivityStreamsLike() rhs := this.properties[j].GetActivityStreamsLike() return lhs.LessThan(rhs) - } else if idx1 == 30 { + } else if idx1 == 32 { lhs := this.properties[i].GetActivityStreamsListen() rhs := this.properties[j].GetActivityStreamsListen() return lhs.LessThan(rhs) - } else if idx1 == 31 { + } else if idx1 == 33 { lhs := this.properties[i].GetActivityStreamsMention() rhs := this.properties[j].GetActivityStreamsMention() return lhs.LessThan(rhs) - } else if idx1 == 32 { + } else if idx1 == 34 { lhs := this.properties[i].GetActivityStreamsMove() rhs := this.properties[j].GetActivityStreamsMove() return lhs.LessThan(rhs) - } else if idx1 == 33 { + } else if idx1 == 35 { lhs := this.properties[i].GetActivityStreamsNote() rhs := this.properties[j].GetActivityStreamsNote() return lhs.LessThan(rhs) - } else if idx1 == 34 { + } else if idx1 == 36 { lhs := this.properties[i].GetActivityStreamsOffer() rhs := this.properties[j].GetActivityStreamsOffer() return lhs.LessThan(rhs) - } else if idx1 == 35 { + } else if idx1 == 37 { lhs := this.properties[i].GetActivityStreamsOrderedCollection() rhs := this.properties[j].GetActivityStreamsOrderedCollection() return lhs.LessThan(rhs) - } else if idx1 == 36 { + } else if idx1 == 38 { lhs := this.properties[i].GetActivityStreamsOrderedCollectionPage() rhs := this.properties[j].GetActivityStreamsOrderedCollectionPage() return lhs.LessThan(rhs) - } else if idx1 == 37 { + } else if idx1 == 39 { lhs := this.properties[i].GetActivityStreamsOrganization() rhs := this.properties[j].GetActivityStreamsOrganization() return lhs.LessThan(rhs) - } else if idx1 == 38 { + } else if idx1 == 40 { lhs := this.properties[i].GetActivityStreamsPage() rhs := this.properties[j].GetActivityStreamsPage() return lhs.LessThan(rhs) - } else if idx1 == 39 { + } else if idx1 == 41 { lhs := this.properties[i].GetActivityStreamsPerson() rhs := this.properties[j].GetActivityStreamsPerson() return lhs.LessThan(rhs) - } else if idx1 == 40 { + } else if idx1 == 42 { lhs := this.properties[i].GetActivityStreamsPlace() rhs := this.properties[j].GetActivityStreamsPlace() return lhs.LessThan(rhs) - } else if idx1 == 41 { + } else if idx1 == 43 { lhs := this.properties[i].GetActivityStreamsProfile() rhs := this.properties[j].GetActivityStreamsProfile() return lhs.LessThan(rhs) - } else if idx1 == 42 { + } else if idx1 == 44 { + lhs := this.properties[i].GetForgeFedPush() + rhs := this.properties[j].GetForgeFedPush() + return lhs.LessThan(rhs) + } else if idx1 == 45 { lhs := this.properties[i].GetActivityStreamsQuestion() rhs := this.properties[j].GetActivityStreamsQuestion() return lhs.LessThan(rhs) - } else if idx1 == 43 { + } else if idx1 == 46 { lhs := this.properties[i].GetActivityStreamsRead() rhs := this.properties[j].GetActivityStreamsRead() return lhs.LessThan(rhs) - } else if idx1 == 44 { + } else if idx1 == 47 { lhs := this.properties[i].GetActivityStreamsReject() rhs := this.properties[j].GetActivityStreamsReject() return lhs.LessThan(rhs) - } else if idx1 == 45 { + } else if idx1 == 48 { lhs := this.properties[i].GetActivityStreamsRelationship() rhs := this.properties[j].GetActivityStreamsRelationship() return lhs.LessThan(rhs) - } else if idx1 == 46 { + } else if idx1 == 49 { lhs := this.properties[i].GetActivityStreamsRemove() rhs := this.properties[j].GetActivityStreamsRemove() return lhs.LessThan(rhs) - } else if idx1 == 47 { + } else if idx1 == 50 { + lhs := this.properties[i].GetForgeFedRepository() + rhs := this.properties[j].GetForgeFedRepository() + return lhs.LessThan(rhs) + } else if idx1 == 51 { lhs := this.properties[i].GetActivityStreamsService() rhs := this.properties[j].GetActivityStreamsService() return lhs.LessThan(rhs) - } else if idx1 == 48 { + } else if idx1 == 52 { lhs := this.properties[i].GetActivityStreamsTentativeAccept() rhs := this.properties[j].GetActivityStreamsTentativeAccept() return lhs.LessThan(rhs) - } else if idx1 == 49 { + } else if idx1 == 53 { lhs := this.properties[i].GetActivityStreamsTentativeReject() rhs := this.properties[j].GetActivityStreamsTentativeReject() return lhs.LessThan(rhs) - } else if idx1 == 50 { + } else if idx1 == 54 { + lhs := this.properties[i].GetForgeFedTicket() + rhs := this.properties[j].GetForgeFedTicket() + return lhs.LessThan(rhs) + } else if idx1 == 55 { + lhs := this.properties[i].GetForgeFedTicketDependency() + rhs := this.properties[j].GetForgeFedTicketDependency() + return lhs.LessThan(rhs) + } else if idx1 == 56 { lhs := this.properties[i].GetActivityStreamsTombstone() rhs := this.properties[j].GetActivityStreamsTombstone() return lhs.LessThan(rhs) - } else if idx1 == 51 { + } else if idx1 == 57 { lhs := this.properties[i].GetActivityStreamsTravel() rhs := this.properties[j].GetActivityStreamsTravel() return lhs.LessThan(rhs) - } else if idx1 == 52 { + } else if idx1 == 58 { lhs := this.properties[i].GetActivityStreamsUndo() rhs := this.properties[j].GetActivityStreamsUndo() return lhs.LessThan(rhs) - } else if idx1 == 53 { + } else if idx1 == 59 { lhs := this.properties[i].GetActivityStreamsUpdate() rhs := this.properties[j].GetActivityStreamsUpdate() return lhs.LessThan(rhs) - } else if idx1 == 54 { + } else if idx1 == 60 { lhs := this.properties[i].GetActivityStreamsVideo() rhs := this.properties[j].GetActivityStreamsVideo() return lhs.LessThan(rhs) - } else if idx1 == 55 { + } else if idx1 == 61 { lhs := this.properties[i].GetActivityStreamsView() rhs := this.properties[j].GetActivityStreamsView() return lhs.LessThan(rhs) @@ -5560,6 +6026,90 @@ func (this *ActivityStreamsInReplyToProperty) PrependActivityStreamsView(v vocab } } +// PrependForgeFedBranch prepends a Branch value to the front of a list of the +// property "inReplyTo". Invalidates all iterators. +func (this *ActivityStreamsInReplyToProperty) PrependForgeFedBranch(v vocab.ForgeFedBranch) { + this.properties = append([]*ActivityStreamsInReplyToPropertyIterator{{ + alias: this.alias, + forgefedBranchMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependForgeFedCommit prepends a Commit value to the front of a list of the +// property "inReplyTo". Invalidates all iterators. +func (this *ActivityStreamsInReplyToProperty) PrependForgeFedCommit(v vocab.ForgeFedCommit) { + this.properties = append([]*ActivityStreamsInReplyToPropertyIterator{{ + alias: this.alias, + forgefedCommitMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependForgeFedPush prepends a Push value to the front of a list of the +// property "inReplyTo". Invalidates all iterators. +func (this *ActivityStreamsInReplyToProperty) PrependForgeFedPush(v vocab.ForgeFedPush) { + this.properties = append([]*ActivityStreamsInReplyToPropertyIterator{{ + alias: this.alias, + forgefedPushMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependForgeFedRepository prepends a Repository value to the front of a list of +// the property "inReplyTo". Invalidates all iterators. +func (this *ActivityStreamsInReplyToProperty) PrependForgeFedRepository(v vocab.ForgeFedRepository) { + this.properties = append([]*ActivityStreamsInReplyToPropertyIterator{{ + alias: this.alias, + forgefedRepositoryMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependForgeFedTicket prepends a Ticket value to the front of a list of the +// property "inReplyTo". Invalidates all iterators. +func (this *ActivityStreamsInReplyToProperty) PrependForgeFedTicket(v vocab.ForgeFedTicket) { + this.properties = append([]*ActivityStreamsInReplyToPropertyIterator{{ + alias: this.alias, + forgefedTicketMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependForgeFedTicketDependency prepends a TicketDependency value to the front +// of a list of the property "inReplyTo". Invalidates all iterators. +func (this *ActivityStreamsInReplyToProperty) PrependForgeFedTicketDependency(v vocab.ForgeFedTicketDependency) { + this.properties = append([]*ActivityStreamsInReplyToPropertyIterator{{ + alias: this.alias, + forgefedTicketDependencyMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + // PrependIRI prepends an IRI value to the front of a list of the property // "inReplyTo". func (this *ActivityStreamsInReplyToProperty) PrependIRI(v *url.URL) { @@ -6356,6 +6906,84 @@ func (this *ActivityStreamsInReplyToProperty) SetActivityStreamsView(idx int, v } } +// SetForgeFedBranch sets a Branch value to be at the specified index for the +// property "inReplyTo". Panics if the index is out of bounds. Invalidates all +// iterators. +func (this *ActivityStreamsInReplyToProperty) SetForgeFedBranch(idx int, v vocab.ForgeFedBranch) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsInReplyToPropertyIterator{ + alias: this.alias, + forgefedBranchMember: v, + myIdx: idx, + parent: this, + } +} + +// SetForgeFedCommit sets a Commit value to be at the specified index for the +// property "inReplyTo". Panics if the index is out of bounds. Invalidates all +// iterators. +func (this *ActivityStreamsInReplyToProperty) SetForgeFedCommit(idx int, v vocab.ForgeFedCommit) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsInReplyToPropertyIterator{ + alias: this.alias, + forgefedCommitMember: v, + myIdx: idx, + parent: this, + } +} + +// SetForgeFedPush sets a Push value to be at the specified index for the property +// "inReplyTo". Panics if the index is out of bounds. Invalidates all +// iterators. +func (this *ActivityStreamsInReplyToProperty) SetForgeFedPush(idx int, v vocab.ForgeFedPush) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsInReplyToPropertyIterator{ + alias: this.alias, + forgefedPushMember: v, + myIdx: idx, + parent: this, + } +} + +// SetForgeFedRepository sets a Repository value to be at the specified index for +// the property "inReplyTo". Panics if the index is out of bounds. Invalidates +// all iterators. +func (this *ActivityStreamsInReplyToProperty) SetForgeFedRepository(idx int, v vocab.ForgeFedRepository) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsInReplyToPropertyIterator{ + alias: this.alias, + forgefedRepositoryMember: v, + myIdx: idx, + parent: this, + } +} + +// SetForgeFedTicket sets a Ticket value to be at the specified index for the +// property "inReplyTo". Panics if the index is out of bounds. Invalidates all +// iterators. +func (this *ActivityStreamsInReplyToProperty) SetForgeFedTicket(idx int, v vocab.ForgeFedTicket) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsInReplyToPropertyIterator{ + alias: this.alias, + forgefedTicketMember: v, + myIdx: idx, + parent: this, + } +} + +// SetForgeFedTicketDependency sets a TicketDependency value to be at the +// specified index for the property "inReplyTo". Panics if the index is out of +// bounds. Invalidates all iterators. +func (this *ActivityStreamsInReplyToProperty) SetForgeFedTicketDependency(idx int, v vocab.ForgeFedTicketDependency) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsInReplyToPropertyIterator{ + alias: this.alias, + forgefedTicketDependencyMember: v, + myIdx: idx, + parent: this, + } +} + // SetIRI sets an IRI value to be at the specified index for the property // "inReplyTo". Panics if the index is out of bounds. func (this *ActivityStreamsInReplyToProperty) SetIRI(idx int, v *url.URL) { diff --git a/streams/impl/activitystreams/property_instrument/gen_pkg.go b/streams/impl/activitystreams/property_instrument/gen_pkg.go index 53ee3e2..7db2733 100644 --- a/streams/impl/activitystreams/property_instrument/gen_pkg.go +++ b/streams/impl/activitystreams/property_instrument/gen_pkg.go @@ -45,6 +45,10 @@ type privateManager interface { // 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" @@ -53,6 +57,10 @@ type privateManager interface { // 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" @@ -177,6 +185,9 @@ type privateManager interface { // 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" @@ -197,6 +208,10 @@ type privateManager interface { // 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" @@ -209,6 +224,14 @@ type privateManager interface { // 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" diff --git a/streams/impl/activitystreams/property_instrument/gen_property_activitystreams_instrument.go b/streams/impl/activitystreams/property_instrument/gen_property_activitystreams_instrument.go index 094a307..5ec8a82 100644 --- a/streams/impl/activitystreams/property_instrument/gen_property_activitystreams_instrument.go +++ b/streams/impl/activitystreams/property_instrument/gen_property_activitystreams_instrument.go @@ -25,8 +25,10 @@ type ActivityStreamsInstrumentPropertyIterator struct { 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 @@ -56,14 +58,18 @@ type ActivityStreamsInstrumentPropertyIterator struct { 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 @@ -169,6 +175,12 @@ func deserializeActivityStreamsInstrumentPropertyIterator(i interface{}, aliasMa alias: alias, } return this, nil + } else if v, err := mgr.DeserializeBranchForgeFed()(m, aliasMap); err == nil { + this := &ActivityStreamsInstrumentPropertyIterator{ + alias: alias, + forgefedBranchMember: v, + } + return this, nil } else if v, err := mgr.DeserializeCollectionActivityStreams()(m, aliasMap); err == nil { this := &ActivityStreamsInstrumentPropertyIterator{ activitystreamsCollectionMember: v, @@ -181,6 +193,12 @@ func deserializeActivityStreamsInstrumentPropertyIterator(i interface{}, aliasMa alias: alias, } return this, nil + } else if v, err := mgr.DeserializeCommitForgeFed()(m, aliasMap); err == nil { + this := &ActivityStreamsInstrumentPropertyIterator{ + alias: alias, + forgefedCommitMember: v, + } + return this, nil } else if v, err := mgr.DeserializeCreateActivityStreams()(m, aliasMap); err == nil { this := &ActivityStreamsInstrumentPropertyIterator{ activitystreamsCreateMember: v, @@ -355,6 +373,12 @@ func deserializeActivityStreamsInstrumentPropertyIterator(i interface{}, aliasMa alias: alias, } return this, nil + } else if v, err := mgr.DeserializePushForgeFed()(m, aliasMap); err == nil { + this := &ActivityStreamsInstrumentPropertyIterator{ + alias: alias, + forgefedPushMember: v, + } + return this, nil } else if v, err := mgr.DeserializeQuestionActivityStreams()(m, aliasMap); err == nil { this := &ActivityStreamsInstrumentPropertyIterator{ activitystreamsQuestionMember: v, @@ -385,6 +409,12 @@ func deserializeActivityStreamsInstrumentPropertyIterator(i interface{}, aliasMa alias: alias, } return this, nil + } else if v, err := mgr.DeserializeRepositoryForgeFed()(m, aliasMap); err == nil { + this := &ActivityStreamsInstrumentPropertyIterator{ + alias: alias, + forgefedRepositoryMember: v, + } + return this, nil } else if v, err := mgr.DeserializeServiceActivityStreams()(m, aliasMap); err == nil { this := &ActivityStreamsInstrumentPropertyIterator{ activitystreamsServiceMember: v, @@ -403,6 +433,18 @@ func deserializeActivityStreamsInstrumentPropertyIterator(i interface{}, aliasMa alias: alias, } return this, nil + } else if v, err := mgr.DeserializeTicketForgeFed()(m, aliasMap); err == nil { + this := &ActivityStreamsInstrumentPropertyIterator{ + alias: alias, + forgefedTicketMember: v, + } + return this, nil + } else if v, err := mgr.DeserializeTicketDependencyForgeFed()(m, aliasMap); err == nil { + this := &ActivityStreamsInstrumentPropertyIterator{ + alias: alias, + forgefedTicketDependencyMember: v, + } + return this, nil } else if v, err := mgr.DeserializeTombstoneActivityStreams()(m, aliasMap); err == nil { this := &ActivityStreamsInstrumentPropertyIterator{ activitystreamsTombstoneMember: v, @@ -826,6 +868,44 @@ func (this ActivityStreamsInstrumentPropertyIterator) GetActivityStreamsView() v return this.activitystreamsViewMember } +// GetForgeFedBranch returns the value of this property. When IsForgeFedBranch +// returns false, GetForgeFedBranch will return an arbitrary value. +func (this ActivityStreamsInstrumentPropertyIterator) GetForgeFedBranch() vocab.ForgeFedBranch { + return this.forgefedBranchMember +} + +// GetForgeFedCommit returns the value of this property. When IsForgeFedCommit +// returns false, GetForgeFedCommit will return an arbitrary value. +func (this ActivityStreamsInstrumentPropertyIterator) GetForgeFedCommit() vocab.ForgeFedCommit { + return this.forgefedCommitMember +} + +// GetForgeFedPush returns the value of this property. When IsForgeFedPush returns +// false, GetForgeFedPush will return an arbitrary value. +func (this ActivityStreamsInstrumentPropertyIterator) GetForgeFedPush() vocab.ForgeFedPush { + return this.forgefedPushMember +} + +// GetForgeFedRepository returns the value of this property. When +// IsForgeFedRepository returns false, GetForgeFedRepository will return an +// arbitrary value. +func (this ActivityStreamsInstrumentPropertyIterator) GetForgeFedRepository() vocab.ForgeFedRepository { + return this.forgefedRepositoryMember +} + +// GetForgeFedTicket returns the value of this property. When IsForgeFedTicket +// returns false, GetForgeFedTicket will return an arbitrary value. +func (this ActivityStreamsInstrumentPropertyIterator) GetForgeFedTicket() vocab.ForgeFedTicket { + return this.forgefedTicketMember +} + +// GetForgeFedTicketDependency returns the value of this property. When +// IsForgeFedTicketDependency returns false, GetForgeFedTicketDependency will +// return an arbitrary value. +func (this ActivityStreamsInstrumentPropertyIterator) GetForgeFedTicketDependency() vocab.ForgeFedTicketDependency { + return this.forgefedTicketDependencyMember +} + // GetIRI returns the IRI of this property. When IsIRI returns false, GetIRI will // return an arbitrary value. func (this ActivityStreamsInstrumentPropertyIterator) GetIRI() *url.URL { @@ -881,12 +961,18 @@ func (this ActivityStreamsInstrumentPropertyIterator) GetType() vocab.Type { 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() } @@ -974,6 +1060,9 @@ func (this ActivityStreamsInstrumentPropertyIterator) GetType() vocab.Type { if this.IsActivityStreamsProfile() { return this.GetActivityStreamsProfile() } + if this.IsForgeFedPush() { + return this.GetForgeFedPush() + } if this.IsActivityStreamsQuestion() { return this.GetActivityStreamsQuestion() } @@ -989,6 +1078,9 @@ func (this ActivityStreamsInstrumentPropertyIterator) GetType() vocab.Type { if this.IsActivityStreamsRemove() { return this.GetActivityStreamsRemove() } + if this.IsForgeFedRepository() { + return this.GetForgeFedRepository() + } if this.IsActivityStreamsService() { return this.GetActivityStreamsService() } @@ -998,6 +1090,12 @@ func (this ActivityStreamsInstrumentPropertyIterator) GetType() vocab.Type { if this.IsActivityStreamsTentativeReject() { return this.GetActivityStreamsTentativeReject() } + if this.IsForgeFedTicket() { + return this.GetForgeFedTicket() + } + if this.IsForgeFedTicketDependency() { + return this.GetForgeFedTicketDependency() + } if this.IsActivityStreamsTombstone() { return this.GetActivityStreamsTombstone() } @@ -1033,8 +1131,10 @@ func (this ActivityStreamsInstrumentPropertyIterator) HasAny() bool { this.IsActivityStreamsArticle() || this.IsActivityStreamsAudio() || this.IsActivityStreamsBlock() || + this.IsForgeFedBranch() || this.IsActivityStreamsCollection() || this.IsActivityStreamsCollectionPage() || + this.IsForgeFedCommit() || this.IsActivityStreamsCreate() || this.IsActivityStreamsDelete() || this.IsActivityStreamsDislike() || @@ -1064,14 +1164,18 @@ func (this ActivityStreamsInstrumentPropertyIterator) HasAny() bool { 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() || @@ -1464,6 +1568,48 @@ func (this ActivityStreamsInstrumentPropertyIterator) IsActivityStreamsView() bo return this.activitystreamsViewMember != nil } +// IsForgeFedBranch returns true if this property has a type of "Branch". When +// true, use the GetForgeFedBranch and SetForgeFedBranch methods to access and +// set this property. +func (this ActivityStreamsInstrumentPropertyIterator) IsForgeFedBranch() bool { + return this.forgefedBranchMember != nil +} + +// IsForgeFedCommit returns true if this property has a type of "Commit". When +// true, use the GetForgeFedCommit and SetForgeFedCommit methods to access and +// set this property. +func (this ActivityStreamsInstrumentPropertyIterator) IsForgeFedCommit() bool { + return this.forgefedCommitMember != nil +} + +// IsForgeFedPush returns true if this property has a type of "Push". When true, +// use the GetForgeFedPush and SetForgeFedPush methods to access and set this +// property. +func (this ActivityStreamsInstrumentPropertyIterator) IsForgeFedPush() bool { + return this.forgefedPushMember != nil +} + +// IsForgeFedRepository returns true if this property has a type of "Repository". +// When true, use the GetForgeFedRepository and SetForgeFedRepository methods +// to access and set this property. +func (this ActivityStreamsInstrumentPropertyIterator) IsForgeFedRepository() bool { + return this.forgefedRepositoryMember != nil +} + +// IsForgeFedTicket returns true if this property has a type of "Ticket". When +// true, use the GetForgeFedTicket and SetForgeFedTicket methods to access and +// set this property. +func (this ActivityStreamsInstrumentPropertyIterator) IsForgeFedTicket() bool { + return this.forgefedTicketMember != nil +} + +// IsForgeFedTicketDependency returns true if this property has a type of +// "TicketDependency". When true, use the GetForgeFedTicketDependency and +// SetForgeFedTicketDependency methods to access and set this property. +func (this ActivityStreamsInstrumentPropertyIterator) IsForgeFedTicketDependency() bool { + return this.forgefedTicketDependencyMember != nil +} + // IsIRI returns true if this property is an IRI. When true, use GetIRI and SetIRI // to access and set this property func (this ActivityStreamsInstrumentPropertyIterator) IsIRI() bool { @@ -1511,10 +1657,14 @@ func (this ActivityStreamsInstrumentPropertyIterator) JSONLDContext() map[string 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() { @@ -1573,6 +1723,8 @@ func (this ActivityStreamsInstrumentPropertyIterator) JSONLDContext() map[string 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() { @@ -1583,12 +1735,18 @@ func (this ActivityStreamsInstrumentPropertyIterator) JSONLDContext() map[string 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() { @@ -1650,141 +1808,159 @@ func (this ActivityStreamsInstrumentPropertyIterator) KindIndex() int { if this.IsActivityStreamsBlock() { return 10 } - if this.IsActivityStreamsCollection() { + if this.IsForgeFedBranch() { return 11 } - if this.IsActivityStreamsCollectionPage() { + if this.IsActivityStreamsCollection() { return 12 } - if this.IsActivityStreamsCreate() { + if this.IsActivityStreamsCollectionPage() { return 13 } - if this.IsActivityStreamsDelete() { + if this.IsForgeFedCommit() { return 14 } - if this.IsActivityStreamsDislike() { + if this.IsActivityStreamsCreate() { return 15 } - if this.IsActivityStreamsDocument() { + if this.IsActivityStreamsDelete() { return 16 } - if this.IsTootEmoji() { + if this.IsActivityStreamsDislike() { return 17 } - if this.IsActivityStreamsEvent() { + if this.IsActivityStreamsDocument() { return 18 } - if this.IsActivityStreamsFlag() { + if this.IsTootEmoji() { return 19 } - if this.IsActivityStreamsFollow() { + if this.IsActivityStreamsEvent() { return 20 } - if this.IsActivityStreamsGroup() { + if this.IsActivityStreamsFlag() { return 21 } - if this.IsTootIdentityProof() { + if this.IsActivityStreamsFollow() { return 22 } - if this.IsActivityStreamsIgnore() { + if this.IsActivityStreamsGroup() { return 23 } - if this.IsActivityStreamsImage() { + if this.IsTootIdentityProof() { return 24 } - if this.IsActivityStreamsIntransitiveActivity() { + if this.IsActivityStreamsIgnore() { return 25 } - if this.IsActivityStreamsInvite() { + if this.IsActivityStreamsImage() { return 26 } - if this.IsActivityStreamsJoin() { + if this.IsActivityStreamsIntransitiveActivity() { return 27 } - if this.IsActivityStreamsLeave() { + if this.IsActivityStreamsInvite() { return 28 } - if this.IsActivityStreamsLike() { + if this.IsActivityStreamsJoin() { return 29 } - if this.IsActivityStreamsListen() { + if this.IsActivityStreamsLeave() { return 30 } - if this.IsActivityStreamsMention() { + if this.IsActivityStreamsLike() { return 31 } - if this.IsActivityStreamsMove() { + if this.IsActivityStreamsListen() { return 32 } - if this.IsActivityStreamsNote() { + if this.IsActivityStreamsMention() { return 33 } - if this.IsActivityStreamsOffer() { + if this.IsActivityStreamsMove() { return 34 } - if this.IsActivityStreamsOrderedCollection() { + if this.IsActivityStreamsNote() { return 35 } - if this.IsActivityStreamsOrderedCollectionPage() { + if this.IsActivityStreamsOffer() { return 36 } - if this.IsActivityStreamsOrganization() { + if this.IsActivityStreamsOrderedCollection() { return 37 } - if this.IsActivityStreamsPage() { + if this.IsActivityStreamsOrderedCollectionPage() { return 38 } - if this.IsActivityStreamsPerson() { + if this.IsActivityStreamsOrganization() { return 39 } - if this.IsActivityStreamsPlace() { + if this.IsActivityStreamsPage() { return 40 } - if this.IsActivityStreamsProfile() { + if this.IsActivityStreamsPerson() { return 41 } - if this.IsActivityStreamsQuestion() { + if this.IsActivityStreamsPlace() { return 42 } - if this.IsActivityStreamsRead() { + if this.IsActivityStreamsProfile() { return 43 } - if this.IsActivityStreamsReject() { + if this.IsForgeFedPush() { return 44 } - if this.IsActivityStreamsRelationship() { + if this.IsActivityStreamsQuestion() { return 45 } - if this.IsActivityStreamsRemove() { + if this.IsActivityStreamsRead() { return 46 } - if this.IsActivityStreamsService() { + if this.IsActivityStreamsReject() { return 47 } - if this.IsActivityStreamsTentativeAccept() { + if this.IsActivityStreamsRelationship() { return 48 } - if this.IsActivityStreamsTentativeReject() { + if this.IsActivityStreamsRemove() { return 49 } - if this.IsActivityStreamsTombstone() { + if this.IsForgeFedRepository() { return 50 } - if this.IsActivityStreamsTravel() { + if this.IsActivityStreamsService() { return 51 } - if this.IsActivityStreamsUndo() { + if this.IsActivityStreamsTentativeAccept() { return 52 } - if this.IsActivityStreamsUpdate() { + if this.IsActivityStreamsTentativeReject() { return 53 } - if this.IsActivityStreamsVideo() { + if this.IsForgeFedTicket() { return 54 } - if this.IsActivityStreamsView() { + 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 } @@ -1824,10 +2000,14 @@ func (this ActivityStreamsInstrumentPropertyIterator) LessThan(o vocab.ActivityS 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() { @@ -1886,6 +2066,8 @@ func (this ActivityStreamsInstrumentPropertyIterator) LessThan(o vocab.ActivityS 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() { @@ -1896,12 +2078,18 @@ func (this ActivityStreamsInstrumentPropertyIterator) LessThan(o vocab.ActivityS 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() { @@ -2325,6 +2513,48 @@ func (this *ActivityStreamsInstrumentPropertyIterator) SetActivityStreamsView(v this.activitystreamsViewMember = v } +// SetForgeFedBranch sets the value of this property. Calling IsForgeFedBranch +// afterwards returns true. +func (this *ActivityStreamsInstrumentPropertyIterator) SetForgeFedBranch(v vocab.ForgeFedBranch) { + this.clear() + this.forgefedBranchMember = v +} + +// SetForgeFedCommit sets the value of this property. Calling IsForgeFedCommit +// afterwards returns true. +func (this *ActivityStreamsInstrumentPropertyIterator) SetForgeFedCommit(v vocab.ForgeFedCommit) { + this.clear() + this.forgefedCommitMember = v +} + +// SetForgeFedPush sets the value of this property. Calling IsForgeFedPush +// afterwards returns true. +func (this *ActivityStreamsInstrumentPropertyIterator) SetForgeFedPush(v vocab.ForgeFedPush) { + this.clear() + this.forgefedPushMember = v +} + +// SetForgeFedRepository sets the value of this property. Calling +// IsForgeFedRepository afterwards returns true. +func (this *ActivityStreamsInstrumentPropertyIterator) SetForgeFedRepository(v vocab.ForgeFedRepository) { + this.clear() + this.forgefedRepositoryMember = v +} + +// SetForgeFedTicket sets the value of this property. Calling IsForgeFedTicket +// afterwards returns true. +func (this *ActivityStreamsInstrumentPropertyIterator) SetForgeFedTicket(v vocab.ForgeFedTicket) { + this.clear() + this.forgefedTicketMember = v +} + +// SetForgeFedTicketDependency sets the value of this property. Calling +// IsForgeFedTicketDependency afterwards returns true. +func (this *ActivityStreamsInstrumentPropertyIterator) SetForgeFedTicketDependency(v vocab.ForgeFedTicketDependency) { + this.clear() + this.forgefedTicketDependencyMember = v +} + // SetIRI sets the value of this property. Calling IsIRI afterwards returns true. func (this *ActivityStreamsInstrumentPropertyIterator) SetIRI(v *url.URL) { this.clear() @@ -2392,6 +2622,10 @@ func (this *ActivityStreamsInstrumentPropertyIterator) SetType(t vocab.Type) err 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 @@ -2400,6 +2634,10 @@ func (this *ActivityStreamsInstrumentPropertyIterator) SetType(t vocab.Type) err 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 @@ -2516,6 +2754,10 @@ func (this *ActivityStreamsInstrumentPropertyIterator) SetType(t vocab.Type) err 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 @@ -2536,6 +2778,10 @@ func (this *ActivityStreamsInstrumentPropertyIterator) SetType(t vocab.Type) err 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 @@ -2548,6 +2794,14 @@ func (this *ActivityStreamsInstrumentPropertyIterator) SetType(t vocab.Type) err 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 @@ -2590,8 +2844,10 @@ func (this *ActivityStreamsInstrumentPropertyIterator) clear() { 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 @@ -2621,14 +2877,18 @@ func (this *ActivityStreamsInstrumentPropertyIterator) clear() { 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 @@ -2666,10 +2926,14 @@ func (this ActivityStreamsInstrumentPropertyIterator) serialize() (interface{}, 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() { @@ -2728,6 +2992,8 @@ func (this ActivityStreamsInstrumentPropertyIterator) serialize() (interface{}, 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() { @@ -2738,12 +3004,18 @@ func (this ActivityStreamsInstrumentPropertyIterator) serialize() (interface{}, 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() { @@ -3431,6 +3703,74 @@ func (this *ActivityStreamsInstrumentProperty) AppendActivityStreamsView(v vocab }) } +// AppendForgeFedBranch appends a Branch value to the back of a list of the +// property "instrument". Invalidates iterators that are traversing using Prev. +func (this *ActivityStreamsInstrumentProperty) AppendForgeFedBranch(v vocab.ForgeFedBranch) { + this.properties = append(this.properties, &ActivityStreamsInstrumentPropertyIterator{ + alias: this.alias, + forgefedBranchMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendForgeFedCommit appends a Commit value to the back of a list of the +// property "instrument". Invalidates iterators that are traversing using Prev. +func (this *ActivityStreamsInstrumentProperty) AppendForgeFedCommit(v vocab.ForgeFedCommit) { + this.properties = append(this.properties, &ActivityStreamsInstrumentPropertyIterator{ + alias: this.alias, + forgefedCommitMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendForgeFedPush appends a Push value to the back of a list of the property +// "instrument". Invalidates iterators that are traversing using Prev. +func (this *ActivityStreamsInstrumentProperty) AppendForgeFedPush(v vocab.ForgeFedPush) { + this.properties = append(this.properties, &ActivityStreamsInstrumentPropertyIterator{ + alias: this.alias, + forgefedPushMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendForgeFedRepository appends a Repository value to the back of a list of +// the property "instrument". Invalidates iterators that are traversing using +// Prev. +func (this *ActivityStreamsInstrumentProperty) AppendForgeFedRepository(v vocab.ForgeFedRepository) { + this.properties = append(this.properties, &ActivityStreamsInstrumentPropertyIterator{ + alias: this.alias, + forgefedRepositoryMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendForgeFedTicket appends a Ticket value to the back of a list of the +// property "instrument". Invalidates iterators that are traversing using Prev. +func (this *ActivityStreamsInstrumentProperty) AppendForgeFedTicket(v vocab.ForgeFedTicket) { + this.properties = append(this.properties, &ActivityStreamsInstrumentPropertyIterator{ + alias: this.alias, + forgefedTicketMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendForgeFedTicketDependency appends a TicketDependency value to the back of +// a list of the property "instrument". Invalidates iterators that are +// traversing using Prev. +func (this *ActivityStreamsInstrumentProperty) AppendForgeFedTicketDependency(v vocab.ForgeFedTicketDependency) { + this.properties = append(this.properties, &ActivityStreamsInstrumentPropertyIterator{ + alias: this.alias, + forgefedTicketDependencyMember: v, + myIdx: this.Len(), + parent: this, + }) +} + // AppendIRI appends an IRI value to the back of a list of the property // "instrument" func (this *ActivityStreamsInstrumentProperty) AppendIRI(v *url.URL) { @@ -4429,6 +4769,108 @@ func (this *ActivityStreamsInstrumentProperty) InsertActivityStreamsView(idx int } } +// InsertForgeFedBranch inserts a Branch value at the specified index for a +// property "instrument". Existing elements at that index and higher are +// shifted back once. Invalidates all iterators. +func (this *ActivityStreamsInstrumentProperty) InsertForgeFedBranch(idx int, v vocab.ForgeFedBranch) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsInstrumentPropertyIterator{ + alias: this.alias, + forgefedBranchMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertForgeFedCommit inserts a Commit value at the specified index for a +// property "instrument". Existing elements at that index and higher are +// shifted back once. Invalidates all iterators. +func (this *ActivityStreamsInstrumentProperty) InsertForgeFedCommit(idx int, v vocab.ForgeFedCommit) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsInstrumentPropertyIterator{ + alias: this.alias, + forgefedCommitMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertForgeFedPush inserts a Push value at the specified index for a property +// "instrument". Existing elements at that index and higher are shifted back +// once. Invalidates all iterators. +func (this *ActivityStreamsInstrumentProperty) InsertForgeFedPush(idx int, v vocab.ForgeFedPush) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsInstrumentPropertyIterator{ + alias: this.alias, + forgefedPushMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertForgeFedRepository inserts a Repository value at the specified index for +// a property "instrument". Existing elements at that index and higher are +// shifted back once. Invalidates all iterators. +func (this *ActivityStreamsInstrumentProperty) InsertForgeFedRepository(idx int, v vocab.ForgeFedRepository) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsInstrumentPropertyIterator{ + alias: this.alias, + forgefedRepositoryMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertForgeFedTicket inserts a Ticket value at the specified index for a +// property "instrument". Existing elements at that index and higher are +// shifted back once. Invalidates all iterators. +func (this *ActivityStreamsInstrumentProperty) InsertForgeFedTicket(idx int, v vocab.ForgeFedTicket) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsInstrumentPropertyIterator{ + alias: this.alias, + forgefedTicketMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertForgeFedTicketDependency inserts a TicketDependency value at the +// specified index for a property "instrument". Existing elements at that +// index and higher are shifted back once. Invalidates all iterators. +func (this *ActivityStreamsInstrumentProperty) InsertForgeFedTicketDependency(idx int, v vocab.ForgeFedTicketDependency) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsInstrumentPropertyIterator{ + alias: this.alias, + forgefedTicketDependencyMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + // Insert inserts an IRI value at the specified index for a property "instrument". // Existing elements at that index and higher are shifted back once. // Invalidates all iterators. @@ -4586,182 +5028,206 @@ func (this ActivityStreamsInstrumentProperty) Less(i, j int) bool { rhs := this.properties[j].GetActivityStreamsBlock() return lhs.LessThan(rhs) } else if idx1 == 11 { + lhs := this.properties[i].GetForgeFedBranch() + rhs := this.properties[j].GetForgeFedBranch() + return lhs.LessThan(rhs) + } else if idx1 == 12 { lhs := this.properties[i].GetActivityStreamsCollection() rhs := this.properties[j].GetActivityStreamsCollection() return lhs.LessThan(rhs) - } else if idx1 == 12 { + } else if idx1 == 13 { lhs := this.properties[i].GetActivityStreamsCollectionPage() rhs := this.properties[j].GetActivityStreamsCollectionPage() return lhs.LessThan(rhs) - } else if idx1 == 13 { + } else if idx1 == 14 { + lhs := this.properties[i].GetForgeFedCommit() + rhs := this.properties[j].GetForgeFedCommit() + return lhs.LessThan(rhs) + } else if idx1 == 15 { lhs := this.properties[i].GetActivityStreamsCreate() rhs := this.properties[j].GetActivityStreamsCreate() return lhs.LessThan(rhs) - } else if idx1 == 14 { + } else if idx1 == 16 { lhs := this.properties[i].GetActivityStreamsDelete() rhs := this.properties[j].GetActivityStreamsDelete() return lhs.LessThan(rhs) - } else if idx1 == 15 { + } else if idx1 == 17 { lhs := this.properties[i].GetActivityStreamsDislike() rhs := this.properties[j].GetActivityStreamsDislike() return lhs.LessThan(rhs) - } else if idx1 == 16 { + } else if idx1 == 18 { lhs := this.properties[i].GetActivityStreamsDocument() rhs := this.properties[j].GetActivityStreamsDocument() return lhs.LessThan(rhs) - } else if idx1 == 17 { + } else if idx1 == 19 { lhs := this.properties[i].GetTootEmoji() rhs := this.properties[j].GetTootEmoji() return lhs.LessThan(rhs) - } else if idx1 == 18 { + } else if idx1 == 20 { lhs := this.properties[i].GetActivityStreamsEvent() rhs := this.properties[j].GetActivityStreamsEvent() return lhs.LessThan(rhs) - } else if idx1 == 19 { + } else if idx1 == 21 { lhs := this.properties[i].GetActivityStreamsFlag() rhs := this.properties[j].GetActivityStreamsFlag() return lhs.LessThan(rhs) - } else if idx1 == 20 { + } else if idx1 == 22 { lhs := this.properties[i].GetActivityStreamsFollow() rhs := this.properties[j].GetActivityStreamsFollow() return lhs.LessThan(rhs) - } else if idx1 == 21 { + } else if idx1 == 23 { lhs := this.properties[i].GetActivityStreamsGroup() rhs := this.properties[j].GetActivityStreamsGroup() return lhs.LessThan(rhs) - } else if idx1 == 22 { + } else if idx1 == 24 { lhs := this.properties[i].GetTootIdentityProof() rhs := this.properties[j].GetTootIdentityProof() return lhs.LessThan(rhs) - } else if idx1 == 23 { + } else if idx1 == 25 { lhs := this.properties[i].GetActivityStreamsIgnore() rhs := this.properties[j].GetActivityStreamsIgnore() return lhs.LessThan(rhs) - } else if idx1 == 24 { + } else if idx1 == 26 { lhs := this.properties[i].GetActivityStreamsImage() rhs := this.properties[j].GetActivityStreamsImage() return lhs.LessThan(rhs) - } else if idx1 == 25 { + } else if idx1 == 27 { lhs := this.properties[i].GetActivityStreamsIntransitiveActivity() rhs := this.properties[j].GetActivityStreamsIntransitiveActivity() return lhs.LessThan(rhs) - } else if idx1 == 26 { + } else if idx1 == 28 { lhs := this.properties[i].GetActivityStreamsInvite() rhs := this.properties[j].GetActivityStreamsInvite() return lhs.LessThan(rhs) - } else if idx1 == 27 { + } else if idx1 == 29 { lhs := this.properties[i].GetActivityStreamsJoin() rhs := this.properties[j].GetActivityStreamsJoin() return lhs.LessThan(rhs) - } else if idx1 == 28 { + } else if idx1 == 30 { lhs := this.properties[i].GetActivityStreamsLeave() rhs := this.properties[j].GetActivityStreamsLeave() return lhs.LessThan(rhs) - } else if idx1 == 29 { + } else if idx1 == 31 { lhs := this.properties[i].GetActivityStreamsLike() rhs := this.properties[j].GetActivityStreamsLike() return lhs.LessThan(rhs) - } else if idx1 == 30 { + } else if idx1 == 32 { lhs := this.properties[i].GetActivityStreamsListen() rhs := this.properties[j].GetActivityStreamsListen() return lhs.LessThan(rhs) - } else if idx1 == 31 { + } else if idx1 == 33 { lhs := this.properties[i].GetActivityStreamsMention() rhs := this.properties[j].GetActivityStreamsMention() return lhs.LessThan(rhs) - } else if idx1 == 32 { + } else if idx1 == 34 { lhs := this.properties[i].GetActivityStreamsMove() rhs := this.properties[j].GetActivityStreamsMove() return lhs.LessThan(rhs) - } else if idx1 == 33 { + } else if idx1 == 35 { lhs := this.properties[i].GetActivityStreamsNote() rhs := this.properties[j].GetActivityStreamsNote() return lhs.LessThan(rhs) - } else if idx1 == 34 { + } else if idx1 == 36 { lhs := this.properties[i].GetActivityStreamsOffer() rhs := this.properties[j].GetActivityStreamsOffer() return lhs.LessThan(rhs) - } else if idx1 == 35 { + } else if idx1 == 37 { lhs := this.properties[i].GetActivityStreamsOrderedCollection() rhs := this.properties[j].GetActivityStreamsOrderedCollection() return lhs.LessThan(rhs) - } else if idx1 == 36 { + } else if idx1 == 38 { lhs := this.properties[i].GetActivityStreamsOrderedCollectionPage() rhs := this.properties[j].GetActivityStreamsOrderedCollectionPage() return lhs.LessThan(rhs) - } else if idx1 == 37 { + } else if idx1 == 39 { lhs := this.properties[i].GetActivityStreamsOrganization() rhs := this.properties[j].GetActivityStreamsOrganization() return lhs.LessThan(rhs) - } else if idx1 == 38 { + } else if idx1 == 40 { lhs := this.properties[i].GetActivityStreamsPage() rhs := this.properties[j].GetActivityStreamsPage() return lhs.LessThan(rhs) - } else if idx1 == 39 { + } else if idx1 == 41 { lhs := this.properties[i].GetActivityStreamsPerson() rhs := this.properties[j].GetActivityStreamsPerson() return lhs.LessThan(rhs) - } else if idx1 == 40 { + } else if idx1 == 42 { lhs := this.properties[i].GetActivityStreamsPlace() rhs := this.properties[j].GetActivityStreamsPlace() return lhs.LessThan(rhs) - } else if idx1 == 41 { + } else if idx1 == 43 { lhs := this.properties[i].GetActivityStreamsProfile() rhs := this.properties[j].GetActivityStreamsProfile() return lhs.LessThan(rhs) - } else if idx1 == 42 { + } else if idx1 == 44 { + lhs := this.properties[i].GetForgeFedPush() + rhs := this.properties[j].GetForgeFedPush() + return lhs.LessThan(rhs) + } else if idx1 == 45 { lhs := this.properties[i].GetActivityStreamsQuestion() rhs := this.properties[j].GetActivityStreamsQuestion() return lhs.LessThan(rhs) - } else if idx1 == 43 { + } else if idx1 == 46 { lhs := this.properties[i].GetActivityStreamsRead() rhs := this.properties[j].GetActivityStreamsRead() return lhs.LessThan(rhs) - } else if idx1 == 44 { + } else if idx1 == 47 { lhs := this.properties[i].GetActivityStreamsReject() rhs := this.properties[j].GetActivityStreamsReject() return lhs.LessThan(rhs) - } else if idx1 == 45 { + } else if idx1 == 48 { lhs := this.properties[i].GetActivityStreamsRelationship() rhs := this.properties[j].GetActivityStreamsRelationship() return lhs.LessThan(rhs) - } else if idx1 == 46 { + } else if idx1 == 49 { lhs := this.properties[i].GetActivityStreamsRemove() rhs := this.properties[j].GetActivityStreamsRemove() return lhs.LessThan(rhs) - } else if idx1 == 47 { + } else if idx1 == 50 { + lhs := this.properties[i].GetForgeFedRepository() + rhs := this.properties[j].GetForgeFedRepository() + return lhs.LessThan(rhs) + } else if idx1 == 51 { lhs := this.properties[i].GetActivityStreamsService() rhs := this.properties[j].GetActivityStreamsService() return lhs.LessThan(rhs) - } else if idx1 == 48 { + } else if idx1 == 52 { lhs := this.properties[i].GetActivityStreamsTentativeAccept() rhs := this.properties[j].GetActivityStreamsTentativeAccept() return lhs.LessThan(rhs) - } else if idx1 == 49 { + } else if idx1 == 53 { lhs := this.properties[i].GetActivityStreamsTentativeReject() rhs := this.properties[j].GetActivityStreamsTentativeReject() return lhs.LessThan(rhs) - } else if idx1 == 50 { + } else if idx1 == 54 { + lhs := this.properties[i].GetForgeFedTicket() + rhs := this.properties[j].GetForgeFedTicket() + return lhs.LessThan(rhs) + } else if idx1 == 55 { + lhs := this.properties[i].GetForgeFedTicketDependency() + rhs := this.properties[j].GetForgeFedTicketDependency() + return lhs.LessThan(rhs) + } else if idx1 == 56 { lhs := this.properties[i].GetActivityStreamsTombstone() rhs := this.properties[j].GetActivityStreamsTombstone() return lhs.LessThan(rhs) - } else if idx1 == 51 { + } else if idx1 == 57 { lhs := this.properties[i].GetActivityStreamsTravel() rhs := this.properties[j].GetActivityStreamsTravel() return lhs.LessThan(rhs) - } else if idx1 == 52 { + } else if idx1 == 58 { lhs := this.properties[i].GetActivityStreamsUndo() rhs := this.properties[j].GetActivityStreamsUndo() return lhs.LessThan(rhs) - } else if idx1 == 53 { + } else if idx1 == 59 { lhs := this.properties[i].GetActivityStreamsUpdate() rhs := this.properties[j].GetActivityStreamsUpdate() return lhs.LessThan(rhs) - } else if idx1 == 54 { + } else if idx1 == 60 { lhs := this.properties[i].GetActivityStreamsVideo() rhs := this.properties[j].GetActivityStreamsVideo() return lhs.LessThan(rhs) - } else if idx1 == 55 { + } else if idx1 == 61 { lhs := this.properties[i].GetActivityStreamsView() rhs := this.properties[j].GetActivityStreamsView() return lhs.LessThan(rhs) @@ -5562,6 +6028,90 @@ func (this *ActivityStreamsInstrumentProperty) PrependActivityStreamsView(v voca } } +// PrependForgeFedBranch prepends a Branch value to the front of a list of the +// property "instrument". Invalidates all iterators. +func (this *ActivityStreamsInstrumentProperty) PrependForgeFedBranch(v vocab.ForgeFedBranch) { + this.properties = append([]*ActivityStreamsInstrumentPropertyIterator{{ + alias: this.alias, + forgefedBranchMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependForgeFedCommit prepends a Commit value to the front of a list of the +// property "instrument". Invalidates all iterators. +func (this *ActivityStreamsInstrumentProperty) PrependForgeFedCommit(v vocab.ForgeFedCommit) { + this.properties = append([]*ActivityStreamsInstrumentPropertyIterator{{ + alias: this.alias, + forgefedCommitMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependForgeFedPush prepends a Push value to the front of a list of the +// property "instrument". Invalidates all iterators. +func (this *ActivityStreamsInstrumentProperty) PrependForgeFedPush(v vocab.ForgeFedPush) { + this.properties = append([]*ActivityStreamsInstrumentPropertyIterator{{ + alias: this.alias, + forgefedPushMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependForgeFedRepository prepends a Repository value to the front of a list of +// the property "instrument". Invalidates all iterators. +func (this *ActivityStreamsInstrumentProperty) PrependForgeFedRepository(v vocab.ForgeFedRepository) { + this.properties = append([]*ActivityStreamsInstrumentPropertyIterator{{ + alias: this.alias, + forgefedRepositoryMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependForgeFedTicket prepends a Ticket value to the front of a list of the +// property "instrument". Invalidates all iterators. +func (this *ActivityStreamsInstrumentProperty) PrependForgeFedTicket(v vocab.ForgeFedTicket) { + this.properties = append([]*ActivityStreamsInstrumentPropertyIterator{{ + alias: this.alias, + forgefedTicketMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependForgeFedTicketDependency prepends a TicketDependency value to the front +// of a list of the property "instrument". Invalidates all iterators. +func (this *ActivityStreamsInstrumentProperty) PrependForgeFedTicketDependency(v vocab.ForgeFedTicketDependency) { + this.properties = append([]*ActivityStreamsInstrumentPropertyIterator{{ + alias: this.alias, + forgefedTicketDependencyMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + // PrependIRI prepends an IRI value to the front of a list of the property // "instrument". func (this *ActivityStreamsInstrumentProperty) PrependIRI(v *url.URL) { @@ -6358,6 +6908,84 @@ func (this *ActivityStreamsInstrumentProperty) SetActivityStreamsView(idx int, v } } +// SetForgeFedBranch sets a Branch value to be at the specified index for the +// property "instrument". Panics if the index is out of bounds. Invalidates +// all iterators. +func (this *ActivityStreamsInstrumentProperty) SetForgeFedBranch(idx int, v vocab.ForgeFedBranch) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsInstrumentPropertyIterator{ + alias: this.alias, + forgefedBranchMember: v, + myIdx: idx, + parent: this, + } +} + +// SetForgeFedCommit sets a Commit value to be at the specified index for the +// property "instrument". Panics if the index is out of bounds. Invalidates +// all iterators. +func (this *ActivityStreamsInstrumentProperty) SetForgeFedCommit(idx int, v vocab.ForgeFedCommit) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsInstrumentPropertyIterator{ + alias: this.alias, + forgefedCommitMember: v, + myIdx: idx, + parent: this, + } +} + +// SetForgeFedPush sets a Push value to be at the specified index for the property +// "instrument". Panics if the index is out of bounds. Invalidates all +// iterators. +func (this *ActivityStreamsInstrumentProperty) SetForgeFedPush(idx int, v vocab.ForgeFedPush) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsInstrumentPropertyIterator{ + alias: this.alias, + forgefedPushMember: v, + myIdx: idx, + parent: this, + } +} + +// SetForgeFedRepository sets a Repository value to be at the specified index for +// the property "instrument". Panics if the index is out of bounds. +// Invalidates all iterators. +func (this *ActivityStreamsInstrumentProperty) SetForgeFedRepository(idx int, v vocab.ForgeFedRepository) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsInstrumentPropertyIterator{ + alias: this.alias, + forgefedRepositoryMember: v, + myIdx: idx, + parent: this, + } +} + +// SetForgeFedTicket sets a Ticket value to be at the specified index for the +// property "instrument". Panics if the index is out of bounds. Invalidates +// all iterators. +func (this *ActivityStreamsInstrumentProperty) SetForgeFedTicket(idx int, v vocab.ForgeFedTicket) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsInstrumentPropertyIterator{ + alias: this.alias, + forgefedTicketMember: v, + myIdx: idx, + parent: this, + } +} + +// SetForgeFedTicketDependency sets a TicketDependency value to be at the +// specified index for the property "instrument". Panics if the index is out +// of bounds. Invalidates all iterators. +func (this *ActivityStreamsInstrumentProperty) SetForgeFedTicketDependency(idx int, v vocab.ForgeFedTicketDependency) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsInstrumentPropertyIterator{ + alias: this.alias, + forgefedTicketDependencyMember: v, + myIdx: idx, + parent: this, + } +} + // SetIRI sets an IRI value to be at the specified index for the property // "instrument". Panics if the index is out of bounds. func (this *ActivityStreamsInstrumentProperty) SetIRI(idx int, v *url.URL) { diff --git a/streams/impl/activitystreams/property_items/gen_pkg.go b/streams/impl/activitystreams/property_items/gen_pkg.go index edec953..35216bf 100644 --- a/streams/impl/activitystreams/property_items/gen_pkg.go +++ b/streams/impl/activitystreams/property_items/gen_pkg.go @@ -45,6 +45,10 @@ type privateManager interface { // 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" @@ -53,6 +57,10 @@ type privateManager interface { // 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" @@ -177,6 +185,9 @@ type privateManager interface { // 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" @@ -197,6 +208,10 @@ type privateManager interface { // 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" @@ -209,6 +224,14 @@ type privateManager interface { // 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" diff --git a/streams/impl/activitystreams/property_items/gen_property_activitystreams_items.go b/streams/impl/activitystreams/property_items/gen_property_activitystreams_items.go index b85aabe..bdc6a45 100644 --- a/streams/impl/activitystreams/property_items/gen_property_activitystreams_items.go +++ b/streams/impl/activitystreams/property_items/gen_property_activitystreams_items.go @@ -25,8 +25,10 @@ type ActivityStreamsItemsPropertyIterator struct { 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 @@ -56,14 +58,18 @@ type ActivityStreamsItemsPropertyIterator struct { 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 @@ -169,6 +175,12 @@ func deserializeActivityStreamsItemsPropertyIterator(i interface{}, aliasMap map alias: alias, } return this, nil + } else if v, err := mgr.DeserializeBranchForgeFed()(m, aliasMap); err == nil { + this := &ActivityStreamsItemsPropertyIterator{ + alias: alias, + forgefedBranchMember: v, + } + return this, nil } else if v, err := mgr.DeserializeCollectionActivityStreams()(m, aliasMap); err == nil { this := &ActivityStreamsItemsPropertyIterator{ activitystreamsCollectionMember: v, @@ -181,6 +193,12 @@ func deserializeActivityStreamsItemsPropertyIterator(i interface{}, aliasMap map alias: alias, } return this, nil + } else if v, err := mgr.DeserializeCommitForgeFed()(m, aliasMap); err == nil { + this := &ActivityStreamsItemsPropertyIterator{ + alias: alias, + forgefedCommitMember: v, + } + return this, nil } else if v, err := mgr.DeserializeCreateActivityStreams()(m, aliasMap); err == nil { this := &ActivityStreamsItemsPropertyIterator{ activitystreamsCreateMember: v, @@ -355,6 +373,12 @@ func deserializeActivityStreamsItemsPropertyIterator(i interface{}, aliasMap map alias: alias, } return this, nil + } else if v, err := mgr.DeserializePushForgeFed()(m, aliasMap); err == nil { + this := &ActivityStreamsItemsPropertyIterator{ + alias: alias, + forgefedPushMember: v, + } + return this, nil } else if v, err := mgr.DeserializeQuestionActivityStreams()(m, aliasMap); err == nil { this := &ActivityStreamsItemsPropertyIterator{ activitystreamsQuestionMember: v, @@ -385,6 +409,12 @@ func deserializeActivityStreamsItemsPropertyIterator(i interface{}, aliasMap map alias: alias, } return this, nil + } else if v, err := mgr.DeserializeRepositoryForgeFed()(m, aliasMap); err == nil { + this := &ActivityStreamsItemsPropertyIterator{ + alias: alias, + forgefedRepositoryMember: v, + } + return this, nil } else if v, err := mgr.DeserializeServiceActivityStreams()(m, aliasMap); err == nil { this := &ActivityStreamsItemsPropertyIterator{ activitystreamsServiceMember: v, @@ -403,6 +433,18 @@ func deserializeActivityStreamsItemsPropertyIterator(i interface{}, aliasMap map alias: alias, } return this, nil + } else if v, err := mgr.DeserializeTicketForgeFed()(m, aliasMap); err == nil { + this := &ActivityStreamsItemsPropertyIterator{ + alias: alias, + forgefedTicketMember: v, + } + return this, nil + } else if v, err := mgr.DeserializeTicketDependencyForgeFed()(m, aliasMap); err == nil { + this := &ActivityStreamsItemsPropertyIterator{ + alias: alias, + forgefedTicketDependencyMember: v, + } + return this, nil } else if v, err := mgr.DeserializeTombstoneActivityStreams()(m, aliasMap); err == nil { this := &ActivityStreamsItemsPropertyIterator{ activitystreamsTombstoneMember: v, @@ -826,6 +868,44 @@ func (this ActivityStreamsItemsPropertyIterator) GetActivityStreamsView() vocab. return this.activitystreamsViewMember } +// GetForgeFedBranch returns the value of this property. When IsForgeFedBranch +// returns false, GetForgeFedBranch will return an arbitrary value. +func (this ActivityStreamsItemsPropertyIterator) GetForgeFedBranch() vocab.ForgeFedBranch { + return this.forgefedBranchMember +} + +// GetForgeFedCommit returns the value of this property. When IsForgeFedCommit +// returns false, GetForgeFedCommit will return an arbitrary value. +func (this ActivityStreamsItemsPropertyIterator) GetForgeFedCommit() vocab.ForgeFedCommit { + return this.forgefedCommitMember +} + +// GetForgeFedPush returns the value of this property. When IsForgeFedPush returns +// false, GetForgeFedPush will return an arbitrary value. +func (this ActivityStreamsItemsPropertyIterator) GetForgeFedPush() vocab.ForgeFedPush { + return this.forgefedPushMember +} + +// GetForgeFedRepository returns the value of this property. When +// IsForgeFedRepository returns false, GetForgeFedRepository will return an +// arbitrary value. +func (this ActivityStreamsItemsPropertyIterator) GetForgeFedRepository() vocab.ForgeFedRepository { + return this.forgefedRepositoryMember +} + +// GetForgeFedTicket returns the value of this property. When IsForgeFedTicket +// returns false, GetForgeFedTicket will return an arbitrary value. +func (this ActivityStreamsItemsPropertyIterator) GetForgeFedTicket() vocab.ForgeFedTicket { + return this.forgefedTicketMember +} + +// GetForgeFedTicketDependency returns the value of this property. When +// IsForgeFedTicketDependency returns false, GetForgeFedTicketDependency will +// return an arbitrary value. +func (this ActivityStreamsItemsPropertyIterator) GetForgeFedTicketDependency() vocab.ForgeFedTicketDependency { + return this.forgefedTicketDependencyMember +} + // GetIRI returns the IRI of this property. When IsIRI returns false, GetIRI will // return an arbitrary value. func (this ActivityStreamsItemsPropertyIterator) GetIRI() *url.URL { @@ -881,12 +961,18 @@ func (this ActivityStreamsItemsPropertyIterator) GetType() vocab.Type { 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() } @@ -974,6 +1060,9 @@ func (this ActivityStreamsItemsPropertyIterator) GetType() vocab.Type { if this.IsActivityStreamsProfile() { return this.GetActivityStreamsProfile() } + if this.IsForgeFedPush() { + return this.GetForgeFedPush() + } if this.IsActivityStreamsQuestion() { return this.GetActivityStreamsQuestion() } @@ -989,6 +1078,9 @@ func (this ActivityStreamsItemsPropertyIterator) GetType() vocab.Type { if this.IsActivityStreamsRemove() { return this.GetActivityStreamsRemove() } + if this.IsForgeFedRepository() { + return this.GetForgeFedRepository() + } if this.IsActivityStreamsService() { return this.GetActivityStreamsService() } @@ -998,6 +1090,12 @@ func (this ActivityStreamsItemsPropertyIterator) GetType() vocab.Type { if this.IsActivityStreamsTentativeReject() { return this.GetActivityStreamsTentativeReject() } + if this.IsForgeFedTicket() { + return this.GetForgeFedTicket() + } + if this.IsForgeFedTicketDependency() { + return this.GetForgeFedTicketDependency() + } if this.IsActivityStreamsTombstone() { return this.GetActivityStreamsTombstone() } @@ -1033,8 +1131,10 @@ func (this ActivityStreamsItemsPropertyIterator) HasAny() bool { this.IsActivityStreamsArticle() || this.IsActivityStreamsAudio() || this.IsActivityStreamsBlock() || + this.IsForgeFedBranch() || this.IsActivityStreamsCollection() || this.IsActivityStreamsCollectionPage() || + this.IsForgeFedCommit() || this.IsActivityStreamsCreate() || this.IsActivityStreamsDelete() || this.IsActivityStreamsDislike() || @@ -1064,14 +1164,18 @@ func (this ActivityStreamsItemsPropertyIterator) HasAny() bool { 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() || @@ -1464,6 +1568,48 @@ func (this ActivityStreamsItemsPropertyIterator) IsActivityStreamsView() bool { return this.activitystreamsViewMember != nil } +// IsForgeFedBranch returns true if this property has a type of "Branch". When +// true, use the GetForgeFedBranch and SetForgeFedBranch methods to access and +// set this property. +func (this ActivityStreamsItemsPropertyIterator) IsForgeFedBranch() bool { + return this.forgefedBranchMember != nil +} + +// IsForgeFedCommit returns true if this property has a type of "Commit". When +// true, use the GetForgeFedCommit and SetForgeFedCommit methods to access and +// set this property. +func (this ActivityStreamsItemsPropertyIterator) IsForgeFedCommit() bool { + return this.forgefedCommitMember != nil +} + +// IsForgeFedPush returns true if this property has a type of "Push". When true, +// use the GetForgeFedPush and SetForgeFedPush methods to access and set this +// property. +func (this ActivityStreamsItemsPropertyIterator) IsForgeFedPush() bool { + return this.forgefedPushMember != nil +} + +// IsForgeFedRepository returns true if this property has a type of "Repository". +// When true, use the GetForgeFedRepository and SetForgeFedRepository methods +// to access and set this property. +func (this ActivityStreamsItemsPropertyIterator) IsForgeFedRepository() bool { + return this.forgefedRepositoryMember != nil +} + +// IsForgeFedTicket returns true if this property has a type of "Ticket". When +// true, use the GetForgeFedTicket and SetForgeFedTicket methods to access and +// set this property. +func (this ActivityStreamsItemsPropertyIterator) IsForgeFedTicket() bool { + return this.forgefedTicketMember != nil +} + +// IsForgeFedTicketDependency returns true if this property has a type of +// "TicketDependency". When true, use the GetForgeFedTicketDependency and +// SetForgeFedTicketDependency methods to access and set this property. +func (this ActivityStreamsItemsPropertyIterator) IsForgeFedTicketDependency() bool { + return this.forgefedTicketDependencyMember != nil +} + // IsIRI returns true if this property is an IRI. When true, use GetIRI and SetIRI // to access and set this property func (this ActivityStreamsItemsPropertyIterator) IsIRI() bool { @@ -1511,10 +1657,14 @@ func (this ActivityStreamsItemsPropertyIterator) JSONLDContext() map[string]stri 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() { @@ -1573,6 +1723,8 @@ func (this ActivityStreamsItemsPropertyIterator) JSONLDContext() map[string]stri 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() { @@ -1583,12 +1735,18 @@ func (this ActivityStreamsItemsPropertyIterator) JSONLDContext() map[string]stri 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() { @@ -1650,141 +1808,159 @@ func (this ActivityStreamsItemsPropertyIterator) KindIndex() int { if this.IsActivityStreamsBlock() { return 10 } - if this.IsActivityStreamsCollection() { + if this.IsForgeFedBranch() { return 11 } - if this.IsActivityStreamsCollectionPage() { + if this.IsActivityStreamsCollection() { return 12 } - if this.IsActivityStreamsCreate() { + if this.IsActivityStreamsCollectionPage() { return 13 } - if this.IsActivityStreamsDelete() { + if this.IsForgeFedCommit() { return 14 } - if this.IsActivityStreamsDislike() { + if this.IsActivityStreamsCreate() { return 15 } - if this.IsActivityStreamsDocument() { + if this.IsActivityStreamsDelete() { return 16 } - if this.IsTootEmoji() { + if this.IsActivityStreamsDislike() { return 17 } - if this.IsActivityStreamsEvent() { + if this.IsActivityStreamsDocument() { return 18 } - if this.IsActivityStreamsFlag() { + if this.IsTootEmoji() { return 19 } - if this.IsActivityStreamsFollow() { + if this.IsActivityStreamsEvent() { return 20 } - if this.IsActivityStreamsGroup() { + if this.IsActivityStreamsFlag() { return 21 } - if this.IsTootIdentityProof() { + if this.IsActivityStreamsFollow() { return 22 } - if this.IsActivityStreamsIgnore() { + if this.IsActivityStreamsGroup() { return 23 } - if this.IsActivityStreamsImage() { + if this.IsTootIdentityProof() { return 24 } - if this.IsActivityStreamsIntransitiveActivity() { + if this.IsActivityStreamsIgnore() { return 25 } - if this.IsActivityStreamsInvite() { + if this.IsActivityStreamsImage() { return 26 } - if this.IsActivityStreamsJoin() { + if this.IsActivityStreamsIntransitiveActivity() { return 27 } - if this.IsActivityStreamsLeave() { + if this.IsActivityStreamsInvite() { return 28 } - if this.IsActivityStreamsLike() { + if this.IsActivityStreamsJoin() { return 29 } - if this.IsActivityStreamsListen() { + if this.IsActivityStreamsLeave() { return 30 } - if this.IsActivityStreamsMention() { + if this.IsActivityStreamsLike() { return 31 } - if this.IsActivityStreamsMove() { + if this.IsActivityStreamsListen() { return 32 } - if this.IsActivityStreamsNote() { + if this.IsActivityStreamsMention() { return 33 } - if this.IsActivityStreamsOffer() { + if this.IsActivityStreamsMove() { return 34 } - if this.IsActivityStreamsOrderedCollection() { + if this.IsActivityStreamsNote() { return 35 } - if this.IsActivityStreamsOrderedCollectionPage() { + if this.IsActivityStreamsOffer() { return 36 } - if this.IsActivityStreamsOrganization() { + if this.IsActivityStreamsOrderedCollection() { return 37 } - if this.IsActivityStreamsPage() { + if this.IsActivityStreamsOrderedCollectionPage() { return 38 } - if this.IsActivityStreamsPerson() { + if this.IsActivityStreamsOrganization() { return 39 } - if this.IsActivityStreamsPlace() { + if this.IsActivityStreamsPage() { return 40 } - if this.IsActivityStreamsProfile() { + if this.IsActivityStreamsPerson() { return 41 } - if this.IsActivityStreamsQuestion() { + if this.IsActivityStreamsPlace() { return 42 } - if this.IsActivityStreamsRead() { + if this.IsActivityStreamsProfile() { return 43 } - if this.IsActivityStreamsReject() { + if this.IsForgeFedPush() { return 44 } - if this.IsActivityStreamsRelationship() { + if this.IsActivityStreamsQuestion() { return 45 } - if this.IsActivityStreamsRemove() { + if this.IsActivityStreamsRead() { return 46 } - if this.IsActivityStreamsService() { + if this.IsActivityStreamsReject() { return 47 } - if this.IsActivityStreamsTentativeAccept() { + if this.IsActivityStreamsRelationship() { return 48 } - if this.IsActivityStreamsTentativeReject() { + if this.IsActivityStreamsRemove() { return 49 } - if this.IsActivityStreamsTombstone() { + if this.IsForgeFedRepository() { return 50 } - if this.IsActivityStreamsTravel() { + if this.IsActivityStreamsService() { return 51 } - if this.IsActivityStreamsUndo() { + if this.IsActivityStreamsTentativeAccept() { return 52 } - if this.IsActivityStreamsUpdate() { + if this.IsActivityStreamsTentativeReject() { return 53 } - if this.IsActivityStreamsVideo() { + if this.IsForgeFedTicket() { return 54 } - if this.IsActivityStreamsView() { + 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 } @@ -1824,10 +2000,14 @@ func (this ActivityStreamsItemsPropertyIterator) LessThan(o vocab.ActivityStream 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() { @@ -1886,6 +2066,8 @@ func (this ActivityStreamsItemsPropertyIterator) LessThan(o vocab.ActivityStream 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() { @@ -1896,12 +2078,18 @@ func (this ActivityStreamsItemsPropertyIterator) LessThan(o vocab.ActivityStream 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() { @@ -2325,6 +2513,48 @@ func (this *ActivityStreamsItemsPropertyIterator) SetActivityStreamsView(v vocab this.activitystreamsViewMember = v } +// SetForgeFedBranch sets the value of this property. Calling IsForgeFedBranch +// afterwards returns true. +func (this *ActivityStreamsItemsPropertyIterator) SetForgeFedBranch(v vocab.ForgeFedBranch) { + this.clear() + this.forgefedBranchMember = v +} + +// SetForgeFedCommit sets the value of this property. Calling IsForgeFedCommit +// afterwards returns true. +func (this *ActivityStreamsItemsPropertyIterator) SetForgeFedCommit(v vocab.ForgeFedCommit) { + this.clear() + this.forgefedCommitMember = v +} + +// SetForgeFedPush sets the value of this property. Calling IsForgeFedPush +// afterwards returns true. +func (this *ActivityStreamsItemsPropertyIterator) SetForgeFedPush(v vocab.ForgeFedPush) { + this.clear() + this.forgefedPushMember = v +} + +// SetForgeFedRepository sets the value of this property. Calling +// IsForgeFedRepository afterwards returns true. +func (this *ActivityStreamsItemsPropertyIterator) SetForgeFedRepository(v vocab.ForgeFedRepository) { + this.clear() + this.forgefedRepositoryMember = v +} + +// SetForgeFedTicket sets the value of this property. Calling IsForgeFedTicket +// afterwards returns true. +func (this *ActivityStreamsItemsPropertyIterator) SetForgeFedTicket(v vocab.ForgeFedTicket) { + this.clear() + this.forgefedTicketMember = v +} + +// SetForgeFedTicketDependency sets the value of this property. Calling +// IsForgeFedTicketDependency afterwards returns true. +func (this *ActivityStreamsItemsPropertyIterator) SetForgeFedTicketDependency(v vocab.ForgeFedTicketDependency) { + this.clear() + this.forgefedTicketDependencyMember = v +} + // SetIRI sets the value of this property. Calling IsIRI afterwards returns true. func (this *ActivityStreamsItemsPropertyIterator) SetIRI(v *url.URL) { this.clear() @@ -2392,6 +2622,10 @@ func (this *ActivityStreamsItemsPropertyIterator) SetType(t vocab.Type) error { 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 @@ -2400,6 +2634,10 @@ func (this *ActivityStreamsItemsPropertyIterator) SetType(t vocab.Type) error { 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 @@ -2516,6 +2754,10 @@ func (this *ActivityStreamsItemsPropertyIterator) SetType(t vocab.Type) error { 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 @@ -2536,6 +2778,10 @@ func (this *ActivityStreamsItemsPropertyIterator) SetType(t vocab.Type) error { 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 @@ -2548,6 +2794,14 @@ func (this *ActivityStreamsItemsPropertyIterator) SetType(t vocab.Type) error { 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 @@ -2590,8 +2844,10 @@ func (this *ActivityStreamsItemsPropertyIterator) clear() { 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 @@ -2621,14 +2877,18 @@ func (this *ActivityStreamsItemsPropertyIterator) clear() { 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 @@ -2666,10 +2926,14 @@ func (this ActivityStreamsItemsPropertyIterator) serialize() (interface{}, error 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() { @@ -2728,6 +2992,8 @@ func (this ActivityStreamsItemsPropertyIterator) serialize() (interface{}, error 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() { @@ -2738,12 +3004,18 @@ func (this ActivityStreamsItemsPropertyIterator) serialize() (interface{}, error 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() { @@ -3422,6 +3694,73 @@ func (this *ActivityStreamsItemsProperty) AppendActivityStreamsView(v vocab.Acti }) } +// AppendForgeFedBranch appends a Branch value to the back of a list of the +// property "items". Invalidates iterators that are traversing using Prev. +func (this *ActivityStreamsItemsProperty) AppendForgeFedBranch(v vocab.ForgeFedBranch) { + this.properties = append(this.properties, &ActivityStreamsItemsPropertyIterator{ + alias: this.alias, + forgefedBranchMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendForgeFedCommit appends a Commit value to the back of a list of the +// property "items". Invalidates iterators that are traversing using Prev. +func (this *ActivityStreamsItemsProperty) AppendForgeFedCommit(v vocab.ForgeFedCommit) { + this.properties = append(this.properties, &ActivityStreamsItemsPropertyIterator{ + alias: this.alias, + forgefedCommitMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendForgeFedPush appends a Push value to the back of a list of the property +// "items". Invalidates iterators that are traversing using Prev. +func (this *ActivityStreamsItemsProperty) AppendForgeFedPush(v vocab.ForgeFedPush) { + this.properties = append(this.properties, &ActivityStreamsItemsPropertyIterator{ + alias: this.alias, + forgefedPushMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendForgeFedRepository appends a Repository value to the back of a list of +// the property "items". Invalidates iterators that are traversing using Prev. +func (this *ActivityStreamsItemsProperty) AppendForgeFedRepository(v vocab.ForgeFedRepository) { + this.properties = append(this.properties, &ActivityStreamsItemsPropertyIterator{ + alias: this.alias, + forgefedRepositoryMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendForgeFedTicket appends a Ticket value to the back of a list of the +// property "items". Invalidates iterators that are traversing using Prev. +func (this *ActivityStreamsItemsProperty) AppendForgeFedTicket(v vocab.ForgeFedTicket) { + this.properties = append(this.properties, &ActivityStreamsItemsPropertyIterator{ + alias: this.alias, + forgefedTicketMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendForgeFedTicketDependency appends a TicketDependency value to the back of +// a list of the property "items". Invalidates iterators that are traversing +// using Prev. +func (this *ActivityStreamsItemsProperty) AppendForgeFedTicketDependency(v vocab.ForgeFedTicketDependency) { + this.properties = append(this.properties, &ActivityStreamsItemsPropertyIterator{ + alias: this.alias, + forgefedTicketDependencyMember: v, + myIdx: this.Len(), + parent: this, + }) +} + // AppendIRI appends an IRI value to the back of a list of the property "items" func (this *ActivityStreamsItemsProperty) AppendIRI(v *url.URL) { this.properties = append(this.properties, &ActivityStreamsItemsPropertyIterator{ @@ -4417,6 +4756,108 @@ func (this *ActivityStreamsItemsProperty) InsertActivityStreamsView(idx int, v v } } +// InsertForgeFedBranch inserts a Branch value at the specified index for a +// property "items". Existing elements at that index and higher are shifted +// back once. Invalidates all iterators. +func (this *ActivityStreamsItemsProperty) InsertForgeFedBranch(idx int, v vocab.ForgeFedBranch) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsItemsPropertyIterator{ + alias: this.alias, + forgefedBranchMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertForgeFedCommit inserts a Commit value at the specified index for a +// property "items". Existing elements at that index and higher are shifted +// back once. Invalidates all iterators. +func (this *ActivityStreamsItemsProperty) InsertForgeFedCommit(idx int, v vocab.ForgeFedCommit) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsItemsPropertyIterator{ + alias: this.alias, + forgefedCommitMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertForgeFedPush inserts a Push value at the specified index for a property +// "items". Existing elements at that index and higher are shifted back once. +// Invalidates all iterators. +func (this *ActivityStreamsItemsProperty) InsertForgeFedPush(idx int, v vocab.ForgeFedPush) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsItemsPropertyIterator{ + alias: this.alias, + forgefedPushMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertForgeFedRepository inserts a Repository value at the specified index for +// a property "items". Existing elements at that index and higher are shifted +// back once. Invalidates all iterators. +func (this *ActivityStreamsItemsProperty) InsertForgeFedRepository(idx int, v vocab.ForgeFedRepository) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsItemsPropertyIterator{ + alias: this.alias, + forgefedRepositoryMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertForgeFedTicket inserts a Ticket value at the specified index for a +// property "items". Existing elements at that index and higher are shifted +// back once. Invalidates all iterators. +func (this *ActivityStreamsItemsProperty) InsertForgeFedTicket(idx int, v vocab.ForgeFedTicket) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsItemsPropertyIterator{ + alias: this.alias, + forgefedTicketMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertForgeFedTicketDependency inserts a TicketDependency value at the +// specified index for a property "items". Existing elements at that index and +// higher are shifted back once. Invalidates all iterators. +func (this *ActivityStreamsItemsProperty) InsertForgeFedTicketDependency(idx int, v vocab.ForgeFedTicketDependency) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsItemsPropertyIterator{ + alias: this.alias, + forgefedTicketDependencyMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + // Insert inserts an IRI value at the specified index for a property "items". // Existing elements at that index and higher are shifted back once. // Invalidates all iterators. @@ -4574,182 +5015,206 @@ func (this ActivityStreamsItemsProperty) Less(i, j int) bool { rhs := this.properties[j].GetActivityStreamsBlock() return lhs.LessThan(rhs) } else if idx1 == 11 { + lhs := this.properties[i].GetForgeFedBranch() + rhs := this.properties[j].GetForgeFedBranch() + return lhs.LessThan(rhs) + } else if idx1 == 12 { lhs := this.properties[i].GetActivityStreamsCollection() rhs := this.properties[j].GetActivityStreamsCollection() return lhs.LessThan(rhs) - } else if idx1 == 12 { + } else if idx1 == 13 { lhs := this.properties[i].GetActivityStreamsCollectionPage() rhs := this.properties[j].GetActivityStreamsCollectionPage() return lhs.LessThan(rhs) - } else if idx1 == 13 { + } else if idx1 == 14 { + lhs := this.properties[i].GetForgeFedCommit() + rhs := this.properties[j].GetForgeFedCommit() + return lhs.LessThan(rhs) + } else if idx1 == 15 { lhs := this.properties[i].GetActivityStreamsCreate() rhs := this.properties[j].GetActivityStreamsCreate() return lhs.LessThan(rhs) - } else if idx1 == 14 { + } else if idx1 == 16 { lhs := this.properties[i].GetActivityStreamsDelete() rhs := this.properties[j].GetActivityStreamsDelete() return lhs.LessThan(rhs) - } else if idx1 == 15 { + } else if idx1 == 17 { lhs := this.properties[i].GetActivityStreamsDislike() rhs := this.properties[j].GetActivityStreamsDislike() return lhs.LessThan(rhs) - } else if idx1 == 16 { + } else if idx1 == 18 { lhs := this.properties[i].GetActivityStreamsDocument() rhs := this.properties[j].GetActivityStreamsDocument() return lhs.LessThan(rhs) - } else if idx1 == 17 { + } else if idx1 == 19 { lhs := this.properties[i].GetTootEmoji() rhs := this.properties[j].GetTootEmoji() return lhs.LessThan(rhs) - } else if idx1 == 18 { + } else if idx1 == 20 { lhs := this.properties[i].GetActivityStreamsEvent() rhs := this.properties[j].GetActivityStreamsEvent() return lhs.LessThan(rhs) - } else if idx1 == 19 { + } else if idx1 == 21 { lhs := this.properties[i].GetActivityStreamsFlag() rhs := this.properties[j].GetActivityStreamsFlag() return lhs.LessThan(rhs) - } else if idx1 == 20 { + } else if idx1 == 22 { lhs := this.properties[i].GetActivityStreamsFollow() rhs := this.properties[j].GetActivityStreamsFollow() return lhs.LessThan(rhs) - } else if idx1 == 21 { + } else if idx1 == 23 { lhs := this.properties[i].GetActivityStreamsGroup() rhs := this.properties[j].GetActivityStreamsGroup() return lhs.LessThan(rhs) - } else if idx1 == 22 { + } else if idx1 == 24 { lhs := this.properties[i].GetTootIdentityProof() rhs := this.properties[j].GetTootIdentityProof() return lhs.LessThan(rhs) - } else if idx1 == 23 { + } else if idx1 == 25 { lhs := this.properties[i].GetActivityStreamsIgnore() rhs := this.properties[j].GetActivityStreamsIgnore() return lhs.LessThan(rhs) - } else if idx1 == 24 { + } else if idx1 == 26 { lhs := this.properties[i].GetActivityStreamsImage() rhs := this.properties[j].GetActivityStreamsImage() return lhs.LessThan(rhs) - } else if idx1 == 25 { + } else if idx1 == 27 { lhs := this.properties[i].GetActivityStreamsIntransitiveActivity() rhs := this.properties[j].GetActivityStreamsIntransitiveActivity() return lhs.LessThan(rhs) - } else if idx1 == 26 { + } else if idx1 == 28 { lhs := this.properties[i].GetActivityStreamsInvite() rhs := this.properties[j].GetActivityStreamsInvite() return lhs.LessThan(rhs) - } else if idx1 == 27 { + } else if idx1 == 29 { lhs := this.properties[i].GetActivityStreamsJoin() rhs := this.properties[j].GetActivityStreamsJoin() return lhs.LessThan(rhs) - } else if idx1 == 28 { + } else if idx1 == 30 { lhs := this.properties[i].GetActivityStreamsLeave() rhs := this.properties[j].GetActivityStreamsLeave() return lhs.LessThan(rhs) - } else if idx1 == 29 { + } else if idx1 == 31 { lhs := this.properties[i].GetActivityStreamsLike() rhs := this.properties[j].GetActivityStreamsLike() return lhs.LessThan(rhs) - } else if idx1 == 30 { + } else if idx1 == 32 { lhs := this.properties[i].GetActivityStreamsListen() rhs := this.properties[j].GetActivityStreamsListen() return lhs.LessThan(rhs) - } else if idx1 == 31 { + } else if idx1 == 33 { lhs := this.properties[i].GetActivityStreamsMention() rhs := this.properties[j].GetActivityStreamsMention() return lhs.LessThan(rhs) - } else if idx1 == 32 { + } else if idx1 == 34 { lhs := this.properties[i].GetActivityStreamsMove() rhs := this.properties[j].GetActivityStreamsMove() return lhs.LessThan(rhs) - } else if idx1 == 33 { + } else if idx1 == 35 { lhs := this.properties[i].GetActivityStreamsNote() rhs := this.properties[j].GetActivityStreamsNote() return lhs.LessThan(rhs) - } else if idx1 == 34 { + } else if idx1 == 36 { lhs := this.properties[i].GetActivityStreamsOffer() rhs := this.properties[j].GetActivityStreamsOffer() return lhs.LessThan(rhs) - } else if idx1 == 35 { + } else if idx1 == 37 { lhs := this.properties[i].GetActivityStreamsOrderedCollection() rhs := this.properties[j].GetActivityStreamsOrderedCollection() return lhs.LessThan(rhs) - } else if idx1 == 36 { + } else if idx1 == 38 { lhs := this.properties[i].GetActivityStreamsOrderedCollectionPage() rhs := this.properties[j].GetActivityStreamsOrderedCollectionPage() return lhs.LessThan(rhs) - } else if idx1 == 37 { + } else if idx1 == 39 { lhs := this.properties[i].GetActivityStreamsOrganization() rhs := this.properties[j].GetActivityStreamsOrganization() return lhs.LessThan(rhs) - } else if idx1 == 38 { + } else if idx1 == 40 { lhs := this.properties[i].GetActivityStreamsPage() rhs := this.properties[j].GetActivityStreamsPage() return lhs.LessThan(rhs) - } else if idx1 == 39 { + } else if idx1 == 41 { lhs := this.properties[i].GetActivityStreamsPerson() rhs := this.properties[j].GetActivityStreamsPerson() return lhs.LessThan(rhs) - } else if idx1 == 40 { + } else if idx1 == 42 { lhs := this.properties[i].GetActivityStreamsPlace() rhs := this.properties[j].GetActivityStreamsPlace() return lhs.LessThan(rhs) - } else if idx1 == 41 { + } else if idx1 == 43 { lhs := this.properties[i].GetActivityStreamsProfile() rhs := this.properties[j].GetActivityStreamsProfile() return lhs.LessThan(rhs) - } else if idx1 == 42 { + } else if idx1 == 44 { + lhs := this.properties[i].GetForgeFedPush() + rhs := this.properties[j].GetForgeFedPush() + return lhs.LessThan(rhs) + } else if idx1 == 45 { lhs := this.properties[i].GetActivityStreamsQuestion() rhs := this.properties[j].GetActivityStreamsQuestion() return lhs.LessThan(rhs) - } else if idx1 == 43 { + } else if idx1 == 46 { lhs := this.properties[i].GetActivityStreamsRead() rhs := this.properties[j].GetActivityStreamsRead() return lhs.LessThan(rhs) - } else if idx1 == 44 { + } else if idx1 == 47 { lhs := this.properties[i].GetActivityStreamsReject() rhs := this.properties[j].GetActivityStreamsReject() return lhs.LessThan(rhs) - } else if idx1 == 45 { + } else if idx1 == 48 { lhs := this.properties[i].GetActivityStreamsRelationship() rhs := this.properties[j].GetActivityStreamsRelationship() return lhs.LessThan(rhs) - } else if idx1 == 46 { + } else if idx1 == 49 { lhs := this.properties[i].GetActivityStreamsRemove() rhs := this.properties[j].GetActivityStreamsRemove() return lhs.LessThan(rhs) - } else if idx1 == 47 { + } else if idx1 == 50 { + lhs := this.properties[i].GetForgeFedRepository() + rhs := this.properties[j].GetForgeFedRepository() + return lhs.LessThan(rhs) + } else if idx1 == 51 { lhs := this.properties[i].GetActivityStreamsService() rhs := this.properties[j].GetActivityStreamsService() return lhs.LessThan(rhs) - } else if idx1 == 48 { + } else if idx1 == 52 { lhs := this.properties[i].GetActivityStreamsTentativeAccept() rhs := this.properties[j].GetActivityStreamsTentativeAccept() return lhs.LessThan(rhs) - } else if idx1 == 49 { + } else if idx1 == 53 { lhs := this.properties[i].GetActivityStreamsTentativeReject() rhs := this.properties[j].GetActivityStreamsTentativeReject() return lhs.LessThan(rhs) - } else if idx1 == 50 { + } else if idx1 == 54 { + lhs := this.properties[i].GetForgeFedTicket() + rhs := this.properties[j].GetForgeFedTicket() + return lhs.LessThan(rhs) + } else if idx1 == 55 { + lhs := this.properties[i].GetForgeFedTicketDependency() + rhs := this.properties[j].GetForgeFedTicketDependency() + return lhs.LessThan(rhs) + } else if idx1 == 56 { lhs := this.properties[i].GetActivityStreamsTombstone() rhs := this.properties[j].GetActivityStreamsTombstone() return lhs.LessThan(rhs) - } else if idx1 == 51 { + } else if idx1 == 57 { lhs := this.properties[i].GetActivityStreamsTravel() rhs := this.properties[j].GetActivityStreamsTravel() return lhs.LessThan(rhs) - } else if idx1 == 52 { + } else if idx1 == 58 { lhs := this.properties[i].GetActivityStreamsUndo() rhs := this.properties[j].GetActivityStreamsUndo() return lhs.LessThan(rhs) - } else if idx1 == 53 { + } else if idx1 == 59 { lhs := this.properties[i].GetActivityStreamsUpdate() rhs := this.properties[j].GetActivityStreamsUpdate() return lhs.LessThan(rhs) - } else if idx1 == 54 { + } else if idx1 == 60 { lhs := this.properties[i].GetActivityStreamsVideo() rhs := this.properties[j].GetActivityStreamsVideo() return lhs.LessThan(rhs) - } else if idx1 == 55 { + } else if idx1 == 61 { lhs := this.properties[i].GetActivityStreamsView() rhs := this.properties[j].GetActivityStreamsView() return lhs.LessThan(rhs) @@ -5550,6 +6015,90 @@ func (this *ActivityStreamsItemsProperty) PrependActivityStreamsView(v vocab.Act } } +// PrependForgeFedBranch prepends a Branch value to the front of a list of the +// property "items". Invalidates all iterators. +func (this *ActivityStreamsItemsProperty) PrependForgeFedBranch(v vocab.ForgeFedBranch) { + this.properties = append([]*ActivityStreamsItemsPropertyIterator{{ + alias: this.alias, + forgefedBranchMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependForgeFedCommit prepends a Commit value to the front of a list of the +// property "items". Invalidates all iterators. +func (this *ActivityStreamsItemsProperty) PrependForgeFedCommit(v vocab.ForgeFedCommit) { + this.properties = append([]*ActivityStreamsItemsPropertyIterator{{ + alias: this.alias, + forgefedCommitMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependForgeFedPush prepends a Push value to the front of a list of the +// property "items". Invalidates all iterators. +func (this *ActivityStreamsItemsProperty) PrependForgeFedPush(v vocab.ForgeFedPush) { + this.properties = append([]*ActivityStreamsItemsPropertyIterator{{ + alias: this.alias, + forgefedPushMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependForgeFedRepository prepends a Repository value to the front of a list of +// the property "items". Invalidates all iterators. +func (this *ActivityStreamsItemsProperty) PrependForgeFedRepository(v vocab.ForgeFedRepository) { + this.properties = append([]*ActivityStreamsItemsPropertyIterator{{ + alias: this.alias, + forgefedRepositoryMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependForgeFedTicket prepends a Ticket value to the front of a list of the +// property "items". Invalidates all iterators. +func (this *ActivityStreamsItemsProperty) PrependForgeFedTicket(v vocab.ForgeFedTicket) { + this.properties = append([]*ActivityStreamsItemsPropertyIterator{{ + alias: this.alias, + forgefedTicketMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependForgeFedTicketDependency prepends a TicketDependency value to the front +// of a list of the property "items". Invalidates all iterators. +func (this *ActivityStreamsItemsProperty) PrependForgeFedTicketDependency(v vocab.ForgeFedTicketDependency) { + this.properties = append([]*ActivityStreamsItemsPropertyIterator{{ + alias: this.alias, + forgefedTicketDependencyMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + // PrependIRI prepends an IRI value to the front of a list of the property "items". func (this *ActivityStreamsItemsProperty) PrependIRI(v *url.URL) { this.properties = append([]*ActivityStreamsItemsPropertyIterator{{ @@ -6345,6 +6894,83 @@ func (this *ActivityStreamsItemsProperty) SetActivityStreamsView(idx int, v voca } } +// SetForgeFedBranch sets a Branch value to be at the specified index for the +// property "items". Panics if the index is out of bounds. Invalidates all +// iterators. +func (this *ActivityStreamsItemsProperty) SetForgeFedBranch(idx int, v vocab.ForgeFedBranch) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsItemsPropertyIterator{ + alias: this.alias, + forgefedBranchMember: v, + myIdx: idx, + parent: this, + } +} + +// SetForgeFedCommit sets a Commit value to be at the specified index for the +// property "items". Panics if the index is out of bounds. Invalidates all +// iterators. +func (this *ActivityStreamsItemsProperty) SetForgeFedCommit(idx int, v vocab.ForgeFedCommit) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsItemsPropertyIterator{ + alias: this.alias, + forgefedCommitMember: v, + myIdx: idx, + parent: this, + } +} + +// SetForgeFedPush sets a Push value to be at the specified index for the property +// "items". Panics if the index is out of bounds. Invalidates all iterators. +func (this *ActivityStreamsItemsProperty) SetForgeFedPush(idx int, v vocab.ForgeFedPush) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsItemsPropertyIterator{ + alias: this.alias, + forgefedPushMember: v, + myIdx: idx, + parent: this, + } +} + +// SetForgeFedRepository sets a Repository value to be at the specified index for +// the property "items". Panics if the index is out of bounds. Invalidates all +// iterators. +func (this *ActivityStreamsItemsProperty) SetForgeFedRepository(idx int, v vocab.ForgeFedRepository) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsItemsPropertyIterator{ + alias: this.alias, + forgefedRepositoryMember: v, + myIdx: idx, + parent: this, + } +} + +// SetForgeFedTicket sets a Ticket value to be at the specified index for the +// property "items". Panics if the index is out of bounds. Invalidates all +// iterators. +func (this *ActivityStreamsItemsProperty) SetForgeFedTicket(idx int, v vocab.ForgeFedTicket) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsItemsPropertyIterator{ + alias: this.alias, + forgefedTicketMember: v, + myIdx: idx, + parent: this, + } +} + +// SetForgeFedTicketDependency sets a TicketDependency value to be at the +// specified index for the property "items". Panics if the index is out of +// bounds. Invalidates all iterators. +func (this *ActivityStreamsItemsProperty) SetForgeFedTicketDependency(idx int, v vocab.ForgeFedTicketDependency) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsItemsPropertyIterator{ + alias: this.alias, + forgefedTicketDependencyMember: v, + myIdx: idx, + parent: this, + } +} + // SetIRI sets an IRI value to be at the specified index for the property "items". // Panics if the index is out of bounds. func (this *ActivityStreamsItemsProperty) SetIRI(idx int, v *url.URL) { diff --git a/streams/impl/activitystreams/property_location/gen_pkg.go b/streams/impl/activitystreams/property_location/gen_pkg.go index 34927e9..946433a 100644 --- a/streams/impl/activitystreams/property_location/gen_pkg.go +++ b/streams/impl/activitystreams/property_location/gen_pkg.go @@ -45,6 +45,10 @@ type privateManager interface { // 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" @@ -53,6 +57,10 @@ type privateManager interface { // 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" @@ -177,6 +185,9 @@ type privateManager interface { // 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" @@ -197,6 +208,10 @@ type privateManager interface { // 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" @@ -209,6 +224,14 @@ type privateManager interface { // 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" diff --git a/streams/impl/activitystreams/property_location/gen_property_activitystreams_location.go b/streams/impl/activitystreams/property_location/gen_property_activitystreams_location.go index 4895cef..1644d8e 100644 --- a/streams/impl/activitystreams/property_location/gen_property_activitystreams_location.go +++ b/streams/impl/activitystreams/property_location/gen_property_activitystreams_location.go @@ -25,8 +25,10 @@ type ActivityStreamsLocationPropertyIterator struct { 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 @@ -56,14 +58,18 @@ type ActivityStreamsLocationPropertyIterator struct { 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 @@ -169,6 +175,12 @@ func deserializeActivityStreamsLocationPropertyIterator(i interface{}, aliasMap alias: alias, } return this, nil + } else if v, err := mgr.DeserializeBranchForgeFed()(m, aliasMap); err == nil { + this := &ActivityStreamsLocationPropertyIterator{ + alias: alias, + forgefedBranchMember: v, + } + return this, nil } else if v, err := mgr.DeserializeCollectionActivityStreams()(m, aliasMap); err == nil { this := &ActivityStreamsLocationPropertyIterator{ activitystreamsCollectionMember: v, @@ -181,6 +193,12 @@ func deserializeActivityStreamsLocationPropertyIterator(i interface{}, aliasMap alias: alias, } return this, nil + } else if v, err := mgr.DeserializeCommitForgeFed()(m, aliasMap); err == nil { + this := &ActivityStreamsLocationPropertyIterator{ + alias: alias, + forgefedCommitMember: v, + } + return this, nil } else if v, err := mgr.DeserializeCreateActivityStreams()(m, aliasMap); err == nil { this := &ActivityStreamsLocationPropertyIterator{ activitystreamsCreateMember: v, @@ -355,6 +373,12 @@ func deserializeActivityStreamsLocationPropertyIterator(i interface{}, aliasMap alias: alias, } return this, nil + } else if v, err := mgr.DeserializePushForgeFed()(m, aliasMap); err == nil { + this := &ActivityStreamsLocationPropertyIterator{ + alias: alias, + forgefedPushMember: v, + } + return this, nil } else if v, err := mgr.DeserializeQuestionActivityStreams()(m, aliasMap); err == nil { this := &ActivityStreamsLocationPropertyIterator{ activitystreamsQuestionMember: v, @@ -385,6 +409,12 @@ func deserializeActivityStreamsLocationPropertyIterator(i interface{}, aliasMap alias: alias, } return this, nil + } else if v, err := mgr.DeserializeRepositoryForgeFed()(m, aliasMap); err == nil { + this := &ActivityStreamsLocationPropertyIterator{ + alias: alias, + forgefedRepositoryMember: v, + } + return this, nil } else if v, err := mgr.DeserializeServiceActivityStreams()(m, aliasMap); err == nil { this := &ActivityStreamsLocationPropertyIterator{ activitystreamsServiceMember: v, @@ -403,6 +433,18 @@ func deserializeActivityStreamsLocationPropertyIterator(i interface{}, aliasMap alias: alias, } return this, nil + } else if v, err := mgr.DeserializeTicketForgeFed()(m, aliasMap); err == nil { + this := &ActivityStreamsLocationPropertyIterator{ + alias: alias, + forgefedTicketMember: v, + } + return this, nil + } else if v, err := mgr.DeserializeTicketDependencyForgeFed()(m, aliasMap); err == nil { + this := &ActivityStreamsLocationPropertyIterator{ + alias: alias, + forgefedTicketDependencyMember: v, + } + return this, nil } else if v, err := mgr.DeserializeTombstoneActivityStreams()(m, aliasMap); err == nil { this := &ActivityStreamsLocationPropertyIterator{ activitystreamsTombstoneMember: v, @@ -826,6 +868,44 @@ func (this ActivityStreamsLocationPropertyIterator) GetActivityStreamsView() voc return this.activitystreamsViewMember } +// GetForgeFedBranch returns the value of this property. When IsForgeFedBranch +// returns false, GetForgeFedBranch will return an arbitrary value. +func (this ActivityStreamsLocationPropertyIterator) GetForgeFedBranch() vocab.ForgeFedBranch { + return this.forgefedBranchMember +} + +// GetForgeFedCommit returns the value of this property. When IsForgeFedCommit +// returns false, GetForgeFedCommit will return an arbitrary value. +func (this ActivityStreamsLocationPropertyIterator) GetForgeFedCommit() vocab.ForgeFedCommit { + return this.forgefedCommitMember +} + +// GetForgeFedPush returns the value of this property. When IsForgeFedPush returns +// false, GetForgeFedPush will return an arbitrary value. +func (this ActivityStreamsLocationPropertyIterator) GetForgeFedPush() vocab.ForgeFedPush { + return this.forgefedPushMember +} + +// GetForgeFedRepository returns the value of this property. When +// IsForgeFedRepository returns false, GetForgeFedRepository will return an +// arbitrary value. +func (this ActivityStreamsLocationPropertyIterator) GetForgeFedRepository() vocab.ForgeFedRepository { + return this.forgefedRepositoryMember +} + +// GetForgeFedTicket returns the value of this property. When IsForgeFedTicket +// returns false, GetForgeFedTicket will return an arbitrary value. +func (this ActivityStreamsLocationPropertyIterator) GetForgeFedTicket() vocab.ForgeFedTicket { + return this.forgefedTicketMember +} + +// GetForgeFedTicketDependency returns the value of this property. When +// IsForgeFedTicketDependency returns false, GetForgeFedTicketDependency will +// return an arbitrary value. +func (this ActivityStreamsLocationPropertyIterator) GetForgeFedTicketDependency() vocab.ForgeFedTicketDependency { + return this.forgefedTicketDependencyMember +} + // GetIRI returns the IRI of this property. When IsIRI returns false, GetIRI will // return an arbitrary value. func (this ActivityStreamsLocationPropertyIterator) GetIRI() *url.URL { @@ -881,12 +961,18 @@ func (this ActivityStreamsLocationPropertyIterator) GetType() vocab.Type { 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() } @@ -974,6 +1060,9 @@ func (this ActivityStreamsLocationPropertyIterator) GetType() vocab.Type { if this.IsActivityStreamsProfile() { return this.GetActivityStreamsProfile() } + if this.IsForgeFedPush() { + return this.GetForgeFedPush() + } if this.IsActivityStreamsQuestion() { return this.GetActivityStreamsQuestion() } @@ -989,6 +1078,9 @@ func (this ActivityStreamsLocationPropertyIterator) GetType() vocab.Type { if this.IsActivityStreamsRemove() { return this.GetActivityStreamsRemove() } + if this.IsForgeFedRepository() { + return this.GetForgeFedRepository() + } if this.IsActivityStreamsService() { return this.GetActivityStreamsService() } @@ -998,6 +1090,12 @@ func (this ActivityStreamsLocationPropertyIterator) GetType() vocab.Type { if this.IsActivityStreamsTentativeReject() { return this.GetActivityStreamsTentativeReject() } + if this.IsForgeFedTicket() { + return this.GetForgeFedTicket() + } + if this.IsForgeFedTicketDependency() { + return this.GetForgeFedTicketDependency() + } if this.IsActivityStreamsTombstone() { return this.GetActivityStreamsTombstone() } @@ -1033,8 +1131,10 @@ func (this ActivityStreamsLocationPropertyIterator) HasAny() bool { this.IsActivityStreamsArticle() || this.IsActivityStreamsAudio() || this.IsActivityStreamsBlock() || + this.IsForgeFedBranch() || this.IsActivityStreamsCollection() || this.IsActivityStreamsCollectionPage() || + this.IsForgeFedCommit() || this.IsActivityStreamsCreate() || this.IsActivityStreamsDelete() || this.IsActivityStreamsDislike() || @@ -1064,14 +1164,18 @@ func (this ActivityStreamsLocationPropertyIterator) HasAny() bool { 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() || @@ -1464,6 +1568,48 @@ func (this ActivityStreamsLocationPropertyIterator) IsActivityStreamsView() bool return this.activitystreamsViewMember != nil } +// IsForgeFedBranch returns true if this property has a type of "Branch". When +// true, use the GetForgeFedBranch and SetForgeFedBranch methods to access and +// set this property. +func (this ActivityStreamsLocationPropertyIterator) IsForgeFedBranch() bool { + return this.forgefedBranchMember != nil +} + +// IsForgeFedCommit returns true if this property has a type of "Commit". When +// true, use the GetForgeFedCommit and SetForgeFedCommit methods to access and +// set this property. +func (this ActivityStreamsLocationPropertyIterator) IsForgeFedCommit() bool { + return this.forgefedCommitMember != nil +} + +// IsForgeFedPush returns true if this property has a type of "Push". When true, +// use the GetForgeFedPush and SetForgeFedPush methods to access and set this +// property. +func (this ActivityStreamsLocationPropertyIterator) IsForgeFedPush() bool { + return this.forgefedPushMember != nil +} + +// IsForgeFedRepository returns true if this property has a type of "Repository". +// When true, use the GetForgeFedRepository and SetForgeFedRepository methods +// to access and set this property. +func (this ActivityStreamsLocationPropertyIterator) IsForgeFedRepository() bool { + return this.forgefedRepositoryMember != nil +} + +// IsForgeFedTicket returns true if this property has a type of "Ticket". When +// true, use the GetForgeFedTicket and SetForgeFedTicket methods to access and +// set this property. +func (this ActivityStreamsLocationPropertyIterator) IsForgeFedTicket() bool { + return this.forgefedTicketMember != nil +} + +// IsForgeFedTicketDependency returns true if this property has a type of +// "TicketDependency". When true, use the GetForgeFedTicketDependency and +// SetForgeFedTicketDependency methods to access and set this property. +func (this ActivityStreamsLocationPropertyIterator) IsForgeFedTicketDependency() bool { + return this.forgefedTicketDependencyMember != nil +} + // IsIRI returns true if this property is an IRI. When true, use GetIRI and SetIRI // to access and set this property func (this ActivityStreamsLocationPropertyIterator) IsIRI() bool { @@ -1511,10 +1657,14 @@ func (this ActivityStreamsLocationPropertyIterator) JSONLDContext() map[string]s 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() { @@ -1573,6 +1723,8 @@ func (this ActivityStreamsLocationPropertyIterator) JSONLDContext() map[string]s 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() { @@ -1583,12 +1735,18 @@ func (this ActivityStreamsLocationPropertyIterator) JSONLDContext() map[string]s 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() { @@ -1650,141 +1808,159 @@ func (this ActivityStreamsLocationPropertyIterator) KindIndex() int { if this.IsActivityStreamsBlock() { return 10 } - if this.IsActivityStreamsCollection() { + if this.IsForgeFedBranch() { return 11 } - if this.IsActivityStreamsCollectionPage() { + if this.IsActivityStreamsCollection() { return 12 } - if this.IsActivityStreamsCreate() { + if this.IsActivityStreamsCollectionPage() { return 13 } - if this.IsActivityStreamsDelete() { + if this.IsForgeFedCommit() { return 14 } - if this.IsActivityStreamsDislike() { + if this.IsActivityStreamsCreate() { return 15 } - if this.IsActivityStreamsDocument() { + if this.IsActivityStreamsDelete() { return 16 } - if this.IsTootEmoji() { + if this.IsActivityStreamsDislike() { return 17 } - if this.IsActivityStreamsEvent() { + if this.IsActivityStreamsDocument() { return 18 } - if this.IsActivityStreamsFlag() { + if this.IsTootEmoji() { return 19 } - if this.IsActivityStreamsFollow() { + if this.IsActivityStreamsEvent() { return 20 } - if this.IsActivityStreamsGroup() { + if this.IsActivityStreamsFlag() { return 21 } - if this.IsTootIdentityProof() { + if this.IsActivityStreamsFollow() { return 22 } - if this.IsActivityStreamsIgnore() { + if this.IsActivityStreamsGroup() { return 23 } - if this.IsActivityStreamsImage() { + if this.IsTootIdentityProof() { return 24 } - if this.IsActivityStreamsIntransitiveActivity() { + if this.IsActivityStreamsIgnore() { return 25 } - if this.IsActivityStreamsInvite() { + if this.IsActivityStreamsImage() { return 26 } - if this.IsActivityStreamsJoin() { + if this.IsActivityStreamsIntransitiveActivity() { return 27 } - if this.IsActivityStreamsLeave() { + if this.IsActivityStreamsInvite() { return 28 } - if this.IsActivityStreamsLike() { + if this.IsActivityStreamsJoin() { return 29 } - if this.IsActivityStreamsListen() { + if this.IsActivityStreamsLeave() { return 30 } - if this.IsActivityStreamsMention() { + if this.IsActivityStreamsLike() { return 31 } - if this.IsActivityStreamsMove() { + if this.IsActivityStreamsListen() { return 32 } - if this.IsActivityStreamsNote() { + if this.IsActivityStreamsMention() { return 33 } - if this.IsActivityStreamsOffer() { + if this.IsActivityStreamsMove() { return 34 } - if this.IsActivityStreamsOrderedCollection() { + if this.IsActivityStreamsNote() { return 35 } - if this.IsActivityStreamsOrderedCollectionPage() { + if this.IsActivityStreamsOffer() { return 36 } - if this.IsActivityStreamsOrganization() { + if this.IsActivityStreamsOrderedCollection() { return 37 } - if this.IsActivityStreamsPage() { + if this.IsActivityStreamsOrderedCollectionPage() { return 38 } - if this.IsActivityStreamsPerson() { + if this.IsActivityStreamsOrganization() { return 39 } - if this.IsActivityStreamsPlace() { + if this.IsActivityStreamsPage() { return 40 } - if this.IsActivityStreamsProfile() { + if this.IsActivityStreamsPerson() { return 41 } - if this.IsActivityStreamsQuestion() { + if this.IsActivityStreamsPlace() { return 42 } - if this.IsActivityStreamsRead() { + if this.IsActivityStreamsProfile() { return 43 } - if this.IsActivityStreamsReject() { + if this.IsForgeFedPush() { return 44 } - if this.IsActivityStreamsRelationship() { + if this.IsActivityStreamsQuestion() { return 45 } - if this.IsActivityStreamsRemove() { + if this.IsActivityStreamsRead() { return 46 } - if this.IsActivityStreamsService() { + if this.IsActivityStreamsReject() { return 47 } - if this.IsActivityStreamsTentativeAccept() { + if this.IsActivityStreamsRelationship() { return 48 } - if this.IsActivityStreamsTentativeReject() { + if this.IsActivityStreamsRemove() { return 49 } - if this.IsActivityStreamsTombstone() { + if this.IsForgeFedRepository() { return 50 } - if this.IsActivityStreamsTravel() { + if this.IsActivityStreamsService() { return 51 } - if this.IsActivityStreamsUndo() { + if this.IsActivityStreamsTentativeAccept() { return 52 } - if this.IsActivityStreamsUpdate() { + if this.IsActivityStreamsTentativeReject() { return 53 } - if this.IsActivityStreamsVideo() { + if this.IsForgeFedTicket() { return 54 } - if this.IsActivityStreamsView() { + 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 } @@ -1824,10 +2000,14 @@ func (this ActivityStreamsLocationPropertyIterator) LessThan(o vocab.ActivityStr 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() { @@ -1886,6 +2066,8 @@ func (this ActivityStreamsLocationPropertyIterator) LessThan(o vocab.ActivityStr 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() { @@ -1896,12 +2078,18 @@ func (this ActivityStreamsLocationPropertyIterator) LessThan(o vocab.ActivityStr 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() { @@ -2325,6 +2513,48 @@ func (this *ActivityStreamsLocationPropertyIterator) SetActivityStreamsView(v vo this.activitystreamsViewMember = v } +// SetForgeFedBranch sets the value of this property. Calling IsForgeFedBranch +// afterwards returns true. +func (this *ActivityStreamsLocationPropertyIterator) SetForgeFedBranch(v vocab.ForgeFedBranch) { + this.clear() + this.forgefedBranchMember = v +} + +// SetForgeFedCommit sets the value of this property. Calling IsForgeFedCommit +// afterwards returns true. +func (this *ActivityStreamsLocationPropertyIterator) SetForgeFedCommit(v vocab.ForgeFedCommit) { + this.clear() + this.forgefedCommitMember = v +} + +// SetForgeFedPush sets the value of this property. Calling IsForgeFedPush +// afterwards returns true. +func (this *ActivityStreamsLocationPropertyIterator) SetForgeFedPush(v vocab.ForgeFedPush) { + this.clear() + this.forgefedPushMember = v +} + +// SetForgeFedRepository sets the value of this property. Calling +// IsForgeFedRepository afterwards returns true. +func (this *ActivityStreamsLocationPropertyIterator) SetForgeFedRepository(v vocab.ForgeFedRepository) { + this.clear() + this.forgefedRepositoryMember = v +} + +// SetForgeFedTicket sets the value of this property. Calling IsForgeFedTicket +// afterwards returns true. +func (this *ActivityStreamsLocationPropertyIterator) SetForgeFedTicket(v vocab.ForgeFedTicket) { + this.clear() + this.forgefedTicketMember = v +} + +// SetForgeFedTicketDependency sets the value of this property. Calling +// IsForgeFedTicketDependency afterwards returns true. +func (this *ActivityStreamsLocationPropertyIterator) SetForgeFedTicketDependency(v vocab.ForgeFedTicketDependency) { + this.clear() + this.forgefedTicketDependencyMember = v +} + // SetIRI sets the value of this property. Calling IsIRI afterwards returns true. func (this *ActivityStreamsLocationPropertyIterator) SetIRI(v *url.URL) { this.clear() @@ -2392,6 +2622,10 @@ func (this *ActivityStreamsLocationPropertyIterator) SetType(t vocab.Type) error 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 @@ -2400,6 +2634,10 @@ func (this *ActivityStreamsLocationPropertyIterator) SetType(t vocab.Type) error 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 @@ -2516,6 +2754,10 @@ func (this *ActivityStreamsLocationPropertyIterator) SetType(t vocab.Type) error 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 @@ -2536,6 +2778,10 @@ func (this *ActivityStreamsLocationPropertyIterator) SetType(t vocab.Type) error 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 @@ -2548,6 +2794,14 @@ func (this *ActivityStreamsLocationPropertyIterator) SetType(t vocab.Type) error 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 @@ -2590,8 +2844,10 @@ func (this *ActivityStreamsLocationPropertyIterator) clear() { 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 @@ -2621,14 +2877,18 @@ func (this *ActivityStreamsLocationPropertyIterator) clear() { 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 @@ -2666,10 +2926,14 @@ func (this ActivityStreamsLocationPropertyIterator) serialize() (interface{}, er 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() { @@ -2728,6 +2992,8 @@ func (this ActivityStreamsLocationPropertyIterator) serialize() (interface{}, er 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() { @@ -2738,12 +3004,18 @@ func (this ActivityStreamsLocationPropertyIterator) serialize() (interface{}, er 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() { @@ -3431,6 +3703,74 @@ func (this *ActivityStreamsLocationProperty) AppendActivityStreamsView(v vocab.A }) } +// AppendForgeFedBranch appends a Branch value to the back of a list of the +// property "location". Invalidates iterators that are traversing using Prev. +func (this *ActivityStreamsLocationProperty) AppendForgeFedBranch(v vocab.ForgeFedBranch) { + this.properties = append(this.properties, &ActivityStreamsLocationPropertyIterator{ + alias: this.alias, + forgefedBranchMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendForgeFedCommit appends a Commit value to the back of a list of the +// property "location". Invalidates iterators that are traversing using Prev. +func (this *ActivityStreamsLocationProperty) AppendForgeFedCommit(v vocab.ForgeFedCommit) { + this.properties = append(this.properties, &ActivityStreamsLocationPropertyIterator{ + alias: this.alias, + forgefedCommitMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendForgeFedPush appends a Push value to the back of a list of the property +// "location". Invalidates iterators that are traversing using Prev. +func (this *ActivityStreamsLocationProperty) AppendForgeFedPush(v vocab.ForgeFedPush) { + this.properties = append(this.properties, &ActivityStreamsLocationPropertyIterator{ + alias: this.alias, + forgefedPushMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendForgeFedRepository appends a Repository value to the back of a list of +// the property "location". Invalidates iterators that are traversing using +// Prev. +func (this *ActivityStreamsLocationProperty) AppendForgeFedRepository(v vocab.ForgeFedRepository) { + this.properties = append(this.properties, &ActivityStreamsLocationPropertyIterator{ + alias: this.alias, + forgefedRepositoryMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendForgeFedTicket appends a Ticket value to the back of a list of the +// property "location". Invalidates iterators that are traversing using Prev. +func (this *ActivityStreamsLocationProperty) AppendForgeFedTicket(v vocab.ForgeFedTicket) { + this.properties = append(this.properties, &ActivityStreamsLocationPropertyIterator{ + alias: this.alias, + forgefedTicketMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendForgeFedTicketDependency appends a TicketDependency value to the back of +// a list of the property "location". Invalidates iterators that are +// traversing using Prev. +func (this *ActivityStreamsLocationProperty) AppendForgeFedTicketDependency(v vocab.ForgeFedTicketDependency) { + this.properties = append(this.properties, &ActivityStreamsLocationPropertyIterator{ + alias: this.alias, + forgefedTicketDependencyMember: v, + myIdx: this.Len(), + parent: this, + }) +} + // AppendIRI appends an IRI value to the back of a list of the property "location" func (this *ActivityStreamsLocationProperty) AppendIRI(v *url.URL) { this.properties = append(this.properties, &ActivityStreamsLocationPropertyIterator{ @@ -4427,6 +4767,108 @@ func (this *ActivityStreamsLocationProperty) InsertActivityStreamsView(idx int, } } +// InsertForgeFedBranch inserts a Branch value at the specified index for a +// property "location". Existing elements at that index and higher are shifted +// back once. Invalidates all iterators. +func (this *ActivityStreamsLocationProperty) InsertForgeFedBranch(idx int, v vocab.ForgeFedBranch) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsLocationPropertyIterator{ + alias: this.alias, + forgefedBranchMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertForgeFedCommit inserts a Commit value at the specified index for a +// property "location". Existing elements at that index and higher are shifted +// back once. Invalidates all iterators. +func (this *ActivityStreamsLocationProperty) InsertForgeFedCommit(idx int, v vocab.ForgeFedCommit) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsLocationPropertyIterator{ + alias: this.alias, + forgefedCommitMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertForgeFedPush inserts a Push value at the specified index for a property +// "location". Existing elements at that index and higher are shifted back +// once. Invalidates all iterators. +func (this *ActivityStreamsLocationProperty) InsertForgeFedPush(idx int, v vocab.ForgeFedPush) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsLocationPropertyIterator{ + alias: this.alias, + forgefedPushMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertForgeFedRepository inserts a Repository value at the specified index for +// a property "location". Existing elements at that index and higher are +// shifted back once. Invalidates all iterators. +func (this *ActivityStreamsLocationProperty) InsertForgeFedRepository(idx int, v vocab.ForgeFedRepository) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsLocationPropertyIterator{ + alias: this.alias, + forgefedRepositoryMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertForgeFedTicket inserts a Ticket value at the specified index for a +// property "location". Existing elements at that index and higher are shifted +// back once. Invalidates all iterators. +func (this *ActivityStreamsLocationProperty) InsertForgeFedTicket(idx int, v vocab.ForgeFedTicket) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsLocationPropertyIterator{ + alias: this.alias, + forgefedTicketMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertForgeFedTicketDependency inserts a TicketDependency value at the +// specified index for a property "location". Existing elements at that index +// and higher are shifted back once. Invalidates all iterators. +func (this *ActivityStreamsLocationProperty) InsertForgeFedTicketDependency(idx int, v vocab.ForgeFedTicketDependency) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsLocationPropertyIterator{ + alias: this.alias, + forgefedTicketDependencyMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + // Insert inserts an IRI value at the specified index for a property "location". // Existing elements at that index and higher are shifted back once. // Invalidates all iterators. @@ -4584,182 +5026,206 @@ func (this ActivityStreamsLocationProperty) Less(i, j int) bool { rhs := this.properties[j].GetActivityStreamsBlock() return lhs.LessThan(rhs) } else if idx1 == 11 { + lhs := this.properties[i].GetForgeFedBranch() + rhs := this.properties[j].GetForgeFedBranch() + return lhs.LessThan(rhs) + } else if idx1 == 12 { lhs := this.properties[i].GetActivityStreamsCollection() rhs := this.properties[j].GetActivityStreamsCollection() return lhs.LessThan(rhs) - } else if idx1 == 12 { + } else if idx1 == 13 { lhs := this.properties[i].GetActivityStreamsCollectionPage() rhs := this.properties[j].GetActivityStreamsCollectionPage() return lhs.LessThan(rhs) - } else if idx1 == 13 { + } else if idx1 == 14 { + lhs := this.properties[i].GetForgeFedCommit() + rhs := this.properties[j].GetForgeFedCommit() + return lhs.LessThan(rhs) + } else if idx1 == 15 { lhs := this.properties[i].GetActivityStreamsCreate() rhs := this.properties[j].GetActivityStreamsCreate() return lhs.LessThan(rhs) - } else if idx1 == 14 { + } else if idx1 == 16 { lhs := this.properties[i].GetActivityStreamsDelete() rhs := this.properties[j].GetActivityStreamsDelete() return lhs.LessThan(rhs) - } else if idx1 == 15 { + } else if idx1 == 17 { lhs := this.properties[i].GetActivityStreamsDislike() rhs := this.properties[j].GetActivityStreamsDislike() return lhs.LessThan(rhs) - } else if idx1 == 16 { + } else if idx1 == 18 { lhs := this.properties[i].GetActivityStreamsDocument() rhs := this.properties[j].GetActivityStreamsDocument() return lhs.LessThan(rhs) - } else if idx1 == 17 { + } else if idx1 == 19 { lhs := this.properties[i].GetTootEmoji() rhs := this.properties[j].GetTootEmoji() return lhs.LessThan(rhs) - } else if idx1 == 18 { + } else if idx1 == 20 { lhs := this.properties[i].GetActivityStreamsEvent() rhs := this.properties[j].GetActivityStreamsEvent() return lhs.LessThan(rhs) - } else if idx1 == 19 { + } else if idx1 == 21 { lhs := this.properties[i].GetActivityStreamsFlag() rhs := this.properties[j].GetActivityStreamsFlag() return lhs.LessThan(rhs) - } else if idx1 == 20 { + } else if idx1 == 22 { lhs := this.properties[i].GetActivityStreamsFollow() rhs := this.properties[j].GetActivityStreamsFollow() return lhs.LessThan(rhs) - } else if idx1 == 21 { + } else if idx1 == 23 { lhs := this.properties[i].GetActivityStreamsGroup() rhs := this.properties[j].GetActivityStreamsGroup() return lhs.LessThan(rhs) - } else if idx1 == 22 { + } else if idx1 == 24 { lhs := this.properties[i].GetTootIdentityProof() rhs := this.properties[j].GetTootIdentityProof() return lhs.LessThan(rhs) - } else if idx1 == 23 { + } else if idx1 == 25 { lhs := this.properties[i].GetActivityStreamsIgnore() rhs := this.properties[j].GetActivityStreamsIgnore() return lhs.LessThan(rhs) - } else if idx1 == 24 { + } else if idx1 == 26 { lhs := this.properties[i].GetActivityStreamsImage() rhs := this.properties[j].GetActivityStreamsImage() return lhs.LessThan(rhs) - } else if idx1 == 25 { + } else if idx1 == 27 { lhs := this.properties[i].GetActivityStreamsIntransitiveActivity() rhs := this.properties[j].GetActivityStreamsIntransitiveActivity() return lhs.LessThan(rhs) - } else if idx1 == 26 { + } else if idx1 == 28 { lhs := this.properties[i].GetActivityStreamsInvite() rhs := this.properties[j].GetActivityStreamsInvite() return lhs.LessThan(rhs) - } else if idx1 == 27 { + } else if idx1 == 29 { lhs := this.properties[i].GetActivityStreamsJoin() rhs := this.properties[j].GetActivityStreamsJoin() return lhs.LessThan(rhs) - } else if idx1 == 28 { + } else if idx1 == 30 { lhs := this.properties[i].GetActivityStreamsLeave() rhs := this.properties[j].GetActivityStreamsLeave() return lhs.LessThan(rhs) - } else if idx1 == 29 { + } else if idx1 == 31 { lhs := this.properties[i].GetActivityStreamsLike() rhs := this.properties[j].GetActivityStreamsLike() return lhs.LessThan(rhs) - } else if idx1 == 30 { + } else if idx1 == 32 { lhs := this.properties[i].GetActivityStreamsListen() rhs := this.properties[j].GetActivityStreamsListen() return lhs.LessThan(rhs) - } else if idx1 == 31 { + } else if idx1 == 33 { lhs := this.properties[i].GetActivityStreamsMention() rhs := this.properties[j].GetActivityStreamsMention() return lhs.LessThan(rhs) - } else if idx1 == 32 { + } else if idx1 == 34 { lhs := this.properties[i].GetActivityStreamsMove() rhs := this.properties[j].GetActivityStreamsMove() return lhs.LessThan(rhs) - } else if idx1 == 33 { + } else if idx1 == 35 { lhs := this.properties[i].GetActivityStreamsNote() rhs := this.properties[j].GetActivityStreamsNote() return lhs.LessThan(rhs) - } else if idx1 == 34 { + } else if idx1 == 36 { lhs := this.properties[i].GetActivityStreamsOffer() rhs := this.properties[j].GetActivityStreamsOffer() return lhs.LessThan(rhs) - } else if idx1 == 35 { + } else if idx1 == 37 { lhs := this.properties[i].GetActivityStreamsOrderedCollection() rhs := this.properties[j].GetActivityStreamsOrderedCollection() return lhs.LessThan(rhs) - } else if idx1 == 36 { + } else if idx1 == 38 { lhs := this.properties[i].GetActivityStreamsOrderedCollectionPage() rhs := this.properties[j].GetActivityStreamsOrderedCollectionPage() return lhs.LessThan(rhs) - } else if idx1 == 37 { + } else if idx1 == 39 { lhs := this.properties[i].GetActivityStreamsOrganization() rhs := this.properties[j].GetActivityStreamsOrganization() return lhs.LessThan(rhs) - } else if idx1 == 38 { + } else if idx1 == 40 { lhs := this.properties[i].GetActivityStreamsPage() rhs := this.properties[j].GetActivityStreamsPage() return lhs.LessThan(rhs) - } else if idx1 == 39 { + } else if idx1 == 41 { lhs := this.properties[i].GetActivityStreamsPerson() rhs := this.properties[j].GetActivityStreamsPerson() return lhs.LessThan(rhs) - } else if idx1 == 40 { + } else if idx1 == 42 { lhs := this.properties[i].GetActivityStreamsPlace() rhs := this.properties[j].GetActivityStreamsPlace() return lhs.LessThan(rhs) - } else if idx1 == 41 { + } else if idx1 == 43 { lhs := this.properties[i].GetActivityStreamsProfile() rhs := this.properties[j].GetActivityStreamsProfile() return lhs.LessThan(rhs) - } else if idx1 == 42 { + } else if idx1 == 44 { + lhs := this.properties[i].GetForgeFedPush() + rhs := this.properties[j].GetForgeFedPush() + return lhs.LessThan(rhs) + } else if idx1 == 45 { lhs := this.properties[i].GetActivityStreamsQuestion() rhs := this.properties[j].GetActivityStreamsQuestion() return lhs.LessThan(rhs) - } else if idx1 == 43 { + } else if idx1 == 46 { lhs := this.properties[i].GetActivityStreamsRead() rhs := this.properties[j].GetActivityStreamsRead() return lhs.LessThan(rhs) - } else if idx1 == 44 { + } else if idx1 == 47 { lhs := this.properties[i].GetActivityStreamsReject() rhs := this.properties[j].GetActivityStreamsReject() return lhs.LessThan(rhs) - } else if idx1 == 45 { + } else if idx1 == 48 { lhs := this.properties[i].GetActivityStreamsRelationship() rhs := this.properties[j].GetActivityStreamsRelationship() return lhs.LessThan(rhs) - } else if idx1 == 46 { + } else if idx1 == 49 { lhs := this.properties[i].GetActivityStreamsRemove() rhs := this.properties[j].GetActivityStreamsRemove() return lhs.LessThan(rhs) - } else if idx1 == 47 { + } else if idx1 == 50 { + lhs := this.properties[i].GetForgeFedRepository() + rhs := this.properties[j].GetForgeFedRepository() + return lhs.LessThan(rhs) + } else if idx1 == 51 { lhs := this.properties[i].GetActivityStreamsService() rhs := this.properties[j].GetActivityStreamsService() return lhs.LessThan(rhs) - } else if idx1 == 48 { + } else if idx1 == 52 { lhs := this.properties[i].GetActivityStreamsTentativeAccept() rhs := this.properties[j].GetActivityStreamsTentativeAccept() return lhs.LessThan(rhs) - } else if idx1 == 49 { + } else if idx1 == 53 { lhs := this.properties[i].GetActivityStreamsTentativeReject() rhs := this.properties[j].GetActivityStreamsTentativeReject() return lhs.LessThan(rhs) - } else if idx1 == 50 { + } else if idx1 == 54 { + lhs := this.properties[i].GetForgeFedTicket() + rhs := this.properties[j].GetForgeFedTicket() + return lhs.LessThan(rhs) + } else if idx1 == 55 { + lhs := this.properties[i].GetForgeFedTicketDependency() + rhs := this.properties[j].GetForgeFedTicketDependency() + return lhs.LessThan(rhs) + } else if idx1 == 56 { lhs := this.properties[i].GetActivityStreamsTombstone() rhs := this.properties[j].GetActivityStreamsTombstone() return lhs.LessThan(rhs) - } else if idx1 == 51 { + } else if idx1 == 57 { lhs := this.properties[i].GetActivityStreamsTravel() rhs := this.properties[j].GetActivityStreamsTravel() return lhs.LessThan(rhs) - } else if idx1 == 52 { + } else if idx1 == 58 { lhs := this.properties[i].GetActivityStreamsUndo() rhs := this.properties[j].GetActivityStreamsUndo() return lhs.LessThan(rhs) - } else if idx1 == 53 { + } else if idx1 == 59 { lhs := this.properties[i].GetActivityStreamsUpdate() rhs := this.properties[j].GetActivityStreamsUpdate() return lhs.LessThan(rhs) - } else if idx1 == 54 { + } else if idx1 == 60 { lhs := this.properties[i].GetActivityStreamsVideo() rhs := this.properties[j].GetActivityStreamsVideo() return lhs.LessThan(rhs) - } else if idx1 == 55 { + } else if idx1 == 61 { lhs := this.properties[i].GetActivityStreamsView() rhs := this.properties[j].GetActivityStreamsView() return lhs.LessThan(rhs) @@ -5560,6 +6026,90 @@ func (this *ActivityStreamsLocationProperty) PrependActivityStreamsView(v vocab. } } +// PrependForgeFedBranch prepends a Branch value to the front of a list of the +// property "location". Invalidates all iterators. +func (this *ActivityStreamsLocationProperty) PrependForgeFedBranch(v vocab.ForgeFedBranch) { + this.properties = append([]*ActivityStreamsLocationPropertyIterator{{ + alias: this.alias, + forgefedBranchMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependForgeFedCommit prepends a Commit value to the front of a list of the +// property "location". Invalidates all iterators. +func (this *ActivityStreamsLocationProperty) PrependForgeFedCommit(v vocab.ForgeFedCommit) { + this.properties = append([]*ActivityStreamsLocationPropertyIterator{{ + alias: this.alias, + forgefedCommitMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependForgeFedPush prepends a Push value to the front of a list of the +// property "location". Invalidates all iterators. +func (this *ActivityStreamsLocationProperty) PrependForgeFedPush(v vocab.ForgeFedPush) { + this.properties = append([]*ActivityStreamsLocationPropertyIterator{{ + alias: this.alias, + forgefedPushMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependForgeFedRepository prepends a Repository value to the front of a list of +// the property "location". Invalidates all iterators. +func (this *ActivityStreamsLocationProperty) PrependForgeFedRepository(v vocab.ForgeFedRepository) { + this.properties = append([]*ActivityStreamsLocationPropertyIterator{{ + alias: this.alias, + forgefedRepositoryMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependForgeFedTicket prepends a Ticket value to the front of a list of the +// property "location". Invalidates all iterators. +func (this *ActivityStreamsLocationProperty) PrependForgeFedTicket(v vocab.ForgeFedTicket) { + this.properties = append([]*ActivityStreamsLocationPropertyIterator{{ + alias: this.alias, + forgefedTicketMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependForgeFedTicketDependency prepends a TicketDependency value to the front +// of a list of the property "location". Invalidates all iterators. +func (this *ActivityStreamsLocationProperty) PrependForgeFedTicketDependency(v vocab.ForgeFedTicketDependency) { + this.properties = append([]*ActivityStreamsLocationPropertyIterator{{ + alias: this.alias, + forgefedTicketDependencyMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + // PrependIRI prepends an IRI value to the front of a list of the property // "location". func (this *ActivityStreamsLocationProperty) PrependIRI(v *url.URL) { @@ -6356,6 +6906,83 @@ func (this *ActivityStreamsLocationProperty) SetActivityStreamsView(idx int, v v } } +// SetForgeFedBranch sets a Branch value to be at the specified index for the +// property "location". Panics if the index is out of bounds. Invalidates all +// iterators. +func (this *ActivityStreamsLocationProperty) SetForgeFedBranch(idx int, v vocab.ForgeFedBranch) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsLocationPropertyIterator{ + alias: this.alias, + forgefedBranchMember: v, + myIdx: idx, + parent: this, + } +} + +// SetForgeFedCommit sets a Commit value to be at the specified index for the +// property "location". Panics if the index is out of bounds. Invalidates all +// iterators. +func (this *ActivityStreamsLocationProperty) SetForgeFedCommit(idx int, v vocab.ForgeFedCommit) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsLocationPropertyIterator{ + alias: this.alias, + forgefedCommitMember: v, + myIdx: idx, + parent: this, + } +} + +// SetForgeFedPush sets a Push value to be at the specified index for the property +// "location". Panics if the index is out of bounds. Invalidates all iterators. +func (this *ActivityStreamsLocationProperty) SetForgeFedPush(idx int, v vocab.ForgeFedPush) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsLocationPropertyIterator{ + alias: this.alias, + forgefedPushMember: v, + myIdx: idx, + parent: this, + } +} + +// SetForgeFedRepository sets a Repository value to be at the specified index for +// the property "location". Panics if the index is out of bounds. Invalidates +// all iterators. +func (this *ActivityStreamsLocationProperty) SetForgeFedRepository(idx int, v vocab.ForgeFedRepository) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsLocationPropertyIterator{ + alias: this.alias, + forgefedRepositoryMember: v, + myIdx: idx, + parent: this, + } +} + +// SetForgeFedTicket sets a Ticket value to be at the specified index for the +// property "location". Panics if the index is out of bounds. Invalidates all +// iterators. +func (this *ActivityStreamsLocationProperty) SetForgeFedTicket(idx int, v vocab.ForgeFedTicket) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsLocationPropertyIterator{ + alias: this.alias, + forgefedTicketMember: v, + myIdx: idx, + parent: this, + } +} + +// SetForgeFedTicketDependency sets a TicketDependency value to be at the +// specified index for the property "location". Panics if the index is out of +// bounds. Invalidates all iterators. +func (this *ActivityStreamsLocationProperty) SetForgeFedTicketDependency(idx int, v vocab.ForgeFedTicketDependency) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsLocationPropertyIterator{ + alias: this.alias, + forgefedTicketDependencyMember: v, + myIdx: idx, + parent: this, + } +} + // SetIRI sets an IRI value to be at the specified index for the property // "location". Panics if the index is out of bounds. func (this *ActivityStreamsLocationProperty) SetIRI(idx int, v *url.URL) { diff --git a/streams/impl/activitystreams/property_object/gen_pkg.go b/streams/impl/activitystreams/property_object/gen_pkg.go index 3228815..d9176c9 100644 --- a/streams/impl/activitystreams/property_object/gen_pkg.go +++ b/streams/impl/activitystreams/property_object/gen_pkg.go @@ -45,6 +45,10 @@ type privateManager interface { // 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" @@ -53,6 +57,10 @@ type privateManager interface { // 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" @@ -177,6 +185,9 @@ type privateManager interface { // 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" @@ -197,6 +208,10 @@ type privateManager interface { // 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" @@ -209,6 +224,14 @@ type privateManager interface { // 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" diff --git a/streams/impl/activitystreams/property_object/gen_property_activitystreams_object.go b/streams/impl/activitystreams/property_object/gen_property_activitystreams_object.go index 74a1c37..501ddaa 100644 --- a/streams/impl/activitystreams/property_object/gen_property_activitystreams_object.go +++ b/streams/impl/activitystreams/property_object/gen_property_activitystreams_object.go @@ -25,8 +25,10 @@ type ActivityStreamsObjectPropertyIterator struct { 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 @@ -56,14 +58,18 @@ type ActivityStreamsObjectPropertyIterator struct { 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 @@ -169,6 +175,12 @@ func deserializeActivityStreamsObjectPropertyIterator(i interface{}, aliasMap ma alias: alias, } return this, nil + } else if v, err := mgr.DeserializeBranchForgeFed()(m, aliasMap); err == nil { + this := &ActivityStreamsObjectPropertyIterator{ + alias: alias, + forgefedBranchMember: v, + } + return this, nil } else if v, err := mgr.DeserializeCollectionActivityStreams()(m, aliasMap); err == nil { this := &ActivityStreamsObjectPropertyIterator{ activitystreamsCollectionMember: v, @@ -181,6 +193,12 @@ func deserializeActivityStreamsObjectPropertyIterator(i interface{}, aliasMap ma alias: alias, } return this, nil + } else if v, err := mgr.DeserializeCommitForgeFed()(m, aliasMap); err == nil { + this := &ActivityStreamsObjectPropertyIterator{ + alias: alias, + forgefedCommitMember: v, + } + return this, nil } else if v, err := mgr.DeserializeCreateActivityStreams()(m, aliasMap); err == nil { this := &ActivityStreamsObjectPropertyIterator{ activitystreamsCreateMember: v, @@ -355,6 +373,12 @@ func deserializeActivityStreamsObjectPropertyIterator(i interface{}, aliasMap ma alias: alias, } return this, nil + } else if v, err := mgr.DeserializePushForgeFed()(m, aliasMap); err == nil { + this := &ActivityStreamsObjectPropertyIterator{ + alias: alias, + forgefedPushMember: v, + } + return this, nil } else if v, err := mgr.DeserializeQuestionActivityStreams()(m, aliasMap); err == nil { this := &ActivityStreamsObjectPropertyIterator{ activitystreamsQuestionMember: v, @@ -385,6 +409,12 @@ func deserializeActivityStreamsObjectPropertyIterator(i interface{}, aliasMap ma alias: alias, } return this, nil + } else if v, err := mgr.DeserializeRepositoryForgeFed()(m, aliasMap); err == nil { + this := &ActivityStreamsObjectPropertyIterator{ + alias: alias, + forgefedRepositoryMember: v, + } + return this, nil } else if v, err := mgr.DeserializeServiceActivityStreams()(m, aliasMap); err == nil { this := &ActivityStreamsObjectPropertyIterator{ activitystreamsServiceMember: v, @@ -403,6 +433,18 @@ func deserializeActivityStreamsObjectPropertyIterator(i interface{}, aliasMap ma alias: alias, } return this, nil + } else if v, err := mgr.DeserializeTicketForgeFed()(m, aliasMap); err == nil { + this := &ActivityStreamsObjectPropertyIterator{ + alias: alias, + forgefedTicketMember: v, + } + return this, nil + } else if v, err := mgr.DeserializeTicketDependencyForgeFed()(m, aliasMap); err == nil { + this := &ActivityStreamsObjectPropertyIterator{ + alias: alias, + forgefedTicketDependencyMember: v, + } + return this, nil } else if v, err := mgr.DeserializeTombstoneActivityStreams()(m, aliasMap); err == nil { this := &ActivityStreamsObjectPropertyIterator{ activitystreamsTombstoneMember: v, @@ -826,6 +868,44 @@ func (this ActivityStreamsObjectPropertyIterator) GetActivityStreamsView() vocab return this.activitystreamsViewMember } +// GetForgeFedBranch returns the value of this property. When IsForgeFedBranch +// returns false, GetForgeFedBranch will return an arbitrary value. +func (this ActivityStreamsObjectPropertyIterator) GetForgeFedBranch() vocab.ForgeFedBranch { + return this.forgefedBranchMember +} + +// GetForgeFedCommit returns the value of this property. When IsForgeFedCommit +// returns false, GetForgeFedCommit will return an arbitrary value. +func (this ActivityStreamsObjectPropertyIterator) GetForgeFedCommit() vocab.ForgeFedCommit { + return this.forgefedCommitMember +} + +// GetForgeFedPush returns the value of this property. When IsForgeFedPush returns +// false, GetForgeFedPush will return an arbitrary value. +func (this ActivityStreamsObjectPropertyIterator) GetForgeFedPush() vocab.ForgeFedPush { + return this.forgefedPushMember +} + +// GetForgeFedRepository returns the value of this property. When +// IsForgeFedRepository returns false, GetForgeFedRepository will return an +// arbitrary value. +func (this ActivityStreamsObjectPropertyIterator) GetForgeFedRepository() vocab.ForgeFedRepository { + return this.forgefedRepositoryMember +} + +// GetForgeFedTicket returns the value of this property. When IsForgeFedTicket +// returns false, GetForgeFedTicket will return an arbitrary value. +func (this ActivityStreamsObjectPropertyIterator) GetForgeFedTicket() vocab.ForgeFedTicket { + return this.forgefedTicketMember +} + +// GetForgeFedTicketDependency returns the value of this property. When +// IsForgeFedTicketDependency returns false, GetForgeFedTicketDependency will +// return an arbitrary value. +func (this ActivityStreamsObjectPropertyIterator) GetForgeFedTicketDependency() vocab.ForgeFedTicketDependency { + return this.forgefedTicketDependencyMember +} + // GetIRI returns the IRI of this property. When IsIRI returns false, GetIRI will // return an arbitrary value. func (this ActivityStreamsObjectPropertyIterator) GetIRI() *url.URL { @@ -881,12 +961,18 @@ func (this ActivityStreamsObjectPropertyIterator) GetType() vocab.Type { 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() } @@ -974,6 +1060,9 @@ func (this ActivityStreamsObjectPropertyIterator) GetType() vocab.Type { if this.IsActivityStreamsProfile() { return this.GetActivityStreamsProfile() } + if this.IsForgeFedPush() { + return this.GetForgeFedPush() + } if this.IsActivityStreamsQuestion() { return this.GetActivityStreamsQuestion() } @@ -989,6 +1078,9 @@ func (this ActivityStreamsObjectPropertyIterator) GetType() vocab.Type { if this.IsActivityStreamsRemove() { return this.GetActivityStreamsRemove() } + if this.IsForgeFedRepository() { + return this.GetForgeFedRepository() + } if this.IsActivityStreamsService() { return this.GetActivityStreamsService() } @@ -998,6 +1090,12 @@ func (this ActivityStreamsObjectPropertyIterator) GetType() vocab.Type { if this.IsActivityStreamsTentativeReject() { return this.GetActivityStreamsTentativeReject() } + if this.IsForgeFedTicket() { + return this.GetForgeFedTicket() + } + if this.IsForgeFedTicketDependency() { + return this.GetForgeFedTicketDependency() + } if this.IsActivityStreamsTombstone() { return this.GetActivityStreamsTombstone() } @@ -1033,8 +1131,10 @@ func (this ActivityStreamsObjectPropertyIterator) HasAny() bool { this.IsActivityStreamsArticle() || this.IsActivityStreamsAudio() || this.IsActivityStreamsBlock() || + this.IsForgeFedBranch() || this.IsActivityStreamsCollection() || this.IsActivityStreamsCollectionPage() || + this.IsForgeFedCommit() || this.IsActivityStreamsCreate() || this.IsActivityStreamsDelete() || this.IsActivityStreamsDislike() || @@ -1064,14 +1164,18 @@ func (this ActivityStreamsObjectPropertyIterator) HasAny() bool { 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() || @@ -1464,6 +1568,48 @@ func (this ActivityStreamsObjectPropertyIterator) IsActivityStreamsView() bool { return this.activitystreamsViewMember != nil } +// IsForgeFedBranch returns true if this property has a type of "Branch". When +// true, use the GetForgeFedBranch and SetForgeFedBranch methods to access and +// set this property. +func (this ActivityStreamsObjectPropertyIterator) IsForgeFedBranch() bool { + return this.forgefedBranchMember != nil +} + +// IsForgeFedCommit returns true if this property has a type of "Commit". When +// true, use the GetForgeFedCommit and SetForgeFedCommit methods to access and +// set this property. +func (this ActivityStreamsObjectPropertyIterator) IsForgeFedCommit() bool { + return this.forgefedCommitMember != nil +} + +// IsForgeFedPush returns true if this property has a type of "Push". When true, +// use the GetForgeFedPush and SetForgeFedPush methods to access and set this +// property. +func (this ActivityStreamsObjectPropertyIterator) IsForgeFedPush() bool { + return this.forgefedPushMember != nil +} + +// IsForgeFedRepository returns true if this property has a type of "Repository". +// When true, use the GetForgeFedRepository and SetForgeFedRepository methods +// to access and set this property. +func (this ActivityStreamsObjectPropertyIterator) IsForgeFedRepository() bool { + return this.forgefedRepositoryMember != nil +} + +// IsForgeFedTicket returns true if this property has a type of "Ticket". When +// true, use the GetForgeFedTicket and SetForgeFedTicket methods to access and +// set this property. +func (this ActivityStreamsObjectPropertyIterator) IsForgeFedTicket() bool { + return this.forgefedTicketMember != nil +} + +// IsForgeFedTicketDependency returns true if this property has a type of +// "TicketDependency". When true, use the GetForgeFedTicketDependency and +// SetForgeFedTicketDependency methods to access and set this property. +func (this ActivityStreamsObjectPropertyIterator) IsForgeFedTicketDependency() bool { + return this.forgefedTicketDependencyMember != nil +} + // IsIRI returns true if this property is an IRI. When true, use GetIRI and SetIRI // to access and set this property func (this ActivityStreamsObjectPropertyIterator) IsIRI() bool { @@ -1511,10 +1657,14 @@ func (this ActivityStreamsObjectPropertyIterator) JSONLDContext() map[string]str 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() { @@ -1573,6 +1723,8 @@ func (this ActivityStreamsObjectPropertyIterator) JSONLDContext() map[string]str 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() { @@ -1583,12 +1735,18 @@ func (this ActivityStreamsObjectPropertyIterator) JSONLDContext() map[string]str 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() { @@ -1650,141 +1808,159 @@ func (this ActivityStreamsObjectPropertyIterator) KindIndex() int { if this.IsActivityStreamsBlock() { return 10 } - if this.IsActivityStreamsCollection() { + if this.IsForgeFedBranch() { return 11 } - if this.IsActivityStreamsCollectionPage() { + if this.IsActivityStreamsCollection() { return 12 } - if this.IsActivityStreamsCreate() { + if this.IsActivityStreamsCollectionPage() { return 13 } - if this.IsActivityStreamsDelete() { + if this.IsForgeFedCommit() { return 14 } - if this.IsActivityStreamsDislike() { + if this.IsActivityStreamsCreate() { return 15 } - if this.IsActivityStreamsDocument() { + if this.IsActivityStreamsDelete() { return 16 } - if this.IsTootEmoji() { + if this.IsActivityStreamsDislike() { return 17 } - if this.IsActivityStreamsEvent() { + if this.IsActivityStreamsDocument() { return 18 } - if this.IsActivityStreamsFlag() { + if this.IsTootEmoji() { return 19 } - if this.IsActivityStreamsFollow() { + if this.IsActivityStreamsEvent() { return 20 } - if this.IsActivityStreamsGroup() { + if this.IsActivityStreamsFlag() { return 21 } - if this.IsTootIdentityProof() { + if this.IsActivityStreamsFollow() { return 22 } - if this.IsActivityStreamsIgnore() { + if this.IsActivityStreamsGroup() { return 23 } - if this.IsActivityStreamsImage() { + if this.IsTootIdentityProof() { return 24 } - if this.IsActivityStreamsIntransitiveActivity() { + if this.IsActivityStreamsIgnore() { return 25 } - if this.IsActivityStreamsInvite() { + if this.IsActivityStreamsImage() { return 26 } - if this.IsActivityStreamsJoin() { + if this.IsActivityStreamsIntransitiveActivity() { return 27 } - if this.IsActivityStreamsLeave() { + if this.IsActivityStreamsInvite() { return 28 } - if this.IsActivityStreamsLike() { + if this.IsActivityStreamsJoin() { return 29 } - if this.IsActivityStreamsListen() { + if this.IsActivityStreamsLeave() { return 30 } - if this.IsActivityStreamsMention() { + if this.IsActivityStreamsLike() { return 31 } - if this.IsActivityStreamsMove() { + if this.IsActivityStreamsListen() { return 32 } - if this.IsActivityStreamsNote() { + if this.IsActivityStreamsMention() { return 33 } - if this.IsActivityStreamsOffer() { + if this.IsActivityStreamsMove() { return 34 } - if this.IsActivityStreamsOrderedCollection() { + if this.IsActivityStreamsNote() { return 35 } - if this.IsActivityStreamsOrderedCollectionPage() { + if this.IsActivityStreamsOffer() { return 36 } - if this.IsActivityStreamsOrganization() { + if this.IsActivityStreamsOrderedCollection() { return 37 } - if this.IsActivityStreamsPage() { + if this.IsActivityStreamsOrderedCollectionPage() { return 38 } - if this.IsActivityStreamsPerson() { + if this.IsActivityStreamsOrganization() { return 39 } - if this.IsActivityStreamsPlace() { + if this.IsActivityStreamsPage() { return 40 } - if this.IsActivityStreamsProfile() { + if this.IsActivityStreamsPerson() { return 41 } - if this.IsActivityStreamsQuestion() { + if this.IsActivityStreamsPlace() { return 42 } - if this.IsActivityStreamsRead() { + if this.IsActivityStreamsProfile() { return 43 } - if this.IsActivityStreamsReject() { + if this.IsForgeFedPush() { return 44 } - if this.IsActivityStreamsRelationship() { + if this.IsActivityStreamsQuestion() { return 45 } - if this.IsActivityStreamsRemove() { + if this.IsActivityStreamsRead() { return 46 } - if this.IsActivityStreamsService() { + if this.IsActivityStreamsReject() { return 47 } - if this.IsActivityStreamsTentativeAccept() { + if this.IsActivityStreamsRelationship() { return 48 } - if this.IsActivityStreamsTentativeReject() { + if this.IsActivityStreamsRemove() { return 49 } - if this.IsActivityStreamsTombstone() { + if this.IsForgeFedRepository() { return 50 } - if this.IsActivityStreamsTravel() { + if this.IsActivityStreamsService() { return 51 } - if this.IsActivityStreamsUndo() { + if this.IsActivityStreamsTentativeAccept() { return 52 } - if this.IsActivityStreamsUpdate() { + if this.IsActivityStreamsTentativeReject() { return 53 } - if this.IsActivityStreamsVideo() { + if this.IsForgeFedTicket() { return 54 } - if this.IsActivityStreamsView() { + 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 } @@ -1824,10 +2000,14 @@ func (this ActivityStreamsObjectPropertyIterator) LessThan(o vocab.ActivityStrea 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() { @@ -1886,6 +2066,8 @@ func (this ActivityStreamsObjectPropertyIterator) LessThan(o vocab.ActivityStrea 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() { @@ -1896,12 +2078,18 @@ func (this ActivityStreamsObjectPropertyIterator) LessThan(o vocab.ActivityStrea 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() { @@ -2325,6 +2513,48 @@ func (this *ActivityStreamsObjectPropertyIterator) SetActivityStreamsView(v voca this.activitystreamsViewMember = v } +// SetForgeFedBranch sets the value of this property. Calling IsForgeFedBranch +// afterwards returns true. +func (this *ActivityStreamsObjectPropertyIterator) SetForgeFedBranch(v vocab.ForgeFedBranch) { + this.clear() + this.forgefedBranchMember = v +} + +// SetForgeFedCommit sets the value of this property. Calling IsForgeFedCommit +// afterwards returns true. +func (this *ActivityStreamsObjectPropertyIterator) SetForgeFedCommit(v vocab.ForgeFedCommit) { + this.clear() + this.forgefedCommitMember = v +} + +// SetForgeFedPush sets the value of this property. Calling IsForgeFedPush +// afterwards returns true. +func (this *ActivityStreamsObjectPropertyIterator) SetForgeFedPush(v vocab.ForgeFedPush) { + this.clear() + this.forgefedPushMember = v +} + +// SetForgeFedRepository sets the value of this property. Calling +// IsForgeFedRepository afterwards returns true. +func (this *ActivityStreamsObjectPropertyIterator) SetForgeFedRepository(v vocab.ForgeFedRepository) { + this.clear() + this.forgefedRepositoryMember = v +} + +// SetForgeFedTicket sets the value of this property. Calling IsForgeFedTicket +// afterwards returns true. +func (this *ActivityStreamsObjectPropertyIterator) SetForgeFedTicket(v vocab.ForgeFedTicket) { + this.clear() + this.forgefedTicketMember = v +} + +// SetForgeFedTicketDependency sets the value of this property. Calling +// IsForgeFedTicketDependency afterwards returns true. +func (this *ActivityStreamsObjectPropertyIterator) SetForgeFedTicketDependency(v vocab.ForgeFedTicketDependency) { + this.clear() + this.forgefedTicketDependencyMember = v +} + // SetIRI sets the value of this property. Calling IsIRI afterwards returns true. func (this *ActivityStreamsObjectPropertyIterator) SetIRI(v *url.URL) { this.clear() @@ -2392,6 +2622,10 @@ func (this *ActivityStreamsObjectPropertyIterator) SetType(t vocab.Type) error { 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 @@ -2400,6 +2634,10 @@ func (this *ActivityStreamsObjectPropertyIterator) SetType(t vocab.Type) error { 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 @@ -2516,6 +2754,10 @@ func (this *ActivityStreamsObjectPropertyIterator) SetType(t vocab.Type) error { 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 @@ -2536,6 +2778,10 @@ func (this *ActivityStreamsObjectPropertyIterator) SetType(t vocab.Type) error { 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 @@ -2548,6 +2794,14 @@ func (this *ActivityStreamsObjectPropertyIterator) SetType(t vocab.Type) error { 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 @@ -2590,8 +2844,10 @@ func (this *ActivityStreamsObjectPropertyIterator) clear() { 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 @@ -2621,14 +2877,18 @@ func (this *ActivityStreamsObjectPropertyIterator) clear() { 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 @@ -2666,10 +2926,14 @@ func (this ActivityStreamsObjectPropertyIterator) serialize() (interface{}, erro 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() { @@ -2728,6 +2992,8 @@ func (this ActivityStreamsObjectPropertyIterator) serialize() (interface{}, erro 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() { @@ -2738,12 +3004,18 @@ func (this ActivityStreamsObjectPropertyIterator) serialize() (interface{}, erro 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() { @@ -3422,6 +3694,73 @@ func (this *ActivityStreamsObjectProperty) AppendActivityStreamsView(v vocab.Act }) } +// AppendForgeFedBranch appends a Branch value to the back of a list of the +// property "object". Invalidates iterators that are traversing using Prev. +func (this *ActivityStreamsObjectProperty) AppendForgeFedBranch(v vocab.ForgeFedBranch) { + this.properties = append(this.properties, &ActivityStreamsObjectPropertyIterator{ + alias: this.alias, + forgefedBranchMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendForgeFedCommit appends a Commit value to the back of a list of the +// property "object". Invalidates iterators that are traversing using Prev. +func (this *ActivityStreamsObjectProperty) AppendForgeFedCommit(v vocab.ForgeFedCommit) { + this.properties = append(this.properties, &ActivityStreamsObjectPropertyIterator{ + alias: this.alias, + forgefedCommitMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendForgeFedPush appends a Push value to the back of a list of the property +// "object". Invalidates iterators that are traversing using Prev. +func (this *ActivityStreamsObjectProperty) AppendForgeFedPush(v vocab.ForgeFedPush) { + this.properties = append(this.properties, &ActivityStreamsObjectPropertyIterator{ + alias: this.alias, + forgefedPushMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendForgeFedRepository appends a Repository value to the back of a list of +// the property "object". Invalidates iterators that are traversing using Prev. +func (this *ActivityStreamsObjectProperty) AppendForgeFedRepository(v vocab.ForgeFedRepository) { + this.properties = append(this.properties, &ActivityStreamsObjectPropertyIterator{ + alias: this.alias, + forgefedRepositoryMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendForgeFedTicket appends a Ticket value to the back of a list of the +// property "object". Invalidates iterators that are traversing using Prev. +func (this *ActivityStreamsObjectProperty) AppendForgeFedTicket(v vocab.ForgeFedTicket) { + this.properties = append(this.properties, &ActivityStreamsObjectPropertyIterator{ + alias: this.alias, + forgefedTicketMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendForgeFedTicketDependency appends a TicketDependency value to the back of +// a list of the property "object". Invalidates iterators that are traversing +// using Prev. +func (this *ActivityStreamsObjectProperty) AppendForgeFedTicketDependency(v vocab.ForgeFedTicketDependency) { + this.properties = append(this.properties, &ActivityStreamsObjectPropertyIterator{ + alias: this.alias, + forgefedTicketDependencyMember: v, + myIdx: this.Len(), + parent: this, + }) +} + // AppendIRI appends an IRI value to the back of a list of the property "object" func (this *ActivityStreamsObjectProperty) AppendIRI(v *url.URL) { this.properties = append(this.properties, &ActivityStreamsObjectPropertyIterator{ @@ -4417,6 +4756,108 @@ func (this *ActivityStreamsObjectProperty) InsertActivityStreamsView(idx int, v } } +// InsertForgeFedBranch inserts a Branch value at the specified index for a +// property "object". Existing elements at that index and higher are shifted +// back once. Invalidates all iterators. +func (this *ActivityStreamsObjectProperty) InsertForgeFedBranch(idx int, v vocab.ForgeFedBranch) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsObjectPropertyIterator{ + alias: this.alias, + forgefedBranchMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertForgeFedCommit inserts a Commit value at the specified index for a +// property "object". Existing elements at that index and higher are shifted +// back once. Invalidates all iterators. +func (this *ActivityStreamsObjectProperty) InsertForgeFedCommit(idx int, v vocab.ForgeFedCommit) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsObjectPropertyIterator{ + alias: this.alias, + forgefedCommitMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertForgeFedPush inserts a Push value at the specified index for a property +// "object". Existing elements at that index and higher are shifted back once. +// Invalidates all iterators. +func (this *ActivityStreamsObjectProperty) InsertForgeFedPush(idx int, v vocab.ForgeFedPush) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsObjectPropertyIterator{ + alias: this.alias, + forgefedPushMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertForgeFedRepository inserts a Repository value at the specified index for +// a property "object". Existing elements at that index and higher are shifted +// back once. Invalidates all iterators. +func (this *ActivityStreamsObjectProperty) InsertForgeFedRepository(idx int, v vocab.ForgeFedRepository) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsObjectPropertyIterator{ + alias: this.alias, + forgefedRepositoryMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertForgeFedTicket inserts a Ticket value at the specified index for a +// property "object". Existing elements at that index and higher are shifted +// back once. Invalidates all iterators. +func (this *ActivityStreamsObjectProperty) InsertForgeFedTicket(idx int, v vocab.ForgeFedTicket) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsObjectPropertyIterator{ + alias: this.alias, + forgefedTicketMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertForgeFedTicketDependency inserts a TicketDependency value at the +// specified index for a property "object". Existing elements at that index +// and higher are shifted back once. Invalidates all iterators. +func (this *ActivityStreamsObjectProperty) InsertForgeFedTicketDependency(idx int, v vocab.ForgeFedTicketDependency) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsObjectPropertyIterator{ + alias: this.alias, + forgefedTicketDependencyMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + // Insert inserts an IRI value at the specified index for a property "object". // Existing elements at that index and higher are shifted back once. // Invalidates all iterators. @@ -4574,182 +5015,206 @@ func (this ActivityStreamsObjectProperty) Less(i, j int) bool { rhs := this.properties[j].GetActivityStreamsBlock() return lhs.LessThan(rhs) } else if idx1 == 11 { + lhs := this.properties[i].GetForgeFedBranch() + rhs := this.properties[j].GetForgeFedBranch() + return lhs.LessThan(rhs) + } else if idx1 == 12 { lhs := this.properties[i].GetActivityStreamsCollection() rhs := this.properties[j].GetActivityStreamsCollection() return lhs.LessThan(rhs) - } else if idx1 == 12 { + } else if idx1 == 13 { lhs := this.properties[i].GetActivityStreamsCollectionPage() rhs := this.properties[j].GetActivityStreamsCollectionPage() return lhs.LessThan(rhs) - } else if idx1 == 13 { + } else if idx1 == 14 { + lhs := this.properties[i].GetForgeFedCommit() + rhs := this.properties[j].GetForgeFedCommit() + return lhs.LessThan(rhs) + } else if idx1 == 15 { lhs := this.properties[i].GetActivityStreamsCreate() rhs := this.properties[j].GetActivityStreamsCreate() return lhs.LessThan(rhs) - } else if idx1 == 14 { + } else if idx1 == 16 { lhs := this.properties[i].GetActivityStreamsDelete() rhs := this.properties[j].GetActivityStreamsDelete() return lhs.LessThan(rhs) - } else if idx1 == 15 { + } else if idx1 == 17 { lhs := this.properties[i].GetActivityStreamsDislike() rhs := this.properties[j].GetActivityStreamsDislike() return lhs.LessThan(rhs) - } else if idx1 == 16 { + } else if idx1 == 18 { lhs := this.properties[i].GetActivityStreamsDocument() rhs := this.properties[j].GetActivityStreamsDocument() return lhs.LessThan(rhs) - } else if idx1 == 17 { + } else if idx1 == 19 { lhs := this.properties[i].GetTootEmoji() rhs := this.properties[j].GetTootEmoji() return lhs.LessThan(rhs) - } else if idx1 == 18 { + } else if idx1 == 20 { lhs := this.properties[i].GetActivityStreamsEvent() rhs := this.properties[j].GetActivityStreamsEvent() return lhs.LessThan(rhs) - } else if idx1 == 19 { + } else if idx1 == 21 { lhs := this.properties[i].GetActivityStreamsFlag() rhs := this.properties[j].GetActivityStreamsFlag() return lhs.LessThan(rhs) - } else if idx1 == 20 { + } else if idx1 == 22 { lhs := this.properties[i].GetActivityStreamsFollow() rhs := this.properties[j].GetActivityStreamsFollow() return lhs.LessThan(rhs) - } else if idx1 == 21 { + } else if idx1 == 23 { lhs := this.properties[i].GetActivityStreamsGroup() rhs := this.properties[j].GetActivityStreamsGroup() return lhs.LessThan(rhs) - } else if idx1 == 22 { + } else if idx1 == 24 { lhs := this.properties[i].GetTootIdentityProof() rhs := this.properties[j].GetTootIdentityProof() return lhs.LessThan(rhs) - } else if idx1 == 23 { + } else if idx1 == 25 { lhs := this.properties[i].GetActivityStreamsIgnore() rhs := this.properties[j].GetActivityStreamsIgnore() return lhs.LessThan(rhs) - } else if idx1 == 24 { + } else if idx1 == 26 { lhs := this.properties[i].GetActivityStreamsImage() rhs := this.properties[j].GetActivityStreamsImage() return lhs.LessThan(rhs) - } else if idx1 == 25 { + } else if idx1 == 27 { lhs := this.properties[i].GetActivityStreamsIntransitiveActivity() rhs := this.properties[j].GetActivityStreamsIntransitiveActivity() return lhs.LessThan(rhs) - } else if idx1 == 26 { + } else if idx1 == 28 { lhs := this.properties[i].GetActivityStreamsInvite() rhs := this.properties[j].GetActivityStreamsInvite() return lhs.LessThan(rhs) - } else if idx1 == 27 { + } else if idx1 == 29 { lhs := this.properties[i].GetActivityStreamsJoin() rhs := this.properties[j].GetActivityStreamsJoin() return lhs.LessThan(rhs) - } else if idx1 == 28 { + } else if idx1 == 30 { lhs := this.properties[i].GetActivityStreamsLeave() rhs := this.properties[j].GetActivityStreamsLeave() return lhs.LessThan(rhs) - } else if idx1 == 29 { + } else if idx1 == 31 { lhs := this.properties[i].GetActivityStreamsLike() rhs := this.properties[j].GetActivityStreamsLike() return lhs.LessThan(rhs) - } else if idx1 == 30 { + } else if idx1 == 32 { lhs := this.properties[i].GetActivityStreamsListen() rhs := this.properties[j].GetActivityStreamsListen() return lhs.LessThan(rhs) - } else if idx1 == 31 { + } else if idx1 == 33 { lhs := this.properties[i].GetActivityStreamsMention() rhs := this.properties[j].GetActivityStreamsMention() return lhs.LessThan(rhs) - } else if idx1 == 32 { + } else if idx1 == 34 { lhs := this.properties[i].GetActivityStreamsMove() rhs := this.properties[j].GetActivityStreamsMove() return lhs.LessThan(rhs) - } else if idx1 == 33 { + } else if idx1 == 35 { lhs := this.properties[i].GetActivityStreamsNote() rhs := this.properties[j].GetActivityStreamsNote() return lhs.LessThan(rhs) - } else if idx1 == 34 { + } else if idx1 == 36 { lhs := this.properties[i].GetActivityStreamsOffer() rhs := this.properties[j].GetActivityStreamsOffer() return lhs.LessThan(rhs) - } else if idx1 == 35 { + } else if idx1 == 37 { lhs := this.properties[i].GetActivityStreamsOrderedCollection() rhs := this.properties[j].GetActivityStreamsOrderedCollection() return lhs.LessThan(rhs) - } else if idx1 == 36 { + } else if idx1 == 38 { lhs := this.properties[i].GetActivityStreamsOrderedCollectionPage() rhs := this.properties[j].GetActivityStreamsOrderedCollectionPage() return lhs.LessThan(rhs) - } else if idx1 == 37 { + } else if idx1 == 39 { lhs := this.properties[i].GetActivityStreamsOrganization() rhs := this.properties[j].GetActivityStreamsOrganization() return lhs.LessThan(rhs) - } else if idx1 == 38 { + } else if idx1 == 40 { lhs := this.properties[i].GetActivityStreamsPage() rhs := this.properties[j].GetActivityStreamsPage() return lhs.LessThan(rhs) - } else if idx1 == 39 { + } else if idx1 == 41 { lhs := this.properties[i].GetActivityStreamsPerson() rhs := this.properties[j].GetActivityStreamsPerson() return lhs.LessThan(rhs) - } else if idx1 == 40 { + } else if idx1 == 42 { lhs := this.properties[i].GetActivityStreamsPlace() rhs := this.properties[j].GetActivityStreamsPlace() return lhs.LessThan(rhs) - } else if idx1 == 41 { + } else if idx1 == 43 { lhs := this.properties[i].GetActivityStreamsProfile() rhs := this.properties[j].GetActivityStreamsProfile() return lhs.LessThan(rhs) - } else if idx1 == 42 { + } else if idx1 == 44 { + lhs := this.properties[i].GetForgeFedPush() + rhs := this.properties[j].GetForgeFedPush() + return lhs.LessThan(rhs) + } else if idx1 == 45 { lhs := this.properties[i].GetActivityStreamsQuestion() rhs := this.properties[j].GetActivityStreamsQuestion() return lhs.LessThan(rhs) - } else if idx1 == 43 { + } else if idx1 == 46 { lhs := this.properties[i].GetActivityStreamsRead() rhs := this.properties[j].GetActivityStreamsRead() return lhs.LessThan(rhs) - } else if idx1 == 44 { + } else if idx1 == 47 { lhs := this.properties[i].GetActivityStreamsReject() rhs := this.properties[j].GetActivityStreamsReject() return lhs.LessThan(rhs) - } else if idx1 == 45 { + } else if idx1 == 48 { lhs := this.properties[i].GetActivityStreamsRelationship() rhs := this.properties[j].GetActivityStreamsRelationship() return lhs.LessThan(rhs) - } else if idx1 == 46 { + } else if idx1 == 49 { lhs := this.properties[i].GetActivityStreamsRemove() rhs := this.properties[j].GetActivityStreamsRemove() return lhs.LessThan(rhs) - } else if idx1 == 47 { + } else if idx1 == 50 { + lhs := this.properties[i].GetForgeFedRepository() + rhs := this.properties[j].GetForgeFedRepository() + return lhs.LessThan(rhs) + } else if idx1 == 51 { lhs := this.properties[i].GetActivityStreamsService() rhs := this.properties[j].GetActivityStreamsService() return lhs.LessThan(rhs) - } else if idx1 == 48 { + } else if idx1 == 52 { lhs := this.properties[i].GetActivityStreamsTentativeAccept() rhs := this.properties[j].GetActivityStreamsTentativeAccept() return lhs.LessThan(rhs) - } else if idx1 == 49 { + } else if idx1 == 53 { lhs := this.properties[i].GetActivityStreamsTentativeReject() rhs := this.properties[j].GetActivityStreamsTentativeReject() return lhs.LessThan(rhs) - } else if idx1 == 50 { + } else if idx1 == 54 { + lhs := this.properties[i].GetForgeFedTicket() + rhs := this.properties[j].GetForgeFedTicket() + return lhs.LessThan(rhs) + } else if idx1 == 55 { + lhs := this.properties[i].GetForgeFedTicketDependency() + rhs := this.properties[j].GetForgeFedTicketDependency() + return lhs.LessThan(rhs) + } else if idx1 == 56 { lhs := this.properties[i].GetActivityStreamsTombstone() rhs := this.properties[j].GetActivityStreamsTombstone() return lhs.LessThan(rhs) - } else if idx1 == 51 { + } else if idx1 == 57 { lhs := this.properties[i].GetActivityStreamsTravel() rhs := this.properties[j].GetActivityStreamsTravel() return lhs.LessThan(rhs) - } else if idx1 == 52 { + } else if idx1 == 58 { lhs := this.properties[i].GetActivityStreamsUndo() rhs := this.properties[j].GetActivityStreamsUndo() return lhs.LessThan(rhs) - } else if idx1 == 53 { + } else if idx1 == 59 { lhs := this.properties[i].GetActivityStreamsUpdate() rhs := this.properties[j].GetActivityStreamsUpdate() return lhs.LessThan(rhs) - } else if idx1 == 54 { + } else if idx1 == 60 { lhs := this.properties[i].GetActivityStreamsVideo() rhs := this.properties[j].GetActivityStreamsVideo() return lhs.LessThan(rhs) - } else if idx1 == 55 { + } else if idx1 == 61 { lhs := this.properties[i].GetActivityStreamsView() rhs := this.properties[j].GetActivityStreamsView() return lhs.LessThan(rhs) @@ -5550,6 +6015,90 @@ func (this *ActivityStreamsObjectProperty) PrependActivityStreamsView(v vocab.Ac } } +// PrependForgeFedBranch prepends a Branch value to the front of a list of the +// property "object". Invalidates all iterators. +func (this *ActivityStreamsObjectProperty) PrependForgeFedBranch(v vocab.ForgeFedBranch) { + this.properties = append([]*ActivityStreamsObjectPropertyIterator{{ + alias: this.alias, + forgefedBranchMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependForgeFedCommit prepends a Commit value to the front of a list of the +// property "object". Invalidates all iterators. +func (this *ActivityStreamsObjectProperty) PrependForgeFedCommit(v vocab.ForgeFedCommit) { + this.properties = append([]*ActivityStreamsObjectPropertyIterator{{ + alias: this.alias, + forgefedCommitMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependForgeFedPush prepends a Push value to the front of a list of the +// property "object". Invalidates all iterators. +func (this *ActivityStreamsObjectProperty) PrependForgeFedPush(v vocab.ForgeFedPush) { + this.properties = append([]*ActivityStreamsObjectPropertyIterator{{ + alias: this.alias, + forgefedPushMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependForgeFedRepository prepends a Repository value to the front of a list of +// the property "object". Invalidates all iterators. +func (this *ActivityStreamsObjectProperty) PrependForgeFedRepository(v vocab.ForgeFedRepository) { + this.properties = append([]*ActivityStreamsObjectPropertyIterator{{ + alias: this.alias, + forgefedRepositoryMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependForgeFedTicket prepends a Ticket value to the front of a list of the +// property "object". Invalidates all iterators. +func (this *ActivityStreamsObjectProperty) PrependForgeFedTicket(v vocab.ForgeFedTicket) { + this.properties = append([]*ActivityStreamsObjectPropertyIterator{{ + alias: this.alias, + forgefedTicketMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependForgeFedTicketDependency prepends a TicketDependency value to the front +// of a list of the property "object". Invalidates all iterators. +func (this *ActivityStreamsObjectProperty) PrependForgeFedTicketDependency(v vocab.ForgeFedTicketDependency) { + this.properties = append([]*ActivityStreamsObjectPropertyIterator{{ + alias: this.alias, + forgefedTicketDependencyMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + // PrependIRI prepends an IRI value to the front of a list of the property // "object". func (this *ActivityStreamsObjectProperty) PrependIRI(v *url.URL) { @@ -6346,6 +6895,83 @@ func (this *ActivityStreamsObjectProperty) SetActivityStreamsView(idx int, v voc } } +// SetForgeFedBranch sets a Branch value to be at the specified index for the +// property "object". Panics if the index is out of bounds. Invalidates all +// iterators. +func (this *ActivityStreamsObjectProperty) SetForgeFedBranch(idx int, v vocab.ForgeFedBranch) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsObjectPropertyIterator{ + alias: this.alias, + forgefedBranchMember: v, + myIdx: idx, + parent: this, + } +} + +// SetForgeFedCommit sets a Commit value to be at the specified index for the +// property "object". Panics if the index is out of bounds. Invalidates all +// iterators. +func (this *ActivityStreamsObjectProperty) SetForgeFedCommit(idx int, v vocab.ForgeFedCommit) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsObjectPropertyIterator{ + alias: this.alias, + forgefedCommitMember: v, + myIdx: idx, + parent: this, + } +} + +// SetForgeFedPush sets a Push value to be at the specified index for the property +// "object". Panics if the index is out of bounds. Invalidates all iterators. +func (this *ActivityStreamsObjectProperty) SetForgeFedPush(idx int, v vocab.ForgeFedPush) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsObjectPropertyIterator{ + alias: this.alias, + forgefedPushMember: v, + myIdx: idx, + parent: this, + } +} + +// SetForgeFedRepository sets a Repository value to be at the specified index for +// the property "object". Panics if the index is out of bounds. Invalidates +// all iterators. +func (this *ActivityStreamsObjectProperty) SetForgeFedRepository(idx int, v vocab.ForgeFedRepository) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsObjectPropertyIterator{ + alias: this.alias, + forgefedRepositoryMember: v, + myIdx: idx, + parent: this, + } +} + +// SetForgeFedTicket sets a Ticket value to be at the specified index for the +// property "object". Panics if the index is out of bounds. Invalidates all +// iterators. +func (this *ActivityStreamsObjectProperty) SetForgeFedTicket(idx int, v vocab.ForgeFedTicket) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsObjectPropertyIterator{ + alias: this.alias, + forgefedTicketMember: v, + myIdx: idx, + parent: this, + } +} + +// SetForgeFedTicketDependency sets a TicketDependency value to be at the +// specified index for the property "object". Panics if the index is out of +// bounds. Invalidates all iterators. +func (this *ActivityStreamsObjectProperty) SetForgeFedTicketDependency(idx int, v vocab.ForgeFedTicketDependency) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsObjectPropertyIterator{ + alias: this.alias, + forgefedTicketDependencyMember: v, + myIdx: idx, + parent: this, + } +} + // SetIRI sets an IRI value to be at the specified index for the property // "object". Panics if the index is out of bounds. func (this *ActivityStreamsObjectProperty) SetIRI(idx int, v *url.URL) { diff --git a/streams/impl/activitystreams/property_oneof/gen_pkg.go b/streams/impl/activitystreams/property_oneof/gen_pkg.go index 768b9c6..f0a1b46 100644 --- a/streams/impl/activitystreams/property_oneof/gen_pkg.go +++ b/streams/impl/activitystreams/property_oneof/gen_pkg.go @@ -45,6 +45,10 @@ type privateManager interface { // 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" @@ -53,6 +57,10 @@ type privateManager interface { // 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" @@ -177,6 +185,9 @@ type privateManager interface { // 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" @@ -197,6 +208,10 @@ type privateManager interface { // 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" @@ -209,6 +224,14 @@ type privateManager interface { // 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" diff --git a/streams/impl/activitystreams/property_oneof/gen_property_activitystreams_oneOf.go b/streams/impl/activitystreams/property_oneof/gen_property_activitystreams_oneOf.go index c09b395..4561cec 100644 --- a/streams/impl/activitystreams/property_oneof/gen_property_activitystreams_oneOf.go +++ b/streams/impl/activitystreams/property_oneof/gen_property_activitystreams_oneOf.go @@ -25,8 +25,10 @@ type ActivityStreamsOneOfPropertyIterator struct { 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 @@ -56,14 +58,18 @@ type ActivityStreamsOneOfPropertyIterator struct { 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 @@ -169,6 +175,12 @@ func deserializeActivityStreamsOneOfPropertyIterator(i interface{}, aliasMap map alias: alias, } return this, nil + } else if v, err := mgr.DeserializeBranchForgeFed()(m, aliasMap); err == nil { + this := &ActivityStreamsOneOfPropertyIterator{ + alias: alias, + forgefedBranchMember: v, + } + return this, nil } else if v, err := mgr.DeserializeCollectionActivityStreams()(m, aliasMap); err == nil { this := &ActivityStreamsOneOfPropertyIterator{ activitystreamsCollectionMember: v, @@ -181,6 +193,12 @@ func deserializeActivityStreamsOneOfPropertyIterator(i interface{}, aliasMap map alias: alias, } return this, nil + } else if v, err := mgr.DeserializeCommitForgeFed()(m, aliasMap); err == nil { + this := &ActivityStreamsOneOfPropertyIterator{ + alias: alias, + forgefedCommitMember: v, + } + return this, nil } else if v, err := mgr.DeserializeCreateActivityStreams()(m, aliasMap); err == nil { this := &ActivityStreamsOneOfPropertyIterator{ activitystreamsCreateMember: v, @@ -355,6 +373,12 @@ func deserializeActivityStreamsOneOfPropertyIterator(i interface{}, aliasMap map alias: alias, } return this, nil + } else if v, err := mgr.DeserializePushForgeFed()(m, aliasMap); err == nil { + this := &ActivityStreamsOneOfPropertyIterator{ + alias: alias, + forgefedPushMember: v, + } + return this, nil } else if v, err := mgr.DeserializeQuestionActivityStreams()(m, aliasMap); err == nil { this := &ActivityStreamsOneOfPropertyIterator{ activitystreamsQuestionMember: v, @@ -385,6 +409,12 @@ func deserializeActivityStreamsOneOfPropertyIterator(i interface{}, aliasMap map alias: alias, } return this, nil + } else if v, err := mgr.DeserializeRepositoryForgeFed()(m, aliasMap); err == nil { + this := &ActivityStreamsOneOfPropertyIterator{ + alias: alias, + forgefedRepositoryMember: v, + } + return this, nil } else if v, err := mgr.DeserializeServiceActivityStreams()(m, aliasMap); err == nil { this := &ActivityStreamsOneOfPropertyIterator{ activitystreamsServiceMember: v, @@ -403,6 +433,18 @@ func deserializeActivityStreamsOneOfPropertyIterator(i interface{}, aliasMap map alias: alias, } return this, nil + } else if v, err := mgr.DeserializeTicketForgeFed()(m, aliasMap); err == nil { + this := &ActivityStreamsOneOfPropertyIterator{ + alias: alias, + forgefedTicketMember: v, + } + return this, nil + } else if v, err := mgr.DeserializeTicketDependencyForgeFed()(m, aliasMap); err == nil { + this := &ActivityStreamsOneOfPropertyIterator{ + alias: alias, + forgefedTicketDependencyMember: v, + } + return this, nil } else if v, err := mgr.DeserializeTombstoneActivityStreams()(m, aliasMap); err == nil { this := &ActivityStreamsOneOfPropertyIterator{ activitystreamsTombstoneMember: v, @@ -826,6 +868,44 @@ func (this ActivityStreamsOneOfPropertyIterator) GetActivityStreamsView() vocab. return this.activitystreamsViewMember } +// GetForgeFedBranch returns the value of this property. When IsForgeFedBranch +// returns false, GetForgeFedBranch will return an arbitrary value. +func (this ActivityStreamsOneOfPropertyIterator) GetForgeFedBranch() vocab.ForgeFedBranch { + return this.forgefedBranchMember +} + +// GetForgeFedCommit returns the value of this property. When IsForgeFedCommit +// returns false, GetForgeFedCommit will return an arbitrary value. +func (this ActivityStreamsOneOfPropertyIterator) GetForgeFedCommit() vocab.ForgeFedCommit { + return this.forgefedCommitMember +} + +// GetForgeFedPush returns the value of this property. When IsForgeFedPush returns +// false, GetForgeFedPush will return an arbitrary value. +func (this ActivityStreamsOneOfPropertyIterator) GetForgeFedPush() vocab.ForgeFedPush { + return this.forgefedPushMember +} + +// GetForgeFedRepository returns the value of this property. When +// IsForgeFedRepository returns false, GetForgeFedRepository will return an +// arbitrary value. +func (this ActivityStreamsOneOfPropertyIterator) GetForgeFedRepository() vocab.ForgeFedRepository { + return this.forgefedRepositoryMember +} + +// GetForgeFedTicket returns the value of this property. When IsForgeFedTicket +// returns false, GetForgeFedTicket will return an arbitrary value. +func (this ActivityStreamsOneOfPropertyIterator) GetForgeFedTicket() vocab.ForgeFedTicket { + return this.forgefedTicketMember +} + +// GetForgeFedTicketDependency returns the value of this property. When +// IsForgeFedTicketDependency returns false, GetForgeFedTicketDependency will +// return an arbitrary value. +func (this ActivityStreamsOneOfPropertyIterator) GetForgeFedTicketDependency() vocab.ForgeFedTicketDependency { + return this.forgefedTicketDependencyMember +} + // GetIRI returns the IRI of this property. When IsIRI returns false, GetIRI will // return an arbitrary value. func (this ActivityStreamsOneOfPropertyIterator) GetIRI() *url.URL { @@ -881,12 +961,18 @@ func (this ActivityStreamsOneOfPropertyIterator) GetType() vocab.Type { 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() } @@ -974,6 +1060,9 @@ func (this ActivityStreamsOneOfPropertyIterator) GetType() vocab.Type { if this.IsActivityStreamsProfile() { return this.GetActivityStreamsProfile() } + if this.IsForgeFedPush() { + return this.GetForgeFedPush() + } if this.IsActivityStreamsQuestion() { return this.GetActivityStreamsQuestion() } @@ -989,6 +1078,9 @@ func (this ActivityStreamsOneOfPropertyIterator) GetType() vocab.Type { if this.IsActivityStreamsRemove() { return this.GetActivityStreamsRemove() } + if this.IsForgeFedRepository() { + return this.GetForgeFedRepository() + } if this.IsActivityStreamsService() { return this.GetActivityStreamsService() } @@ -998,6 +1090,12 @@ func (this ActivityStreamsOneOfPropertyIterator) GetType() vocab.Type { if this.IsActivityStreamsTentativeReject() { return this.GetActivityStreamsTentativeReject() } + if this.IsForgeFedTicket() { + return this.GetForgeFedTicket() + } + if this.IsForgeFedTicketDependency() { + return this.GetForgeFedTicketDependency() + } if this.IsActivityStreamsTombstone() { return this.GetActivityStreamsTombstone() } @@ -1033,8 +1131,10 @@ func (this ActivityStreamsOneOfPropertyIterator) HasAny() bool { this.IsActivityStreamsArticle() || this.IsActivityStreamsAudio() || this.IsActivityStreamsBlock() || + this.IsForgeFedBranch() || this.IsActivityStreamsCollection() || this.IsActivityStreamsCollectionPage() || + this.IsForgeFedCommit() || this.IsActivityStreamsCreate() || this.IsActivityStreamsDelete() || this.IsActivityStreamsDislike() || @@ -1064,14 +1164,18 @@ func (this ActivityStreamsOneOfPropertyIterator) HasAny() bool { 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() || @@ -1464,6 +1568,48 @@ func (this ActivityStreamsOneOfPropertyIterator) IsActivityStreamsView() bool { return this.activitystreamsViewMember != nil } +// IsForgeFedBranch returns true if this property has a type of "Branch". When +// true, use the GetForgeFedBranch and SetForgeFedBranch methods to access and +// set this property. +func (this ActivityStreamsOneOfPropertyIterator) IsForgeFedBranch() bool { + return this.forgefedBranchMember != nil +} + +// IsForgeFedCommit returns true if this property has a type of "Commit". When +// true, use the GetForgeFedCommit and SetForgeFedCommit methods to access and +// set this property. +func (this ActivityStreamsOneOfPropertyIterator) IsForgeFedCommit() bool { + return this.forgefedCommitMember != nil +} + +// IsForgeFedPush returns true if this property has a type of "Push". When true, +// use the GetForgeFedPush and SetForgeFedPush methods to access and set this +// property. +func (this ActivityStreamsOneOfPropertyIterator) IsForgeFedPush() bool { + return this.forgefedPushMember != nil +} + +// IsForgeFedRepository returns true if this property has a type of "Repository". +// When true, use the GetForgeFedRepository and SetForgeFedRepository methods +// to access and set this property. +func (this ActivityStreamsOneOfPropertyIterator) IsForgeFedRepository() bool { + return this.forgefedRepositoryMember != nil +} + +// IsForgeFedTicket returns true if this property has a type of "Ticket". When +// true, use the GetForgeFedTicket and SetForgeFedTicket methods to access and +// set this property. +func (this ActivityStreamsOneOfPropertyIterator) IsForgeFedTicket() bool { + return this.forgefedTicketMember != nil +} + +// IsForgeFedTicketDependency returns true if this property has a type of +// "TicketDependency". When true, use the GetForgeFedTicketDependency and +// SetForgeFedTicketDependency methods to access and set this property. +func (this ActivityStreamsOneOfPropertyIterator) IsForgeFedTicketDependency() bool { + return this.forgefedTicketDependencyMember != nil +} + // IsIRI returns true if this property is an IRI. When true, use GetIRI and SetIRI // to access and set this property func (this ActivityStreamsOneOfPropertyIterator) IsIRI() bool { @@ -1511,10 +1657,14 @@ func (this ActivityStreamsOneOfPropertyIterator) JSONLDContext() map[string]stri 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() { @@ -1573,6 +1723,8 @@ func (this ActivityStreamsOneOfPropertyIterator) JSONLDContext() map[string]stri 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() { @@ -1583,12 +1735,18 @@ func (this ActivityStreamsOneOfPropertyIterator) JSONLDContext() map[string]stri 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() { @@ -1650,141 +1808,159 @@ func (this ActivityStreamsOneOfPropertyIterator) KindIndex() int { if this.IsActivityStreamsBlock() { return 10 } - if this.IsActivityStreamsCollection() { + if this.IsForgeFedBranch() { return 11 } - if this.IsActivityStreamsCollectionPage() { + if this.IsActivityStreamsCollection() { return 12 } - if this.IsActivityStreamsCreate() { + if this.IsActivityStreamsCollectionPage() { return 13 } - if this.IsActivityStreamsDelete() { + if this.IsForgeFedCommit() { return 14 } - if this.IsActivityStreamsDislike() { + if this.IsActivityStreamsCreate() { return 15 } - if this.IsActivityStreamsDocument() { + if this.IsActivityStreamsDelete() { return 16 } - if this.IsTootEmoji() { + if this.IsActivityStreamsDislike() { return 17 } - if this.IsActivityStreamsEvent() { + if this.IsActivityStreamsDocument() { return 18 } - if this.IsActivityStreamsFlag() { + if this.IsTootEmoji() { return 19 } - if this.IsActivityStreamsFollow() { + if this.IsActivityStreamsEvent() { return 20 } - if this.IsActivityStreamsGroup() { + if this.IsActivityStreamsFlag() { return 21 } - if this.IsTootIdentityProof() { + if this.IsActivityStreamsFollow() { return 22 } - if this.IsActivityStreamsIgnore() { + if this.IsActivityStreamsGroup() { return 23 } - if this.IsActivityStreamsImage() { + if this.IsTootIdentityProof() { return 24 } - if this.IsActivityStreamsIntransitiveActivity() { + if this.IsActivityStreamsIgnore() { return 25 } - if this.IsActivityStreamsInvite() { + if this.IsActivityStreamsImage() { return 26 } - if this.IsActivityStreamsJoin() { + if this.IsActivityStreamsIntransitiveActivity() { return 27 } - if this.IsActivityStreamsLeave() { + if this.IsActivityStreamsInvite() { return 28 } - if this.IsActivityStreamsLike() { + if this.IsActivityStreamsJoin() { return 29 } - if this.IsActivityStreamsListen() { + if this.IsActivityStreamsLeave() { return 30 } - if this.IsActivityStreamsMention() { + if this.IsActivityStreamsLike() { return 31 } - if this.IsActivityStreamsMove() { + if this.IsActivityStreamsListen() { return 32 } - if this.IsActivityStreamsNote() { + if this.IsActivityStreamsMention() { return 33 } - if this.IsActivityStreamsOffer() { + if this.IsActivityStreamsMove() { return 34 } - if this.IsActivityStreamsOrderedCollection() { + if this.IsActivityStreamsNote() { return 35 } - if this.IsActivityStreamsOrderedCollectionPage() { + if this.IsActivityStreamsOffer() { return 36 } - if this.IsActivityStreamsOrganization() { + if this.IsActivityStreamsOrderedCollection() { return 37 } - if this.IsActivityStreamsPage() { + if this.IsActivityStreamsOrderedCollectionPage() { return 38 } - if this.IsActivityStreamsPerson() { + if this.IsActivityStreamsOrganization() { return 39 } - if this.IsActivityStreamsPlace() { + if this.IsActivityStreamsPage() { return 40 } - if this.IsActivityStreamsProfile() { + if this.IsActivityStreamsPerson() { return 41 } - if this.IsActivityStreamsQuestion() { + if this.IsActivityStreamsPlace() { return 42 } - if this.IsActivityStreamsRead() { + if this.IsActivityStreamsProfile() { return 43 } - if this.IsActivityStreamsReject() { + if this.IsForgeFedPush() { return 44 } - if this.IsActivityStreamsRelationship() { + if this.IsActivityStreamsQuestion() { return 45 } - if this.IsActivityStreamsRemove() { + if this.IsActivityStreamsRead() { return 46 } - if this.IsActivityStreamsService() { + if this.IsActivityStreamsReject() { return 47 } - if this.IsActivityStreamsTentativeAccept() { + if this.IsActivityStreamsRelationship() { return 48 } - if this.IsActivityStreamsTentativeReject() { + if this.IsActivityStreamsRemove() { return 49 } - if this.IsActivityStreamsTombstone() { + if this.IsForgeFedRepository() { return 50 } - if this.IsActivityStreamsTravel() { + if this.IsActivityStreamsService() { return 51 } - if this.IsActivityStreamsUndo() { + if this.IsActivityStreamsTentativeAccept() { return 52 } - if this.IsActivityStreamsUpdate() { + if this.IsActivityStreamsTentativeReject() { return 53 } - if this.IsActivityStreamsVideo() { + if this.IsForgeFedTicket() { return 54 } - if this.IsActivityStreamsView() { + 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 } @@ -1824,10 +2000,14 @@ func (this ActivityStreamsOneOfPropertyIterator) LessThan(o vocab.ActivityStream 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() { @@ -1886,6 +2066,8 @@ func (this ActivityStreamsOneOfPropertyIterator) LessThan(o vocab.ActivityStream 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() { @@ -1896,12 +2078,18 @@ func (this ActivityStreamsOneOfPropertyIterator) LessThan(o vocab.ActivityStream 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() { @@ -2325,6 +2513,48 @@ func (this *ActivityStreamsOneOfPropertyIterator) SetActivityStreamsView(v vocab this.activitystreamsViewMember = v } +// SetForgeFedBranch sets the value of this property. Calling IsForgeFedBranch +// afterwards returns true. +func (this *ActivityStreamsOneOfPropertyIterator) SetForgeFedBranch(v vocab.ForgeFedBranch) { + this.clear() + this.forgefedBranchMember = v +} + +// SetForgeFedCommit sets the value of this property. Calling IsForgeFedCommit +// afterwards returns true. +func (this *ActivityStreamsOneOfPropertyIterator) SetForgeFedCommit(v vocab.ForgeFedCommit) { + this.clear() + this.forgefedCommitMember = v +} + +// SetForgeFedPush sets the value of this property. Calling IsForgeFedPush +// afterwards returns true. +func (this *ActivityStreamsOneOfPropertyIterator) SetForgeFedPush(v vocab.ForgeFedPush) { + this.clear() + this.forgefedPushMember = v +} + +// SetForgeFedRepository sets the value of this property. Calling +// IsForgeFedRepository afterwards returns true. +func (this *ActivityStreamsOneOfPropertyIterator) SetForgeFedRepository(v vocab.ForgeFedRepository) { + this.clear() + this.forgefedRepositoryMember = v +} + +// SetForgeFedTicket sets the value of this property. Calling IsForgeFedTicket +// afterwards returns true. +func (this *ActivityStreamsOneOfPropertyIterator) SetForgeFedTicket(v vocab.ForgeFedTicket) { + this.clear() + this.forgefedTicketMember = v +} + +// SetForgeFedTicketDependency sets the value of this property. Calling +// IsForgeFedTicketDependency afterwards returns true. +func (this *ActivityStreamsOneOfPropertyIterator) SetForgeFedTicketDependency(v vocab.ForgeFedTicketDependency) { + this.clear() + this.forgefedTicketDependencyMember = v +} + // SetIRI sets the value of this property. Calling IsIRI afterwards returns true. func (this *ActivityStreamsOneOfPropertyIterator) SetIRI(v *url.URL) { this.clear() @@ -2392,6 +2622,10 @@ func (this *ActivityStreamsOneOfPropertyIterator) SetType(t vocab.Type) error { 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 @@ -2400,6 +2634,10 @@ func (this *ActivityStreamsOneOfPropertyIterator) SetType(t vocab.Type) error { 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 @@ -2516,6 +2754,10 @@ func (this *ActivityStreamsOneOfPropertyIterator) SetType(t vocab.Type) error { 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 @@ -2536,6 +2778,10 @@ func (this *ActivityStreamsOneOfPropertyIterator) SetType(t vocab.Type) error { 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 @@ -2548,6 +2794,14 @@ func (this *ActivityStreamsOneOfPropertyIterator) SetType(t vocab.Type) error { 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 @@ -2590,8 +2844,10 @@ func (this *ActivityStreamsOneOfPropertyIterator) clear() { 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 @@ -2621,14 +2877,18 @@ func (this *ActivityStreamsOneOfPropertyIterator) clear() { 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 @@ -2666,10 +2926,14 @@ func (this ActivityStreamsOneOfPropertyIterator) serialize() (interface{}, error 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() { @@ -2728,6 +2992,8 @@ func (this ActivityStreamsOneOfPropertyIterator) serialize() (interface{}, error 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() { @@ -2738,12 +3004,18 @@ func (this ActivityStreamsOneOfPropertyIterator) serialize() (interface{}, error 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() { @@ -3422,6 +3694,73 @@ func (this *ActivityStreamsOneOfProperty) AppendActivityStreamsView(v vocab.Acti }) } +// AppendForgeFedBranch appends a Branch value to the back of a list of the +// property "oneOf". Invalidates iterators that are traversing using Prev. +func (this *ActivityStreamsOneOfProperty) AppendForgeFedBranch(v vocab.ForgeFedBranch) { + this.properties = append(this.properties, &ActivityStreamsOneOfPropertyIterator{ + alias: this.alias, + forgefedBranchMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendForgeFedCommit appends a Commit value to the back of a list of the +// property "oneOf". Invalidates iterators that are traversing using Prev. +func (this *ActivityStreamsOneOfProperty) AppendForgeFedCommit(v vocab.ForgeFedCommit) { + this.properties = append(this.properties, &ActivityStreamsOneOfPropertyIterator{ + alias: this.alias, + forgefedCommitMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendForgeFedPush appends a Push value to the back of a list of the property +// "oneOf". Invalidates iterators that are traversing using Prev. +func (this *ActivityStreamsOneOfProperty) AppendForgeFedPush(v vocab.ForgeFedPush) { + this.properties = append(this.properties, &ActivityStreamsOneOfPropertyIterator{ + alias: this.alias, + forgefedPushMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendForgeFedRepository appends a Repository value to the back of a list of +// the property "oneOf". Invalidates iterators that are traversing using Prev. +func (this *ActivityStreamsOneOfProperty) AppendForgeFedRepository(v vocab.ForgeFedRepository) { + this.properties = append(this.properties, &ActivityStreamsOneOfPropertyIterator{ + alias: this.alias, + forgefedRepositoryMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendForgeFedTicket appends a Ticket value to the back of a list of the +// property "oneOf". Invalidates iterators that are traversing using Prev. +func (this *ActivityStreamsOneOfProperty) AppendForgeFedTicket(v vocab.ForgeFedTicket) { + this.properties = append(this.properties, &ActivityStreamsOneOfPropertyIterator{ + alias: this.alias, + forgefedTicketMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendForgeFedTicketDependency appends a TicketDependency value to the back of +// a list of the property "oneOf". Invalidates iterators that are traversing +// using Prev. +func (this *ActivityStreamsOneOfProperty) AppendForgeFedTicketDependency(v vocab.ForgeFedTicketDependency) { + this.properties = append(this.properties, &ActivityStreamsOneOfPropertyIterator{ + alias: this.alias, + forgefedTicketDependencyMember: v, + myIdx: this.Len(), + parent: this, + }) +} + // AppendIRI appends an IRI value to the back of a list of the property "oneOf" func (this *ActivityStreamsOneOfProperty) AppendIRI(v *url.URL) { this.properties = append(this.properties, &ActivityStreamsOneOfPropertyIterator{ @@ -4417,6 +4756,108 @@ func (this *ActivityStreamsOneOfProperty) InsertActivityStreamsView(idx int, v v } } +// InsertForgeFedBranch inserts a Branch value at the specified index for a +// property "oneOf". Existing elements at that index and higher are shifted +// back once. Invalidates all iterators. +func (this *ActivityStreamsOneOfProperty) InsertForgeFedBranch(idx int, v vocab.ForgeFedBranch) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsOneOfPropertyIterator{ + alias: this.alias, + forgefedBranchMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertForgeFedCommit inserts a Commit value at the specified index for a +// property "oneOf". Existing elements at that index and higher are shifted +// back once. Invalidates all iterators. +func (this *ActivityStreamsOneOfProperty) InsertForgeFedCommit(idx int, v vocab.ForgeFedCommit) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsOneOfPropertyIterator{ + alias: this.alias, + forgefedCommitMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertForgeFedPush inserts a Push value at the specified index for a property +// "oneOf". Existing elements at that index and higher are shifted back once. +// Invalidates all iterators. +func (this *ActivityStreamsOneOfProperty) InsertForgeFedPush(idx int, v vocab.ForgeFedPush) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsOneOfPropertyIterator{ + alias: this.alias, + forgefedPushMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertForgeFedRepository inserts a Repository value at the specified index for +// a property "oneOf". Existing elements at that index and higher are shifted +// back once. Invalidates all iterators. +func (this *ActivityStreamsOneOfProperty) InsertForgeFedRepository(idx int, v vocab.ForgeFedRepository) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsOneOfPropertyIterator{ + alias: this.alias, + forgefedRepositoryMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertForgeFedTicket inserts a Ticket value at the specified index for a +// property "oneOf". Existing elements at that index and higher are shifted +// back once. Invalidates all iterators. +func (this *ActivityStreamsOneOfProperty) InsertForgeFedTicket(idx int, v vocab.ForgeFedTicket) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsOneOfPropertyIterator{ + alias: this.alias, + forgefedTicketMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertForgeFedTicketDependency inserts a TicketDependency value at the +// specified index for a property "oneOf". Existing elements at that index and +// higher are shifted back once. Invalidates all iterators. +func (this *ActivityStreamsOneOfProperty) InsertForgeFedTicketDependency(idx int, v vocab.ForgeFedTicketDependency) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsOneOfPropertyIterator{ + alias: this.alias, + forgefedTicketDependencyMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + // Insert inserts an IRI value at the specified index for a property "oneOf". // Existing elements at that index and higher are shifted back once. // Invalidates all iterators. @@ -4574,182 +5015,206 @@ func (this ActivityStreamsOneOfProperty) Less(i, j int) bool { rhs := this.properties[j].GetActivityStreamsBlock() return lhs.LessThan(rhs) } else if idx1 == 11 { + lhs := this.properties[i].GetForgeFedBranch() + rhs := this.properties[j].GetForgeFedBranch() + return lhs.LessThan(rhs) + } else if idx1 == 12 { lhs := this.properties[i].GetActivityStreamsCollection() rhs := this.properties[j].GetActivityStreamsCollection() return lhs.LessThan(rhs) - } else if idx1 == 12 { + } else if idx1 == 13 { lhs := this.properties[i].GetActivityStreamsCollectionPage() rhs := this.properties[j].GetActivityStreamsCollectionPage() return lhs.LessThan(rhs) - } else if idx1 == 13 { + } else if idx1 == 14 { + lhs := this.properties[i].GetForgeFedCommit() + rhs := this.properties[j].GetForgeFedCommit() + return lhs.LessThan(rhs) + } else if idx1 == 15 { lhs := this.properties[i].GetActivityStreamsCreate() rhs := this.properties[j].GetActivityStreamsCreate() return lhs.LessThan(rhs) - } else if idx1 == 14 { + } else if idx1 == 16 { lhs := this.properties[i].GetActivityStreamsDelete() rhs := this.properties[j].GetActivityStreamsDelete() return lhs.LessThan(rhs) - } else if idx1 == 15 { + } else if idx1 == 17 { lhs := this.properties[i].GetActivityStreamsDislike() rhs := this.properties[j].GetActivityStreamsDislike() return lhs.LessThan(rhs) - } else if idx1 == 16 { + } else if idx1 == 18 { lhs := this.properties[i].GetActivityStreamsDocument() rhs := this.properties[j].GetActivityStreamsDocument() return lhs.LessThan(rhs) - } else if idx1 == 17 { + } else if idx1 == 19 { lhs := this.properties[i].GetTootEmoji() rhs := this.properties[j].GetTootEmoji() return lhs.LessThan(rhs) - } else if idx1 == 18 { + } else if idx1 == 20 { lhs := this.properties[i].GetActivityStreamsEvent() rhs := this.properties[j].GetActivityStreamsEvent() return lhs.LessThan(rhs) - } else if idx1 == 19 { + } else if idx1 == 21 { lhs := this.properties[i].GetActivityStreamsFlag() rhs := this.properties[j].GetActivityStreamsFlag() return lhs.LessThan(rhs) - } else if idx1 == 20 { + } else if idx1 == 22 { lhs := this.properties[i].GetActivityStreamsFollow() rhs := this.properties[j].GetActivityStreamsFollow() return lhs.LessThan(rhs) - } else if idx1 == 21 { + } else if idx1 == 23 { lhs := this.properties[i].GetActivityStreamsGroup() rhs := this.properties[j].GetActivityStreamsGroup() return lhs.LessThan(rhs) - } else if idx1 == 22 { + } else if idx1 == 24 { lhs := this.properties[i].GetTootIdentityProof() rhs := this.properties[j].GetTootIdentityProof() return lhs.LessThan(rhs) - } else if idx1 == 23 { + } else if idx1 == 25 { lhs := this.properties[i].GetActivityStreamsIgnore() rhs := this.properties[j].GetActivityStreamsIgnore() return lhs.LessThan(rhs) - } else if idx1 == 24 { + } else if idx1 == 26 { lhs := this.properties[i].GetActivityStreamsImage() rhs := this.properties[j].GetActivityStreamsImage() return lhs.LessThan(rhs) - } else if idx1 == 25 { + } else if idx1 == 27 { lhs := this.properties[i].GetActivityStreamsIntransitiveActivity() rhs := this.properties[j].GetActivityStreamsIntransitiveActivity() return lhs.LessThan(rhs) - } else if idx1 == 26 { + } else if idx1 == 28 { lhs := this.properties[i].GetActivityStreamsInvite() rhs := this.properties[j].GetActivityStreamsInvite() return lhs.LessThan(rhs) - } else if idx1 == 27 { + } else if idx1 == 29 { lhs := this.properties[i].GetActivityStreamsJoin() rhs := this.properties[j].GetActivityStreamsJoin() return lhs.LessThan(rhs) - } else if idx1 == 28 { + } else if idx1 == 30 { lhs := this.properties[i].GetActivityStreamsLeave() rhs := this.properties[j].GetActivityStreamsLeave() return lhs.LessThan(rhs) - } else if idx1 == 29 { + } else if idx1 == 31 { lhs := this.properties[i].GetActivityStreamsLike() rhs := this.properties[j].GetActivityStreamsLike() return lhs.LessThan(rhs) - } else if idx1 == 30 { + } else if idx1 == 32 { lhs := this.properties[i].GetActivityStreamsListen() rhs := this.properties[j].GetActivityStreamsListen() return lhs.LessThan(rhs) - } else if idx1 == 31 { + } else if idx1 == 33 { lhs := this.properties[i].GetActivityStreamsMention() rhs := this.properties[j].GetActivityStreamsMention() return lhs.LessThan(rhs) - } else if idx1 == 32 { + } else if idx1 == 34 { lhs := this.properties[i].GetActivityStreamsMove() rhs := this.properties[j].GetActivityStreamsMove() return lhs.LessThan(rhs) - } else if idx1 == 33 { + } else if idx1 == 35 { lhs := this.properties[i].GetActivityStreamsNote() rhs := this.properties[j].GetActivityStreamsNote() return lhs.LessThan(rhs) - } else if idx1 == 34 { + } else if idx1 == 36 { lhs := this.properties[i].GetActivityStreamsOffer() rhs := this.properties[j].GetActivityStreamsOffer() return lhs.LessThan(rhs) - } else if idx1 == 35 { + } else if idx1 == 37 { lhs := this.properties[i].GetActivityStreamsOrderedCollection() rhs := this.properties[j].GetActivityStreamsOrderedCollection() return lhs.LessThan(rhs) - } else if idx1 == 36 { + } else if idx1 == 38 { lhs := this.properties[i].GetActivityStreamsOrderedCollectionPage() rhs := this.properties[j].GetActivityStreamsOrderedCollectionPage() return lhs.LessThan(rhs) - } else if idx1 == 37 { + } else if idx1 == 39 { lhs := this.properties[i].GetActivityStreamsOrganization() rhs := this.properties[j].GetActivityStreamsOrganization() return lhs.LessThan(rhs) - } else if idx1 == 38 { + } else if idx1 == 40 { lhs := this.properties[i].GetActivityStreamsPage() rhs := this.properties[j].GetActivityStreamsPage() return lhs.LessThan(rhs) - } else if idx1 == 39 { + } else if idx1 == 41 { lhs := this.properties[i].GetActivityStreamsPerson() rhs := this.properties[j].GetActivityStreamsPerson() return lhs.LessThan(rhs) - } else if idx1 == 40 { + } else if idx1 == 42 { lhs := this.properties[i].GetActivityStreamsPlace() rhs := this.properties[j].GetActivityStreamsPlace() return lhs.LessThan(rhs) - } else if idx1 == 41 { + } else if idx1 == 43 { lhs := this.properties[i].GetActivityStreamsProfile() rhs := this.properties[j].GetActivityStreamsProfile() return lhs.LessThan(rhs) - } else if idx1 == 42 { + } else if idx1 == 44 { + lhs := this.properties[i].GetForgeFedPush() + rhs := this.properties[j].GetForgeFedPush() + return lhs.LessThan(rhs) + } else if idx1 == 45 { lhs := this.properties[i].GetActivityStreamsQuestion() rhs := this.properties[j].GetActivityStreamsQuestion() return lhs.LessThan(rhs) - } else if idx1 == 43 { + } else if idx1 == 46 { lhs := this.properties[i].GetActivityStreamsRead() rhs := this.properties[j].GetActivityStreamsRead() return lhs.LessThan(rhs) - } else if idx1 == 44 { + } else if idx1 == 47 { lhs := this.properties[i].GetActivityStreamsReject() rhs := this.properties[j].GetActivityStreamsReject() return lhs.LessThan(rhs) - } else if idx1 == 45 { + } else if idx1 == 48 { lhs := this.properties[i].GetActivityStreamsRelationship() rhs := this.properties[j].GetActivityStreamsRelationship() return lhs.LessThan(rhs) - } else if idx1 == 46 { + } else if idx1 == 49 { lhs := this.properties[i].GetActivityStreamsRemove() rhs := this.properties[j].GetActivityStreamsRemove() return lhs.LessThan(rhs) - } else if idx1 == 47 { + } else if idx1 == 50 { + lhs := this.properties[i].GetForgeFedRepository() + rhs := this.properties[j].GetForgeFedRepository() + return lhs.LessThan(rhs) + } else if idx1 == 51 { lhs := this.properties[i].GetActivityStreamsService() rhs := this.properties[j].GetActivityStreamsService() return lhs.LessThan(rhs) - } else if idx1 == 48 { + } else if idx1 == 52 { lhs := this.properties[i].GetActivityStreamsTentativeAccept() rhs := this.properties[j].GetActivityStreamsTentativeAccept() return lhs.LessThan(rhs) - } else if idx1 == 49 { + } else if idx1 == 53 { lhs := this.properties[i].GetActivityStreamsTentativeReject() rhs := this.properties[j].GetActivityStreamsTentativeReject() return lhs.LessThan(rhs) - } else if idx1 == 50 { + } else if idx1 == 54 { + lhs := this.properties[i].GetForgeFedTicket() + rhs := this.properties[j].GetForgeFedTicket() + return lhs.LessThan(rhs) + } else if idx1 == 55 { + lhs := this.properties[i].GetForgeFedTicketDependency() + rhs := this.properties[j].GetForgeFedTicketDependency() + return lhs.LessThan(rhs) + } else if idx1 == 56 { lhs := this.properties[i].GetActivityStreamsTombstone() rhs := this.properties[j].GetActivityStreamsTombstone() return lhs.LessThan(rhs) - } else if idx1 == 51 { + } else if idx1 == 57 { lhs := this.properties[i].GetActivityStreamsTravel() rhs := this.properties[j].GetActivityStreamsTravel() return lhs.LessThan(rhs) - } else if idx1 == 52 { + } else if idx1 == 58 { lhs := this.properties[i].GetActivityStreamsUndo() rhs := this.properties[j].GetActivityStreamsUndo() return lhs.LessThan(rhs) - } else if idx1 == 53 { + } else if idx1 == 59 { lhs := this.properties[i].GetActivityStreamsUpdate() rhs := this.properties[j].GetActivityStreamsUpdate() return lhs.LessThan(rhs) - } else if idx1 == 54 { + } else if idx1 == 60 { lhs := this.properties[i].GetActivityStreamsVideo() rhs := this.properties[j].GetActivityStreamsVideo() return lhs.LessThan(rhs) - } else if idx1 == 55 { + } else if idx1 == 61 { lhs := this.properties[i].GetActivityStreamsView() rhs := this.properties[j].GetActivityStreamsView() return lhs.LessThan(rhs) @@ -5550,6 +6015,90 @@ func (this *ActivityStreamsOneOfProperty) PrependActivityStreamsView(v vocab.Act } } +// PrependForgeFedBranch prepends a Branch value to the front of a list of the +// property "oneOf". Invalidates all iterators. +func (this *ActivityStreamsOneOfProperty) PrependForgeFedBranch(v vocab.ForgeFedBranch) { + this.properties = append([]*ActivityStreamsOneOfPropertyIterator{{ + alias: this.alias, + forgefedBranchMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependForgeFedCommit prepends a Commit value to the front of a list of the +// property "oneOf". Invalidates all iterators. +func (this *ActivityStreamsOneOfProperty) PrependForgeFedCommit(v vocab.ForgeFedCommit) { + this.properties = append([]*ActivityStreamsOneOfPropertyIterator{{ + alias: this.alias, + forgefedCommitMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependForgeFedPush prepends a Push value to the front of a list of the +// property "oneOf". Invalidates all iterators. +func (this *ActivityStreamsOneOfProperty) PrependForgeFedPush(v vocab.ForgeFedPush) { + this.properties = append([]*ActivityStreamsOneOfPropertyIterator{{ + alias: this.alias, + forgefedPushMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependForgeFedRepository prepends a Repository value to the front of a list of +// the property "oneOf". Invalidates all iterators. +func (this *ActivityStreamsOneOfProperty) PrependForgeFedRepository(v vocab.ForgeFedRepository) { + this.properties = append([]*ActivityStreamsOneOfPropertyIterator{{ + alias: this.alias, + forgefedRepositoryMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependForgeFedTicket prepends a Ticket value to the front of a list of the +// property "oneOf". Invalidates all iterators. +func (this *ActivityStreamsOneOfProperty) PrependForgeFedTicket(v vocab.ForgeFedTicket) { + this.properties = append([]*ActivityStreamsOneOfPropertyIterator{{ + alias: this.alias, + forgefedTicketMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependForgeFedTicketDependency prepends a TicketDependency value to the front +// of a list of the property "oneOf". Invalidates all iterators. +func (this *ActivityStreamsOneOfProperty) PrependForgeFedTicketDependency(v vocab.ForgeFedTicketDependency) { + this.properties = append([]*ActivityStreamsOneOfPropertyIterator{{ + alias: this.alias, + forgefedTicketDependencyMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + // PrependIRI prepends an IRI value to the front of a list of the property "oneOf". func (this *ActivityStreamsOneOfProperty) PrependIRI(v *url.URL) { this.properties = append([]*ActivityStreamsOneOfPropertyIterator{{ @@ -6345,6 +6894,83 @@ func (this *ActivityStreamsOneOfProperty) SetActivityStreamsView(idx int, v voca } } +// SetForgeFedBranch sets a Branch value to be at the specified index for the +// property "oneOf". Panics if the index is out of bounds. Invalidates all +// iterators. +func (this *ActivityStreamsOneOfProperty) SetForgeFedBranch(idx int, v vocab.ForgeFedBranch) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsOneOfPropertyIterator{ + alias: this.alias, + forgefedBranchMember: v, + myIdx: idx, + parent: this, + } +} + +// SetForgeFedCommit sets a Commit value to be at the specified index for the +// property "oneOf". Panics if the index is out of bounds. Invalidates all +// iterators. +func (this *ActivityStreamsOneOfProperty) SetForgeFedCommit(idx int, v vocab.ForgeFedCommit) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsOneOfPropertyIterator{ + alias: this.alias, + forgefedCommitMember: v, + myIdx: idx, + parent: this, + } +} + +// SetForgeFedPush sets a Push value to be at the specified index for the property +// "oneOf". Panics if the index is out of bounds. Invalidates all iterators. +func (this *ActivityStreamsOneOfProperty) SetForgeFedPush(idx int, v vocab.ForgeFedPush) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsOneOfPropertyIterator{ + alias: this.alias, + forgefedPushMember: v, + myIdx: idx, + parent: this, + } +} + +// SetForgeFedRepository sets a Repository value to be at the specified index for +// the property "oneOf". Panics if the index is out of bounds. Invalidates all +// iterators. +func (this *ActivityStreamsOneOfProperty) SetForgeFedRepository(idx int, v vocab.ForgeFedRepository) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsOneOfPropertyIterator{ + alias: this.alias, + forgefedRepositoryMember: v, + myIdx: idx, + parent: this, + } +} + +// SetForgeFedTicket sets a Ticket value to be at the specified index for the +// property "oneOf". Panics if the index is out of bounds. Invalidates all +// iterators. +func (this *ActivityStreamsOneOfProperty) SetForgeFedTicket(idx int, v vocab.ForgeFedTicket) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsOneOfPropertyIterator{ + alias: this.alias, + forgefedTicketMember: v, + myIdx: idx, + parent: this, + } +} + +// SetForgeFedTicketDependency sets a TicketDependency value to be at the +// specified index for the property "oneOf". Panics if the index is out of +// bounds. Invalidates all iterators. +func (this *ActivityStreamsOneOfProperty) SetForgeFedTicketDependency(idx int, v vocab.ForgeFedTicketDependency) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsOneOfPropertyIterator{ + alias: this.alias, + forgefedTicketDependencyMember: v, + myIdx: idx, + parent: this, + } +} + // SetIRI sets an IRI value to be at the specified index for the property "oneOf". // Panics if the index is out of bounds. func (this *ActivityStreamsOneOfProperty) SetIRI(idx int, v *url.URL) { diff --git a/streams/impl/activitystreams/property_ordereditems/gen_pkg.go b/streams/impl/activitystreams/property_ordereditems/gen_pkg.go index fb3a36f..6aa80f7 100644 --- a/streams/impl/activitystreams/property_ordereditems/gen_pkg.go +++ b/streams/impl/activitystreams/property_ordereditems/gen_pkg.go @@ -45,6 +45,10 @@ type privateManager interface { // 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" @@ -53,6 +57,10 @@ type privateManager interface { // 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" @@ -177,6 +185,9 @@ type privateManager interface { // 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" @@ -197,6 +208,10 @@ type privateManager interface { // 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" @@ -209,6 +224,14 @@ type privateManager interface { // 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" diff --git a/streams/impl/activitystreams/property_ordereditems/gen_property_activitystreams_orderedItems.go b/streams/impl/activitystreams/property_ordereditems/gen_property_activitystreams_orderedItems.go index 47ed642..02b9bc8 100644 --- a/streams/impl/activitystreams/property_ordereditems/gen_property_activitystreams_orderedItems.go +++ b/streams/impl/activitystreams/property_ordereditems/gen_property_activitystreams_orderedItems.go @@ -25,8 +25,10 @@ type ActivityStreamsOrderedItemsPropertyIterator struct { 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 @@ -56,14 +58,18 @@ type ActivityStreamsOrderedItemsPropertyIterator struct { 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 @@ -169,6 +175,12 @@ func deserializeActivityStreamsOrderedItemsPropertyIterator(i interface{}, alias alias: alias, } return this, nil + } else if v, err := mgr.DeserializeBranchForgeFed()(m, aliasMap); err == nil { + this := &ActivityStreamsOrderedItemsPropertyIterator{ + alias: alias, + forgefedBranchMember: v, + } + return this, nil } else if v, err := mgr.DeserializeCollectionActivityStreams()(m, aliasMap); err == nil { this := &ActivityStreamsOrderedItemsPropertyIterator{ activitystreamsCollectionMember: v, @@ -181,6 +193,12 @@ func deserializeActivityStreamsOrderedItemsPropertyIterator(i interface{}, alias alias: alias, } return this, nil + } else if v, err := mgr.DeserializeCommitForgeFed()(m, aliasMap); err == nil { + this := &ActivityStreamsOrderedItemsPropertyIterator{ + alias: alias, + forgefedCommitMember: v, + } + return this, nil } else if v, err := mgr.DeserializeCreateActivityStreams()(m, aliasMap); err == nil { this := &ActivityStreamsOrderedItemsPropertyIterator{ activitystreamsCreateMember: v, @@ -355,6 +373,12 @@ func deserializeActivityStreamsOrderedItemsPropertyIterator(i interface{}, alias alias: alias, } return this, nil + } else if v, err := mgr.DeserializePushForgeFed()(m, aliasMap); err == nil { + this := &ActivityStreamsOrderedItemsPropertyIterator{ + alias: alias, + forgefedPushMember: v, + } + return this, nil } else if v, err := mgr.DeserializeQuestionActivityStreams()(m, aliasMap); err == nil { this := &ActivityStreamsOrderedItemsPropertyIterator{ activitystreamsQuestionMember: v, @@ -385,6 +409,12 @@ func deserializeActivityStreamsOrderedItemsPropertyIterator(i interface{}, alias alias: alias, } return this, nil + } else if v, err := mgr.DeserializeRepositoryForgeFed()(m, aliasMap); err == nil { + this := &ActivityStreamsOrderedItemsPropertyIterator{ + alias: alias, + forgefedRepositoryMember: v, + } + return this, nil } else if v, err := mgr.DeserializeServiceActivityStreams()(m, aliasMap); err == nil { this := &ActivityStreamsOrderedItemsPropertyIterator{ activitystreamsServiceMember: v, @@ -403,6 +433,18 @@ func deserializeActivityStreamsOrderedItemsPropertyIterator(i interface{}, alias alias: alias, } return this, nil + } else if v, err := mgr.DeserializeTicketForgeFed()(m, aliasMap); err == nil { + this := &ActivityStreamsOrderedItemsPropertyIterator{ + alias: alias, + forgefedTicketMember: v, + } + return this, nil + } else if v, err := mgr.DeserializeTicketDependencyForgeFed()(m, aliasMap); err == nil { + this := &ActivityStreamsOrderedItemsPropertyIterator{ + alias: alias, + forgefedTicketDependencyMember: v, + } + return this, nil } else if v, err := mgr.DeserializeTombstoneActivityStreams()(m, aliasMap); err == nil { this := &ActivityStreamsOrderedItemsPropertyIterator{ activitystreamsTombstoneMember: v, @@ -826,6 +868,44 @@ func (this ActivityStreamsOrderedItemsPropertyIterator) GetActivityStreamsView() return this.activitystreamsViewMember } +// GetForgeFedBranch returns the value of this property. When IsForgeFedBranch +// returns false, GetForgeFedBranch will return an arbitrary value. +func (this ActivityStreamsOrderedItemsPropertyIterator) GetForgeFedBranch() vocab.ForgeFedBranch { + return this.forgefedBranchMember +} + +// GetForgeFedCommit returns the value of this property. When IsForgeFedCommit +// returns false, GetForgeFedCommit will return an arbitrary value. +func (this ActivityStreamsOrderedItemsPropertyIterator) GetForgeFedCommit() vocab.ForgeFedCommit { + return this.forgefedCommitMember +} + +// GetForgeFedPush returns the value of this property. When IsForgeFedPush returns +// false, GetForgeFedPush will return an arbitrary value. +func (this ActivityStreamsOrderedItemsPropertyIterator) GetForgeFedPush() vocab.ForgeFedPush { + return this.forgefedPushMember +} + +// GetForgeFedRepository returns the value of this property. When +// IsForgeFedRepository returns false, GetForgeFedRepository will return an +// arbitrary value. +func (this ActivityStreamsOrderedItemsPropertyIterator) GetForgeFedRepository() vocab.ForgeFedRepository { + return this.forgefedRepositoryMember +} + +// GetForgeFedTicket returns the value of this property. When IsForgeFedTicket +// returns false, GetForgeFedTicket will return an arbitrary value. +func (this ActivityStreamsOrderedItemsPropertyIterator) GetForgeFedTicket() vocab.ForgeFedTicket { + return this.forgefedTicketMember +} + +// GetForgeFedTicketDependency returns the value of this property. When +// IsForgeFedTicketDependency returns false, GetForgeFedTicketDependency will +// return an arbitrary value. +func (this ActivityStreamsOrderedItemsPropertyIterator) GetForgeFedTicketDependency() vocab.ForgeFedTicketDependency { + return this.forgefedTicketDependencyMember +} + // GetIRI returns the IRI of this property. When IsIRI returns false, GetIRI will // return an arbitrary value. func (this ActivityStreamsOrderedItemsPropertyIterator) GetIRI() *url.URL { @@ -881,12 +961,18 @@ func (this ActivityStreamsOrderedItemsPropertyIterator) GetType() vocab.Type { 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() } @@ -974,6 +1060,9 @@ func (this ActivityStreamsOrderedItemsPropertyIterator) GetType() vocab.Type { if this.IsActivityStreamsProfile() { return this.GetActivityStreamsProfile() } + if this.IsForgeFedPush() { + return this.GetForgeFedPush() + } if this.IsActivityStreamsQuestion() { return this.GetActivityStreamsQuestion() } @@ -989,6 +1078,9 @@ func (this ActivityStreamsOrderedItemsPropertyIterator) GetType() vocab.Type { if this.IsActivityStreamsRemove() { return this.GetActivityStreamsRemove() } + if this.IsForgeFedRepository() { + return this.GetForgeFedRepository() + } if this.IsActivityStreamsService() { return this.GetActivityStreamsService() } @@ -998,6 +1090,12 @@ func (this ActivityStreamsOrderedItemsPropertyIterator) GetType() vocab.Type { if this.IsActivityStreamsTentativeReject() { return this.GetActivityStreamsTentativeReject() } + if this.IsForgeFedTicket() { + return this.GetForgeFedTicket() + } + if this.IsForgeFedTicketDependency() { + return this.GetForgeFedTicketDependency() + } if this.IsActivityStreamsTombstone() { return this.GetActivityStreamsTombstone() } @@ -1033,8 +1131,10 @@ func (this ActivityStreamsOrderedItemsPropertyIterator) HasAny() bool { this.IsActivityStreamsArticle() || this.IsActivityStreamsAudio() || this.IsActivityStreamsBlock() || + this.IsForgeFedBranch() || this.IsActivityStreamsCollection() || this.IsActivityStreamsCollectionPage() || + this.IsForgeFedCommit() || this.IsActivityStreamsCreate() || this.IsActivityStreamsDelete() || this.IsActivityStreamsDislike() || @@ -1064,14 +1164,18 @@ func (this ActivityStreamsOrderedItemsPropertyIterator) HasAny() bool { 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() || @@ -1464,6 +1568,48 @@ func (this ActivityStreamsOrderedItemsPropertyIterator) IsActivityStreamsView() return this.activitystreamsViewMember != nil } +// IsForgeFedBranch returns true if this property has a type of "Branch". When +// true, use the GetForgeFedBranch and SetForgeFedBranch methods to access and +// set this property. +func (this ActivityStreamsOrderedItemsPropertyIterator) IsForgeFedBranch() bool { + return this.forgefedBranchMember != nil +} + +// IsForgeFedCommit returns true if this property has a type of "Commit". When +// true, use the GetForgeFedCommit and SetForgeFedCommit methods to access and +// set this property. +func (this ActivityStreamsOrderedItemsPropertyIterator) IsForgeFedCommit() bool { + return this.forgefedCommitMember != nil +} + +// IsForgeFedPush returns true if this property has a type of "Push". When true, +// use the GetForgeFedPush and SetForgeFedPush methods to access and set this +// property. +func (this ActivityStreamsOrderedItemsPropertyIterator) IsForgeFedPush() bool { + return this.forgefedPushMember != nil +} + +// IsForgeFedRepository returns true if this property has a type of "Repository". +// When true, use the GetForgeFedRepository and SetForgeFedRepository methods +// to access and set this property. +func (this ActivityStreamsOrderedItemsPropertyIterator) IsForgeFedRepository() bool { + return this.forgefedRepositoryMember != nil +} + +// IsForgeFedTicket returns true if this property has a type of "Ticket". When +// true, use the GetForgeFedTicket and SetForgeFedTicket methods to access and +// set this property. +func (this ActivityStreamsOrderedItemsPropertyIterator) IsForgeFedTicket() bool { + return this.forgefedTicketMember != nil +} + +// IsForgeFedTicketDependency returns true if this property has a type of +// "TicketDependency". When true, use the GetForgeFedTicketDependency and +// SetForgeFedTicketDependency methods to access and set this property. +func (this ActivityStreamsOrderedItemsPropertyIterator) IsForgeFedTicketDependency() bool { + return this.forgefedTicketDependencyMember != nil +} + // IsIRI returns true if this property is an IRI. When true, use GetIRI and SetIRI // to access and set this property func (this ActivityStreamsOrderedItemsPropertyIterator) IsIRI() bool { @@ -1511,10 +1657,14 @@ func (this ActivityStreamsOrderedItemsPropertyIterator) JSONLDContext() map[stri 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() { @@ -1573,6 +1723,8 @@ func (this ActivityStreamsOrderedItemsPropertyIterator) JSONLDContext() map[stri 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() { @@ -1583,12 +1735,18 @@ func (this ActivityStreamsOrderedItemsPropertyIterator) JSONLDContext() map[stri 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() { @@ -1650,141 +1808,159 @@ func (this ActivityStreamsOrderedItemsPropertyIterator) KindIndex() int { if this.IsActivityStreamsBlock() { return 10 } - if this.IsActivityStreamsCollection() { + if this.IsForgeFedBranch() { return 11 } - if this.IsActivityStreamsCollectionPage() { + if this.IsActivityStreamsCollection() { return 12 } - if this.IsActivityStreamsCreate() { + if this.IsActivityStreamsCollectionPage() { return 13 } - if this.IsActivityStreamsDelete() { + if this.IsForgeFedCommit() { return 14 } - if this.IsActivityStreamsDislike() { + if this.IsActivityStreamsCreate() { return 15 } - if this.IsActivityStreamsDocument() { + if this.IsActivityStreamsDelete() { return 16 } - if this.IsTootEmoji() { + if this.IsActivityStreamsDislike() { return 17 } - if this.IsActivityStreamsEvent() { + if this.IsActivityStreamsDocument() { return 18 } - if this.IsActivityStreamsFlag() { + if this.IsTootEmoji() { return 19 } - if this.IsActivityStreamsFollow() { + if this.IsActivityStreamsEvent() { return 20 } - if this.IsActivityStreamsGroup() { + if this.IsActivityStreamsFlag() { return 21 } - if this.IsTootIdentityProof() { + if this.IsActivityStreamsFollow() { return 22 } - if this.IsActivityStreamsIgnore() { + if this.IsActivityStreamsGroup() { return 23 } - if this.IsActivityStreamsImage() { + if this.IsTootIdentityProof() { return 24 } - if this.IsActivityStreamsIntransitiveActivity() { + if this.IsActivityStreamsIgnore() { return 25 } - if this.IsActivityStreamsInvite() { + if this.IsActivityStreamsImage() { return 26 } - if this.IsActivityStreamsJoin() { + if this.IsActivityStreamsIntransitiveActivity() { return 27 } - if this.IsActivityStreamsLeave() { + if this.IsActivityStreamsInvite() { return 28 } - if this.IsActivityStreamsLike() { + if this.IsActivityStreamsJoin() { return 29 } - if this.IsActivityStreamsListen() { + if this.IsActivityStreamsLeave() { return 30 } - if this.IsActivityStreamsMention() { + if this.IsActivityStreamsLike() { return 31 } - if this.IsActivityStreamsMove() { + if this.IsActivityStreamsListen() { return 32 } - if this.IsActivityStreamsNote() { + if this.IsActivityStreamsMention() { return 33 } - if this.IsActivityStreamsOffer() { + if this.IsActivityStreamsMove() { return 34 } - if this.IsActivityStreamsOrderedCollection() { + if this.IsActivityStreamsNote() { return 35 } - if this.IsActivityStreamsOrderedCollectionPage() { + if this.IsActivityStreamsOffer() { return 36 } - if this.IsActivityStreamsOrganization() { + if this.IsActivityStreamsOrderedCollection() { return 37 } - if this.IsActivityStreamsPage() { + if this.IsActivityStreamsOrderedCollectionPage() { return 38 } - if this.IsActivityStreamsPerson() { + if this.IsActivityStreamsOrganization() { return 39 } - if this.IsActivityStreamsPlace() { + if this.IsActivityStreamsPage() { return 40 } - if this.IsActivityStreamsProfile() { + if this.IsActivityStreamsPerson() { return 41 } - if this.IsActivityStreamsQuestion() { + if this.IsActivityStreamsPlace() { return 42 } - if this.IsActivityStreamsRead() { + if this.IsActivityStreamsProfile() { return 43 } - if this.IsActivityStreamsReject() { + if this.IsForgeFedPush() { return 44 } - if this.IsActivityStreamsRelationship() { + if this.IsActivityStreamsQuestion() { return 45 } - if this.IsActivityStreamsRemove() { + if this.IsActivityStreamsRead() { return 46 } - if this.IsActivityStreamsService() { + if this.IsActivityStreamsReject() { return 47 } - if this.IsActivityStreamsTentativeAccept() { + if this.IsActivityStreamsRelationship() { return 48 } - if this.IsActivityStreamsTentativeReject() { + if this.IsActivityStreamsRemove() { return 49 } - if this.IsActivityStreamsTombstone() { + if this.IsForgeFedRepository() { return 50 } - if this.IsActivityStreamsTravel() { + if this.IsActivityStreamsService() { return 51 } - if this.IsActivityStreamsUndo() { + if this.IsActivityStreamsTentativeAccept() { return 52 } - if this.IsActivityStreamsUpdate() { + if this.IsActivityStreamsTentativeReject() { return 53 } - if this.IsActivityStreamsVideo() { + if this.IsForgeFedTicket() { return 54 } - if this.IsActivityStreamsView() { + 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 } @@ -1824,10 +2000,14 @@ func (this ActivityStreamsOrderedItemsPropertyIterator) LessThan(o vocab.Activit 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() { @@ -1886,6 +2066,8 @@ func (this ActivityStreamsOrderedItemsPropertyIterator) LessThan(o vocab.Activit 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() { @@ -1896,12 +2078,18 @@ func (this ActivityStreamsOrderedItemsPropertyIterator) LessThan(o vocab.Activit 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() { @@ -2325,6 +2513,48 @@ func (this *ActivityStreamsOrderedItemsPropertyIterator) SetActivityStreamsView( this.activitystreamsViewMember = v } +// SetForgeFedBranch sets the value of this property. Calling IsForgeFedBranch +// afterwards returns true. +func (this *ActivityStreamsOrderedItemsPropertyIterator) SetForgeFedBranch(v vocab.ForgeFedBranch) { + this.clear() + this.forgefedBranchMember = v +} + +// SetForgeFedCommit sets the value of this property. Calling IsForgeFedCommit +// afterwards returns true. +func (this *ActivityStreamsOrderedItemsPropertyIterator) SetForgeFedCommit(v vocab.ForgeFedCommit) { + this.clear() + this.forgefedCommitMember = v +} + +// SetForgeFedPush sets the value of this property. Calling IsForgeFedPush +// afterwards returns true. +func (this *ActivityStreamsOrderedItemsPropertyIterator) SetForgeFedPush(v vocab.ForgeFedPush) { + this.clear() + this.forgefedPushMember = v +} + +// SetForgeFedRepository sets the value of this property. Calling +// IsForgeFedRepository afterwards returns true. +func (this *ActivityStreamsOrderedItemsPropertyIterator) SetForgeFedRepository(v vocab.ForgeFedRepository) { + this.clear() + this.forgefedRepositoryMember = v +} + +// SetForgeFedTicket sets the value of this property. Calling IsForgeFedTicket +// afterwards returns true. +func (this *ActivityStreamsOrderedItemsPropertyIterator) SetForgeFedTicket(v vocab.ForgeFedTicket) { + this.clear() + this.forgefedTicketMember = v +} + +// SetForgeFedTicketDependency sets the value of this property. Calling +// IsForgeFedTicketDependency afterwards returns true. +func (this *ActivityStreamsOrderedItemsPropertyIterator) SetForgeFedTicketDependency(v vocab.ForgeFedTicketDependency) { + this.clear() + this.forgefedTicketDependencyMember = v +} + // SetIRI sets the value of this property. Calling IsIRI afterwards returns true. func (this *ActivityStreamsOrderedItemsPropertyIterator) SetIRI(v *url.URL) { this.clear() @@ -2392,6 +2622,10 @@ func (this *ActivityStreamsOrderedItemsPropertyIterator) SetType(t vocab.Type) e 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 @@ -2400,6 +2634,10 @@ func (this *ActivityStreamsOrderedItemsPropertyIterator) SetType(t vocab.Type) e 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 @@ -2516,6 +2754,10 @@ func (this *ActivityStreamsOrderedItemsPropertyIterator) SetType(t vocab.Type) e 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 @@ -2536,6 +2778,10 @@ func (this *ActivityStreamsOrderedItemsPropertyIterator) SetType(t vocab.Type) e 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 @@ -2548,6 +2794,14 @@ func (this *ActivityStreamsOrderedItemsPropertyIterator) SetType(t vocab.Type) e 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 @@ -2590,8 +2844,10 @@ func (this *ActivityStreamsOrderedItemsPropertyIterator) clear() { 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 @@ -2621,14 +2877,18 @@ func (this *ActivityStreamsOrderedItemsPropertyIterator) clear() { 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 @@ -2666,10 +2926,14 @@ func (this ActivityStreamsOrderedItemsPropertyIterator) serialize() (interface{} 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() { @@ -2728,6 +2992,8 @@ func (this ActivityStreamsOrderedItemsPropertyIterator) serialize() (interface{} 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() { @@ -2738,12 +3004,18 @@ func (this ActivityStreamsOrderedItemsPropertyIterator) serialize() (interface{} 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() { @@ -3467,6 +3739,77 @@ func (this *ActivityStreamsOrderedItemsProperty) AppendActivityStreamsView(v voc }) } +// AppendForgeFedBranch appends a Branch value to the back of a list of the +// property "orderedItems". Invalidates iterators that are traversing using +// Prev. +func (this *ActivityStreamsOrderedItemsProperty) AppendForgeFedBranch(v vocab.ForgeFedBranch) { + this.properties = append(this.properties, &ActivityStreamsOrderedItemsPropertyIterator{ + alias: this.alias, + forgefedBranchMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendForgeFedCommit appends a Commit value to the back of a list of the +// property "orderedItems". Invalidates iterators that are traversing using +// Prev. +func (this *ActivityStreamsOrderedItemsProperty) AppendForgeFedCommit(v vocab.ForgeFedCommit) { + this.properties = append(this.properties, &ActivityStreamsOrderedItemsPropertyIterator{ + alias: this.alias, + forgefedCommitMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendForgeFedPush appends a Push value to the back of a list of the property +// "orderedItems". Invalidates iterators that are traversing using Prev. +func (this *ActivityStreamsOrderedItemsProperty) AppendForgeFedPush(v vocab.ForgeFedPush) { + this.properties = append(this.properties, &ActivityStreamsOrderedItemsPropertyIterator{ + alias: this.alias, + forgefedPushMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendForgeFedRepository appends a Repository value to the back of a list of +// the property "orderedItems". Invalidates iterators that are traversing +// using Prev. +func (this *ActivityStreamsOrderedItemsProperty) AppendForgeFedRepository(v vocab.ForgeFedRepository) { + this.properties = append(this.properties, &ActivityStreamsOrderedItemsPropertyIterator{ + alias: this.alias, + forgefedRepositoryMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendForgeFedTicket appends a Ticket value to the back of a list of the +// property "orderedItems". Invalidates iterators that are traversing using +// Prev. +func (this *ActivityStreamsOrderedItemsProperty) AppendForgeFedTicket(v vocab.ForgeFedTicket) { + this.properties = append(this.properties, &ActivityStreamsOrderedItemsPropertyIterator{ + alias: this.alias, + forgefedTicketMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendForgeFedTicketDependency appends a TicketDependency value to the back of +// a list of the property "orderedItems". Invalidates iterators that are +// traversing using Prev. +func (this *ActivityStreamsOrderedItemsProperty) AppendForgeFedTicketDependency(v vocab.ForgeFedTicketDependency) { + this.properties = append(this.properties, &ActivityStreamsOrderedItemsPropertyIterator{ + alias: this.alias, + forgefedTicketDependencyMember: v, + myIdx: this.Len(), + parent: this, + }) +} + // AppendIRI appends an IRI value to the back of a list of the property // "orderedItems" func (this *ActivityStreamsOrderedItemsProperty) AppendIRI(v *url.URL) { @@ -4466,6 +4809,108 @@ func (this *ActivityStreamsOrderedItemsProperty) InsertActivityStreamsView(idx i } } +// InsertForgeFedBranch inserts a Branch value at the specified index for a +// property "orderedItems". Existing elements at that index and higher are +// shifted back once. Invalidates all iterators. +func (this *ActivityStreamsOrderedItemsProperty) InsertForgeFedBranch(idx int, v vocab.ForgeFedBranch) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsOrderedItemsPropertyIterator{ + alias: this.alias, + forgefedBranchMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertForgeFedCommit inserts a Commit value at the specified index for a +// property "orderedItems". Existing elements at that index and higher are +// shifted back once. Invalidates all iterators. +func (this *ActivityStreamsOrderedItemsProperty) InsertForgeFedCommit(idx int, v vocab.ForgeFedCommit) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsOrderedItemsPropertyIterator{ + alias: this.alias, + forgefedCommitMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertForgeFedPush inserts a Push value at the specified index for a property +// "orderedItems". Existing elements at that index and higher are shifted back +// once. Invalidates all iterators. +func (this *ActivityStreamsOrderedItemsProperty) InsertForgeFedPush(idx int, v vocab.ForgeFedPush) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsOrderedItemsPropertyIterator{ + alias: this.alias, + forgefedPushMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertForgeFedRepository inserts a Repository value at the specified index for +// a property "orderedItems". Existing elements at that index and higher are +// shifted back once. Invalidates all iterators. +func (this *ActivityStreamsOrderedItemsProperty) InsertForgeFedRepository(idx int, v vocab.ForgeFedRepository) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsOrderedItemsPropertyIterator{ + alias: this.alias, + forgefedRepositoryMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertForgeFedTicket inserts a Ticket value at the specified index for a +// property "orderedItems". Existing elements at that index and higher are +// shifted back once. Invalidates all iterators. +func (this *ActivityStreamsOrderedItemsProperty) InsertForgeFedTicket(idx int, v vocab.ForgeFedTicket) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsOrderedItemsPropertyIterator{ + alias: this.alias, + forgefedTicketMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertForgeFedTicketDependency inserts a TicketDependency value at the +// specified index for a property "orderedItems". Existing elements at that +// index and higher are shifted back once. Invalidates all iterators. +func (this *ActivityStreamsOrderedItemsProperty) InsertForgeFedTicketDependency(idx int, v vocab.ForgeFedTicketDependency) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsOrderedItemsPropertyIterator{ + alias: this.alias, + forgefedTicketDependencyMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + // Insert inserts an IRI value at the specified index for a property // "orderedItems". Existing elements at that index and higher are shifted back // once. Invalidates all iterators. @@ -4623,182 +5068,206 @@ func (this ActivityStreamsOrderedItemsProperty) Less(i, j int) bool { rhs := this.properties[j].GetActivityStreamsBlock() return lhs.LessThan(rhs) } else if idx1 == 11 { + lhs := this.properties[i].GetForgeFedBranch() + rhs := this.properties[j].GetForgeFedBranch() + return lhs.LessThan(rhs) + } else if idx1 == 12 { lhs := this.properties[i].GetActivityStreamsCollection() rhs := this.properties[j].GetActivityStreamsCollection() return lhs.LessThan(rhs) - } else if idx1 == 12 { + } else if idx1 == 13 { lhs := this.properties[i].GetActivityStreamsCollectionPage() rhs := this.properties[j].GetActivityStreamsCollectionPage() return lhs.LessThan(rhs) - } else if idx1 == 13 { + } else if idx1 == 14 { + lhs := this.properties[i].GetForgeFedCommit() + rhs := this.properties[j].GetForgeFedCommit() + return lhs.LessThan(rhs) + } else if idx1 == 15 { lhs := this.properties[i].GetActivityStreamsCreate() rhs := this.properties[j].GetActivityStreamsCreate() return lhs.LessThan(rhs) - } else if idx1 == 14 { + } else if idx1 == 16 { lhs := this.properties[i].GetActivityStreamsDelete() rhs := this.properties[j].GetActivityStreamsDelete() return lhs.LessThan(rhs) - } else if idx1 == 15 { + } else if idx1 == 17 { lhs := this.properties[i].GetActivityStreamsDislike() rhs := this.properties[j].GetActivityStreamsDislike() return lhs.LessThan(rhs) - } else if idx1 == 16 { + } else if idx1 == 18 { lhs := this.properties[i].GetActivityStreamsDocument() rhs := this.properties[j].GetActivityStreamsDocument() return lhs.LessThan(rhs) - } else if idx1 == 17 { + } else if idx1 == 19 { lhs := this.properties[i].GetTootEmoji() rhs := this.properties[j].GetTootEmoji() return lhs.LessThan(rhs) - } else if idx1 == 18 { + } else if idx1 == 20 { lhs := this.properties[i].GetActivityStreamsEvent() rhs := this.properties[j].GetActivityStreamsEvent() return lhs.LessThan(rhs) - } else if idx1 == 19 { + } else if idx1 == 21 { lhs := this.properties[i].GetActivityStreamsFlag() rhs := this.properties[j].GetActivityStreamsFlag() return lhs.LessThan(rhs) - } else if idx1 == 20 { + } else if idx1 == 22 { lhs := this.properties[i].GetActivityStreamsFollow() rhs := this.properties[j].GetActivityStreamsFollow() return lhs.LessThan(rhs) - } else if idx1 == 21 { + } else if idx1 == 23 { lhs := this.properties[i].GetActivityStreamsGroup() rhs := this.properties[j].GetActivityStreamsGroup() return lhs.LessThan(rhs) - } else if idx1 == 22 { + } else if idx1 == 24 { lhs := this.properties[i].GetTootIdentityProof() rhs := this.properties[j].GetTootIdentityProof() return lhs.LessThan(rhs) - } else if idx1 == 23 { + } else if idx1 == 25 { lhs := this.properties[i].GetActivityStreamsIgnore() rhs := this.properties[j].GetActivityStreamsIgnore() return lhs.LessThan(rhs) - } else if idx1 == 24 { + } else if idx1 == 26 { lhs := this.properties[i].GetActivityStreamsImage() rhs := this.properties[j].GetActivityStreamsImage() return lhs.LessThan(rhs) - } else if idx1 == 25 { + } else if idx1 == 27 { lhs := this.properties[i].GetActivityStreamsIntransitiveActivity() rhs := this.properties[j].GetActivityStreamsIntransitiveActivity() return lhs.LessThan(rhs) - } else if idx1 == 26 { + } else if idx1 == 28 { lhs := this.properties[i].GetActivityStreamsInvite() rhs := this.properties[j].GetActivityStreamsInvite() return lhs.LessThan(rhs) - } else if idx1 == 27 { + } else if idx1 == 29 { lhs := this.properties[i].GetActivityStreamsJoin() rhs := this.properties[j].GetActivityStreamsJoin() return lhs.LessThan(rhs) - } else if idx1 == 28 { + } else if idx1 == 30 { lhs := this.properties[i].GetActivityStreamsLeave() rhs := this.properties[j].GetActivityStreamsLeave() return lhs.LessThan(rhs) - } else if idx1 == 29 { + } else if idx1 == 31 { lhs := this.properties[i].GetActivityStreamsLike() rhs := this.properties[j].GetActivityStreamsLike() return lhs.LessThan(rhs) - } else if idx1 == 30 { + } else if idx1 == 32 { lhs := this.properties[i].GetActivityStreamsListen() rhs := this.properties[j].GetActivityStreamsListen() return lhs.LessThan(rhs) - } else if idx1 == 31 { + } else if idx1 == 33 { lhs := this.properties[i].GetActivityStreamsMention() rhs := this.properties[j].GetActivityStreamsMention() return lhs.LessThan(rhs) - } else if idx1 == 32 { + } else if idx1 == 34 { lhs := this.properties[i].GetActivityStreamsMove() rhs := this.properties[j].GetActivityStreamsMove() return lhs.LessThan(rhs) - } else if idx1 == 33 { + } else if idx1 == 35 { lhs := this.properties[i].GetActivityStreamsNote() rhs := this.properties[j].GetActivityStreamsNote() return lhs.LessThan(rhs) - } else if idx1 == 34 { + } else if idx1 == 36 { lhs := this.properties[i].GetActivityStreamsOffer() rhs := this.properties[j].GetActivityStreamsOffer() return lhs.LessThan(rhs) - } else if idx1 == 35 { + } else if idx1 == 37 { lhs := this.properties[i].GetActivityStreamsOrderedCollection() rhs := this.properties[j].GetActivityStreamsOrderedCollection() return lhs.LessThan(rhs) - } else if idx1 == 36 { + } else if idx1 == 38 { lhs := this.properties[i].GetActivityStreamsOrderedCollectionPage() rhs := this.properties[j].GetActivityStreamsOrderedCollectionPage() return lhs.LessThan(rhs) - } else if idx1 == 37 { + } else if idx1 == 39 { lhs := this.properties[i].GetActivityStreamsOrganization() rhs := this.properties[j].GetActivityStreamsOrganization() return lhs.LessThan(rhs) - } else if idx1 == 38 { + } else if idx1 == 40 { lhs := this.properties[i].GetActivityStreamsPage() rhs := this.properties[j].GetActivityStreamsPage() return lhs.LessThan(rhs) - } else if idx1 == 39 { + } else if idx1 == 41 { lhs := this.properties[i].GetActivityStreamsPerson() rhs := this.properties[j].GetActivityStreamsPerson() return lhs.LessThan(rhs) - } else if idx1 == 40 { + } else if idx1 == 42 { lhs := this.properties[i].GetActivityStreamsPlace() rhs := this.properties[j].GetActivityStreamsPlace() return lhs.LessThan(rhs) - } else if idx1 == 41 { + } else if idx1 == 43 { lhs := this.properties[i].GetActivityStreamsProfile() rhs := this.properties[j].GetActivityStreamsProfile() return lhs.LessThan(rhs) - } else if idx1 == 42 { + } else if idx1 == 44 { + lhs := this.properties[i].GetForgeFedPush() + rhs := this.properties[j].GetForgeFedPush() + return lhs.LessThan(rhs) + } else if idx1 == 45 { lhs := this.properties[i].GetActivityStreamsQuestion() rhs := this.properties[j].GetActivityStreamsQuestion() return lhs.LessThan(rhs) - } else if idx1 == 43 { + } else if idx1 == 46 { lhs := this.properties[i].GetActivityStreamsRead() rhs := this.properties[j].GetActivityStreamsRead() return lhs.LessThan(rhs) - } else if idx1 == 44 { + } else if idx1 == 47 { lhs := this.properties[i].GetActivityStreamsReject() rhs := this.properties[j].GetActivityStreamsReject() return lhs.LessThan(rhs) - } else if idx1 == 45 { + } else if idx1 == 48 { lhs := this.properties[i].GetActivityStreamsRelationship() rhs := this.properties[j].GetActivityStreamsRelationship() return lhs.LessThan(rhs) - } else if idx1 == 46 { + } else if idx1 == 49 { lhs := this.properties[i].GetActivityStreamsRemove() rhs := this.properties[j].GetActivityStreamsRemove() return lhs.LessThan(rhs) - } else if idx1 == 47 { + } else if idx1 == 50 { + lhs := this.properties[i].GetForgeFedRepository() + rhs := this.properties[j].GetForgeFedRepository() + return lhs.LessThan(rhs) + } else if idx1 == 51 { lhs := this.properties[i].GetActivityStreamsService() rhs := this.properties[j].GetActivityStreamsService() return lhs.LessThan(rhs) - } else if idx1 == 48 { + } else if idx1 == 52 { lhs := this.properties[i].GetActivityStreamsTentativeAccept() rhs := this.properties[j].GetActivityStreamsTentativeAccept() return lhs.LessThan(rhs) - } else if idx1 == 49 { + } else if idx1 == 53 { lhs := this.properties[i].GetActivityStreamsTentativeReject() rhs := this.properties[j].GetActivityStreamsTentativeReject() return lhs.LessThan(rhs) - } else if idx1 == 50 { + } else if idx1 == 54 { + lhs := this.properties[i].GetForgeFedTicket() + rhs := this.properties[j].GetForgeFedTicket() + return lhs.LessThan(rhs) + } else if idx1 == 55 { + lhs := this.properties[i].GetForgeFedTicketDependency() + rhs := this.properties[j].GetForgeFedTicketDependency() + return lhs.LessThan(rhs) + } else if idx1 == 56 { lhs := this.properties[i].GetActivityStreamsTombstone() rhs := this.properties[j].GetActivityStreamsTombstone() return lhs.LessThan(rhs) - } else if idx1 == 51 { + } else if idx1 == 57 { lhs := this.properties[i].GetActivityStreamsTravel() rhs := this.properties[j].GetActivityStreamsTravel() return lhs.LessThan(rhs) - } else if idx1 == 52 { + } else if idx1 == 58 { lhs := this.properties[i].GetActivityStreamsUndo() rhs := this.properties[j].GetActivityStreamsUndo() return lhs.LessThan(rhs) - } else if idx1 == 53 { + } else if idx1 == 59 { lhs := this.properties[i].GetActivityStreamsUpdate() rhs := this.properties[j].GetActivityStreamsUpdate() return lhs.LessThan(rhs) - } else if idx1 == 54 { + } else if idx1 == 60 { lhs := this.properties[i].GetActivityStreamsVideo() rhs := this.properties[j].GetActivityStreamsVideo() return lhs.LessThan(rhs) - } else if idx1 == 55 { + } else if idx1 == 61 { lhs := this.properties[i].GetActivityStreamsView() rhs := this.properties[j].GetActivityStreamsView() return lhs.LessThan(rhs) @@ -5600,6 +6069,90 @@ func (this *ActivityStreamsOrderedItemsProperty) PrependActivityStreamsView(v vo } } +// PrependForgeFedBranch prepends a Branch value to the front of a list of the +// property "orderedItems". Invalidates all iterators. +func (this *ActivityStreamsOrderedItemsProperty) PrependForgeFedBranch(v vocab.ForgeFedBranch) { + this.properties = append([]*ActivityStreamsOrderedItemsPropertyIterator{{ + alias: this.alias, + forgefedBranchMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependForgeFedCommit prepends a Commit value to the front of a list of the +// property "orderedItems". Invalidates all iterators. +func (this *ActivityStreamsOrderedItemsProperty) PrependForgeFedCommit(v vocab.ForgeFedCommit) { + this.properties = append([]*ActivityStreamsOrderedItemsPropertyIterator{{ + alias: this.alias, + forgefedCommitMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependForgeFedPush prepends a Push value to the front of a list of the +// property "orderedItems". Invalidates all iterators. +func (this *ActivityStreamsOrderedItemsProperty) PrependForgeFedPush(v vocab.ForgeFedPush) { + this.properties = append([]*ActivityStreamsOrderedItemsPropertyIterator{{ + alias: this.alias, + forgefedPushMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependForgeFedRepository prepends a Repository value to the front of a list of +// the property "orderedItems". Invalidates all iterators. +func (this *ActivityStreamsOrderedItemsProperty) PrependForgeFedRepository(v vocab.ForgeFedRepository) { + this.properties = append([]*ActivityStreamsOrderedItemsPropertyIterator{{ + alias: this.alias, + forgefedRepositoryMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependForgeFedTicket prepends a Ticket value to the front of a list of the +// property "orderedItems". Invalidates all iterators. +func (this *ActivityStreamsOrderedItemsProperty) PrependForgeFedTicket(v vocab.ForgeFedTicket) { + this.properties = append([]*ActivityStreamsOrderedItemsPropertyIterator{{ + alias: this.alias, + forgefedTicketMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependForgeFedTicketDependency prepends a TicketDependency value to the front +// of a list of the property "orderedItems". Invalidates all iterators. +func (this *ActivityStreamsOrderedItemsProperty) PrependForgeFedTicketDependency(v vocab.ForgeFedTicketDependency) { + this.properties = append([]*ActivityStreamsOrderedItemsPropertyIterator{{ + alias: this.alias, + forgefedTicketDependencyMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + // PrependIRI prepends an IRI value to the front of a list of the property // "orderedItems". func (this *ActivityStreamsOrderedItemsProperty) PrependIRI(v *url.URL) { @@ -6396,6 +6949,84 @@ func (this *ActivityStreamsOrderedItemsProperty) SetActivityStreamsView(idx int, } } +// SetForgeFedBranch sets a Branch value to be at the specified index for the +// property "orderedItems". Panics if the index is out of bounds. Invalidates +// all iterators. +func (this *ActivityStreamsOrderedItemsProperty) SetForgeFedBranch(idx int, v vocab.ForgeFedBranch) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsOrderedItemsPropertyIterator{ + alias: this.alias, + forgefedBranchMember: v, + myIdx: idx, + parent: this, + } +} + +// SetForgeFedCommit sets a Commit value to be at the specified index for the +// property "orderedItems". Panics if the index is out of bounds. Invalidates +// all iterators. +func (this *ActivityStreamsOrderedItemsProperty) SetForgeFedCommit(idx int, v vocab.ForgeFedCommit) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsOrderedItemsPropertyIterator{ + alias: this.alias, + forgefedCommitMember: v, + myIdx: idx, + parent: this, + } +} + +// SetForgeFedPush sets a Push value to be at the specified index for the property +// "orderedItems". Panics if the index is out of bounds. Invalidates all +// iterators. +func (this *ActivityStreamsOrderedItemsProperty) SetForgeFedPush(idx int, v vocab.ForgeFedPush) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsOrderedItemsPropertyIterator{ + alias: this.alias, + forgefedPushMember: v, + myIdx: idx, + parent: this, + } +} + +// SetForgeFedRepository sets a Repository value to be at the specified index for +// the property "orderedItems". Panics if the index is out of bounds. +// Invalidates all iterators. +func (this *ActivityStreamsOrderedItemsProperty) SetForgeFedRepository(idx int, v vocab.ForgeFedRepository) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsOrderedItemsPropertyIterator{ + alias: this.alias, + forgefedRepositoryMember: v, + myIdx: idx, + parent: this, + } +} + +// SetForgeFedTicket sets a Ticket value to be at the specified index for the +// property "orderedItems". Panics if the index is out of bounds. Invalidates +// all iterators. +func (this *ActivityStreamsOrderedItemsProperty) SetForgeFedTicket(idx int, v vocab.ForgeFedTicket) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsOrderedItemsPropertyIterator{ + alias: this.alias, + forgefedTicketMember: v, + myIdx: idx, + parent: this, + } +} + +// SetForgeFedTicketDependency sets a TicketDependency value to be at the +// specified index for the property "orderedItems". Panics if the index is out +// of bounds. Invalidates all iterators. +func (this *ActivityStreamsOrderedItemsProperty) SetForgeFedTicketDependency(idx int, v vocab.ForgeFedTicketDependency) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsOrderedItemsPropertyIterator{ + alias: this.alias, + forgefedTicketDependencyMember: v, + myIdx: idx, + parent: this, + } +} + // SetIRI sets an IRI value to be at the specified index for the property // "orderedItems". Panics if the index is out of bounds. func (this *ActivityStreamsOrderedItemsProperty) SetIRI(idx int, v *url.URL) { diff --git a/streams/impl/activitystreams/property_origin/gen_pkg.go b/streams/impl/activitystreams/property_origin/gen_pkg.go index 2e317bb..98eba3a 100644 --- a/streams/impl/activitystreams/property_origin/gen_pkg.go +++ b/streams/impl/activitystreams/property_origin/gen_pkg.go @@ -45,6 +45,10 @@ type privateManager interface { // 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" @@ -53,6 +57,10 @@ type privateManager interface { // 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" @@ -177,6 +185,9 @@ type privateManager interface { // 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" @@ -197,6 +208,10 @@ type privateManager interface { // 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" @@ -209,6 +224,14 @@ type privateManager interface { // 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" diff --git a/streams/impl/activitystreams/property_origin/gen_property_activitystreams_origin.go b/streams/impl/activitystreams/property_origin/gen_property_activitystreams_origin.go index 3796c1e..3d83911 100644 --- a/streams/impl/activitystreams/property_origin/gen_property_activitystreams_origin.go +++ b/streams/impl/activitystreams/property_origin/gen_property_activitystreams_origin.go @@ -25,8 +25,10 @@ type ActivityStreamsOriginPropertyIterator struct { 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 @@ -56,14 +58,18 @@ type ActivityStreamsOriginPropertyIterator struct { 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 @@ -169,6 +175,12 @@ func deserializeActivityStreamsOriginPropertyIterator(i interface{}, aliasMap ma alias: alias, } return this, nil + } else if v, err := mgr.DeserializeBranchForgeFed()(m, aliasMap); err == nil { + this := &ActivityStreamsOriginPropertyIterator{ + alias: alias, + forgefedBranchMember: v, + } + return this, nil } else if v, err := mgr.DeserializeCollectionActivityStreams()(m, aliasMap); err == nil { this := &ActivityStreamsOriginPropertyIterator{ activitystreamsCollectionMember: v, @@ -181,6 +193,12 @@ func deserializeActivityStreamsOriginPropertyIterator(i interface{}, aliasMap ma alias: alias, } return this, nil + } else if v, err := mgr.DeserializeCommitForgeFed()(m, aliasMap); err == nil { + this := &ActivityStreamsOriginPropertyIterator{ + alias: alias, + forgefedCommitMember: v, + } + return this, nil } else if v, err := mgr.DeserializeCreateActivityStreams()(m, aliasMap); err == nil { this := &ActivityStreamsOriginPropertyIterator{ activitystreamsCreateMember: v, @@ -355,6 +373,12 @@ func deserializeActivityStreamsOriginPropertyIterator(i interface{}, aliasMap ma alias: alias, } return this, nil + } else if v, err := mgr.DeserializePushForgeFed()(m, aliasMap); err == nil { + this := &ActivityStreamsOriginPropertyIterator{ + alias: alias, + forgefedPushMember: v, + } + return this, nil } else if v, err := mgr.DeserializeQuestionActivityStreams()(m, aliasMap); err == nil { this := &ActivityStreamsOriginPropertyIterator{ activitystreamsQuestionMember: v, @@ -385,6 +409,12 @@ func deserializeActivityStreamsOriginPropertyIterator(i interface{}, aliasMap ma alias: alias, } return this, nil + } else if v, err := mgr.DeserializeRepositoryForgeFed()(m, aliasMap); err == nil { + this := &ActivityStreamsOriginPropertyIterator{ + alias: alias, + forgefedRepositoryMember: v, + } + return this, nil } else if v, err := mgr.DeserializeServiceActivityStreams()(m, aliasMap); err == nil { this := &ActivityStreamsOriginPropertyIterator{ activitystreamsServiceMember: v, @@ -403,6 +433,18 @@ func deserializeActivityStreamsOriginPropertyIterator(i interface{}, aliasMap ma alias: alias, } return this, nil + } else if v, err := mgr.DeserializeTicketForgeFed()(m, aliasMap); err == nil { + this := &ActivityStreamsOriginPropertyIterator{ + alias: alias, + forgefedTicketMember: v, + } + return this, nil + } else if v, err := mgr.DeserializeTicketDependencyForgeFed()(m, aliasMap); err == nil { + this := &ActivityStreamsOriginPropertyIterator{ + alias: alias, + forgefedTicketDependencyMember: v, + } + return this, nil } else if v, err := mgr.DeserializeTombstoneActivityStreams()(m, aliasMap); err == nil { this := &ActivityStreamsOriginPropertyIterator{ activitystreamsTombstoneMember: v, @@ -826,6 +868,44 @@ func (this ActivityStreamsOriginPropertyIterator) GetActivityStreamsView() vocab return this.activitystreamsViewMember } +// GetForgeFedBranch returns the value of this property. When IsForgeFedBranch +// returns false, GetForgeFedBranch will return an arbitrary value. +func (this ActivityStreamsOriginPropertyIterator) GetForgeFedBranch() vocab.ForgeFedBranch { + return this.forgefedBranchMember +} + +// GetForgeFedCommit returns the value of this property. When IsForgeFedCommit +// returns false, GetForgeFedCommit will return an arbitrary value. +func (this ActivityStreamsOriginPropertyIterator) GetForgeFedCommit() vocab.ForgeFedCommit { + return this.forgefedCommitMember +} + +// GetForgeFedPush returns the value of this property. When IsForgeFedPush returns +// false, GetForgeFedPush will return an arbitrary value. +func (this ActivityStreamsOriginPropertyIterator) GetForgeFedPush() vocab.ForgeFedPush { + return this.forgefedPushMember +} + +// GetForgeFedRepository returns the value of this property. When +// IsForgeFedRepository returns false, GetForgeFedRepository will return an +// arbitrary value. +func (this ActivityStreamsOriginPropertyIterator) GetForgeFedRepository() vocab.ForgeFedRepository { + return this.forgefedRepositoryMember +} + +// GetForgeFedTicket returns the value of this property. When IsForgeFedTicket +// returns false, GetForgeFedTicket will return an arbitrary value. +func (this ActivityStreamsOriginPropertyIterator) GetForgeFedTicket() vocab.ForgeFedTicket { + return this.forgefedTicketMember +} + +// GetForgeFedTicketDependency returns the value of this property. When +// IsForgeFedTicketDependency returns false, GetForgeFedTicketDependency will +// return an arbitrary value. +func (this ActivityStreamsOriginPropertyIterator) GetForgeFedTicketDependency() vocab.ForgeFedTicketDependency { + return this.forgefedTicketDependencyMember +} + // GetIRI returns the IRI of this property. When IsIRI returns false, GetIRI will // return an arbitrary value. func (this ActivityStreamsOriginPropertyIterator) GetIRI() *url.URL { @@ -881,12 +961,18 @@ func (this ActivityStreamsOriginPropertyIterator) GetType() vocab.Type { 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() } @@ -974,6 +1060,9 @@ func (this ActivityStreamsOriginPropertyIterator) GetType() vocab.Type { if this.IsActivityStreamsProfile() { return this.GetActivityStreamsProfile() } + if this.IsForgeFedPush() { + return this.GetForgeFedPush() + } if this.IsActivityStreamsQuestion() { return this.GetActivityStreamsQuestion() } @@ -989,6 +1078,9 @@ func (this ActivityStreamsOriginPropertyIterator) GetType() vocab.Type { if this.IsActivityStreamsRemove() { return this.GetActivityStreamsRemove() } + if this.IsForgeFedRepository() { + return this.GetForgeFedRepository() + } if this.IsActivityStreamsService() { return this.GetActivityStreamsService() } @@ -998,6 +1090,12 @@ func (this ActivityStreamsOriginPropertyIterator) GetType() vocab.Type { if this.IsActivityStreamsTentativeReject() { return this.GetActivityStreamsTentativeReject() } + if this.IsForgeFedTicket() { + return this.GetForgeFedTicket() + } + if this.IsForgeFedTicketDependency() { + return this.GetForgeFedTicketDependency() + } if this.IsActivityStreamsTombstone() { return this.GetActivityStreamsTombstone() } @@ -1033,8 +1131,10 @@ func (this ActivityStreamsOriginPropertyIterator) HasAny() bool { this.IsActivityStreamsArticle() || this.IsActivityStreamsAudio() || this.IsActivityStreamsBlock() || + this.IsForgeFedBranch() || this.IsActivityStreamsCollection() || this.IsActivityStreamsCollectionPage() || + this.IsForgeFedCommit() || this.IsActivityStreamsCreate() || this.IsActivityStreamsDelete() || this.IsActivityStreamsDislike() || @@ -1064,14 +1164,18 @@ func (this ActivityStreamsOriginPropertyIterator) HasAny() bool { 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() || @@ -1464,6 +1568,48 @@ func (this ActivityStreamsOriginPropertyIterator) IsActivityStreamsView() bool { return this.activitystreamsViewMember != nil } +// IsForgeFedBranch returns true if this property has a type of "Branch". When +// true, use the GetForgeFedBranch and SetForgeFedBranch methods to access and +// set this property. +func (this ActivityStreamsOriginPropertyIterator) IsForgeFedBranch() bool { + return this.forgefedBranchMember != nil +} + +// IsForgeFedCommit returns true if this property has a type of "Commit". When +// true, use the GetForgeFedCommit and SetForgeFedCommit methods to access and +// set this property. +func (this ActivityStreamsOriginPropertyIterator) IsForgeFedCommit() bool { + return this.forgefedCommitMember != nil +} + +// IsForgeFedPush returns true if this property has a type of "Push". When true, +// use the GetForgeFedPush and SetForgeFedPush methods to access and set this +// property. +func (this ActivityStreamsOriginPropertyIterator) IsForgeFedPush() bool { + return this.forgefedPushMember != nil +} + +// IsForgeFedRepository returns true if this property has a type of "Repository". +// When true, use the GetForgeFedRepository and SetForgeFedRepository methods +// to access and set this property. +func (this ActivityStreamsOriginPropertyIterator) IsForgeFedRepository() bool { + return this.forgefedRepositoryMember != nil +} + +// IsForgeFedTicket returns true if this property has a type of "Ticket". When +// true, use the GetForgeFedTicket and SetForgeFedTicket methods to access and +// set this property. +func (this ActivityStreamsOriginPropertyIterator) IsForgeFedTicket() bool { + return this.forgefedTicketMember != nil +} + +// IsForgeFedTicketDependency returns true if this property has a type of +// "TicketDependency". When true, use the GetForgeFedTicketDependency and +// SetForgeFedTicketDependency methods to access and set this property. +func (this ActivityStreamsOriginPropertyIterator) IsForgeFedTicketDependency() bool { + return this.forgefedTicketDependencyMember != nil +} + // IsIRI returns true if this property is an IRI. When true, use GetIRI and SetIRI // to access and set this property func (this ActivityStreamsOriginPropertyIterator) IsIRI() bool { @@ -1511,10 +1657,14 @@ func (this ActivityStreamsOriginPropertyIterator) JSONLDContext() map[string]str 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() { @@ -1573,6 +1723,8 @@ func (this ActivityStreamsOriginPropertyIterator) JSONLDContext() map[string]str 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() { @@ -1583,12 +1735,18 @@ func (this ActivityStreamsOriginPropertyIterator) JSONLDContext() map[string]str 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() { @@ -1650,141 +1808,159 @@ func (this ActivityStreamsOriginPropertyIterator) KindIndex() int { if this.IsActivityStreamsBlock() { return 10 } - if this.IsActivityStreamsCollection() { + if this.IsForgeFedBranch() { return 11 } - if this.IsActivityStreamsCollectionPage() { + if this.IsActivityStreamsCollection() { return 12 } - if this.IsActivityStreamsCreate() { + if this.IsActivityStreamsCollectionPage() { return 13 } - if this.IsActivityStreamsDelete() { + if this.IsForgeFedCommit() { return 14 } - if this.IsActivityStreamsDislike() { + if this.IsActivityStreamsCreate() { return 15 } - if this.IsActivityStreamsDocument() { + if this.IsActivityStreamsDelete() { return 16 } - if this.IsTootEmoji() { + if this.IsActivityStreamsDislike() { return 17 } - if this.IsActivityStreamsEvent() { + if this.IsActivityStreamsDocument() { return 18 } - if this.IsActivityStreamsFlag() { + if this.IsTootEmoji() { return 19 } - if this.IsActivityStreamsFollow() { + if this.IsActivityStreamsEvent() { return 20 } - if this.IsActivityStreamsGroup() { + if this.IsActivityStreamsFlag() { return 21 } - if this.IsTootIdentityProof() { + if this.IsActivityStreamsFollow() { return 22 } - if this.IsActivityStreamsIgnore() { + if this.IsActivityStreamsGroup() { return 23 } - if this.IsActivityStreamsImage() { + if this.IsTootIdentityProof() { return 24 } - if this.IsActivityStreamsIntransitiveActivity() { + if this.IsActivityStreamsIgnore() { return 25 } - if this.IsActivityStreamsInvite() { + if this.IsActivityStreamsImage() { return 26 } - if this.IsActivityStreamsJoin() { + if this.IsActivityStreamsIntransitiveActivity() { return 27 } - if this.IsActivityStreamsLeave() { + if this.IsActivityStreamsInvite() { return 28 } - if this.IsActivityStreamsLike() { + if this.IsActivityStreamsJoin() { return 29 } - if this.IsActivityStreamsListen() { + if this.IsActivityStreamsLeave() { return 30 } - if this.IsActivityStreamsMention() { + if this.IsActivityStreamsLike() { return 31 } - if this.IsActivityStreamsMove() { + if this.IsActivityStreamsListen() { return 32 } - if this.IsActivityStreamsNote() { + if this.IsActivityStreamsMention() { return 33 } - if this.IsActivityStreamsOffer() { + if this.IsActivityStreamsMove() { return 34 } - if this.IsActivityStreamsOrderedCollection() { + if this.IsActivityStreamsNote() { return 35 } - if this.IsActivityStreamsOrderedCollectionPage() { + if this.IsActivityStreamsOffer() { return 36 } - if this.IsActivityStreamsOrganization() { + if this.IsActivityStreamsOrderedCollection() { return 37 } - if this.IsActivityStreamsPage() { + if this.IsActivityStreamsOrderedCollectionPage() { return 38 } - if this.IsActivityStreamsPerson() { + if this.IsActivityStreamsOrganization() { return 39 } - if this.IsActivityStreamsPlace() { + if this.IsActivityStreamsPage() { return 40 } - if this.IsActivityStreamsProfile() { + if this.IsActivityStreamsPerson() { return 41 } - if this.IsActivityStreamsQuestion() { + if this.IsActivityStreamsPlace() { return 42 } - if this.IsActivityStreamsRead() { + if this.IsActivityStreamsProfile() { return 43 } - if this.IsActivityStreamsReject() { + if this.IsForgeFedPush() { return 44 } - if this.IsActivityStreamsRelationship() { + if this.IsActivityStreamsQuestion() { return 45 } - if this.IsActivityStreamsRemove() { + if this.IsActivityStreamsRead() { return 46 } - if this.IsActivityStreamsService() { + if this.IsActivityStreamsReject() { return 47 } - if this.IsActivityStreamsTentativeAccept() { + if this.IsActivityStreamsRelationship() { return 48 } - if this.IsActivityStreamsTentativeReject() { + if this.IsActivityStreamsRemove() { return 49 } - if this.IsActivityStreamsTombstone() { + if this.IsForgeFedRepository() { return 50 } - if this.IsActivityStreamsTravel() { + if this.IsActivityStreamsService() { return 51 } - if this.IsActivityStreamsUndo() { + if this.IsActivityStreamsTentativeAccept() { return 52 } - if this.IsActivityStreamsUpdate() { + if this.IsActivityStreamsTentativeReject() { return 53 } - if this.IsActivityStreamsVideo() { + if this.IsForgeFedTicket() { return 54 } - if this.IsActivityStreamsView() { + 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 } @@ -1824,10 +2000,14 @@ func (this ActivityStreamsOriginPropertyIterator) LessThan(o vocab.ActivityStrea 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() { @@ -1886,6 +2066,8 @@ func (this ActivityStreamsOriginPropertyIterator) LessThan(o vocab.ActivityStrea 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() { @@ -1896,12 +2078,18 @@ func (this ActivityStreamsOriginPropertyIterator) LessThan(o vocab.ActivityStrea 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() { @@ -2325,6 +2513,48 @@ func (this *ActivityStreamsOriginPropertyIterator) SetActivityStreamsView(v voca this.activitystreamsViewMember = v } +// SetForgeFedBranch sets the value of this property. Calling IsForgeFedBranch +// afterwards returns true. +func (this *ActivityStreamsOriginPropertyIterator) SetForgeFedBranch(v vocab.ForgeFedBranch) { + this.clear() + this.forgefedBranchMember = v +} + +// SetForgeFedCommit sets the value of this property. Calling IsForgeFedCommit +// afterwards returns true. +func (this *ActivityStreamsOriginPropertyIterator) SetForgeFedCommit(v vocab.ForgeFedCommit) { + this.clear() + this.forgefedCommitMember = v +} + +// SetForgeFedPush sets the value of this property. Calling IsForgeFedPush +// afterwards returns true. +func (this *ActivityStreamsOriginPropertyIterator) SetForgeFedPush(v vocab.ForgeFedPush) { + this.clear() + this.forgefedPushMember = v +} + +// SetForgeFedRepository sets the value of this property. Calling +// IsForgeFedRepository afterwards returns true. +func (this *ActivityStreamsOriginPropertyIterator) SetForgeFedRepository(v vocab.ForgeFedRepository) { + this.clear() + this.forgefedRepositoryMember = v +} + +// SetForgeFedTicket sets the value of this property. Calling IsForgeFedTicket +// afterwards returns true. +func (this *ActivityStreamsOriginPropertyIterator) SetForgeFedTicket(v vocab.ForgeFedTicket) { + this.clear() + this.forgefedTicketMember = v +} + +// SetForgeFedTicketDependency sets the value of this property. Calling +// IsForgeFedTicketDependency afterwards returns true. +func (this *ActivityStreamsOriginPropertyIterator) SetForgeFedTicketDependency(v vocab.ForgeFedTicketDependency) { + this.clear() + this.forgefedTicketDependencyMember = v +} + // SetIRI sets the value of this property. Calling IsIRI afterwards returns true. func (this *ActivityStreamsOriginPropertyIterator) SetIRI(v *url.URL) { this.clear() @@ -2392,6 +2622,10 @@ func (this *ActivityStreamsOriginPropertyIterator) SetType(t vocab.Type) error { 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 @@ -2400,6 +2634,10 @@ func (this *ActivityStreamsOriginPropertyIterator) SetType(t vocab.Type) error { 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 @@ -2516,6 +2754,10 @@ func (this *ActivityStreamsOriginPropertyIterator) SetType(t vocab.Type) error { 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 @@ -2536,6 +2778,10 @@ func (this *ActivityStreamsOriginPropertyIterator) SetType(t vocab.Type) error { 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 @@ -2548,6 +2794,14 @@ func (this *ActivityStreamsOriginPropertyIterator) SetType(t vocab.Type) error { 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 @@ -2590,8 +2844,10 @@ func (this *ActivityStreamsOriginPropertyIterator) clear() { 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 @@ -2621,14 +2877,18 @@ func (this *ActivityStreamsOriginPropertyIterator) clear() { 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 @@ -2666,10 +2926,14 @@ func (this ActivityStreamsOriginPropertyIterator) serialize() (interface{}, erro 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() { @@ -2728,6 +2992,8 @@ func (this ActivityStreamsOriginPropertyIterator) serialize() (interface{}, erro 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() { @@ -2738,12 +3004,18 @@ func (this ActivityStreamsOriginPropertyIterator) serialize() (interface{}, erro 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() { @@ -3422,6 +3694,73 @@ func (this *ActivityStreamsOriginProperty) AppendActivityStreamsView(v vocab.Act }) } +// AppendForgeFedBranch appends a Branch value to the back of a list of the +// property "origin". Invalidates iterators that are traversing using Prev. +func (this *ActivityStreamsOriginProperty) AppendForgeFedBranch(v vocab.ForgeFedBranch) { + this.properties = append(this.properties, &ActivityStreamsOriginPropertyIterator{ + alias: this.alias, + forgefedBranchMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendForgeFedCommit appends a Commit value to the back of a list of the +// property "origin". Invalidates iterators that are traversing using Prev. +func (this *ActivityStreamsOriginProperty) AppendForgeFedCommit(v vocab.ForgeFedCommit) { + this.properties = append(this.properties, &ActivityStreamsOriginPropertyIterator{ + alias: this.alias, + forgefedCommitMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendForgeFedPush appends a Push value to the back of a list of the property +// "origin". Invalidates iterators that are traversing using Prev. +func (this *ActivityStreamsOriginProperty) AppendForgeFedPush(v vocab.ForgeFedPush) { + this.properties = append(this.properties, &ActivityStreamsOriginPropertyIterator{ + alias: this.alias, + forgefedPushMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendForgeFedRepository appends a Repository value to the back of a list of +// the property "origin". Invalidates iterators that are traversing using Prev. +func (this *ActivityStreamsOriginProperty) AppendForgeFedRepository(v vocab.ForgeFedRepository) { + this.properties = append(this.properties, &ActivityStreamsOriginPropertyIterator{ + alias: this.alias, + forgefedRepositoryMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendForgeFedTicket appends a Ticket value to the back of a list of the +// property "origin". Invalidates iterators that are traversing using Prev. +func (this *ActivityStreamsOriginProperty) AppendForgeFedTicket(v vocab.ForgeFedTicket) { + this.properties = append(this.properties, &ActivityStreamsOriginPropertyIterator{ + alias: this.alias, + forgefedTicketMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendForgeFedTicketDependency appends a TicketDependency value to the back of +// a list of the property "origin". Invalidates iterators that are traversing +// using Prev. +func (this *ActivityStreamsOriginProperty) AppendForgeFedTicketDependency(v vocab.ForgeFedTicketDependency) { + this.properties = append(this.properties, &ActivityStreamsOriginPropertyIterator{ + alias: this.alias, + forgefedTicketDependencyMember: v, + myIdx: this.Len(), + parent: this, + }) +} + // AppendIRI appends an IRI value to the back of a list of the property "origin" func (this *ActivityStreamsOriginProperty) AppendIRI(v *url.URL) { this.properties = append(this.properties, &ActivityStreamsOriginPropertyIterator{ @@ -4417,6 +4756,108 @@ func (this *ActivityStreamsOriginProperty) InsertActivityStreamsView(idx int, v } } +// InsertForgeFedBranch inserts a Branch value at the specified index for a +// property "origin". Existing elements at that index and higher are shifted +// back once. Invalidates all iterators. +func (this *ActivityStreamsOriginProperty) InsertForgeFedBranch(idx int, v vocab.ForgeFedBranch) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsOriginPropertyIterator{ + alias: this.alias, + forgefedBranchMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertForgeFedCommit inserts a Commit value at the specified index for a +// property "origin". Existing elements at that index and higher are shifted +// back once. Invalidates all iterators. +func (this *ActivityStreamsOriginProperty) InsertForgeFedCommit(idx int, v vocab.ForgeFedCommit) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsOriginPropertyIterator{ + alias: this.alias, + forgefedCommitMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertForgeFedPush inserts a Push value at the specified index for a property +// "origin". Existing elements at that index and higher are shifted back once. +// Invalidates all iterators. +func (this *ActivityStreamsOriginProperty) InsertForgeFedPush(idx int, v vocab.ForgeFedPush) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsOriginPropertyIterator{ + alias: this.alias, + forgefedPushMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertForgeFedRepository inserts a Repository value at the specified index for +// a property "origin". Existing elements at that index and higher are shifted +// back once. Invalidates all iterators. +func (this *ActivityStreamsOriginProperty) InsertForgeFedRepository(idx int, v vocab.ForgeFedRepository) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsOriginPropertyIterator{ + alias: this.alias, + forgefedRepositoryMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertForgeFedTicket inserts a Ticket value at the specified index for a +// property "origin". Existing elements at that index and higher are shifted +// back once. Invalidates all iterators. +func (this *ActivityStreamsOriginProperty) InsertForgeFedTicket(idx int, v vocab.ForgeFedTicket) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsOriginPropertyIterator{ + alias: this.alias, + forgefedTicketMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertForgeFedTicketDependency inserts a TicketDependency value at the +// specified index for a property "origin". Existing elements at that index +// and higher are shifted back once. Invalidates all iterators. +func (this *ActivityStreamsOriginProperty) InsertForgeFedTicketDependency(idx int, v vocab.ForgeFedTicketDependency) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsOriginPropertyIterator{ + alias: this.alias, + forgefedTicketDependencyMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + // Insert inserts an IRI value at the specified index for a property "origin". // Existing elements at that index and higher are shifted back once. // Invalidates all iterators. @@ -4574,182 +5015,206 @@ func (this ActivityStreamsOriginProperty) Less(i, j int) bool { rhs := this.properties[j].GetActivityStreamsBlock() return lhs.LessThan(rhs) } else if idx1 == 11 { + lhs := this.properties[i].GetForgeFedBranch() + rhs := this.properties[j].GetForgeFedBranch() + return lhs.LessThan(rhs) + } else if idx1 == 12 { lhs := this.properties[i].GetActivityStreamsCollection() rhs := this.properties[j].GetActivityStreamsCollection() return lhs.LessThan(rhs) - } else if idx1 == 12 { + } else if idx1 == 13 { lhs := this.properties[i].GetActivityStreamsCollectionPage() rhs := this.properties[j].GetActivityStreamsCollectionPage() return lhs.LessThan(rhs) - } else if idx1 == 13 { + } else if idx1 == 14 { + lhs := this.properties[i].GetForgeFedCommit() + rhs := this.properties[j].GetForgeFedCommit() + return lhs.LessThan(rhs) + } else if idx1 == 15 { lhs := this.properties[i].GetActivityStreamsCreate() rhs := this.properties[j].GetActivityStreamsCreate() return lhs.LessThan(rhs) - } else if idx1 == 14 { + } else if idx1 == 16 { lhs := this.properties[i].GetActivityStreamsDelete() rhs := this.properties[j].GetActivityStreamsDelete() return lhs.LessThan(rhs) - } else if idx1 == 15 { + } else if idx1 == 17 { lhs := this.properties[i].GetActivityStreamsDislike() rhs := this.properties[j].GetActivityStreamsDislike() return lhs.LessThan(rhs) - } else if idx1 == 16 { + } else if idx1 == 18 { lhs := this.properties[i].GetActivityStreamsDocument() rhs := this.properties[j].GetActivityStreamsDocument() return lhs.LessThan(rhs) - } else if idx1 == 17 { + } else if idx1 == 19 { lhs := this.properties[i].GetTootEmoji() rhs := this.properties[j].GetTootEmoji() return lhs.LessThan(rhs) - } else if idx1 == 18 { + } else if idx1 == 20 { lhs := this.properties[i].GetActivityStreamsEvent() rhs := this.properties[j].GetActivityStreamsEvent() return lhs.LessThan(rhs) - } else if idx1 == 19 { + } else if idx1 == 21 { lhs := this.properties[i].GetActivityStreamsFlag() rhs := this.properties[j].GetActivityStreamsFlag() return lhs.LessThan(rhs) - } else if idx1 == 20 { + } else if idx1 == 22 { lhs := this.properties[i].GetActivityStreamsFollow() rhs := this.properties[j].GetActivityStreamsFollow() return lhs.LessThan(rhs) - } else if idx1 == 21 { + } else if idx1 == 23 { lhs := this.properties[i].GetActivityStreamsGroup() rhs := this.properties[j].GetActivityStreamsGroup() return lhs.LessThan(rhs) - } else if idx1 == 22 { + } else if idx1 == 24 { lhs := this.properties[i].GetTootIdentityProof() rhs := this.properties[j].GetTootIdentityProof() return lhs.LessThan(rhs) - } else if idx1 == 23 { + } else if idx1 == 25 { lhs := this.properties[i].GetActivityStreamsIgnore() rhs := this.properties[j].GetActivityStreamsIgnore() return lhs.LessThan(rhs) - } else if idx1 == 24 { + } else if idx1 == 26 { lhs := this.properties[i].GetActivityStreamsImage() rhs := this.properties[j].GetActivityStreamsImage() return lhs.LessThan(rhs) - } else if idx1 == 25 { + } else if idx1 == 27 { lhs := this.properties[i].GetActivityStreamsIntransitiveActivity() rhs := this.properties[j].GetActivityStreamsIntransitiveActivity() return lhs.LessThan(rhs) - } else if idx1 == 26 { + } else if idx1 == 28 { lhs := this.properties[i].GetActivityStreamsInvite() rhs := this.properties[j].GetActivityStreamsInvite() return lhs.LessThan(rhs) - } else if idx1 == 27 { + } else if idx1 == 29 { lhs := this.properties[i].GetActivityStreamsJoin() rhs := this.properties[j].GetActivityStreamsJoin() return lhs.LessThan(rhs) - } else if idx1 == 28 { + } else if idx1 == 30 { lhs := this.properties[i].GetActivityStreamsLeave() rhs := this.properties[j].GetActivityStreamsLeave() return lhs.LessThan(rhs) - } else if idx1 == 29 { + } else if idx1 == 31 { lhs := this.properties[i].GetActivityStreamsLike() rhs := this.properties[j].GetActivityStreamsLike() return lhs.LessThan(rhs) - } else if idx1 == 30 { + } else if idx1 == 32 { lhs := this.properties[i].GetActivityStreamsListen() rhs := this.properties[j].GetActivityStreamsListen() return lhs.LessThan(rhs) - } else if idx1 == 31 { + } else if idx1 == 33 { lhs := this.properties[i].GetActivityStreamsMention() rhs := this.properties[j].GetActivityStreamsMention() return lhs.LessThan(rhs) - } else if idx1 == 32 { + } else if idx1 == 34 { lhs := this.properties[i].GetActivityStreamsMove() rhs := this.properties[j].GetActivityStreamsMove() return lhs.LessThan(rhs) - } else if idx1 == 33 { + } else if idx1 == 35 { lhs := this.properties[i].GetActivityStreamsNote() rhs := this.properties[j].GetActivityStreamsNote() return lhs.LessThan(rhs) - } else if idx1 == 34 { + } else if idx1 == 36 { lhs := this.properties[i].GetActivityStreamsOffer() rhs := this.properties[j].GetActivityStreamsOffer() return lhs.LessThan(rhs) - } else if idx1 == 35 { + } else if idx1 == 37 { lhs := this.properties[i].GetActivityStreamsOrderedCollection() rhs := this.properties[j].GetActivityStreamsOrderedCollection() return lhs.LessThan(rhs) - } else if idx1 == 36 { + } else if idx1 == 38 { lhs := this.properties[i].GetActivityStreamsOrderedCollectionPage() rhs := this.properties[j].GetActivityStreamsOrderedCollectionPage() return lhs.LessThan(rhs) - } else if idx1 == 37 { + } else if idx1 == 39 { lhs := this.properties[i].GetActivityStreamsOrganization() rhs := this.properties[j].GetActivityStreamsOrganization() return lhs.LessThan(rhs) - } else if idx1 == 38 { + } else if idx1 == 40 { lhs := this.properties[i].GetActivityStreamsPage() rhs := this.properties[j].GetActivityStreamsPage() return lhs.LessThan(rhs) - } else if idx1 == 39 { + } else if idx1 == 41 { lhs := this.properties[i].GetActivityStreamsPerson() rhs := this.properties[j].GetActivityStreamsPerson() return lhs.LessThan(rhs) - } else if idx1 == 40 { + } else if idx1 == 42 { lhs := this.properties[i].GetActivityStreamsPlace() rhs := this.properties[j].GetActivityStreamsPlace() return lhs.LessThan(rhs) - } else if idx1 == 41 { + } else if idx1 == 43 { lhs := this.properties[i].GetActivityStreamsProfile() rhs := this.properties[j].GetActivityStreamsProfile() return lhs.LessThan(rhs) - } else if idx1 == 42 { + } else if idx1 == 44 { + lhs := this.properties[i].GetForgeFedPush() + rhs := this.properties[j].GetForgeFedPush() + return lhs.LessThan(rhs) + } else if idx1 == 45 { lhs := this.properties[i].GetActivityStreamsQuestion() rhs := this.properties[j].GetActivityStreamsQuestion() return lhs.LessThan(rhs) - } else if idx1 == 43 { + } else if idx1 == 46 { lhs := this.properties[i].GetActivityStreamsRead() rhs := this.properties[j].GetActivityStreamsRead() return lhs.LessThan(rhs) - } else if idx1 == 44 { + } else if idx1 == 47 { lhs := this.properties[i].GetActivityStreamsReject() rhs := this.properties[j].GetActivityStreamsReject() return lhs.LessThan(rhs) - } else if idx1 == 45 { + } else if idx1 == 48 { lhs := this.properties[i].GetActivityStreamsRelationship() rhs := this.properties[j].GetActivityStreamsRelationship() return lhs.LessThan(rhs) - } else if idx1 == 46 { + } else if idx1 == 49 { lhs := this.properties[i].GetActivityStreamsRemove() rhs := this.properties[j].GetActivityStreamsRemove() return lhs.LessThan(rhs) - } else if idx1 == 47 { + } else if idx1 == 50 { + lhs := this.properties[i].GetForgeFedRepository() + rhs := this.properties[j].GetForgeFedRepository() + return lhs.LessThan(rhs) + } else if idx1 == 51 { lhs := this.properties[i].GetActivityStreamsService() rhs := this.properties[j].GetActivityStreamsService() return lhs.LessThan(rhs) - } else if idx1 == 48 { + } else if idx1 == 52 { lhs := this.properties[i].GetActivityStreamsTentativeAccept() rhs := this.properties[j].GetActivityStreamsTentativeAccept() return lhs.LessThan(rhs) - } else if idx1 == 49 { + } else if idx1 == 53 { lhs := this.properties[i].GetActivityStreamsTentativeReject() rhs := this.properties[j].GetActivityStreamsTentativeReject() return lhs.LessThan(rhs) - } else if idx1 == 50 { + } else if idx1 == 54 { + lhs := this.properties[i].GetForgeFedTicket() + rhs := this.properties[j].GetForgeFedTicket() + return lhs.LessThan(rhs) + } else if idx1 == 55 { + lhs := this.properties[i].GetForgeFedTicketDependency() + rhs := this.properties[j].GetForgeFedTicketDependency() + return lhs.LessThan(rhs) + } else if idx1 == 56 { lhs := this.properties[i].GetActivityStreamsTombstone() rhs := this.properties[j].GetActivityStreamsTombstone() return lhs.LessThan(rhs) - } else if idx1 == 51 { + } else if idx1 == 57 { lhs := this.properties[i].GetActivityStreamsTravel() rhs := this.properties[j].GetActivityStreamsTravel() return lhs.LessThan(rhs) - } else if idx1 == 52 { + } else if idx1 == 58 { lhs := this.properties[i].GetActivityStreamsUndo() rhs := this.properties[j].GetActivityStreamsUndo() return lhs.LessThan(rhs) - } else if idx1 == 53 { + } else if idx1 == 59 { lhs := this.properties[i].GetActivityStreamsUpdate() rhs := this.properties[j].GetActivityStreamsUpdate() return lhs.LessThan(rhs) - } else if idx1 == 54 { + } else if idx1 == 60 { lhs := this.properties[i].GetActivityStreamsVideo() rhs := this.properties[j].GetActivityStreamsVideo() return lhs.LessThan(rhs) - } else if idx1 == 55 { + } else if idx1 == 61 { lhs := this.properties[i].GetActivityStreamsView() rhs := this.properties[j].GetActivityStreamsView() return lhs.LessThan(rhs) @@ -5550,6 +6015,90 @@ func (this *ActivityStreamsOriginProperty) PrependActivityStreamsView(v vocab.Ac } } +// PrependForgeFedBranch prepends a Branch value to the front of a list of the +// property "origin". Invalidates all iterators. +func (this *ActivityStreamsOriginProperty) PrependForgeFedBranch(v vocab.ForgeFedBranch) { + this.properties = append([]*ActivityStreamsOriginPropertyIterator{{ + alias: this.alias, + forgefedBranchMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependForgeFedCommit prepends a Commit value to the front of a list of the +// property "origin". Invalidates all iterators. +func (this *ActivityStreamsOriginProperty) PrependForgeFedCommit(v vocab.ForgeFedCommit) { + this.properties = append([]*ActivityStreamsOriginPropertyIterator{{ + alias: this.alias, + forgefedCommitMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependForgeFedPush prepends a Push value to the front of a list of the +// property "origin". Invalidates all iterators. +func (this *ActivityStreamsOriginProperty) PrependForgeFedPush(v vocab.ForgeFedPush) { + this.properties = append([]*ActivityStreamsOriginPropertyIterator{{ + alias: this.alias, + forgefedPushMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependForgeFedRepository prepends a Repository value to the front of a list of +// the property "origin". Invalidates all iterators. +func (this *ActivityStreamsOriginProperty) PrependForgeFedRepository(v vocab.ForgeFedRepository) { + this.properties = append([]*ActivityStreamsOriginPropertyIterator{{ + alias: this.alias, + forgefedRepositoryMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependForgeFedTicket prepends a Ticket value to the front of a list of the +// property "origin". Invalidates all iterators. +func (this *ActivityStreamsOriginProperty) PrependForgeFedTicket(v vocab.ForgeFedTicket) { + this.properties = append([]*ActivityStreamsOriginPropertyIterator{{ + alias: this.alias, + forgefedTicketMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependForgeFedTicketDependency prepends a TicketDependency value to the front +// of a list of the property "origin". Invalidates all iterators. +func (this *ActivityStreamsOriginProperty) PrependForgeFedTicketDependency(v vocab.ForgeFedTicketDependency) { + this.properties = append([]*ActivityStreamsOriginPropertyIterator{{ + alias: this.alias, + forgefedTicketDependencyMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + // PrependIRI prepends an IRI value to the front of a list of the property // "origin". func (this *ActivityStreamsOriginProperty) PrependIRI(v *url.URL) { @@ -6346,6 +6895,83 @@ func (this *ActivityStreamsOriginProperty) SetActivityStreamsView(idx int, v voc } } +// SetForgeFedBranch sets a Branch value to be at the specified index for the +// property "origin". Panics if the index is out of bounds. Invalidates all +// iterators. +func (this *ActivityStreamsOriginProperty) SetForgeFedBranch(idx int, v vocab.ForgeFedBranch) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsOriginPropertyIterator{ + alias: this.alias, + forgefedBranchMember: v, + myIdx: idx, + parent: this, + } +} + +// SetForgeFedCommit sets a Commit value to be at the specified index for the +// property "origin". Panics if the index is out of bounds. Invalidates all +// iterators. +func (this *ActivityStreamsOriginProperty) SetForgeFedCommit(idx int, v vocab.ForgeFedCommit) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsOriginPropertyIterator{ + alias: this.alias, + forgefedCommitMember: v, + myIdx: idx, + parent: this, + } +} + +// SetForgeFedPush sets a Push value to be at the specified index for the property +// "origin". Panics if the index is out of bounds. Invalidates all iterators. +func (this *ActivityStreamsOriginProperty) SetForgeFedPush(idx int, v vocab.ForgeFedPush) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsOriginPropertyIterator{ + alias: this.alias, + forgefedPushMember: v, + myIdx: idx, + parent: this, + } +} + +// SetForgeFedRepository sets a Repository value to be at the specified index for +// the property "origin". Panics if the index is out of bounds. Invalidates +// all iterators. +func (this *ActivityStreamsOriginProperty) SetForgeFedRepository(idx int, v vocab.ForgeFedRepository) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsOriginPropertyIterator{ + alias: this.alias, + forgefedRepositoryMember: v, + myIdx: idx, + parent: this, + } +} + +// SetForgeFedTicket sets a Ticket value to be at the specified index for the +// property "origin". Panics if the index is out of bounds. Invalidates all +// iterators. +func (this *ActivityStreamsOriginProperty) SetForgeFedTicket(idx int, v vocab.ForgeFedTicket) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsOriginPropertyIterator{ + alias: this.alias, + forgefedTicketMember: v, + myIdx: idx, + parent: this, + } +} + +// SetForgeFedTicketDependency sets a TicketDependency value to be at the +// specified index for the property "origin". Panics if the index is out of +// bounds. Invalidates all iterators. +func (this *ActivityStreamsOriginProperty) SetForgeFedTicketDependency(idx int, v vocab.ForgeFedTicketDependency) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsOriginPropertyIterator{ + alias: this.alias, + forgefedTicketDependencyMember: v, + myIdx: idx, + parent: this, + } +} + // SetIRI sets an IRI value to be at the specified index for the property // "origin". Panics if the index is out of bounds. func (this *ActivityStreamsOriginProperty) SetIRI(idx int, v *url.URL) { diff --git a/streams/impl/activitystreams/property_preview/gen_pkg.go b/streams/impl/activitystreams/property_preview/gen_pkg.go index 45cfc66..270923d 100644 --- a/streams/impl/activitystreams/property_preview/gen_pkg.go +++ b/streams/impl/activitystreams/property_preview/gen_pkg.go @@ -45,6 +45,10 @@ type privateManager interface { // 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" @@ -53,6 +57,10 @@ type privateManager interface { // 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" @@ -177,6 +185,9 @@ type privateManager interface { // 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" @@ -197,6 +208,10 @@ type privateManager interface { // 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" @@ -209,6 +224,14 @@ type privateManager interface { // 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" diff --git a/streams/impl/activitystreams/property_preview/gen_property_activitystreams_preview.go b/streams/impl/activitystreams/property_preview/gen_property_activitystreams_preview.go index ea040d0..c1dcd76 100644 --- a/streams/impl/activitystreams/property_preview/gen_property_activitystreams_preview.go +++ b/streams/impl/activitystreams/property_preview/gen_property_activitystreams_preview.go @@ -25,8 +25,10 @@ type ActivityStreamsPreviewPropertyIterator struct { 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 @@ -56,14 +58,18 @@ type ActivityStreamsPreviewPropertyIterator struct { 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 @@ -169,6 +175,12 @@ func deserializeActivityStreamsPreviewPropertyIterator(i interface{}, aliasMap m alias: alias, } return this, nil + } else if v, err := mgr.DeserializeBranchForgeFed()(m, aliasMap); err == nil { + this := &ActivityStreamsPreviewPropertyIterator{ + alias: alias, + forgefedBranchMember: v, + } + return this, nil } else if v, err := mgr.DeserializeCollectionActivityStreams()(m, aliasMap); err == nil { this := &ActivityStreamsPreviewPropertyIterator{ activitystreamsCollectionMember: v, @@ -181,6 +193,12 @@ func deserializeActivityStreamsPreviewPropertyIterator(i interface{}, aliasMap m alias: alias, } return this, nil + } else if v, err := mgr.DeserializeCommitForgeFed()(m, aliasMap); err == nil { + this := &ActivityStreamsPreviewPropertyIterator{ + alias: alias, + forgefedCommitMember: v, + } + return this, nil } else if v, err := mgr.DeserializeCreateActivityStreams()(m, aliasMap); err == nil { this := &ActivityStreamsPreviewPropertyIterator{ activitystreamsCreateMember: v, @@ -355,6 +373,12 @@ func deserializeActivityStreamsPreviewPropertyIterator(i interface{}, aliasMap m alias: alias, } return this, nil + } else if v, err := mgr.DeserializePushForgeFed()(m, aliasMap); err == nil { + this := &ActivityStreamsPreviewPropertyIterator{ + alias: alias, + forgefedPushMember: v, + } + return this, nil } else if v, err := mgr.DeserializeQuestionActivityStreams()(m, aliasMap); err == nil { this := &ActivityStreamsPreviewPropertyIterator{ activitystreamsQuestionMember: v, @@ -385,6 +409,12 @@ func deserializeActivityStreamsPreviewPropertyIterator(i interface{}, aliasMap m alias: alias, } return this, nil + } else if v, err := mgr.DeserializeRepositoryForgeFed()(m, aliasMap); err == nil { + this := &ActivityStreamsPreviewPropertyIterator{ + alias: alias, + forgefedRepositoryMember: v, + } + return this, nil } else if v, err := mgr.DeserializeServiceActivityStreams()(m, aliasMap); err == nil { this := &ActivityStreamsPreviewPropertyIterator{ activitystreamsServiceMember: v, @@ -403,6 +433,18 @@ func deserializeActivityStreamsPreviewPropertyIterator(i interface{}, aliasMap m alias: alias, } return this, nil + } else if v, err := mgr.DeserializeTicketForgeFed()(m, aliasMap); err == nil { + this := &ActivityStreamsPreviewPropertyIterator{ + alias: alias, + forgefedTicketMember: v, + } + return this, nil + } else if v, err := mgr.DeserializeTicketDependencyForgeFed()(m, aliasMap); err == nil { + this := &ActivityStreamsPreviewPropertyIterator{ + alias: alias, + forgefedTicketDependencyMember: v, + } + return this, nil } else if v, err := mgr.DeserializeTombstoneActivityStreams()(m, aliasMap); err == nil { this := &ActivityStreamsPreviewPropertyIterator{ activitystreamsTombstoneMember: v, @@ -826,6 +868,44 @@ func (this ActivityStreamsPreviewPropertyIterator) GetActivityStreamsView() voca return this.activitystreamsViewMember } +// GetForgeFedBranch returns the value of this property. When IsForgeFedBranch +// returns false, GetForgeFedBranch will return an arbitrary value. +func (this ActivityStreamsPreviewPropertyIterator) GetForgeFedBranch() vocab.ForgeFedBranch { + return this.forgefedBranchMember +} + +// GetForgeFedCommit returns the value of this property. When IsForgeFedCommit +// returns false, GetForgeFedCommit will return an arbitrary value. +func (this ActivityStreamsPreviewPropertyIterator) GetForgeFedCommit() vocab.ForgeFedCommit { + return this.forgefedCommitMember +} + +// GetForgeFedPush returns the value of this property. When IsForgeFedPush returns +// false, GetForgeFedPush will return an arbitrary value. +func (this ActivityStreamsPreviewPropertyIterator) GetForgeFedPush() vocab.ForgeFedPush { + return this.forgefedPushMember +} + +// GetForgeFedRepository returns the value of this property. When +// IsForgeFedRepository returns false, GetForgeFedRepository will return an +// arbitrary value. +func (this ActivityStreamsPreviewPropertyIterator) GetForgeFedRepository() vocab.ForgeFedRepository { + return this.forgefedRepositoryMember +} + +// GetForgeFedTicket returns the value of this property. When IsForgeFedTicket +// returns false, GetForgeFedTicket will return an arbitrary value. +func (this ActivityStreamsPreviewPropertyIterator) GetForgeFedTicket() vocab.ForgeFedTicket { + return this.forgefedTicketMember +} + +// GetForgeFedTicketDependency returns the value of this property. When +// IsForgeFedTicketDependency returns false, GetForgeFedTicketDependency will +// return an arbitrary value. +func (this ActivityStreamsPreviewPropertyIterator) GetForgeFedTicketDependency() vocab.ForgeFedTicketDependency { + return this.forgefedTicketDependencyMember +} + // GetIRI returns the IRI of this property. When IsIRI returns false, GetIRI will // return an arbitrary value. func (this ActivityStreamsPreviewPropertyIterator) GetIRI() *url.URL { @@ -881,12 +961,18 @@ func (this ActivityStreamsPreviewPropertyIterator) GetType() vocab.Type { 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() } @@ -974,6 +1060,9 @@ func (this ActivityStreamsPreviewPropertyIterator) GetType() vocab.Type { if this.IsActivityStreamsProfile() { return this.GetActivityStreamsProfile() } + if this.IsForgeFedPush() { + return this.GetForgeFedPush() + } if this.IsActivityStreamsQuestion() { return this.GetActivityStreamsQuestion() } @@ -989,6 +1078,9 @@ func (this ActivityStreamsPreviewPropertyIterator) GetType() vocab.Type { if this.IsActivityStreamsRemove() { return this.GetActivityStreamsRemove() } + if this.IsForgeFedRepository() { + return this.GetForgeFedRepository() + } if this.IsActivityStreamsService() { return this.GetActivityStreamsService() } @@ -998,6 +1090,12 @@ func (this ActivityStreamsPreviewPropertyIterator) GetType() vocab.Type { if this.IsActivityStreamsTentativeReject() { return this.GetActivityStreamsTentativeReject() } + if this.IsForgeFedTicket() { + return this.GetForgeFedTicket() + } + if this.IsForgeFedTicketDependency() { + return this.GetForgeFedTicketDependency() + } if this.IsActivityStreamsTombstone() { return this.GetActivityStreamsTombstone() } @@ -1033,8 +1131,10 @@ func (this ActivityStreamsPreviewPropertyIterator) HasAny() bool { this.IsActivityStreamsArticle() || this.IsActivityStreamsAudio() || this.IsActivityStreamsBlock() || + this.IsForgeFedBranch() || this.IsActivityStreamsCollection() || this.IsActivityStreamsCollectionPage() || + this.IsForgeFedCommit() || this.IsActivityStreamsCreate() || this.IsActivityStreamsDelete() || this.IsActivityStreamsDislike() || @@ -1064,14 +1164,18 @@ func (this ActivityStreamsPreviewPropertyIterator) HasAny() bool { 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() || @@ -1464,6 +1568,48 @@ func (this ActivityStreamsPreviewPropertyIterator) IsActivityStreamsView() bool return this.activitystreamsViewMember != nil } +// IsForgeFedBranch returns true if this property has a type of "Branch". When +// true, use the GetForgeFedBranch and SetForgeFedBranch methods to access and +// set this property. +func (this ActivityStreamsPreviewPropertyIterator) IsForgeFedBranch() bool { + return this.forgefedBranchMember != nil +} + +// IsForgeFedCommit returns true if this property has a type of "Commit". When +// true, use the GetForgeFedCommit and SetForgeFedCommit methods to access and +// set this property. +func (this ActivityStreamsPreviewPropertyIterator) IsForgeFedCommit() bool { + return this.forgefedCommitMember != nil +} + +// IsForgeFedPush returns true if this property has a type of "Push". When true, +// use the GetForgeFedPush and SetForgeFedPush methods to access and set this +// property. +func (this ActivityStreamsPreviewPropertyIterator) IsForgeFedPush() bool { + return this.forgefedPushMember != nil +} + +// IsForgeFedRepository returns true if this property has a type of "Repository". +// When true, use the GetForgeFedRepository and SetForgeFedRepository methods +// to access and set this property. +func (this ActivityStreamsPreviewPropertyIterator) IsForgeFedRepository() bool { + return this.forgefedRepositoryMember != nil +} + +// IsForgeFedTicket returns true if this property has a type of "Ticket". When +// true, use the GetForgeFedTicket and SetForgeFedTicket methods to access and +// set this property. +func (this ActivityStreamsPreviewPropertyIterator) IsForgeFedTicket() bool { + return this.forgefedTicketMember != nil +} + +// IsForgeFedTicketDependency returns true if this property has a type of +// "TicketDependency". When true, use the GetForgeFedTicketDependency and +// SetForgeFedTicketDependency methods to access and set this property. +func (this ActivityStreamsPreviewPropertyIterator) IsForgeFedTicketDependency() bool { + return this.forgefedTicketDependencyMember != nil +} + // IsIRI returns true if this property is an IRI. When true, use GetIRI and SetIRI // to access and set this property func (this ActivityStreamsPreviewPropertyIterator) IsIRI() bool { @@ -1511,10 +1657,14 @@ func (this ActivityStreamsPreviewPropertyIterator) JSONLDContext() map[string]st 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() { @@ -1573,6 +1723,8 @@ func (this ActivityStreamsPreviewPropertyIterator) JSONLDContext() map[string]st 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() { @@ -1583,12 +1735,18 @@ func (this ActivityStreamsPreviewPropertyIterator) JSONLDContext() map[string]st 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() { @@ -1650,141 +1808,159 @@ func (this ActivityStreamsPreviewPropertyIterator) KindIndex() int { if this.IsActivityStreamsBlock() { return 10 } - if this.IsActivityStreamsCollection() { + if this.IsForgeFedBranch() { return 11 } - if this.IsActivityStreamsCollectionPage() { + if this.IsActivityStreamsCollection() { return 12 } - if this.IsActivityStreamsCreate() { + if this.IsActivityStreamsCollectionPage() { return 13 } - if this.IsActivityStreamsDelete() { + if this.IsForgeFedCommit() { return 14 } - if this.IsActivityStreamsDislike() { + if this.IsActivityStreamsCreate() { return 15 } - if this.IsActivityStreamsDocument() { + if this.IsActivityStreamsDelete() { return 16 } - if this.IsTootEmoji() { + if this.IsActivityStreamsDislike() { return 17 } - if this.IsActivityStreamsEvent() { + if this.IsActivityStreamsDocument() { return 18 } - if this.IsActivityStreamsFlag() { + if this.IsTootEmoji() { return 19 } - if this.IsActivityStreamsFollow() { + if this.IsActivityStreamsEvent() { return 20 } - if this.IsActivityStreamsGroup() { + if this.IsActivityStreamsFlag() { return 21 } - if this.IsTootIdentityProof() { + if this.IsActivityStreamsFollow() { return 22 } - if this.IsActivityStreamsIgnore() { + if this.IsActivityStreamsGroup() { return 23 } - if this.IsActivityStreamsImage() { + if this.IsTootIdentityProof() { return 24 } - if this.IsActivityStreamsIntransitiveActivity() { + if this.IsActivityStreamsIgnore() { return 25 } - if this.IsActivityStreamsInvite() { + if this.IsActivityStreamsImage() { return 26 } - if this.IsActivityStreamsJoin() { + if this.IsActivityStreamsIntransitiveActivity() { return 27 } - if this.IsActivityStreamsLeave() { + if this.IsActivityStreamsInvite() { return 28 } - if this.IsActivityStreamsLike() { + if this.IsActivityStreamsJoin() { return 29 } - if this.IsActivityStreamsListen() { + if this.IsActivityStreamsLeave() { return 30 } - if this.IsActivityStreamsMention() { + if this.IsActivityStreamsLike() { return 31 } - if this.IsActivityStreamsMove() { + if this.IsActivityStreamsListen() { return 32 } - if this.IsActivityStreamsNote() { + if this.IsActivityStreamsMention() { return 33 } - if this.IsActivityStreamsOffer() { + if this.IsActivityStreamsMove() { return 34 } - if this.IsActivityStreamsOrderedCollection() { + if this.IsActivityStreamsNote() { return 35 } - if this.IsActivityStreamsOrderedCollectionPage() { + if this.IsActivityStreamsOffer() { return 36 } - if this.IsActivityStreamsOrganization() { + if this.IsActivityStreamsOrderedCollection() { return 37 } - if this.IsActivityStreamsPage() { + if this.IsActivityStreamsOrderedCollectionPage() { return 38 } - if this.IsActivityStreamsPerson() { + if this.IsActivityStreamsOrganization() { return 39 } - if this.IsActivityStreamsPlace() { + if this.IsActivityStreamsPage() { return 40 } - if this.IsActivityStreamsProfile() { + if this.IsActivityStreamsPerson() { return 41 } - if this.IsActivityStreamsQuestion() { + if this.IsActivityStreamsPlace() { return 42 } - if this.IsActivityStreamsRead() { + if this.IsActivityStreamsProfile() { return 43 } - if this.IsActivityStreamsReject() { + if this.IsForgeFedPush() { return 44 } - if this.IsActivityStreamsRelationship() { + if this.IsActivityStreamsQuestion() { return 45 } - if this.IsActivityStreamsRemove() { + if this.IsActivityStreamsRead() { return 46 } - if this.IsActivityStreamsService() { + if this.IsActivityStreamsReject() { return 47 } - if this.IsActivityStreamsTentativeAccept() { + if this.IsActivityStreamsRelationship() { return 48 } - if this.IsActivityStreamsTentativeReject() { + if this.IsActivityStreamsRemove() { return 49 } - if this.IsActivityStreamsTombstone() { + if this.IsForgeFedRepository() { return 50 } - if this.IsActivityStreamsTravel() { + if this.IsActivityStreamsService() { return 51 } - if this.IsActivityStreamsUndo() { + if this.IsActivityStreamsTentativeAccept() { return 52 } - if this.IsActivityStreamsUpdate() { + if this.IsActivityStreamsTentativeReject() { return 53 } - if this.IsActivityStreamsVideo() { + if this.IsForgeFedTicket() { return 54 } - if this.IsActivityStreamsView() { + 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 } @@ -1824,10 +2000,14 @@ func (this ActivityStreamsPreviewPropertyIterator) LessThan(o vocab.ActivityStre 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() { @@ -1886,6 +2066,8 @@ func (this ActivityStreamsPreviewPropertyIterator) LessThan(o vocab.ActivityStre 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() { @@ -1896,12 +2078,18 @@ func (this ActivityStreamsPreviewPropertyIterator) LessThan(o vocab.ActivityStre 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() { @@ -2325,6 +2513,48 @@ func (this *ActivityStreamsPreviewPropertyIterator) SetActivityStreamsView(v voc this.activitystreamsViewMember = v } +// SetForgeFedBranch sets the value of this property. Calling IsForgeFedBranch +// afterwards returns true. +func (this *ActivityStreamsPreviewPropertyIterator) SetForgeFedBranch(v vocab.ForgeFedBranch) { + this.clear() + this.forgefedBranchMember = v +} + +// SetForgeFedCommit sets the value of this property. Calling IsForgeFedCommit +// afterwards returns true. +func (this *ActivityStreamsPreviewPropertyIterator) SetForgeFedCommit(v vocab.ForgeFedCommit) { + this.clear() + this.forgefedCommitMember = v +} + +// SetForgeFedPush sets the value of this property. Calling IsForgeFedPush +// afterwards returns true. +func (this *ActivityStreamsPreviewPropertyIterator) SetForgeFedPush(v vocab.ForgeFedPush) { + this.clear() + this.forgefedPushMember = v +} + +// SetForgeFedRepository sets the value of this property. Calling +// IsForgeFedRepository afterwards returns true. +func (this *ActivityStreamsPreviewPropertyIterator) SetForgeFedRepository(v vocab.ForgeFedRepository) { + this.clear() + this.forgefedRepositoryMember = v +} + +// SetForgeFedTicket sets the value of this property. Calling IsForgeFedTicket +// afterwards returns true. +func (this *ActivityStreamsPreviewPropertyIterator) SetForgeFedTicket(v vocab.ForgeFedTicket) { + this.clear() + this.forgefedTicketMember = v +} + +// SetForgeFedTicketDependency sets the value of this property. Calling +// IsForgeFedTicketDependency afterwards returns true. +func (this *ActivityStreamsPreviewPropertyIterator) SetForgeFedTicketDependency(v vocab.ForgeFedTicketDependency) { + this.clear() + this.forgefedTicketDependencyMember = v +} + // SetIRI sets the value of this property. Calling IsIRI afterwards returns true. func (this *ActivityStreamsPreviewPropertyIterator) SetIRI(v *url.URL) { this.clear() @@ -2392,6 +2622,10 @@ func (this *ActivityStreamsPreviewPropertyIterator) SetType(t vocab.Type) error 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 @@ -2400,6 +2634,10 @@ func (this *ActivityStreamsPreviewPropertyIterator) SetType(t vocab.Type) error 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 @@ -2516,6 +2754,10 @@ func (this *ActivityStreamsPreviewPropertyIterator) SetType(t vocab.Type) error 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 @@ -2536,6 +2778,10 @@ func (this *ActivityStreamsPreviewPropertyIterator) SetType(t vocab.Type) error 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 @@ -2548,6 +2794,14 @@ func (this *ActivityStreamsPreviewPropertyIterator) SetType(t vocab.Type) error 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 @@ -2590,8 +2844,10 @@ func (this *ActivityStreamsPreviewPropertyIterator) clear() { 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 @@ -2621,14 +2877,18 @@ func (this *ActivityStreamsPreviewPropertyIterator) clear() { 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 @@ -2666,10 +2926,14 @@ func (this ActivityStreamsPreviewPropertyIterator) serialize() (interface{}, err 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() { @@ -2728,6 +2992,8 @@ func (this ActivityStreamsPreviewPropertyIterator) serialize() (interface{}, err 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() { @@ -2738,12 +3004,18 @@ func (this ActivityStreamsPreviewPropertyIterator) serialize() (interface{}, err 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() { @@ -3431,6 +3703,74 @@ func (this *ActivityStreamsPreviewProperty) AppendActivityStreamsView(v vocab.Ac }) } +// AppendForgeFedBranch appends a Branch value to the back of a list of the +// property "preview". Invalidates iterators that are traversing using Prev. +func (this *ActivityStreamsPreviewProperty) AppendForgeFedBranch(v vocab.ForgeFedBranch) { + this.properties = append(this.properties, &ActivityStreamsPreviewPropertyIterator{ + alias: this.alias, + forgefedBranchMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendForgeFedCommit appends a Commit value to the back of a list of the +// property "preview". Invalidates iterators that are traversing using Prev. +func (this *ActivityStreamsPreviewProperty) AppendForgeFedCommit(v vocab.ForgeFedCommit) { + this.properties = append(this.properties, &ActivityStreamsPreviewPropertyIterator{ + alias: this.alias, + forgefedCommitMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendForgeFedPush appends a Push value to the back of a list of the property +// "preview". Invalidates iterators that are traversing using Prev. +func (this *ActivityStreamsPreviewProperty) AppendForgeFedPush(v vocab.ForgeFedPush) { + this.properties = append(this.properties, &ActivityStreamsPreviewPropertyIterator{ + alias: this.alias, + forgefedPushMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendForgeFedRepository appends a Repository value to the back of a list of +// the property "preview". Invalidates iterators that are traversing using +// Prev. +func (this *ActivityStreamsPreviewProperty) AppendForgeFedRepository(v vocab.ForgeFedRepository) { + this.properties = append(this.properties, &ActivityStreamsPreviewPropertyIterator{ + alias: this.alias, + forgefedRepositoryMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendForgeFedTicket appends a Ticket value to the back of a list of the +// property "preview". Invalidates iterators that are traversing using Prev. +func (this *ActivityStreamsPreviewProperty) AppendForgeFedTicket(v vocab.ForgeFedTicket) { + this.properties = append(this.properties, &ActivityStreamsPreviewPropertyIterator{ + alias: this.alias, + forgefedTicketMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendForgeFedTicketDependency appends a TicketDependency value to the back of +// a list of the property "preview". Invalidates iterators that are traversing +// using Prev. +func (this *ActivityStreamsPreviewProperty) AppendForgeFedTicketDependency(v vocab.ForgeFedTicketDependency) { + this.properties = append(this.properties, &ActivityStreamsPreviewPropertyIterator{ + alias: this.alias, + forgefedTicketDependencyMember: v, + myIdx: this.Len(), + parent: this, + }) +} + // AppendIRI appends an IRI value to the back of a list of the property "preview" func (this *ActivityStreamsPreviewProperty) AppendIRI(v *url.URL) { this.properties = append(this.properties, &ActivityStreamsPreviewPropertyIterator{ @@ -4427,6 +4767,108 @@ func (this *ActivityStreamsPreviewProperty) InsertActivityStreamsView(idx int, v } } +// InsertForgeFedBranch inserts a Branch value at the specified index for a +// property "preview". Existing elements at that index and higher are shifted +// back once. Invalidates all iterators. +func (this *ActivityStreamsPreviewProperty) InsertForgeFedBranch(idx int, v vocab.ForgeFedBranch) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsPreviewPropertyIterator{ + alias: this.alias, + forgefedBranchMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertForgeFedCommit inserts a Commit value at the specified index for a +// property "preview". Existing elements at that index and higher are shifted +// back once. Invalidates all iterators. +func (this *ActivityStreamsPreviewProperty) InsertForgeFedCommit(idx int, v vocab.ForgeFedCommit) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsPreviewPropertyIterator{ + alias: this.alias, + forgefedCommitMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertForgeFedPush inserts a Push value at the specified index for a property +// "preview". Existing elements at that index and higher are shifted back +// once. Invalidates all iterators. +func (this *ActivityStreamsPreviewProperty) InsertForgeFedPush(idx int, v vocab.ForgeFedPush) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsPreviewPropertyIterator{ + alias: this.alias, + forgefedPushMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertForgeFedRepository inserts a Repository value at the specified index for +// a property "preview". Existing elements at that index and higher are +// shifted back once. Invalidates all iterators. +func (this *ActivityStreamsPreviewProperty) InsertForgeFedRepository(idx int, v vocab.ForgeFedRepository) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsPreviewPropertyIterator{ + alias: this.alias, + forgefedRepositoryMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertForgeFedTicket inserts a Ticket value at the specified index for a +// property "preview". Existing elements at that index and higher are shifted +// back once. Invalidates all iterators. +func (this *ActivityStreamsPreviewProperty) InsertForgeFedTicket(idx int, v vocab.ForgeFedTicket) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsPreviewPropertyIterator{ + alias: this.alias, + forgefedTicketMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertForgeFedTicketDependency inserts a TicketDependency value at the +// specified index for a property "preview". Existing elements at that index +// and higher are shifted back once. Invalidates all iterators. +func (this *ActivityStreamsPreviewProperty) InsertForgeFedTicketDependency(idx int, v vocab.ForgeFedTicketDependency) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsPreviewPropertyIterator{ + alias: this.alias, + forgefedTicketDependencyMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + // Insert inserts an IRI value at the specified index for a property "preview". // Existing elements at that index and higher are shifted back once. // Invalidates all iterators. @@ -4584,182 +5026,206 @@ func (this ActivityStreamsPreviewProperty) Less(i, j int) bool { rhs := this.properties[j].GetActivityStreamsBlock() return lhs.LessThan(rhs) } else if idx1 == 11 { + lhs := this.properties[i].GetForgeFedBranch() + rhs := this.properties[j].GetForgeFedBranch() + return lhs.LessThan(rhs) + } else if idx1 == 12 { lhs := this.properties[i].GetActivityStreamsCollection() rhs := this.properties[j].GetActivityStreamsCollection() return lhs.LessThan(rhs) - } else if idx1 == 12 { + } else if idx1 == 13 { lhs := this.properties[i].GetActivityStreamsCollectionPage() rhs := this.properties[j].GetActivityStreamsCollectionPage() return lhs.LessThan(rhs) - } else if idx1 == 13 { + } else if idx1 == 14 { + lhs := this.properties[i].GetForgeFedCommit() + rhs := this.properties[j].GetForgeFedCommit() + return lhs.LessThan(rhs) + } else if idx1 == 15 { lhs := this.properties[i].GetActivityStreamsCreate() rhs := this.properties[j].GetActivityStreamsCreate() return lhs.LessThan(rhs) - } else if idx1 == 14 { + } else if idx1 == 16 { lhs := this.properties[i].GetActivityStreamsDelete() rhs := this.properties[j].GetActivityStreamsDelete() return lhs.LessThan(rhs) - } else if idx1 == 15 { + } else if idx1 == 17 { lhs := this.properties[i].GetActivityStreamsDislike() rhs := this.properties[j].GetActivityStreamsDislike() return lhs.LessThan(rhs) - } else if idx1 == 16 { + } else if idx1 == 18 { lhs := this.properties[i].GetActivityStreamsDocument() rhs := this.properties[j].GetActivityStreamsDocument() return lhs.LessThan(rhs) - } else if idx1 == 17 { + } else if idx1 == 19 { lhs := this.properties[i].GetTootEmoji() rhs := this.properties[j].GetTootEmoji() return lhs.LessThan(rhs) - } else if idx1 == 18 { + } else if idx1 == 20 { lhs := this.properties[i].GetActivityStreamsEvent() rhs := this.properties[j].GetActivityStreamsEvent() return lhs.LessThan(rhs) - } else if idx1 == 19 { + } else if idx1 == 21 { lhs := this.properties[i].GetActivityStreamsFlag() rhs := this.properties[j].GetActivityStreamsFlag() return lhs.LessThan(rhs) - } else if idx1 == 20 { + } else if idx1 == 22 { lhs := this.properties[i].GetActivityStreamsFollow() rhs := this.properties[j].GetActivityStreamsFollow() return lhs.LessThan(rhs) - } else if idx1 == 21 { + } else if idx1 == 23 { lhs := this.properties[i].GetActivityStreamsGroup() rhs := this.properties[j].GetActivityStreamsGroup() return lhs.LessThan(rhs) - } else if idx1 == 22 { + } else if idx1 == 24 { lhs := this.properties[i].GetTootIdentityProof() rhs := this.properties[j].GetTootIdentityProof() return lhs.LessThan(rhs) - } else if idx1 == 23 { + } else if idx1 == 25 { lhs := this.properties[i].GetActivityStreamsIgnore() rhs := this.properties[j].GetActivityStreamsIgnore() return lhs.LessThan(rhs) - } else if idx1 == 24 { + } else if idx1 == 26 { lhs := this.properties[i].GetActivityStreamsImage() rhs := this.properties[j].GetActivityStreamsImage() return lhs.LessThan(rhs) - } else if idx1 == 25 { + } else if idx1 == 27 { lhs := this.properties[i].GetActivityStreamsIntransitiveActivity() rhs := this.properties[j].GetActivityStreamsIntransitiveActivity() return lhs.LessThan(rhs) - } else if idx1 == 26 { + } else if idx1 == 28 { lhs := this.properties[i].GetActivityStreamsInvite() rhs := this.properties[j].GetActivityStreamsInvite() return lhs.LessThan(rhs) - } else if idx1 == 27 { + } else if idx1 == 29 { lhs := this.properties[i].GetActivityStreamsJoin() rhs := this.properties[j].GetActivityStreamsJoin() return lhs.LessThan(rhs) - } else if idx1 == 28 { + } else if idx1 == 30 { lhs := this.properties[i].GetActivityStreamsLeave() rhs := this.properties[j].GetActivityStreamsLeave() return lhs.LessThan(rhs) - } else if idx1 == 29 { + } else if idx1 == 31 { lhs := this.properties[i].GetActivityStreamsLike() rhs := this.properties[j].GetActivityStreamsLike() return lhs.LessThan(rhs) - } else if idx1 == 30 { + } else if idx1 == 32 { lhs := this.properties[i].GetActivityStreamsListen() rhs := this.properties[j].GetActivityStreamsListen() return lhs.LessThan(rhs) - } else if idx1 == 31 { + } else if idx1 == 33 { lhs := this.properties[i].GetActivityStreamsMention() rhs := this.properties[j].GetActivityStreamsMention() return lhs.LessThan(rhs) - } else if idx1 == 32 { + } else if idx1 == 34 { lhs := this.properties[i].GetActivityStreamsMove() rhs := this.properties[j].GetActivityStreamsMove() return lhs.LessThan(rhs) - } else if idx1 == 33 { + } else if idx1 == 35 { lhs := this.properties[i].GetActivityStreamsNote() rhs := this.properties[j].GetActivityStreamsNote() return lhs.LessThan(rhs) - } else if idx1 == 34 { + } else if idx1 == 36 { lhs := this.properties[i].GetActivityStreamsOffer() rhs := this.properties[j].GetActivityStreamsOffer() return lhs.LessThan(rhs) - } else if idx1 == 35 { + } else if idx1 == 37 { lhs := this.properties[i].GetActivityStreamsOrderedCollection() rhs := this.properties[j].GetActivityStreamsOrderedCollection() return lhs.LessThan(rhs) - } else if idx1 == 36 { + } else if idx1 == 38 { lhs := this.properties[i].GetActivityStreamsOrderedCollectionPage() rhs := this.properties[j].GetActivityStreamsOrderedCollectionPage() return lhs.LessThan(rhs) - } else if idx1 == 37 { + } else if idx1 == 39 { lhs := this.properties[i].GetActivityStreamsOrganization() rhs := this.properties[j].GetActivityStreamsOrganization() return lhs.LessThan(rhs) - } else if idx1 == 38 { + } else if idx1 == 40 { lhs := this.properties[i].GetActivityStreamsPage() rhs := this.properties[j].GetActivityStreamsPage() return lhs.LessThan(rhs) - } else if idx1 == 39 { + } else if idx1 == 41 { lhs := this.properties[i].GetActivityStreamsPerson() rhs := this.properties[j].GetActivityStreamsPerson() return lhs.LessThan(rhs) - } else if idx1 == 40 { + } else if idx1 == 42 { lhs := this.properties[i].GetActivityStreamsPlace() rhs := this.properties[j].GetActivityStreamsPlace() return lhs.LessThan(rhs) - } else if idx1 == 41 { + } else if idx1 == 43 { lhs := this.properties[i].GetActivityStreamsProfile() rhs := this.properties[j].GetActivityStreamsProfile() return lhs.LessThan(rhs) - } else if idx1 == 42 { + } else if idx1 == 44 { + lhs := this.properties[i].GetForgeFedPush() + rhs := this.properties[j].GetForgeFedPush() + return lhs.LessThan(rhs) + } else if idx1 == 45 { lhs := this.properties[i].GetActivityStreamsQuestion() rhs := this.properties[j].GetActivityStreamsQuestion() return lhs.LessThan(rhs) - } else if idx1 == 43 { + } else if idx1 == 46 { lhs := this.properties[i].GetActivityStreamsRead() rhs := this.properties[j].GetActivityStreamsRead() return lhs.LessThan(rhs) - } else if idx1 == 44 { + } else if idx1 == 47 { lhs := this.properties[i].GetActivityStreamsReject() rhs := this.properties[j].GetActivityStreamsReject() return lhs.LessThan(rhs) - } else if idx1 == 45 { + } else if idx1 == 48 { lhs := this.properties[i].GetActivityStreamsRelationship() rhs := this.properties[j].GetActivityStreamsRelationship() return lhs.LessThan(rhs) - } else if idx1 == 46 { + } else if idx1 == 49 { lhs := this.properties[i].GetActivityStreamsRemove() rhs := this.properties[j].GetActivityStreamsRemove() return lhs.LessThan(rhs) - } else if idx1 == 47 { + } else if idx1 == 50 { + lhs := this.properties[i].GetForgeFedRepository() + rhs := this.properties[j].GetForgeFedRepository() + return lhs.LessThan(rhs) + } else if idx1 == 51 { lhs := this.properties[i].GetActivityStreamsService() rhs := this.properties[j].GetActivityStreamsService() return lhs.LessThan(rhs) - } else if idx1 == 48 { + } else if idx1 == 52 { lhs := this.properties[i].GetActivityStreamsTentativeAccept() rhs := this.properties[j].GetActivityStreamsTentativeAccept() return lhs.LessThan(rhs) - } else if idx1 == 49 { + } else if idx1 == 53 { lhs := this.properties[i].GetActivityStreamsTentativeReject() rhs := this.properties[j].GetActivityStreamsTentativeReject() return lhs.LessThan(rhs) - } else if idx1 == 50 { + } else if idx1 == 54 { + lhs := this.properties[i].GetForgeFedTicket() + rhs := this.properties[j].GetForgeFedTicket() + return lhs.LessThan(rhs) + } else if idx1 == 55 { + lhs := this.properties[i].GetForgeFedTicketDependency() + rhs := this.properties[j].GetForgeFedTicketDependency() + return lhs.LessThan(rhs) + } else if idx1 == 56 { lhs := this.properties[i].GetActivityStreamsTombstone() rhs := this.properties[j].GetActivityStreamsTombstone() return lhs.LessThan(rhs) - } else if idx1 == 51 { + } else if idx1 == 57 { lhs := this.properties[i].GetActivityStreamsTravel() rhs := this.properties[j].GetActivityStreamsTravel() return lhs.LessThan(rhs) - } else if idx1 == 52 { + } else if idx1 == 58 { lhs := this.properties[i].GetActivityStreamsUndo() rhs := this.properties[j].GetActivityStreamsUndo() return lhs.LessThan(rhs) - } else if idx1 == 53 { + } else if idx1 == 59 { lhs := this.properties[i].GetActivityStreamsUpdate() rhs := this.properties[j].GetActivityStreamsUpdate() return lhs.LessThan(rhs) - } else if idx1 == 54 { + } else if idx1 == 60 { lhs := this.properties[i].GetActivityStreamsVideo() rhs := this.properties[j].GetActivityStreamsVideo() return lhs.LessThan(rhs) - } else if idx1 == 55 { + } else if idx1 == 61 { lhs := this.properties[i].GetActivityStreamsView() rhs := this.properties[j].GetActivityStreamsView() return lhs.LessThan(rhs) @@ -5560,6 +6026,90 @@ func (this *ActivityStreamsPreviewProperty) PrependActivityStreamsView(v vocab.A } } +// PrependForgeFedBranch prepends a Branch value to the front of a list of the +// property "preview". Invalidates all iterators. +func (this *ActivityStreamsPreviewProperty) PrependForgeFedBranch(v vocab.ForgeFedBranch) { + this.properties = append([]*ActivityStreamsPreviewPropertyIterator{{ + alias: this.alias, + forgefedBranchMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependForgeFedCommit prepends a Commit value to the front of a list of the +// property "preview". Invalidates all iterators. +func (this *ActivityStreamsPreviewProperty) PrependForgeFedCommit(v vocab.ForgeFedCommit) { + this.properties = append([]*ActivityStreamsPreviewPropertyIterator{{ + alias: this.alias, + forgefedCommitMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependForgeFedPush prepends a Push value to the front of a list of the +// property "preview". Invalidates all iterators. +func (this *ActivityStreamsPreviewProperty) PrependForgeFedPush(v vocab.ForgeFedPush) { + this.properties = append([]*ActivityStreamsPreviewPropertyIterator{{ + alias: this.alias, + forgefedPushMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependForgeFedRepository prepends a Repository value to the front of a list of +// the property "preview". Invalidates all iterators. +func (this *ActivityStreamsPreviewProperty) PrependForgeFedRepository(v vocab.ForgeFedRepository) { + this.properties = append([]*ActivityStreamsPreviewPropertyIterator{{ + alias: this.alias, + forgefedRepositoryMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependForgeFedTicket prepends a Ticket value to the front of a list of the +// property "preview". Invalidates all iterators. +func (this *ActivityStreamsPreviewProperty) PrependForgeFedTicket(v vocab.ForgeFedTicket) { + this.properties = append([]*ActivityStreamsPreviewPropertyIterator{{ + alias: this.alias, + forgefedTicketMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependForgeFedTicketDependency prepends a TicketDependency value to the front +// of a list of the property "preview". Invalidates all iterators. +func (this *ActivityStreamsPreviewProperty) PrependForgeFedTicketDependency(v vocab.ForgeFedTicketDependency) { + this.properties = append([]*ActivityStreamsPreviewPropertyIterator{{ + alias: this.alias, + forgefedTicketDependencyMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + // PrependIRI prepends an IRI value to the front of a list of the property // "preview". func (this *ActivityStreamsPreviewProperty) PrependIRI(v *url.URL) { @@ -6356,6 +6906,83 @@ func (this *ActivityStreamsPreviewProperty) SetActivityStreamsView(idx int, v vo } } +// SetForgeFedBranch sets a Branch value to be at the specified index for the +// property "preview". Panics if the index is out of bounds. Invalidates all +// iterators. +func (this *ActivityStreamsPreviewProperty) SetForgeFedBranch(idx int, v vocab.ForgeFedBranch) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsPreviewPropertyIterator{ + alias: this.alias, + forgefedBranchMember: v, + myIdx: idx, + parent: this, + } +} + +// SetForgeFedCommit sets a Commit value to be at the specified index for the +// property "preview". Panics if the index is out of bounds. Invalidates all +// iterators. +func (this *ActivityStreamsPreviewProperty) SetForgeFedCommit(idx int, v vocab.ForgeFedCommit) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsPreviewPropertyIterator{ + alias: this.alias, + forgefedCommitMember: v, + myIdx: idx, + parent: this, + } +} + +// SetForgeFedPush sets a Push value to be at the specified index for the property +// "preview". Panics if the index is out of bounds. Invalidates all iterators. +func (this *ActivityStreamsPreviewProperty) SetForgeFedPush(idx int, v vocab.ForgeFedPush) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsPreviewPropertyIterator{ + alias: this.alias, + forgefedPushMember: v, + myIdx: idx, + parent: this, + } +} + +// SetForgeFedRepository sets a Repository value to be at the specified index for +// the property "preview". Panics if the index is out of bounds. Invalidates +// all iterators. +func (this *ActivityStreamsPreviewProperty) SetForgeFedRepository(idx int, v vocab.ForgeFedRepository) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsPreviewPropertyIterator{ + alias: this.alias, + forgefedRepositoryMember: v, + myIdx: idx, + parent: this, + } +} + +// SetForgeFedTicket sets a Ticket value to be at the specified index for the +// property "preview". Panics if the index is out of bounds. Invalidates all +// iterators. +func (this *ActivityStreamsPreviewProperty) SetForgeFedTicket(idx int, v vocab.ForgeFedTicket) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsPreviewPropertyIterator{ + alias: this.alias, + forgefedTicketMember: v, + myIdx: idx, + parent: this, + } +} + +// SetForgeFedTicketDependency sets a TicketDependency value to be at the +// specified index for the property "preview". Panics if the index is out of +// bounds. Invalidates all iterators. +func (this *ActivityStreamsPreviewProperty) SetForgeFedTicketDependency(idx int, v vocab.ForgeFedTicketDependency) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsPreviewPropertyIterator{ + alias: this.alias, + forgefedTicketDependencyMember: v, + myIdx: idx, + parent: this, + } +} + // SetIRI sets an IRI value to be at the specified index for the property // "preview". Panics if the index is out of bounds. func (this *ActivityStreamsPreviewProperty) SetIRI(idx int, v *url.URL) { diff --git a/streams/impl/activitystreams/property_relationship/gen_pkg.go b/streams/impl/activitystreams/property_relationship/gen_pkg.go index a96cd21..4c63d8d 100644 --- a/streams/impl/activitystreams/property_relationship/gen_pkg.go +++ b/streams/impl/activitystreams/property_relationship/gen_pkg.go @@ -45,6 +45,10 @@ type privateManager interface { // 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" @@ -53,6 +57,10 @@ type privateManager interface { // 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" @@ -169,6 +177,9 @@ type privateManager interface { // 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" @@ -189,6 +200,10 @@ type privateManager interface { // 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" @@ -201,6 +216,14 @@ type privateManager interface { // 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" diff --git a/streams/impl/activitystreams/property_relationship/gen_property_activitystreams_relationship.go b/streams/impl/activitystreams/property_relationship/gen_property_activitystreams_relationship.go index d9735e8..5dc71e7 100644 --- a/streams/impl/activitystreams/property_relationship/gen_property_activitystreams_relationship.go +++ b/streams/impl/activitystreams/property_relationship/gen_property_activitystreams_relationship.go @@ -24,8 +24,10 @@ type ActivityStreamsRelationshipPropertyIterator struct { 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 @@ -54,14 +56,18 @@ type ActivityStreamsRelationshipPropertyIterator struct { 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 @@ -161,6 +167,12 @@ func deserializeActivityStreamsRelationshipPropertyIterator(i interface{}, alias alias: alias, } return this, nil + } else if v, err := mgr.DeserializeBranchForgeFed()(m, aliasMap); err == nil { + this := &ActivityStreamsRelationshipPropertyIterator{ + alias: alias, + forgefedBranchMember: v, + } + return this, nil } else if v, err := mgr.DeserializeCollectionActivityStreams()(m, aliasMap); err == nil { this := &ActivityStreamsRelationshipPropertyIterator{ activitystreamsCollectionMember: v, @@ -173,6 +185,12 @@ func deserializeActivityStreamsRelationshipPropertyIterator(i interface{}, alias alias: alias, } return this, nil + } else if v, err := mgr.DeserializeCommitForgeFed()(m, aliasMap); err == nil { + this := &ActivityStreamsRelationshipPropertyIterator{ + alias: alias, + forgefedCommitMember: v, + } + return this, nil } else if v, err := mgr.DeserializeCreateActivityStreams()(m, aliasMap); err == nil { this := &ActivityStreamsRelationshipPropertyIterator{ activitystreamsCreateMember: v, @@ -341,6 +359,12 @@ func deserializeActivityStreamsRelationshipPropertyIterator(i interface{}, alias alias: alias, } return this, nil + } else if v, err := mgr.DeserializePushForgeFed()(m, aliasMap); err == nil { + this := &ActivityStreamsRelationshipPropertyIterator{ + alias: alias, + forgefedPushMember: v, + } + return this, nil } else if v, err := mgr.DeserializeQuestionActivityStreams()(m, aliasMap); err == nil { this := &ActivityStreamsRelationshipPropertyIterator{ activitystreamsQuestionMember: v, @@ -371,6 +395,12 @@ func deserializeActivityStreamsRelationshipPropertyIterator(i interface{}, alias alias: alias, } return this, nil + } else if v, err := mgr.DeserializeRepositoryForgeFed()(m, aliasMap); err == nil { + this := &ActivityStreamsRelationshipPropertyIterator{ + alias: alias, + forgefedRepositoryMember: v, + } + return this, nil } else if v, err := mgr.DeserializeServiceActivityStreams()(m, aliasMap); err == nil { this := &ActivityStreamsRelationshipPropertyIterator{ activitystreamsServiceMember: v, @@ -389,6 +419,18 @@ func deserializeActivityStreamsRelationshipPropertyIterator(i interface{}, alias alias: alias, } return this, nil + } else if v, err := mgr.DeserializeTicketForgeFed()(m, aliasMap); err == nil { + this := &ActivityStreamsRelationshipPropertyIterator{ + alias: alias, + forgefedTicketMember: v, + } + return this, nil + } else if v, err := mgr.DeserializeTicketDependencyForgeFed()(m, aliasMap); err == nil { + this := &ActivityStreamsRelationshipPropertyIterator{ + alias: alias, + forgefedTicketDependencyMember: v, + } + return this, nil } else if v, err := mgr.DeserializeTombstoneActivityStreams()(m, aliasMap); err == nil { this := &ActivityStreamsRelationshipPropertyIterator{ activitystreamsTombstoneMember: v, @@ -798,6 +840,44 @@ func (this ActivityStreamsRelationshipPropertyIterator) GetActivityStreamsView() return this.activitystreamsViewMember } +// GetForgeFedBranch returns the value of this property. When IsForgeFedBranch +// returns false, GetForgeFedBranch will return an arbitrary value. +func (this ActivityStreamsRelationshipPropertyIterator) GetForgeFedBranch() vocab.ForgeFedBranch { + return this.forgefedBranchMember +} + +// GetForgeFedCommit returns the value of this property. When IsForgeFedCommit +// returns false, GetForgeFedCommit will return an arbitrary value. +func (this ActivityStreamsRelationshipPropertyIterator) GetForgeFedCommit() vocab.ForgeFedCommit { + return this.forgefedCommitMember +} + +// GetForgeFedPush returns the value of this property. When IsForgeFedPush returns +// false, GetForgeFedPush will return an arbitrary value. +func (this ActivityStreamsRelationshipPropertyIterator) GetForgeFedPush() vocab.ForgeFedPush { + return this.forgefedPushMember +} + +// GetForgeFedRepository returns the value of this property. When +// IsForgeFedRepository returns false, GetForgeFedRepository will return an +// arbitrary value. +func (this ActivityStreamsRelationshipPropertyIterator) GetForgeFedRepository() vocab.ForgeFedRepository { + return this.forgefedRepositoryMember +} + +// GetForgeFedTicket returns the value of this property. When IsForgeFedTicket +// returns false, GetForgeFedTicket will return an arbitrary value. +func (this ActivityStreamsRelationshipPropertyIterator) GetForgeFedTicket() vocab.ForgeFedTicket { + return this.forgefedTicketMember +} + +// GetForgeFedTicketDependency returns the value of this property. When +// IsForgeFedTicketDependency returns false, GetForgeFedTicketDependency will +// return an arbitrary value. +func (this ActivityStreamsRelationshipPropertyIterator) GetForgeFedTicketDependency() vocab.ForgeFedTicketDependency { + return this.forgefedTicketDependencyMember +} + // GetIRI returns the IRI of this property. When IsIRI returns false, GetIRI will // return an arbitrary value. func (this ActivityStreamsRelationshipPropertyIterator) GetIRI() *url.URL { @@ -850,12 +930,18 @@ func (this ActivityStreamsRelationshipPropertyIterator) GetType() vocab.Type { 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() } @@ -940,6 +1026,9 @@ func (this ActivityStreamsRelationshipPropertyIterator) GetType() vocab.Type { if this.IsActivityStreamsProfile() { return this.GetActivityStreamsProfile() } + if this.IsForgeFedPush() { + return this.GetForgeFedPush() + } if this.IsActivityStreamsQuestion() { return this.GetActivityStreamsQuestion() } @@ -955,6 +1044,9 @@ func (this ActivityStreamsRelationshipPropertyIterator) GetType() vocab.Type { if this.IsActivityStreamsRemove() { return this.GetActivityStreamsRemove() } + if this.IsForgeFedRepository() { + return this.GetForgeFedRepository() + } if this.IsActivityStreamsService() { return this.GetActivityStreamsService() } @@ -964,6 +1056,12 @@ func (this ActivityStreamsRelationshipPropertyIterator) GetType() vocab.Type { if this.IsActivityStreamsTentativeReject() { return this.GetActivityStreamsTentativeReject() } + if this.IsForgeFedTicket() { + return this.GetForgeFedTicket() + } + if this.IsForgeFedTicketDependency() { + return this.GetForgeFedTicketDependency() + } if this.IsActivityStreamsTombstone() { return this.GetActivityStreamsTombstone() } @@ -998,8 +1096,10 @@ func (this ActivityStreamsRelationshipPropertyIterator) HasAny() bool { this.IsActivityStreamsArticle() || this.IsActivityStreamsAudio() || this.IsActivityStreamsBlock() || + this.IsForgeFedBranch() || this.IsActivityStreamsCollection() || this.IsActivityStreamsCollectionPage() || + this.IsForgeFedCommit() || this.IsActivityStreamsCreate() || this.IsActivityStreamsDelete() || this.IsActivityStreamsDislike() || @@ -1028,14 +1128,18 @@ func (this ActivityStreamsRelationshipPropertyIterator) HasAny() bool { 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() || @@ -1414,6 +1518,48 @@ func (this ActivityStreamsRelationshipPropertyIterator) IsActivityStreamsView() return this.activitystreamsViewMember != nil } +// IsForgeFedBranch returns true if this property has a type of "Branch". When +// true, use the GetForgeFedBranch and SetForgeFedBranch methods to access and +// set this property. +func (this ActivityStreamsRelationshipPropertyIterator) IsForgeFedBranch() bool { + return this.forgefedBranchMember != nil +} + +// IsForgeFedCommit returns true if this property has a type of "Commit". When +// true, use the GetForgeFedCommit and SetForgeFedCommit methods to access and +// set this property. +func (this ActivityStreamsRelationshipPropertyIterator) IsForgeFedCommit() bool { + return this.forgefedCommitMember != nil +} + +// IsForgeFedPush returns true if this property has a type of "Push". When true, +// use the GetForgeFedPush and SetForgeFedPush methods to access and set this +// property. +func (this ActivityStreamsRelationshipPropertyIterator) IsForgeFedPush() bool { + return this.forgefedPushMember != nil +} + +// IsForgeFedRepository returns true if this property has a type of "Repository". +// When true, use the GetForgeFedRepository and SetForgeFedRepository methods +// to access and set this property. +func (this ActivityStreamsRelationshipPropertyIterator) IsForgeFedRepository() bool { + return this.forgefedRepositoryMember != nil +} + +// IsForgeFedTicket returns true if this property has a type of "Ticket". When +// true, use the GetForgeFedTicket and SetForgeFedTicket methods to access and +// set this property. +func (this ActivityStreamsRelationshipPropertyIterator) IsForgeFedTicket() bool { + return this.forgefedTicketMember != nil +} + +// IsForgeFedTicketDependency returns true if this property has a type of +// "TicketDependency". When true, use the GetForgeFedTicketDependency and +// SetForgeFedTicketDependency methods to access and set this property. +func (this ActivityStreamsRelationshipPropertyIterator) IsForgeFedTicketDependency() bool { + return this.forgefedTicketDependencyMember != nil +} + // IsIRI returns true if this property is an IRI. When true, use GetIRI and SetIRI // to access and set this property func (this ActivityStreamsRelationshipPropertyIterator) IsIRI() bool { @@ -1459,10 +1605,14 @@ func (this ActivityStreamsRelationshipPropertyIterator) JSONLDContext() map[stri 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() { @@ -1519,6 +1669,8 @@ func (this ActivityStreamsRelationshipPropertyIterator) JSONLDContext() map[stri 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() { @@ -1529,12 +1681,18 @@ func (this ActivityStreamsRelationshipPropertyIterator) JSONLDContext() map[stri 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() { @@ -1593,138 +1751,156 @@ func (this ActivityStreamsRelationshipPropertyIterator) KindIndex() int { if this.IsActivityStreamsBlock() { return 9 } - if this.IsActivityStreamsCollection() { + if this.IsForgeFedBranch() { return 10 } - if this.IsActivityStreamsCollectionPage() { + if this.IsActivityStreamsCollection() { return 11 } - if this.IsActivityStreamsCreate() { + if this.IsActivityStreamsCollectionPage() { return 12 } - if this.IsActivityStreamsDelete() { + if this.IsForgeFedCommit() { return 13 } - if this.IsActivityStreamsDislike() { + if this.IsActivityStreamsCreate() { return 14 } - if this.IsActivityStreamsDocument() { + if this.IsActivityStreamsDelete() { return 15 } - if this.IsTootEmoji() { + if this.IsActivityStreamsDislike() { return 16 } - if this.IsActivityStreamsEvent() { + if this.IsActivityStreamsDocument() { return 17 } - if this.IsActivityStreamsFlag() { + if this.IsTootEmoji() { return 18 } - if this.IsActivityStreamsFollow() { + if this.IsActivityStreamsEvent() { return 19 } - if this.IsActivityStreamsGroup() { + if this.IsActivityStreamsFlag() { return 20 } - if this.IsTootIdentityProof() { + if this.IsActivityStreamsFollow() { return 21 } - if this.IsActivityStreamsIgnore() { + if this.IsActivityStreamsGroup() { return 22 } - if this.IsActivityStreamsImage() { + if this.IsTootIdentityProof() { return 23 } - if this.IsActivityStreamsIntransitiveActivity() { + if this.IsActivityStreamsIgnore() { return 24 } - if this.IsActivityStreamsInvite() { + if this.IsActivityStreamsImage() { return 25 } - if this.IsActivityStreamsJoin() { + if this.IsActivityStreamsIntransitiveActivity() { return 26 } - if this.IsActivityStreamsLeave() { + if this.IsActivityStreamsInvite() { return 27 } - if this.IsActivityStreamsLike() { + if this.IsActivityStreamsJoin() { return 28 } - if this.IsActivityStreamsListen() { + if this.IsActivityStreamsLeave() { return 29 } - if this.IsActivityStreamsMove() { + if this.IsActivityStreamsLike() { return 30 } - if this.IsActivityStreamsNote() { + if this.IsActivityStreamsListen() { return 31 } - if this.IsActivityStreamsOffer() { + if this.IsActivityStreamsMove() { return 32 } - if this.IsActivityStreamsOrderedCollection() { + if this.IsActivityStreamsNote() { return 33 } - if this.IsActivityStreamsOrderedCollectionPage() { + if this.IsActivityStreamsOffer() { return 34 } - if this.IsActivityStreamsOrganization() { + if this.IsActivityStreamsOrderedCollection() { return 35 } - if this.IsActivityStreamsPage() { + if this.IsActivityStreamsOrderedCollectionPage() { return 36 } - if this.IsActivityStreamsPerson() { + if this.IsActivityStreamsOrganization() { return 37 } - if this.IsActivityStreamsPlace() { + if this.IsActivityStreamsPage() { return 38 } - if this.IsActivityStreamsProfile() { + if this.IsActivityStreamsPerson() { return 39 } - if this.IsActivityStreamsQuestion() { + if this.IsActivityStreamsPlace() { return 40 } - if this.IsActivityStreamsRead() { + if this.IsActivityStreamsProfile() { return 41 } - if this.IsActivityStreamsReject() { + if this.IsForgeFedPush() { return 42 } - if this.IsActivityStreamsRelationship() { + if this.IsActivityStreamsQuestion() { return 43 } - if this.IsActivityStreamsRemove() { + if this.IsActivityStreamsRead() { return 44 } - if this.IsActivityStreamsService() { + if this.IsActivityStreamsReject() { return 45 } - if this.IsActivityStreamsTentativeAccept() { + if this.IsActivityStreamsRelationship() { return 46 } - if this.IsActivityStreamsTentativeReject() { + if this.IsActivityStreamsRemove() { return 47 } - if this.IsActivityStreamsTombstone() { + if this.IsForgeFedRepository() { return 48 } - if this.IsActivityStreamsTravel() { + if this.IsActivityStreamsService() { return 49 } - if this.IsActivityStreamsUndo() { + if this.IsActivityStreamsTentativeAccept() { return 50 } - if this.IsActivityStreamsUpdate() { + if this.IsActivityStreamsTentativeReject() { return 51 } - if this.IsActivityStreamsVideo() { + if this.IsForgeFedTicket() { return 52 } - if this.IsActivityStreamsView() { + if this.IsForgeFedTicketDependency() { return 53 } + if this.IsActivityStreamsTombstone() { + return 54 + } + if this.IsActivityStreamsTravel() { + return 55 + } + if this.IsActivityStreamsUndo() { + return 56 + } + if this.IsActivityStreamsUpdate() { + return 57 + } + if this.IsActivityStreamsVideo() { + return 58 + } + if this.IsActivityStreamsView() { + return 59 + } if this.IsIRI() { return -2 } @@ -1762,10 +1938,14 @@ func (this ActivityStreamsRelationshipPropertyIterator) LessThan(o vocab.Activit 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() { @@ -1822,6 +2002,8 @@ func (this ActivityStreamsRelationshipPropertyIterator) LessThan(o vocab.Activit 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() { @@ -1832,12 +2014,18 @@ func (this ActivityStreamsRelationshipPropertyIterator) LessThan(o vocab.Activit 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() { @@ -2247,6 +2435,48 @@ func (this *ActivityStreamsRelationshipPropertyIterator) SetActivityStreamsView( this.activitystreamsViewMember = v } +// SetForgeFedBranch sets the value of this property. Calling IsForgeFedBranch +// afterwards returns true. +func (this *ActivityStreamsRelationshipPropertyIterator) SetForgeFedBranch(v vocab.ForgeFedBranch) { + this.clear() + this.forgefedBranchMember = v +} + +// SetForgeFedCommit sets the value of this property. Calling IsForgeFedCommit +// afterwards returns true. +func (this *ActivityStreamsRelationshipPropertyIterator) SetForgeFedCommit(v vocab.ForgeFedCommit) { + this.clear() + this.forgefedCommitMember = v +} + +// SetForgeFedPush sets the value of this property. Calling IsForgeFedPush +// afterwards returns true. +func (this *ActivityStreamsRelationshipPropertyIterator) SetForgeFedPush(v vocab.ForgeFedPush) { + this.clear() + this.forgefedPushMember = v +} + +// SetForgeFedRepository sets the value of this property. Calling +// IsForgeFedRepository afterwards returns true. +func (this *ActivityStreamsRelationshipPropertyIterator) SetForgeFedRepository(v vocab.ForgeFedRepository) { + this.clear() + this.forgefedRepositoryMember = v +} + +// SetForgeFedTicket sets the value of this property. Calling IsForgeFedTicket +// afterwards returns true. +func (this *ActivityStreamsRelationshipPropertyIterator) SetForgeFedTicket(v vocab.ForgeFedTicket) { + this.clear() + this.forgefedTicketMember = v +} + +// SetForgeFedTicketDependency sets the value of this property. Calling +// IsForgeFedTicketDependency afterwards returns true. +func (this *ActivityStreamsRelationshipPropertyIterator) SetForgeFedTicketDependency(v vocab.ForgeFedTicketDependency) { + this.clear() + this.forgefedTicketDependencyMember = v +} + // SetIRI sets the value of this property. Calling IsIRI afterwards returns true. func (this *ActivityStreamsRelationshipPropertyIterator) SetIRI(v *url.URL) { this.clear() @@ -2310,6 +2540,10 @@ func (this *ActivityStreamsRelationshipPropertyIterator) SetType(t vocab.Type) e 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 @@ -2318,6 +2552,10 @@ func (this *ActivityStreamsRelationshipPropertyIterator) SetType(t vocab.Type) e 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 @@ -2430,6 +2668,10 @@ func (this *ActivityStreamsRelationshipPropertyIterator) SetType(t vocab.Type) e 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 @@ -2450,6 +2692,10 @@ func (this *ActivityStreamsRelationshipPropertyIterator) SetType(t vocab.Type) e 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 @@ -2462,6 +2708,14 @@ func (this *ActivityStreamsRelationshipPropertyIterator) SetType(t vocab.Type) e 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 @@ -2503,8 +2757,10 @@ func (this *ActivityStreamsRelationshipPropertyIterator) clear() { 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 @@ -2533,14 +2789,18 @@ func (this *ActivityStreamsRelationshipPropertyIterator) clear() { 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 @@ -2576,10 +2836,14 @@ func (this ActivityStreamsRelationshipPropertyIterator) serialize() (interface{} 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() { @@ -2636,6 +2900,8 @@ func (this ActivityStreamsRelationshipPropertyIterator) serialize() (interface{} 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() { @@ -2646,12 +2912,18 @@ func (this ActivityStreamsRelationshipPropertyIterator) serialize() (interface{} 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() { @@ -3351,6 +3623,77 @@ func (this *ActivityStreamsRelationshipProperty) AppendActivityStreamsView(v voc }) } +// AppendForgeFedBranch appends a Branch value to the back of a list of the +// property "relationship". Invalidates iterators that are traversing using +// Prev. +func (this *ActivityStreamsRelationshipProperty) AppendForgeFedBranch(v vocab.ForgeFedBranch) { + this.properties = append(this.properties, &ActivityStreamsRelationshipPropertyIterator{ + alias: this.alias, + forgefedBranchMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendForgeFedCommit appends a Commit value to the back of a list of the +// property "relationship". Invalidates iterators that are traversing using +// Prev. +func (this *ActivityStreamsRelationshipProperty) AppendForgeFedCommit(v vocab.ForgeFedCommit) { + this.properties = append(this.properties, &ActivityStreamsRelationshipPropertyIterator{ + alias: this.alias, + forgefedCommitMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendForgeFedPush appends a Push value to the back of a list of the property +// "relationship". Invalidates iterators that are traversing using Prev. +func (this *ActivityStreamsRelationshipProperty) AppendForgeFedPush(v vocab.ForgeFedPush) { + this.properties = append(this.properties, &ActivityStreamsRelationshipPropertyIterator{ + alias: this.alias, + forgefedPushMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendForgeFedRepository appends a Repository value to the back of a list of +// the property "relationship". Invalidates iterators that are traversing +// using Prev. +func (this *ActivityStreamsRelationshipProperty) AppendForgeFedRepository(v vocab.ForgeFedRepository) { + this.properties = append(this.properties, &ActivityStreamsRelationshipPropertyIterator{ + alias: this.alias, + forgefedRepositoryMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendForgeFedTicket appends a Ticket value to the back of a list of the +// property "relationship". Invalidates iterators that are traversing using +// Prev. +func (this *ActivityStreamsRelationshipProperty) AppendForgeFedTicket(v vocab.ForgeFedTicket) { + this.properties = append(this.properties, &ActivityStreamsRelationshipPropertyIterator{ + alias: this.alias, + forgefedTicketMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendForgeFedTicketDependency appends a TicketDependency value to the back of +// a list of the property "relationship". Invalidates iterators that are +// traversing using Prev. +func (this *ActivityStreamsRelationshipProperty) AppendForgeFedTicketDependency(v vocab.ForgeFedTicketDependency) { + this.properties = append(this.properties, &ActivityStreamsRelationshipPropertyIterator{ + alias: this.alias, + forgefedTicketDependencyMember: v, + myIdx: this.Len(), + parent: this, + }) +} + // AppendIRI appends an IRI value to the back of a list of the property // "relationship" func (this *ActivityStreamsRelationshipProperty) AppendIRI(v *url.URL) { @@ -4316,6 +4659,108 @@ func (this *ActivityStreamsRelationshipProperty) InsertActivityStreamsView(idx i } } +// InsertForgeFedBranch inserts a Branch value at the specified index for a +// property "relationship". Existing elements at that index and higher are +// shifted back once. Invalidates all iterators. +func (this *ActivityStreamsRelationshipProperty) InsertForgeFedBranch(idx int, v vocab.ForgeFedBranch) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsRelationshipPropertyIterator{ + alias: this.alias, + forgefedBranchMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertForgeFedCommit inserts a Commit value at the specified index for a +// property "relationship". Existing elements at that index and higher are +// shifted back once. Invalidates all iterators. +func (this *ActivityStreamsRelationshipProperty) InsertForgeFedCommit(idx int, v vocab.ForgeFedCommit) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsRelationshipPropertyIterator{ + alias: this.alias, + forgefedCommitMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertForgeFedPush inserts a Push value at the specified index for a property +// "relationship". Existing elements at that index and higher are shifted back +// once. Invalidates all iterators. +func (this *ActivityStreamsRelationshipProperty) InsertForgeFedPush(idx int, v vocab.ForgeFedPush) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsRelationshipPropertyIterator{ + alias: this.alias, + forgefedPushMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertForgeFedRepository inserts a Repository value at the specified index for +// a property "relationship". Existing elements at that index and higher are +// shifted back once. Invalidates all iterators. +func (this *ActivityStreamsRelationshipProperty) InsertForgeFedRepository(idx int, v vocab.ForgeFedRepository) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsRelationshipPropertyIterator{ + alias: this.alias, + forgefedRepositoryMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertForgeFedTicket inserts a Ticket value at the specified index for a +// property "relationship". Existing elements at that index and higher are +// shifted back once. Invalidates all iterators. +func (this *ActivityStreamsRelationshipProperty) InsertForgeFedTicket(idx int, v vocab.ForgeFedTicket) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsRelationshipPropertyIterator{ + alias: this.alias, + forgefedTicketMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertForgeFedTicketDependency inserts a TicketDependency value at the +// specified index for a property "relationship". Existing elements at that +// index and higher are shifted back once. Invalidates all iterators. +func (this *ActivityStreamsRelationshipProperty) InsertForgeFedTicketDependency(idx int, v vocab.ForgeFedTicketDependency) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsRelationshipPropertyIterator{ + alias: this.alias, + forgefedTicketDependencyMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + // Insert inserts an IRI value at the specified index for a property // "relationship". Existing elements at that index and higher are shifted back // once. Invalidates all iterators. @@ -4469,178 +4914,202 @@ func (this ActivityStreamsRelationshipProperty) Less(i, j int) bool { rhs := this.properties[j].GetActivityStreamsBlock() return lhs.LessThan(rhs) } else if idx1 == 10 { + lhs := this.properties[i].GetForgeFedBranch() + rhs := this.properties[j].GetForgeFedBranch() + return lhs.LessThan(rhs) + } else if idx1 == 11 { lhs := this.properties[i].GetActivityStreamsCollection() rhs := this.properties[j].GetActivityStreamsCollection() return lhs.LessThan(rhs) - } else if idx1 == 11 { + } else if idx1 == 12 { lhs := this.properties[i].GetActivityStreamsCollectionPage() rhs := this.properties[j].GetActivityStreamsCollectionPage() return lhs.LessThan(rhs) - } else if idx1 == 12 { + } else if idx1 == 13 { + lhs := this.properties[i].GetForgeFedCommit() + rhs := this.properties[j].GetForgeFedCommit() + return lhs.LessThan(rhs) + } else if idx1 == 14 { lhs := this.properties[i].GetActivityStreamsCreate() rhs := this.properties[j].GetActivityStreamsCreate() return lhs.LessThan(rhs) - } else if idx1 == 13 { + } else if idx1 == 15 { lhs := this.properties[i].GetActivityStreamsDelete() rhs := this.properties[j].GetActivityStreamsDelete() return lhs.LessThan(rhs) - } else if idx1 == 14 { + } else if idx1 == 16 { lhs := this.properties[i].GetActivityStreamsDislike() rhs := this.properties[j].GetActivityStreamsDislike() return lhs.LessThan(rhs) - } else if idx1 == 15 { + } else if idx1 == 17 { lhs := this.properties[i].GetActivityStreamsDocument() rhs := this.properties[j].GetActivityStreamsDocument() return lhs.LessThan(rhs) - } else if idx1 == 16 { + } else if idx1 == 18 { lhs := this.properties[i].GetTootEmoji() rhs := this.properties[j].GetTootEmoji() return lhs.LessThan(rhs) - } else if idx1 == 17 { + } else if idx1 == 19 { lhs := this.properties[i].GetActivityStreamsEvent() rhs := this.properties[j].GetActivityStreamsEvent() return lhs.LessThan(rhs) - } else if idx1 == 18 { + } else if idx1 == 20 { lhs := this.properties[i].GetActivityStreamsFlag() rhs := this.properties[j].GetActivityStreamsFlag() return lhs.LessThan(rhs) - } else if idx1 == 19 { + } else if idx1 == 21 { lhs := this.properties[i].GetActivityStreamsFollow() rhs := this.properties[j].GetActivityStreamsFollow() return lhs.LessThan(rhs) - } else if idx1 == 20 { + } else if idx1 == 22 { lhs := this.properties[i].GetActivityStreamsGroup() rhs := this.properties[j].GetActivityStreamsGroup() return lhs.LessThan(rhs) - } else if idx1 == 21 { + } else if idx1 == 23 { lhs := this.properties[i].GetTootIdentityProof() rhs := this.properties[j].GetTootIdentityProof() return lhs.LessThan(rhs) - } else if idx1 == 22 { + } else if idx1 == 24 { lhs := this.properties[i].GetActivityStreamsIgnore() rhs := this.properties[j].GetActivityStreamsIgnore() return lhs.LessThan(rhs) - } else if idx1 == 23 { + } else if idx1 == 25 { lhs := this.properties[i].GetActivityStreamsImage() rhs := this.properties[j].GetActivityStreamsImage() return lhs.LessThan(rhs) - } else if idx1 == 24 { + } else if idx1 == 26 { lhs := this.properties[i].GetActivityStreamsIntransitiveActivity() rhs := this.properties[j].GetActivityStreamsIntransitiveActivity() return lhs.LessThan(rhs) - } else if idx1 == 25 { + } else if idx1 == 27 { lhs := this.properties[i].GetActivityStreamsInvite() rhs := this.properties[j].GetActivityStreamsInvite() return lhs.LessThan(rhs) - } else if idx1 == 26 { + } else if idx1 == 28 { lhs := this.properties[i].GetActivityStreamsJoin() rhs := this.properties[j].GetActivityStreamsJoin() return lhs.LessThan(rhs) - } else if idx1 == 27 { + } else if idx1 == 29 { lhs := this.properties[i].GetActivityStreamsLeave() rhs := this.properties[j].GetActivityStreamsLeave() return lhs.LessThan(rhs) - } else if idx1 == 28 { + } else if idx1 == 30 { lhs := this.properties[i].GetActivityStreamsLike() rhs := this.properties[j].GetActivityStreamsLike() return lhs.LessThan(rhs) - } else if idx1 == 29 { + } else if idx1 == 31 { lhs := this.properties[i].GetActivityStreamsListen() rhs := this.properties[j].GetActivityStreamsListen() return lhs.LessThan(rhs) - } else if idx1 == 30 { + } else if idx1 == 32 { lhs := this.properties[i].GetActivityStreamsMove() rhs := this.properties[j].GetActivityStreamsMove() return lhs.LessThan(rhs) - } else if idx1 == 31 { + } else if idx1 == 33 { lhs := this.properties[i].GetActivityStreamsNote() rhs := this.properties[j].GetActivityStreamsNote() return lhs.LessThan(rhs) - } else if idx1 == 32 { + } else if idx1 == 34 { lhs := this.properties[i].GetActivityStreamsOffer() rhs := this.properties[j].GetActivityStreamsOffer() return lhs.LessThan(rhs) - } else if idx1 == 33 { + } else if idx1 == 35 { lhs := this.properties[i].GetActivityStreamsOrderedCollection() rhs := this.properties[j].GetActivityStreamsOrderedCollection() return lhs.LessThan(rhs) - } else if idx1 == 34 { + } else if idx1 == 36 { lhs := this.properties[i].GetActivityStreamsOrderedCollectionPage() rhs := this.properties[j].GetActivityStreamsOrderedCollectionPage() return lhs.LessThan(rhs) - } else if idx1 == 35 { + } else if idx1 == 37 { lhs := this.properties[i].GetActivityStreamsOrganization() rhs := this.properties[j].GetActivityStreamsOrganization() return lhs.LessThan(rhs) - } else if idx1 == 36 { + } else if idx1 == 38 { lhs := this.properties[i].GetActivityStreamsPage() rhs := this.properties[j].GetActivityStreamsPage() return lhs.LessThan(rhs) - } else if idx1 == 37 { + } else if idx1 == 39 { lhs := this.properties[i].GetActivityStreamsPerson() rhs := this.properties[j].GetActivityStreamsPerson() return lhs.LessThan(rhs) - } else if idx1 == 38 { + } else if idx1 == 40 { lhs := this.properties[i].GetActivityStreamsPlace() rhs := this.properties[j].GetActivityStreamsPlace() return lhs.LessThan(rhs) - } else if idx1 == 39 { + } else if idx1 == 41 { lhs := this.properties[i].GetActivityStreamsProfile() rhs := this.properties[j].GetActivityStreamsProfile() return lhs.LessThan(rhs) - } else if idx1 == 40 { + } else if idx1 == 42 { + lhs := this.properties[i].GetForgeFedPush() + rhs := this.properties[j].GetForgeFedPush() + return lhs.LessThan(rhs) + } else if idx1 == 43 { lhs := this.properties[i].GetActivityStreamsQuestion() rhs := this.properties[j].GetActivityStreamsQuestion() return lhs.LessThan(rhs) - } else if idx1 == 41 { + } else if idx1 == 44 { lhs := this.properties[i].GetActivityStreamsRead() rhs := this.properties[j].GetActivityStreamsRead() return lhs.LessThan(rhs) - } else if idx1 == 42 { + } else if idx1 == 45 { lhs := this.properties[i].GetActivityStreamsReject() rhs := this.properties[j].GetActivityStreamsReject() return lhs.LessThan(rhs) - } else if idx1 == 43 { + } else if idx1 == 46 { lhs := this.properties[i].GetActivityStreamsRelationship() rhs := this.properties[j].GetActivityStreamsRelationship() return lhs.LessThan(rhs) - } else if idx1 == 44 { + } else if idx1 == 47 { lhs := this.properties[i].GetActivityStreamsRemove() rhs := this.properties[j].GetActivityStreamsRemove() return lhs.LessThan(rhs) - } else if idx1 == 45 { + } else if idx1 == 48 { + lhs := this.properties[i].GetForgeFedRepository() + rhs := this.properties[j].GetForgeFedRepository() + return lhs.LessThan(rhs) + } else if idx1 == 49 { lhs := this.properties[i].GetActivityStreamsService() rhs := this.properties[j].GetActivityStreamsService() return lhs.LessThan(rhs) - } else if idx1 == 46 { + } else if idx1 == 50 { lhs := this.properties[i].GetActivityStreamsTentativeAccept() rhs := this.properties[j].GetActivityStreamsTentativeAccept() return lhs.LessThan(rhs) - } else if idx1 == 47 { + } else if idx1 == 51 { lhs := this.properties[i].GetActivityStreamsTentativeReject() rhs := this.properties[j].GetActivityStreamsTentativeReject() return lhs.LessThan(rhs) - } else if idx1 == 48 { + } else if idx1 == 52 { + lhs := this.properties[i].GetForgeFedTicket() + rhs := this.properties[j].GetForgeFedTicket() + return lhs.LessThan(rhs) + } else if idx1 == 53 { + lhs := this.properties[i].GetForgeFedTicketDependency() + rhs := this.properties[j].GetForgeFedTicketDependency() + return lhs.LessThan(rhs) + } else if idx1 == 54 { lhs := this.properties[i].GetActivityStreamsTombstone() rhs := this.properties[j].GetActivityStreamsTombstone() return lhs.LessThan(rhs) - } else if idx1 == 49 { + } else if idx1 == 55 { lhs := this.properties[i].GetActivityStreamsTravel() rhs := this.properties[j].GetActivityStreamsTravel() return lhs.LessThan(rhs) - } else if idx1 == 50 { + } else if idx1 == 56 { lhs := this.properties[i].GetActivityStreamsUndo() rhs := this.properties[j].GetActivityStreamsUndo() return lhs.LessThan(rhs) - } else if idx1 == 51 { + } else if idx1 == 57 { lhs := this.properties[i].GetActivityStreamsUpdate() rhs := this.properties[j].GetActivityStreamsUpdate() return lhs.LessThan(rhs) - } else if idx1 == 52 { + } else if idx1 == 58 { lhs := this.properties[i].GetActivityStreamsVideo() rhs := this.properties[j].GetActivityStreamsVideo() return lhs.LessThan(rhs) - } else if idx1 == 53 { + } else if idx1 == 59 { lhs := this.properties[i].GetActivityStreamsView() rhs := this.properties[j].GetActivityStreamsView() return lhs.LessThan(rhs) @@ -5414,6 +5883,90 @@ func (this *ActivityStreamsRelationshipProperty) PrependActivityStreamsView(v vo } } +// PrependForgeFedBranch prepends a Branch value to the front of a list of the +// property "relationship". Invalidates all iterators. +func (this *ActivityStreamsRelationshipProperty) PrependForgeFedBranch(v vocab.ForgeFedBranch) { + this.properties = append([]*ActivityStreamsRelationshipPropertyIterator{{ + alias: this.alias, + forgefedBranchMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependForgeFedCommit prepends a Commit value to the front of a list of the +// property "relationship". Invalidates all iterators. +func (this *ActivityStreamsRelationshipProperty) PrependForgeFedCommit(v vocab.ForgeFedCommit) { + this.properties = append([]*ActivityStreamsRelationshipPropertyIterator{{ + alias: this.alias, + forgefedCommitMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependForgeFedPush prepends a Push value to the front of a list of the +// property "relationship". Invalidates all iterators. +func (this *ActivityStreamsRelationshipProperty) PrependForgeFedPush(v vocab.ForgeFedPush) { + this.properties = append([]*ActivityStreamsRelationshipPropertyIterator{{ + alias: this.alias, + forgefedPushMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependForgeFedRepository prepends a Repository value to the front of a list of +// the property "relationship". Invalidates all iterators. +func (this *ActivityStreamsRelationshipProperty) PrependForgeFedRepository(v vocab.ForgeFedRepository) { + this.properties = append([]*ActivityStreamsRelationshipPropertyIterator{{ + alias: this.alias, + forgefedRepositoryMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependForgeFedTicket prepends a Ticket value to the front of a list of the +// property "relationship". Invalidates all iterators. +func (this *ActivityStreamsRelationshipProperty) PrependForgeFedTicket(v vocab.ForgeFedTicket) { + this.properties = append([]*ActivityStreamsRelationshipPropertyIterator{{ + alias: this.alias, + forgefedTicketMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependForgeFedTicketDependency prepends a TicketDependency value to the front +// of a list of the property "relationship". Invalidates all iterators. +func (this *ActivityStreamsRelationshipProperty) PrependForgeFedTicketDependency(v vocab.ForgeFedTicketDependency) { + this.properties = append([]*ActivityStreamsRelationshipPropertyIterator{{ + alias: this.alias, + forgefedTicketDependencyMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + // PrependIRI prepends an IRI value to the front of a list of the property // "relationship". func (this *ActivityStreamsRelationshipProperty) PrependIRI(v *url.URL) { @@ -6184,6 +6737,84 @@ func (this *ActivityStreamsRelationshipProperty) SetActivityStreamsView(idx int, } } +// SetForgeFedBranch sets a Branch value to be at the specified index for the +// property "relationship". Panics if the index is out of bounds. Invalidates +// all iterators. +func (this *ActivityStreamsRelationshipProperty) SetForgeFedBranch(idx int, v vocab.ForgeFedBranch) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsRelationshipPropertyIterator{ + alias: this.alias, + forgefedBranchMember: v, + myIdx: idx, + parent: this, + } +} + +// SetForgeFedCommit sets a Commit value to be at the specified index for the +// property "relationship". Panics if the index is out of bounds. Invalidates +// all iterators. +func (this *ActivityStreamsRelationshipProperty) SetForgeFedCommit(idx int, v vocab.ForgeFedCommit) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsRelationshipPropertyIterator{ + alias: this.alias, + forgefedCommitMember: v, + myIdx: idx, + parent: this, + } +} + +// SetForgeFedPush sets a Push value to be at the specified index for the property +// "relationship". Panics if the index is out of bounds. Invalidates all +// iterators. +func (this *ActivityStreamsRelationshipProperty) SetForgeFedPush(idx int, v vocab.ForgeFedPush) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsRelationshipPropertyIterator{ + alias: this.alias, + forgefedPushMember: v, + myIdx: idx, + parent: this, + } +} + +// SetForgeFedRepository sets a Repository value to be at the specified index for +// the property "relationship". Panics if the index is out of bounds. +// Invalidates all iterators. +func (this *ActivityStreamsRelationshipProperty) SetForgeFedRepository(idx int, v vocab.ForgeFedRepository) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsRelationshipPropertyIterator{ + alias: this.alias, + forgefedRepositoryMember: v, + myIdx: idx, + parent: this, + } +} + +// SetForgeFedTicket sets a Ticket value to be at the specified index for the +// property "relationship". Panics if the index is out of bounds. Invalidates +// all iterators. +func (this *ActivityStreamsRelationshipProperty) SetForgeFedTicket(idx int, v vocab.ForgeFedTicket) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsRelationshipPropertyIterator{ + alias: this.alias, + forgefedTicketMember: v, + myIdx: idx, + parent: this, + } +} + +// SetForgeFedTicketDependency sets a TicketDependency value to be at the +// specified index for the property "relationship". Panics if the index is out +// of bounds. Invalidates all iterators. +func (this *ActivityStreamsRelationshipProperty) SetForgeFedTicketDependency(idx int, v vocab.ForgeFedTicketDependency) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsRelationshipPropertyIterator{ + alias: this.alias, + forgefedTicketDependencyMember: v, + myIdx: idx, + parent: this, + } +} + // SetIRI sets an IRI value to be at the specified index for the property // "relationship". Panics if the index is out of bounds. func (this *ActivityStreamsRelationshipProperty) SetIRI(idx int, v *url.URL) { diff --git a/streams/impl/activitystreams/property_result/gen_pkg.go b/streams/impl/activitystreams/property_result/gen_pkg.go index 7d4cee4..b7dcf08 100644 --- a/streams/impl/activitystreams/property_result/gen_pkg.go +++ b/streams/impl/activitystreams/property_result/gen_pkg.go @@ -45,6 +45,10 @@ type privateManager interface { // 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" @@ -53,6 +57,10 @@ type privateManager interface { // 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" @@ -177,6 +185,9 @@ type privateManager interface { // 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" @@ -197,6 +208,10 @@ type privateManager interface { // 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" @@ -209,6 +224,14 @@ type privateManager interface { // 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" diff --git a/streams/impl/activitystreams/property_result/gen_property_activitystreams_result.go b/streams/impl/activitystreams/property_result/gen_property_activitystreams_result.go index 85855de..d264413 100644 --- a/streams/impl/activitystreams/property_result/gen_property_activitystreams_result.go +++ b/streams/impl/activitystreams/property_result/gen_property_activitystreams_result.go @@ -25,8 +25,10 @@ type ActivityStreamsResultPropertyIterator struct { 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 @@ -56,14 +58,18 @@ type ActivityStreamsResultPropertyIterator struct { 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 @@ -169,6 +175,12 @@ func deserializeActivityStreamsResultPropertyIterator(i interface{}, aliasMap ma alias: alias, } return this, nil + } else if v, err := mgr.DeserializeBranchForgeFed()(m, aliasMap); err == nil { + this := &ActivityStreamsResultPropertyIterator{ + alias: alias, + forgefedBranchMember: v, + } + return this, nil } else if v, err := mgr.DeserializeCollectionActivityStreams()(m, aliasMap); err == nil { this := &ActivityStreamsResultPropertyIterator{ activitystreamsCollectionMember: v, @@ -181,6 +193,12 @@ func deserializeActivityStreamsResultPropertyIterator(i interface{}, aliasMap ma alias: alias, } return this, nil + } else if v, err := mgr.DeserializeCommitForgeFed()(m, aliasMap); err == nil { + this := &ActivityStreamsResultPropertyIterator{ + alias: alias, + forgefedCommitMember: v, + } + return this, nil } else if v, err := mgr.DeserializeCreateActivityStreams()(m, aliasMap); err == nil { this := &ActivityStreamsResultPropertyIterator{ activitystreamsCreateMember: v, @@ -355,6 +373,12 @@ func deserializeActivityStreamsResultPropertyIterator(i interface{}, aliasMap ma alias: alias, } return this, nil + } else if v, err := mgr.DeserializePushForgeFed()(m, aliasMap); err == nil { + this := &ActivityStreamsResultPropertyIterator{ + alias: alias, + forgefedPushMember: v, + } + return this, nil } else if v, err := mgr.DeserializeQuestionActivityStreams()(m, aliasMap); err == nil { this := &ActivityStreamsResultPropertyIterator{ activitystreamsQuestionMember: v, @@ -385,6 +409,12 @@ func deserializeActivityStreamsResultPropertyIterator(i interface{}, aliasMap ma alias: alias, } return this, nil + } else if v, err := mgr.DeserializeRepositoryForgeFed()(m, aliasMap); err == nil { + this := &ActivityStreamsResultPropertyIterator{ + alias: alias, + forgefedRepositoryMember: v, + } + return this, nil } else if v, err := mgr.DeserializeServiceActivityStreams()(m, aliasMap); err == nil { this := &ActivityStreamsResultPropertyIterator{ activitystreamsServiceMember: v, @@ -403,6 +433,18 @@ func deserializeActivityStreamsResultPropertyIterator(i interface{}, aliasMap ma alias: alias, } return this, nil + } else if v, err := mgr.DeserializeTicketForgeFed()(m, aliasMap); err == nil { + this := &ActivityStreamsResultPropertyIterator{ + alias: alias, + forgefedTicketMember: v, + } + return this, nil + } else if v, err := mgr.DeserializeTicketDependencyForgeFed()(m, aliasMap); err == nil { + this := &ActivityStreamsResultPropertyIterator{ + alias: alias, + forgefedTicketDependencyMember: v, + } + return this, nil } else if v, err := mgr.DeserializeTombstoneActivityStreams()(m, aliasMap); err == nil { this := &ActivityStreamsResultPropertyIterator{ activitystreamsTombstoneMember: v, @@ -826,6 +868,44 @@ func (this ActivityStreamsResultPropertyIterator) GetActivityStreamsView() vocab return this.activitystreamsViewMember } +// GetForgeFedBranch returns the value of this property. When IsForgeFedBranch +// returns false, GetForgeFedBranch will return an arbitrary value. +func (this ActivityStreamsResultPropertyIterator) GetForgeFedBranch() vocab.ForgeFedBranch { + return this.forgefedBranchMember +} + +// GetForgeFedCommit returns the value of this property. When IsForgeFedCommit +// returns false, GetForgeFedCommit will return an arbitrary value. +func (this ActivityStreamsResultPropertyIterator) GetForgeFedCommit() vocab.ForgeFedCommit { + return this.forgefedCommitMember +} + +// GetForgeFedPush returns the value of this property. When IsForgeFedPush returns +// false, GetForgeFedPush will return an arbitrary value. +func (this ActivityStreamsResultPropertyIterator) GetForgeFedPush() vocab.ForgeFedPush { + return this.forgefedPushMember +} + +// GetForgeFedRepository returns the value of this property. When +// IsForgeFedRepository returns false, GetForgeFedRepository will return an +// arbitrary value. +func (this ActivityStreamsResultPropertyIterator) GetForgeFedRepository() vocab.ForgeFedRepository { + return this.forgefedRepositoryMember +} + +// GetForgeFedTicket returns the value of this property. When IsForgeFedTicket +// returns false, GetForgeFedTicket will return an arbitrary value. +func (this ActivityStreamsResultPropertyIterator) GetForgeFedTicket() vocab.ForgeFedTicket { + return this.forgefedTicketMember +} + +// GetForgeFedTicketDependency returns the value of this property. When +// IsForgeFedTicketDependency returns false, GetForgeFedTicketDependency will +// return an arbitrary value. +func (this ActivityStreamsResultPropertyIterator) GetForgeFedTicketDependency() vocab.ForgeFedTicketDependency { + return this.forgefedTicketDependencyMember +} + // GetIRI returns the IRI of this property. When IsIRI returns false, GetIRI will // return an arbitrary value. func (this ActivityStreamsResultPropertyIterator) GetIRI() *url.URL { @@ -881,12 +961,18 @@ func (this ActivityStreamsResultPropertyIterator) GetType() vocab.Type { 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() } @@ -974,6 +1060,9 @@ func (this ActivityStreamsResultPropertyIterator) GetType() vocab.Type { if this.IsActivityStreamsProfile() { return this.GetActivityStreamsProfile() } + if this.IsForgeFedPush() { + return this.GetForgeFedPush() + } if this.IsActivityStreamsQuestion() { return this.GetActivityStreamsQuestion() } @@ -989,6 +1078,9 @@ func (this ActivityStreamsResultPropertyIterator) GetType() vocab.Type { if this.IsActivityStreamsRemove() { return this.GetActivityStreamsRemove() } + if this.IsForgeFedRepository() { + return this.GetForgeFedRepository() + } if this.IsActivityStreamsService() { return this.GetActivityStreamsService() } @@ -998,6 +1090,12 @@ func (this ActivityStreamsResultPropertyIterator) GetType() vocab.Type { if this.IsActivityStreamsTentativeReject() { return this.GetActivityStreamsTentativeReject() } + if this.IsForgeFedTicket() { + return this.GetForgeFedTicket() + } + if this.IsForgeFedTicketDependency() { + return this.GetForgeFedTicketDependency() + } if this.IsActivityStreamsTombstone() { return this.GetActivityStreamsTombstone() } @@ -1033,8 +1131,10 @@ func (this ActivityStreamsResultPropertyIterator) HasAny() bool { this.IsActivityStreamsArticle() || this.IsActivityStreamsAudio() || this.IsActivityStreamsBlock() || + this.IsForgeFedBranch() || this.IsActivityStreamsCollection() || this.IsActivityStreamsCollectionPage() || + this.IsForgeFedCommit() || this.IsActivityStreamsCreate() || this.IsActivityStreamsDelete() || this.IsActivityStreamsDislike() || @@ -1064,14 +1164,18 @@ func (this ActivityStreamsResultPropertyIterator) HasAny() bool { 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() || @@ -1464,6 +1568,48 @@ func (this ActivityStreamsResultPropertyIterator) IsActivityStreamsView() bool { return this.activitystreamsViewMember != nil } +// IsForgeFedBranch returns true if this property has a type of "Branch". When +// true, use the GetForgeFedBranch and SetForgeFedBranch methods to access and +// set this property. +func (this ActivityStreamsResultPropertyIterator) IsForgeFedBranch() bool { + return this.forgefedBranchMember != nil +} + +// IsForgeFedCommit returns true if this property has a type of "Commit". When +// true, use the GetForgeFedCommit and SetForgeFedCommit methods to access and +// set this property. +func (this ActivityStreamsResultPropertyIterator) IsForgeFedCommit() bool { + return this.forgefedCommitMember != nil +} + +// IsForgeFedPush returns true if this property has a type of "Push". When true, +// use the GetForgeFedPush and SetForgeFedPush methods to access and set this +// property. +func (this ActivityStreamsResultPropertyIterator) IsForgeFedPush() bool { + return this.forgefedPushMember != nil +} + +// IsForgeFedRepository returns true if this property has a type of "Repository". +// When true, use the GetForgeFedRepository and SetForgeFedRepository methods +// to access and set this property. +func (this ActivityStreamsResultPropertyIterator) IsForgeFedRepository() bool { + return this.forgefedRepositoryMember != nil +} + +// IsForgeFedTicket returns true if this property has a type of "Ticket". When +// true, use the GetForgeFedTicket and SetForgeFedTicket methods to access and +// set this property. +func (this ActivityStreamsResultPropertyIterator) IsForgeFedTicket() bool { + return this.forgefedTicketMember != nil +} + +// IsForgeFedTicketDependency returns true if this property has a type of +// "TicketDependency". When true, use the GetForgeFedTicketDependency and +// SetForgeFedTicketDependency methods to access and set this property. +func (this ActivityStreamsResultPropertyIterator) IsForgeFedTicketDependency() bool { + return this.forgefedTicketDependencyMember != nil +} + // IsIRI returns true if this property is an IRI. When true, use GetIRI and SetIRI // to access and set this property func (this ActivityStreamsResultPropertyIterator) IsIRI() bool { @@ -1511,10 +1657,14 @@ func (this ActivityStreamsResultPropertyIterator) JSONLDContext() map[string]str 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() { @@ -1573,6 +1723,8 @@ func (this ActivityStreamsResultPropertyIterator) JSONLDContext() map[string]str 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() { @@ -1583,12 +1735,18 @@ func (this ActivityStreamsResultPropertyIterator) JSONLDContext() map[string]str 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() { @@ -1650,141 +1808,159 @@ func (this ActivityStreamsResultPropertyIterator) KindIndex() int { if this.IsActivityStreamsBlock() { return 10 } - if this.IsActivityStreamsCollection() { + if this.IsForgeFedBranch() { return 11 } - if this.IsActivityStreamsCollectionPage() { + if this.IsActivityStreamsCollection() { return 12 } - if this.IsActivityStreamsCreate() { + if this.IsActivityStreamsCollectionPage() { return 13 } - if this.IsActivityStreamsDelete() { + if this.IsForgeFedCommit() { return 14 } - if this.IsActivityStreamsDislike() { + if this.IsActivityStreamsCreate() { return 15 } - if this.IsActivityStreamsDocument() { + if this.IsActivityStreamsDelete() { return 16 } - if this.IsTootEmoji() { + if this.IsActivityStreamsDislike() { return 17 } - if this.IsActivityStreamsEvent() { + if this.IsActivityStreamsDocument() { return 18 } - if this.IsActivityStreamsFlag() { + if this.IsTootEmoji() { return 19 } - if this.IsActivityStreamsFollow() { + if this.IsActivityStreamsEvent() { return 20 } - if this.IsActivityStreamsGroup() { + if this.IsActivityStreamsFlag() { return 21 } - if this.IsTootIdentityProof() { + if this.IsActivityStreamsFollow() { return 22 } - if this.IsActivityStreamsIgnore() { + if this.IsActivityStreamsGroup() { return 23 } - if this.IsActivityStreamsImage() { + if this.IsTootIdentityProof() { return 24 } - if this.IsActivityStreamsIntransitiveActivity() { + if this.IsActivityStreamsIgnore() { return 25 } - if this.IsActivityStreamsInvite() { + if this.IsActivityStreamsImage() { return 26 } - if this.IsActivityStreamsJoin() { + if this.IsActivityStreamsIntransitiveActivity() { return 27 } - if this.IsActivityStreamsLeave() { + if this.IsActivityStreamsInvite() { return 28 } - if this.IsActivityStreamsLike() { + if this.IsActivityStreamsJoin() { return 29 } - if this.IsActivityStreamsListen() { + if this.IsActivityStreamsLeave() { return 30 } - if this.IsActivityStreamsMention() { + if this.IsActivityStreamsLike() { return 31 } - if this.IsActivityStreamsMove() { + if this.IsActivityStreamsListen() { return 32 } - if this.IsActivityStreamsNote() { + if this.IsActivityStreamsMention() { return 33 } - if this.IsActivityStreamsOffer() { + if this.IsActivityStreamsMove() { return 34 } - if this.IsActivityStreamsOrderedCollection() { + if this.IsActivityStreamsNote() { return 35 } - if this.IsActivityStreamsOrderedCollectionPage() { + if this.IsActivityStreamsOffer() { return 36 } - if this.IsActivityStreamsOrganization() { + if this.IsActivityStreamsOrderedCollection() { return 37 } - if this.IsActivityStreamsPage() { + if this.IsActivityStreamsOrderedCollectionPage() { return 38 } - if this.IsActivityStreamsPerson() { + if this.IsActivityStreamsOrganization() { return 39 } - if this.IsActivityStreamsPlace() { + if this.IsActivityStreamsPage() { return 40 } - if this.IsActivityStreamsProfile() { + if this.IsActivityStreamsPerson() { return 41 } - if this.IsActivityStreamsQuestion() { + if this.IsActivityStreamsPlace() { return 42 } - if this.IsActivityStreamsRead() { + if this.IsActivityStreamsProfile() { return 43 } - if this.IsActivityStreamsReject() { + if this.IsForgeFedPush() { return 44 } - if this.IsActivityStreamsRelationship() { + if this.IsActivityStreamsQuestion() { return 45 } - if this.IsActivityStreamsRemove() { + if this.IsActivityStreamsRead() { return 46 } - if this.IsActivityStreamsService() { + if this.IsActivityStreamsReject() { return 47 } - if this.IsActivityStreamsTentativeAccept() { + if this.IsActivityStreamsRelationship() { return 48 } - if this.IsActivityStreamsTentativeReject() { + if this.IsActivityStreamsRemove() { return 49 } - if this.IsActivityStreamsTombstone() { + if this.IsForgeFedRepository() { return 50 } - if this.IsActivityStreamsTravel() { + if this.IsActivityStreamsService() { return 51 } - if this.IsActivityStreamsUndo() { + if this.IsActivityStreamsTentativeAccept() { return 52 } - if this.IsActivityStreamsUpdate() { + if this.IsActivityStreamsTentativeReject() { return 53 } - if this.IsActivityStreamsVideo() { + if this.IsForgeFedTicket() { return 54 } - if this.IsActivityStreamsView() { + 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 } @@ -1824,10 +2000,14 @@ func (this ActivityStreamsResultPropertyIterator) LessThan(o vocab.ActivityStrea 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() { @@ -1886,6 +2066,8 @@ func (this ActivityStreamsResultPropertyIterator) LessThan(o vocab.ActivityStrea 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() { @@ -1896,12 +2078,18 @@ func (this ActivityStreamsResultPropertyIterator) LessThan(o vocab.ActivityStrea 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() { @@ -2325,6 +2513,48 @@ func (this *ActivityStreamsResultPropertyIterator) SetActivityStreamsView(v voca this.activitystreamsViewMember = v } +// SetForgeFedBranch sets the value of this property. Calling IsForgeFedBranch +// afterwards returns true. +func (this *ActivityStreamsResultPropertyIterator) SetForgeFedBranch(v vocab.ForgeFedBranch) { + this.clear() + this.forgefedBranchMember = v +} + +// SetForgeFedCommit sets the value of this property. Calling IsForgeFedCommit +// afterwards returns true. +func (this *ActivityStreamsResultPropertyIterator) SetForgeFedCommit(v vocab.ForgeFedCommit) { + this.clear() + this.forgefedCommitMember = v +} + +// SetForgeFedPush sets the value of this property. Calling IsForgeFedPush +// afterwards returns true. +func (this *ActivityStreamsResultPropertyIterator) SetForgeFedPush(v vocab.ForgeFedPush) { + this.clear() + this.forgefedPushMember = v +} + +// SetForgeFedRepository sets the value of this property. Calling +// IsForgeFedRepository afterwards returns true. +func (this *ActivityStreamsResultPropertyIterator) SetForgeFedRepository(v vocab.ForgeFedRepository) { + this.clear() + this.forgefedRepositoryMember = v +} + +// SetForgeFedTicket sets the value of this property. Calling IsForgeFedTicket +// afterwards returns true. +func (this *ActivityStreamsResultPropertyIterator) SetForgeFedTicket(v vocab.ForgeFedTicket) { + this.clear() + this.forgefedTicketMember = v +} + +// SetForgeFedTicketDependency sets the value of this property. Calling +// IsForgeFedTicketDependency afterwards returns true. +func (this *ActivityStreamsResultPropertyIterator) SetForgeFedTicketDependency(v vocab.ForgeFedTicketDependency) { + this.clear() + this.forgefedTicketDependencyMember = v +} + // SetIRI sets the value of this property. Calling IsIRI afterwards returns true. func (this *ActivityStreamsResultPropertyIterator) SetIRI(v *url.URL) { this.clear() @@ -2392,6 +2622,10 @@ func (this *ActivityStreamsResultPropertyIterator) SetType(t vocab.Type) error { 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 @@ -2400,6 +2634,10 @@ func (this *ActivityStreamsResultPropertyIterator) SetType(t vocab.Type) error { 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 @@ -2516,6 +2754,10 @@ func (this *ActivityStreamsResultPropertyIterator) SetType(t vocab.Type) error { 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 @@ -2536,6 +2778,10 @@ func (this *ActivityStreamsResultPropertyIterator) SetType(t vocab.Type) error { 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 @@ -2548,6 +2794,14 @@ func (this *ActivityStreamsResultPropertyIterator) SetType(t vocab.Type) error { 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 @@ -2590,8 +2844,10 @@ func (this *ActivityStreamsResultPropertyIterator) clear() { 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 @@ -2621,14 +2877,18 @@ func (this *ActivityStreamsResultPropertyIterator) clear() { 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 @@ -2666,10 +2926,14 @@ func (this ActivityStreamsResultPropertyIterator) serialize() (interface{}, erro 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() { @@ -2728,6 +2992,8 @@ func (this ActivityStreamsResultPropertyIterator) serialize() (interface{}, erro 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() { @@ -2738,12 +3004,18 @@ func (this ActivityStreamsResultPropertyIterator) serialize() (interface{}, erro 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() { @@ -3422,6 +3694,73 @@ func (this *ActivityStreamsResultProperty) AppendActivityStreamsView(v vocab.Act }) } +// AppendForgeFedBranch appends a Branch value to the back of a list of the +// property "result". Invalidates iterators that are traversing using Prev. +func (this *ActivityStreamsResultProperty) AppendForgeFedBranch(v vocab.ForgeFedBranch) { + this.properties = append(this.properties, &ActivityStreamsResultPropertyIterator{ + alias: this.alias, + forgefedBranchMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendForgeFedCommit appends a Commit value to the back of a list of the +// property "result". Invalidates iterators that are traversing using Prev. +func (this *ActivityStreamsResultProperty) AppendForgeFedCommit(v vocab.ForgeFedCommit) { + this.properties = append(this.properties, &ActivityStreamsResultPropertyIterator{ + alias: this.alias, + forgefedCommitMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendForgeFedPush appends a Push value to the back of a list of the property +// "result". Invalidates iterators that are traversing using Prev. +func (this *ActivityStreamsResultProperty) AppendForgeFedPush(v vocab.ForgeFedPush) { + this.properties = append(this.properties, &ActivityStreamsResultPropertyIterator{ + alias: this.alias, + forgefedPushMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendForgeFedRepository appends a Repository value to the back of a list of +// the property "result". Invalidates iterators that are traversing using Prev. +func (this *ActivityStreamsResultProperty) AppendForgeFedRepository(v vocab.ForgeFedRepository) { + this.properties = append(this.properties, &ActivityStreamsResultPropertyIterator{ + alias: this.alias, + forgefedRepositoryMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendForgeFedTicket appends a Ticket value to the back of a list of the +// property "result". Invalidates iterators that are traversing using Prev. +func (this *ActivityStreamsResultProperty) AppendForgeFedTicket(v vocab.ForgeFedTicket) { + this.properties = append(this.properties, &ActivityStreamsResultPropertyIterator{ + alias: this.alias, + forgefedTicketMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendForgeFedTicketDependency appends a TicketDependency value to the back of +// a list of the property "result". Invalidates iterators that are traversing +// using Prev. +func (this *ActivityStreamsResultProperty) AppendForgeFedTicketDependency(v vocab.ForgeFedTicketDependency) { + this.properties = append(this.properties, &ActivityStreamsResultPropertyIterator{ + alias: this.alias, + forgefedTicketDependencyMember: v, + myIdx: this.Len(), + parent: this, + }) +} + // AppendIRI appends an IRI value to the back of a list of the property "result" func (this *ActivityStreamsResultProperty) AppendIRI(v *url.URL) { this.properties = append(this.properties, &ActivityStreamsResultPropertyIterator{ @@ -4417,6 +4756,108 @@ func (this *ActivityStreamsResultProperty) InsertActivityStreamsView(idx int, v } } +// InsertForgeFedBranch inserts a Branch value at the specified index for a +// property "result". Existing elements at that index and higher are shifted +// back once. Invalidates all iterators. +func (this *ActivityStreamsResultProperty) InsertForgeFedBranch(idx int, v vocab.ForgeFedBranch) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsResultPropertyIterator{ + alias: this.alias, + forgefedBranchMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertForgeFedCommit inserts a Commit value at the specified index for a +// property "result". Existing elements at that index and higher are shifted +// back once. Invalidates all iterators. +func (this *ActivityStreamsResultProperty) InsertForgeFedCommit(idx int, v vocab.ForgeFedCommit) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsResultPropertyIterator{ + alias: this.alias, + forgefedCommitMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertForgeFedPush inserts a Push value at the specified index for a property +// "result". Existing elements at that index and higher are shifted back once. +// Invalidates all iterators. +func (this *ActivityStreamsResultProperty) InsertForgeFedPush(idx int, v vocab.ForgeFedPush) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsResultPropertyIterator{ + alias: this.alias, + forgefedPushMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertForgeFedRepository inserts a Repository value at the specified index for +// a property "result". Existing elements at that index and higher are shifted +// back once. Invalidates all iterators. +func (this *ActivityStreamsResultProperty) InsertForgeFedRepository(idx int, v vocab.ForgeFedRepository) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsResultPropertyIterator{ + alias: this.alias, + forgefedRepositoryMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertForgeFedTicket inserts a Ticket value at the specified index for a +// property "result". Existing elements at that index and higher are shifted +// back once. Invalidates all iterators. +func (this *ActivityStreamsResultProperty) InsertForgeFedTicket(idx int, v vocab.ForgeFedTicket) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsResultPropertyIterator{ + alias: this.alias, + forgefedTicketMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertForgeFedTicketDependency inserts a TicketDependency value at the +// specified index for a property "result". Existing elements at that index +// and higher are shifted back once. Invalidates all iterators. +func (this *ActivityStreamsResultProperty) InsertForgeFedTicketDependency(idx int, v vocab.ForgeFedTicketDependency) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsResultPropertyIterator{ + alias: this.alias, + forgefedTicketDependencyMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + // Insert inserts an IRI value at the specified index for a property "result". // Existing elements at that index and higher are shifted back once. // Invalidates all iterators. @@ -4574,182 +5015,206 @@ func (this ActivityStreamsResultProperty) Less(i, j int) bool { rhs := this.properties[j].GetActivityStreamsBlock() return lhs.LessThan(rhs) } else if idx1 == 11 { + lhs := this.properties[i].GetForgeFedBranch() + rhs := this.properties[j].GetForgeFedBranch() + return lhs.LessThan(rhs) + } else if idx1 == 12 { lhs := this.properties[i].GetActivityStreamsCollection() rhs := this.properties[j].GetActivityStreamsCollection() return lhs.LessThan(rhs) - } else if idx1 == 12 { + } else if idx1 == 13 { lhs := this.properties[i].GetActivityStreamsCollectionPage() rhs := this.properties[j].GetActivityStreamsCollectionPage() return lhs.LessThan(rhs) - } else if idx1 == 13 { + } else if idx1 == 14 { + lhs := this.properties[i].GetForgeFedCommit() + rhs := this.properties[j].GetForgeFedCommit() + return lhs.LessThan(rhs) + } else if idx1 == 15 { lhs := this.properties[i].GetActivityStreamsCreate() rhs := this.properties[j].GetActivityStreamsCreate() return lhs.LessThan(rhs) - } else if idx1 == 14 { + } else if idx1 == 16 { lhs := this.properties[i].GetActivityStreamsDelete() rhs := this.properties[j].GetActivityStreamsDelete() return lhs.LessThan(rhs) - } else if idx1 == 15 { + } else if idx1 == 17 { lhs := this.properties[i].GetActivityStreamsDislike() rhs := this.properties[j].GetActivityStreamsDislike() return lhs.LessThan(rhs) - } else if idx1 == 16 { + } else if idx1 == 18 { lhs := this.properties[i].GetActivityStreamsDocument() rhs := this.properties[j].GetActivityStreamsDocument() return lhs.LessThan(rhs) - } else if idx1 == 17 { + } else if idx1 == 19 { lhs := this.properties[i].GetTootEmoji() rhs := this.properties[j].GetTootEmoji() return lhs.LessThan(rhs) - } else if idx1 == 18 { + } else if idx1 == 20 { lhs := this.properties[i].GetActivityStreamsEvent() rhs := this.properties[j].GetActivityStreamsEvent() return lhs.LessThan(rhs) - } else if idx1 == 19 { + } else if idx1 == 21 { lhs := this.properties[i].GetActivityStreamsFlag() rhs := this.properties[j].GetActivityStreamsFlag() return lhs.LessThan(rhs) - } else if idx1 == 20 { + } else if idx1 == 22 { lhs := this.properties[i].GetActivityStreamsFollow() rhs := this.properties[j].GetActivityStreamsFollow() return lhs.LessThan(rhs) - } else if idx1 == 21 { + } else if idx1 == 23 { lhs := this.properties[i].GetActivityStreamsGroup() rhs := this.properties[j].GetActivityStreamsGroup() return lhs.LessThan(rhs) - } else if idx1 == 22 { + } else if idx1 == 24 { lhs := this.properties[i].GetTootIdentityProof() rhs := this.properties[j].GetTootIdentityProof() return lhs.LessThan(rhs) - } else if idx1 == 23 { + } else if idx1 == 25 { lhs := this.properties[i].GetActivityStreamsIgnore() rhs := this.properties[j].GetActivityStreamsIgnore() return lhs.LessThan(rhs) - } else if idx1 == 24 { + } else if idx1 == 26 { lhs := this.properties[i].GetActivityStreamsImage() rhs := this.properties[j].GetActivityStreamsImage() return lhs.LessThan(rhs) - } else if idx1 == 25 { + } else if idx1 == 27 { lhs := this.properties[i].GetActivityStreamsIntransitiveActivity() rhs := this.properties[j].GetActivityStreamsIntransitiveActivity() return lhs.LessThan(rhs) - } else if idx1 == 26 { + } else if idx1 == 28 { lhs := this.properties[i].GetActivityStreamsInvite() rhs := this.properties[j].GetActivityStreamsInvite() return lhs.LessThan(rhs) - } else if idx1 == 27 { + } else if idx1 == 29 { lhs := this.properties[i].GetActivityStreamsJoin() rhs := this.properties[j].GetActivityStreamsJoin() return lhs.LessThan(rhs) - } else if idx1 == 28 { + } else if idx1 == 30 { lhs := this.properties[i].GetActivityStreamsLeave() rhs := this.properties[j].GetActivityStreamsLeave() return lhs.LessThan(rhs) - } else if idx1 == 29 { + } else if idx1 == 31 { lhs := this.properties[i].GetActivityStreamsLike() rhs := this.properties[j].GetActivityStreamsLike() return lhs.LessThan(rhs) - } else if idx1 == 30 { + } else if idx1 == 32 { lhs := this.properties[i].GetActivityStreamsListen() rhs := this.properties[j].GetActivityStreamsListen() return lhs.LessThan(rhs) - } else if idx1 == 31 { + } else if idx1 == 33 { lhs := this.properties[i].GetActivityStreamsMention() rhs := this.properties[j].GetActivityStreamsMention() return lhs.LessThan(rhs) - } else if idx1 == 32 { + } else if idx1 == 34 { lhs := this.properties[i].GetActivityStreamsMove() rhs := this.properties[j].GetActivityStreamsMove() return lhs.LessThan(rhs) - } else if idx1 == 33 { + } else if idx1 == 35 { lhs := this.properties[i].GetActivityStreamsNote() rhs := this.properties[j].GetActivityStreamsNote() return lhs.LessThan(rhs) - } else if idx1 == 34 { + } else if idx1 == 36 { lhs := this.properties[i].GetActivityStreamsOffer() rhs := this.properties[j].GetActivityStreamsOffer() return lhs.LessThan(rhs) - } else if idx1 == 35 { + } else if idx1 == 37 { lhs := this.properties[i].GetActivityStreamsOrderedCollection() rhs := this.properties[j].GetActivityStreamsOrderedCollection() return lhs.LessThan(rhs) - } else if idx1 == 36 { + } else if idx1 == 38 { lhs := this.properties[i].GetActivityStreamsOrderedCollectionPage() rhs := this.properties[j].GetActivityStreamsOrderedCollectionPage() return lhs.LessThan(rhs) - } else if idx1 == 37 { + } else if idx1 == 39 { lhs := this.properties[i].GetActivityStreamsOrganization() rhs := this.properties[j].GetActivityStreamsOrganization() return lhs.LessThan(rhs) - } else if idx1 == 38 { + } else if idx1 == 40 { lhs := this.properties[i].GetActivityStreamsPage() rhs := this.properties[j].GetActivityStreamsPage() return lhs.LessThan(rhs) - } else if idx1 == 39 { + } else if idx1 == 41 { lhs := this.properties[i].GetActivityStreamsPerson() rhs := this.properties[j].GetActivityStreamsPerson() return lhs.LessThan(rhs) - } else if idx1 == 40 { + } else if idx1 == 42 { lhs := this.properties[i].GetActivityStreamsPlace() rhs := this.properties[j].GetActivityStreamsPlace() return lhs.LessThan(rhs) - } else if idx1 == 41 { + } else if idx1 == 43 { lhs := this.properties[i].GetActivityStreamsProfile() rhs := this.properties[j].GetActivityStreamsProfile() return lhs.LessThan(rhs) - } else if idx1 == 42 { + } else if idx1 == 44 { + lhs := this.properties[i].GetForgeFedPush() + rhs := this.properties[j].GetForgeFedPush() + return lhs.LessThan(rhs) + } else if idx1 == 45 { lhs := this.properties[i].GetActivityStreamsQuestion() rhs := this.properties[j].GetActivityStreamsQuestion() return lhs.LessThan(rhs) - } else if idx1 == 43 { + } else if idx1 == 46 { lhs := this.properties[i].GetActivityStreamsRead() rhs := this.properties[j].GetActivityStreamsRead() return lhs.LessThan(rhs) - } else if idx1 == 44 { + } else if idx1 == 47 { lhs := this.properties[i].GetActivityStreamsReject() rhs := this.properties[j].GetActivityStreamsReject() return lhs.LessThan(rhs) - } else if idx1 == 45 { + } else if idx1 == 48 { lhs := this.properties[i].GetActivityStreamsRelationship() rhs := this.properties[j].GetActivityStreamsRelationship() return lhs.LessThan(rhs) - } else if idx1 == 46 { + } else if idx1 == 49 { lhs := this.properties[i].GetActivityStreamsRemove() rhs := this.properties[j].GetActivityStreamsRemove() return lhs.LessThan(rhs) - } else if idx1 == 47 { + } else if idx1 == 50 { + lhs := this.properties[i].GetForgeFedRepository() + rhs := this.properties[j].GetForgeFedRepository() + return lhs.LessThan(rhs) + } else if idx1 == 51 { lhs := this.properties[i].GetActivityStreamsService() rhs := this.properties[j].GetActivityStreamsService() return lhs.LessThan(rhs) - } else if idx1 == 48 { + } else if idx1 == 52 { lhs := this.properties[i].GetActivityStreamsTentativeAccept() rhs := this.properties[j].GetActivityStreamsTentativeAccept() return lhs.LessThan(rhs) - } else if idx1 == 49 { + } else if idx1 == 53 { lhs := this.properties[i].GetActivityStreamsTentativeReject() rhs := this.properties[j].GetActivityStreamsTentativeReject() return lhs.LessThan(rhs) - } else if idx1 == 50 { + } else if idx1 == 54 { + lhs := this.properties[i].GetForgeFedTicket() + rhs := this.properties[j].GetForgeFedTicket() + return lhs.LessThan(rhs) + } else if idx1 == 55 { + lhs := this.properties[i].GetForgeFedTicketDependency() + rhs := this.properties[j].GetForgeFedTicketDependency() + return lhs.LessThan(rhs) + } else if idx1 == 56 { lhs := this.properties[i].GetActivityStreamsTombstone() rhs := this.properties[j].GetActivityStreamsTombstone() return lhs.LessThan(rhs) - } else if idx1 == 51 { + } else if idx1 == 57 { lhs := this.properties[i].GetActivityStreamsTravel() rhs := this.properties[j].GetActivityStreamsTravel() return lhs.LessThan(rhs) - } else if idx1 == 52 { + } else if idx1 == 58 { lhs := this.properties[i].GetActivityStreamsUndo() rhs := this.properties[j].GetActivityStreamsUndo() return lhs.LessThan(rhs) - } else if idx1 == 53 { + } else if idx1 == 59 { lhs := this.properties[i].GetActivityStreamsUpdate() rhs := this.properties[j].GetActivityStreamsUpdate() return lhs.LessThan(rhs) - } else if idx1 == 54 { + } else if idx1 == 60 { lhs := this.properties[i].GetActivityStreamsVideo() rhs := this.properties[j].GetActivityStreamsVideo() return lhs.LessThan(rhs) - } else if idx1 == 55 { + } else if idx1 == 61 { lhs := this.properties[i].GetActivityStreamsView() rhs := this.properties[j].GetActivityStreamsView() return lhs.LessThan(rhs) @@ -5550,6 +6015,90 @@ func (this *ActivityStreamsResultProperty) PrependActivityStreamsView(v vocab.Ac } } +// PrependForgeFedBranch prepends a Branch value to the front of a list of the +// property "result". Invalidates all iterators. +func (this *ActivityStreamsResultProperty) PrependForgeFedBranch(v vocab.ForgeFedBranch) { + this.properties = append([]*ActivityStreamsResultPropertyIterator{{ + alias: this.alias, + forgefedBranchMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependForgeFedCommit prepends a Commit value to the front of a list of the +// property "result". Invalidates all iterators. +func (this *ActivityStreamsResultProperty) PrependForgeFedCommit(v vocab.ForgeFedCommit) { + this.properties = append([]*ActivityStreamsResultPropertyIterator{{ + alias: this.alias, + forgefedCommitMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependForgeFedPush prepends a Push value to the front of a list of the +// property "result". Invalidates all iterators. +func (this *ActivityStreamsResultProperty) PrependForgeFedPush(v vocab.ForgeFedPush) { + this.properties = append([]*ActivityStreamsResultPropertyIterator{{ + alias: this.alias, + forgefedPushMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependForgeFedRepository prepends a Repository value to the front of a list of +// the property "result". Invalidates all iterators. +func (this *ActivityStreamsResultProperty) PrependForgeFedRepository(v vocab.ForgeFedRepository) { + this.properties = append([]*ActivityStreamsResultPropertyIterator{{ + alias: this.alias, + forgefedRepositoryMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependForgeFedTicket prepends a Ticket value to the front of a list of the +// property "result". Invalidates all iterators. +func (this *ActivityStreamsResultProperty) PrependForgeFedTicket(v vocab.ForgeFedTicket) { + this.properties = append([]*ActivityStreamsResultPropertyIterator{{ + alias: this.alias, + forgefedTicketMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependForgeFedTicketDependency prepends a TicketDependency value to the front +// of a list of the property "result". Invalidates all iterators. +func (this *ActivityStreamsResultProperty) PrependForgeFedTicketDependency(v vocab.ForgeFedTicketDependency) { + this.properties = append([]*ActivityStreamsResultPropertyIterator{{ + alias: this.alias, + forgefedTicketDependencyMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + // PrependIRI prepends an IRI value to the front of a list of the property // "result". func (this *ActivityStreamsResultProperty) PrependIRI(v *url.URL) { @@ -6346,6 +6895,83 @@ func (this *ActivityStreamsResultProperty) SetActivityStreamsView(idx int, v voc } } +// SetForgeFedBranch sets a Branch value to be at the specified index for the +// property "result". Panics if the index is out of bounds. Invalidates all +// iterators. +func (this *ActivityStreamsResultProperty) SetForgeFedBranch(idx int, v vocab.ForgeFedBranch) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsResultPropertyIterator{ + alias: this.alias, + forgefedBranchMember: v, + myIdx: idx, + parent: this, + } +} + +// SetForgeFedCommit sets a Commit value to be at the specified index for the +// property "result". Panics if the index is out of bounds. Invalidates all +// iterators. +func (this *ActivityStreamsResultProperty) SetForgeFedCommit(idx int, v vocab.ForgeFedCommit) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsResultPropertyIterator{ + alias: this.alias, + forgefedCommitMember: v, + myIdx: idx, + parent: this, + } +} + +// SetForgeFedPush sets a Push value to be at the specified index for the property +// "result". Panics if the index is out of bounds. Invalidates all iterators. +func (this *ActivityStreamsResultProperty) SetForgeFedPush(idx int, v vocab.ForgeFedPush) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsResultPropertyIterator{ + alias: this.alias, + forgefedPushMember: v, + myIdx: idx, + parent: this, + } +} + +// SetForgeFedRepository sets a Repository value to be at the specified index for +// the property "result". Panics if the index is out of bounds. Invalidates +// all iterators. +func (this *ActivityStreamsResultProperty) SetForgeFedRepository(idx int, v vocab.ForgeFedRepository) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsResultPropertyIterator{ + alias: this.alias, + forgefedRepositoryMember: v, + myIdx: idx, + parent: this, + } +} + +// SetForgeFedTicket sets a Ticket value to be at the specified index for the +// property "result". Panics if the index is out of bounds. Invalidates all +// iterators. +func (this *ActivityStreamsResultProperty) SetForgeFedTicket(idx int, v vocab.ForgeFedTicket) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsResultPropertyIterator{ + alias: this.alias, + forgefedTicketMember: v, + myIdx: idx, + parent: this, + } +} + +// SetForgeFedTicketDependency sets a TicketDependency value to be at the +// specified index for the property "result". Panics if the index is out of +// bounds. Invalidates all iterators. +func (this *ActivityStreamsResultProperty) SetForgeFedTicketDependency(idx int, v vocab.ForgeFedTicketDependency) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsResultPropertyIterator{ + alias: this.alias, + forgefedTicketDependencyMember: v, + myIdx: idx, + parent: this, + } +} + // SetIRI sets an IRI value to be at the specified index for the property // "result". Panics if the index is out of bounds. func (this *ActivityStreamsResultProperty) SetIRI(idx int, v *url.URL) { diff --git a/streams/impl/activitystreams/property_source/gen_pkg.go b/streams/impl/activitystreams/property_source/gen_pkg.go index fdc8495..3ed50bc 100644 --- a/streams/impl/activitystreams/property_source/gen_pkg.go +++ b/streams/impl/activitystreams/property_source/gen_pkg.go @@ -45,6 +45,10 @@ type privateManager interface { // 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" @@ -53,6 +57,10 @@ type privateManager interface { // 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" @@ -177,6 +185,9 @@ type privateManager interface { // 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" @@ -197,6 +208,10 @@ type privateManager interface { // 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" @@ -209,6 +224,14 @@ type privateManager interface { // 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" diff --git a/streams/impl/activitystreams/property_source/gen_property_activitystreams_source.go b/streams/impl/activitystreams/property_source/gen_property_activitystreams_source.go index 6bf35c3..35acec7 100644 --- a/streams/impl/activitystreams/property_source/gen_property_activitystreams_source.go +++ b/streams/impl/activitystreams/property_source/gen_property_activitystreams_source.go @@ -25,8 +25,10 @@ type ActivityStreamsSourceProperty struct { 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 @@ -56,14 +58,18 @@ type ActivityStreamsSourceProperty struct { 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 @@ -169,6 +175,12 @@ func DeserializeSourceProperty(m map[string]interface{}, aliasMap map[string]str 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, @@ -181,6 +193,12 @@ func DeserializeSourceProperty(m map[string]interface{}, aliasMap map[string]str 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, @@ -355,6 +373,12 @@ func DeserializeSourceProperty(m map[string]interface{}, aliasMap map[string]str 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, @@ -385,6 +409,12 @@ func DeserializeSourceProperty(m map[string]interface{}, aliasMap map[string]str 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, @@ -403,6 +433,18 @@ func DeserializeSourceProperty(m map[string]interface{}, aliasMap map[string]str 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, @@ -469,8 +511,10 @@ func (this *ActivityStreamsSourceProperty) Clear() { 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 @@ -500,14 +544,18 @@ func (this *ActivityStreamsSourceProperty) Clear() { 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 @@ -896,6 +944,44 @@ func (this ActivityStreamsSourceProperty) GetActivityStreamsView() vocab.Activit 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 { @@ -951,12 +1037,18 @@ func (this ActivityStreamsSourceProperty) GetType() vocab.Type { 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() } @@ -1044,6 +1136,9 @@ func (this ActivityStreamsSourceProperty) GetType() vocab.Type { if this.IsActivityStreamsProfile() { return this.GetActivityStreamsProfile() } + if this.IsForgeFedPush() { + return this.GetForgeFedPush() + } if this.IsActivityStreamsQuestion() { return this.GetActivityStreamsQuestion() } @@ -1059,6 +1154,9 @@ func (this ActivityStreamsSourceProperty) GetType() vocab.Type { if this.IsActivityStreamsRemove() { return this.GetActivityStreamsRemove() } + if this.IsForgeFedRepository() { + return this.GetForgeFedRepository() + } if this.IsActivityStreamsService() { return this.GetActivityStreamsService() } @@ -1068,6 +1166,12 @@ func (this ActivityStreamsSourceProperty) GetType() vocab.Type { if this.IsActivityStreamsTentativeReject() { return this.GetActivityStreamsTentativeReject() } + if this.IsForgeFedTicket() { + return this.GetForgeFedTicket() + } + if this.IsForgeFedTicketDependency() { + return this.GetForgeFedTicketDependency() + } if this.IsActivityStreamsTombstone() { return this.GetActivityStreamsTombstone() } @@ -1103,8 +1207,10 @@ func (this ActivityStreamsSourceProperty) HasAny() bool { this.IsActivityStreamsArticle() || this.IsActivityStreamsAudio() || this.IsActivityStreamsBlock() || + this.IsForgeFedBranch() || this.IsActivityStreamsCollection() || this.IsActivityStreamsCollectionPage() || + this.IsForgeFedCommit() || this.IsActivityStreamsCreate() || this.IsActivityStreamsDelete() || this.IsActivityStreamsDislike() || @@ -1134,14 +1240,18 @@ func (this ActivityStreamsSourceProperty) HasAny() bool { 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() || @@ -1534,6 +1644,48 @@ 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 { @@ -1581,10 +1733,14 @@ func (this ActivityStreamsSourceProperty) JSONLDContext() map[string]string { 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() { @@ -1643,6 +1799,8 @@ func (this ActivityStreamsSourceProperty) JSONLDContext() map[string]string { 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() { @@ -1653,12 +1811,18 @@ func (this ActivityStreamsSourceProperty) JSONLDContext() map[string]string { 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() { @@ -1720,141 +1884,159 @@ func (this ActivityStreamsSourceProperty) KindIndex() int { if this.IsActivityStreamsBlock() { return 10 } - if this.IsActivityStreamsCollection() { + if this.IsForgeFedBranch() { return 11 } - if this.IsActivityStreamsCollectionPage() { + if this.IsActivityStreamsCollection() { return 12 } - if this.IsActivityStreamsCreate() { + if this.IsActivityStreamsCollectionPage() { return 13 } - if this.IsActivityStreamsDelete() { + if this.IsForgeFedCommit() { return 14 } - if this.IsActivityStreamsDislike() { + if this.IsActivityStreamsCreate() { return 15 } - if this.IsActivityStreamsDocument() { + if this.IsActivityStreamsDelete() { return 16 } - if this.IsTootEmoji() { + if this.IsActivityStreamsDislike() { return 17 } - if this.IsActivityStreamsEvent() { + if this.IsActivityStreamsDocument() { return 18 } - if this.IsActivityStreamsFlag() { + if this.IsTootEmoji() { return 19 } - if this.IsActivityStreamsFollow() { + if this.IsActivityStreamsEvent() { return 20 } - if this.IsActivityStreamsGroup() { + if this.IsActivityStreamsFlag() { return 21 } - if this.IsTootIdentityProof() { + if this.IsActivityStreamsFollow() { return 22 } - if this.IsActivityStreamsIgnore() { + if this.IsActivityStreamsGroup() { return 23 } - if this.IsActivityStreamsImage() { + if this.IsTootIdentityProof() { return 24 } - if this.IsActivityStreamsIntransitiveActivity() { + if this.IsActivityStreamsIgnore() { return 25 } - if this.IsActivityStreamsInvite() { + if this.IsActivityStreamsImage() { return 26 } - if this.IsActivityStreamsJoin() { + if this.IsActivityStreamsIntransitiveActivity() { return 27 } - if this.IsActivityStreamsLeave() { + if this.IsActivityStreamsInvite() { return 28 } - if this.IsActivityStreamsLike() { + if this.IsActivityStreamsJoin() { return 29 } - if this.IsActivityStreamsListen() { + if this.IsActivityStreamsLeave() { return 30 } - if this.IsActivityStreamsMention() { + if this.IsActivityStreamsLike() { return 31 } - if this.IsActivityStreamsMove() { + if this.IsActivityStreamsListen() { return 32 } - if this.IsActivityStreamsNote() { + if this.IsActivityStreamsMention() { return 33 } - if this.IsActivityStreamsOffer() { + if this.IsActivityStreamsMove() { return 34 } - if this.IsActivityStreamsOrderedCollection() { + if this.IsActivityStreamsNote() { return 35 } - if this.IsActivityStreamsOrderedCollectionPage() { + if this.IsActivityStreamsOffer() { return 36 } - if this.IsActivityStreamsOrganization() { + if this.IsActivityStreamsOrderedCollection() { return 37 } - if this.IsActivityStreamsPage() { + if this.IsActivityStreamsOrderedCollectionPage() { return 38 } - if this.IsActivityStreamsPerson() { + if this.IsActivityStreamsOrganization() { return 39 } - if this.IsActivityStreamsPlace() { + if this.IsActivityStreamsPage() { return 40 } - if this.IsActivityStreamsProfile() { + if this.IsActivityStreamsPerson() { return 41 } - if this.IsActivityStreamsQuestion() { + if this.IsActivityStreamsPlace() { return 42 } - if this.IsActivityStreamsRead() { + if this.IsActivityStreamsProfile() { return 43 } - if this.IsActivityStreamsReject() { + if this.IsForgeFedPush() { return 44 } - if this.IsActivityStreamsRelationship() { + if this.IsActivityStreamsQuestion() { return 45 } - if this.IsActivityStreamsRemove() { + if this.IsActivityStreamsRead() { return 46 } - if this.IsActivityStreamsService() { + if this.IsActivityStreamsReject() { return 47 } - if this.IsActivityStreamsTentativeAccept() { + if this.IsActivityStreamsRelationship() { return 48 } - if this.IsActivityStreamsTentativeReject() { + if this.IsActivityStreamsRemove() { return 49 } - if this.IsActivityStreamsTombstone() { + if this.IsForgeFedRepository() { return 50 } - if this.IsActivityStreamsTravel() { + if this.IsActivityStreamsService() { return 51 } - if this.IsActivityStreamsUndo() { + if this.IsActivityStreamsTentativeAccept() { return 52 } - if this.IsActivityStreamsUpdate() { + if this.IsActivityStreamsTentativeReject() { return 53 } - if this.IsActivityStreamsVideo() { + if this.IsForgeFedTicket() { return 54 } - if this.IsActivityStreamsView() { + 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 } @@ -1894,10 +2076,14 @@ func (this ActivityStreamsSourceProperty) LessThan(o vocab.ActivityStreamsSource 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() { @@ -1956,6 +2142,8 @@ func (this ActivityStreamsSourceProperty) LessThan(o vocab.ActivityStreamsSource 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() { @@ -1966,12 +2154,18 @@ func (this ActivityStreamsSourceProperty) LessThan(o vocab.ActivityStreamsSource 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() { @@ -2026,10 +2220,14 @@ func (this ActivityStreamsSourceProperty) Serialize() (interface{}, error) { 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() { @@ -2088,6 +2286,8 @@ func (this ActivityStreamsSourceProperty) Serialize() (interface{}, error) { 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() { @@ -2098,12 +2298,18 @@ func (this ActivityStreamsSourceProperty) Serialize() (interface{}, error) { 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() { @@ -2500,6 +2706,48 @@ func (this *ActivityStreamsSourceProperty) SetActivityStreamsView(v vocab.Activi 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() @@ -2567,6 +2815,10 @@ func (this *ActivityStreamsSourceProperty) SetType(t vocab.Type) error { 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 @@ -2575,6 +2827,10 @@ func (this *ActivityStreamsSourceProperty) SetType(t vocab.Type) error { 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 @@ -2691,6 +2947,10 @@ func (this *ActivityStreamsSourceProperty) SetType(t vocab.Type) error { 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 @@ -2711,6 +2971,10 @@ func (this *ActivityStreamsSourceProperty) SetType(t vocab.Type) error { 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 @@ -2723,6 +2987,14 @@ func (this *ActivityStreamsSourceProperty) SetType(t vocab.Type) error { 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 diff --git a/streams/impl/activitystreams/property_subject/gen_pkg.go b/streams/impl/activitystreams/property_subject/gen_pkg.go index 7e8452a..75cc38e 100644 --- a/streams/impl/activitystreams/property_subject/gen_pkg.go +++ b/streams/impl/activitystreams/property_subject/gen_pkg.go @@ -45,6 +45,10 @@ type privateManager interface { // 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" @@ -53,6 +57,10 @@ type privateManager interface { // 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" @@ -177,6 +185,9 @@ type privateManager interface { // 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" @@ -197,6 +208,10 @@ type privateManager interface { // 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" @@ -209,6 +224,14 @@ type privateManager interface { // 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" diff --git a/streams/impl/activitystreams/property_subject/gen_property_activitystreams_subject.go b/streams/impl/activitystreams/property_subject/gen_property_activitystreams_subject.go index 51853e3..3d0e02e 100644 --- a/streams/impl/activitystreams/property_subject/gen_property_activitystreams_subject.go +++ b/streams/impl/activitystreams/property_subject/gen_property_activitystreams_subject.go @@ -25,8 +25,10 @@ type ActivityStreamsSubjectProperty struct { 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 @@ -56,14 +58,18 @@ type ActivityStreamsSubjectProperty struct { 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 @@ -169,6 +175,12 @@ func DeserializeSubjectProperty(m map[string]interface{}, aliasMap map[string]st alias: alias, } return this, nil + } else if v, err := mgr.DeserializeBranchForgeFed()(m, aliasMap); err == nil { + this := &ActivityStreamsSubjectProperty{ + alias: alias, + forgefedBranchMember: v, + } + return this, nil } else if v, err := mgr.DeserializeCollectionActivityStreams()(m, aliasMap); err == nil { this := &ActivityStreamsSubjectProperty{ activitystreamsCollectionMember: v, @@ -181,6 +193,12 @@ func DeserializeSubjectProperty(m map[string]interface{}, aliasMap map[string]st alias: alias, } return this, nil + } else if v, err := mgr.DeserializeCommitForgeFed()(m, aliasMap); err == nil { + this := &ActivityStreamsSubjectProperty{ + alias: alias, + forgefedCommitMember: v, + } + return this, nil } else if v, err := mgr.DeserializeCreateActivityStreams()(m, aliasMap); err == nil { this := &ActivityStreamsSubjectProperty{ activitystreamsCreateMember: v, @@ -355,6 +373,12 @@ func DeserializeSubjectProperty(m map[string]interface{}, aliasMap map[string]st alias: alias, } return this, nil + } else if v, err := mgr.DeserializePushForgeFed()(m, aliasMap); err == nil { + this := &ActivityStreamsSubjectProperty{ + alias: alias, + forgefedPushMember: v, + } + return this, nil } else if v, err := mgr.DeserializeQuestionActivityStreams()(m, aliasMap); err == nil { this := &ActivityStreamsSubjectProperty{ activitystreamsQuestionMember: v, @@ -385,6 +409,12 @@ func DeserializeSubjectProperty(m map[string]interface{}, aliasMap map[string]st alias: alias, } return this, nil + } else if v, err := mgr.DeserializeRepositoryForgeFed()(m, aliasMap); err == nil { + this := &ActivityStreamsSubjectProperty{ + alias: alias, + forgefedRepositoryMember: v, + } + return this, nil } else if v, err := mgr.DeserializeServiceActivityStreams()(m, aliasMap); err == nil { this := &ActivityStreamsSubjectProperty{ activitystreamsServiceMember: v, @@ -403,6 +433,18 @@ func DeserializeSubjectProperty(m map[string]interface{}, aliasMap map[string]st alias: alias, } return this, nil + } else if v, err := mgr.DeserializeTicketForgeFed()(m, aliasMap); err == nil { + this := &ActivityStreamsSubjectProperty{ + alias: alias, + forgefedTicketMember: v, + } + return this, nil + } else if v, err := mgr.DeserializeTicketDependencyForgeFed()(m, aliasMap); err == nil { + this := &ActivityStreamsSubjectProperty{ + alias: alias, + forgefedTicketDependencyMember: v, + } + return this, nil } else if v, err := mgr.DeserializeTombstoneActivityStreams()(m, aliasMap); err == nil { this := &ActivityStreamsSubjectProperty{ activitystreamsTombstoneMember: v, @@ -469,8 +511,10 @@ func (this *ActivityStreamsSubjectProperty) Clear() { 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 @@ -500,14 +544,18 @@ func (this *ActivityStreamsSubjectProperty) Clear() { 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 @@ -896,6 +944,44 @@ func (this ActivityStreamsSubjectProperty) GetActivityStreamsView() vocab.Activi return this.activitystreamsViewMember } +// GetForgeFedBranch returns the value of this property. When IsForgeFedBranch +// returns false, GetForgeFedBranch will return an arbitrary value. +func (this ActivityStreamsSubjectProperty) GetForgeFedBranch() vocab.ForgeFedBranch { + return this.forgefedBranchMember +} + +// GetForgeFedCommit returns the value of this property. When IsForgeFedCommit +// returns false, GetForgeFedCommit will return an arbitrary value. +func (this ActivityStreamsSubjectProperty) GetForgeFedCommit() vocab.ForgeFedCommit { + return this.forgefedCommitMember +} + +// GetForgeFedPush returns the value of this property. When IsForgeFedPush returns +// false, GetForgeFedPush will return an arbitrary value. +func (this ActivityStreamsSubjectProperty) GetForgeFedPush() vocab.ForgeFedPush { + return this.forgefedPushMember +} + +// GetForgeFedRepository returns the value of this property. When +// IsForgeFedRepository returns false, GetForgeFedRepository will return an +// arbitrary value. +func (this ActivityStreamsSubjectProperty) GetForgeFedRepository() vocab.ForgeFedRepository { + return this.forgefedRepositoryMember +} + +// GetForgeFedTicket returns the value of this property. When IsForgeFedTicket +// returns false, GetForgeFedTicket will return an arbitrary value. +func (this ActivityStreamsSubjectProperty) GetForgeFedTicket() vocab.ForgeFedTicket { + return this.forgefedTicketMember +} + +// GetForgeFedTicketDependency returns the value of this property. When +// IsForgeFedTicketDependency returns false, GetForgeFedTicketDependency will +// return an arbitrary value. +func (this ActivityStreamsSubjectProperty) GetForgeFedTicketDependency() vocab.ForgeFedTicketDependency { + return this.forgefedTicketDependencyMember +} + // GetIRI returns the IRI of this property. When IsIRI returns false, GetIRI will // return an arbitrary value. func (this ActivityStreamsSubjectProperty) GetIRI() *url.URL { @@ -951,12 +1037,18 @@ func (this ActivityStreamsSubjectProperty) GetType() vocab.Type { 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() } @@ -1044,6 +1136,9 @@ func (this ActivityStreamsSubjectProperty) GetType() vocab.Type { if this.IsActivityStreamsProfile() { return this.GetActivityStreamsProfile() } + if this.IsForgeFedPush() { + return this.GetForgeFedPush() + } if this.IsActivityStreamsQuestion() { return this.GetActivityStreamsQuestion() } @@ -1059,6 +1154,9 @@ func (this ActivityStreamsSubjectProperty) GetType() vocab.Type { if this.IsActivityStreamsRemove() { return this.GetActivityStreamsRemove() } + if this.IsForgeFedRepository() { + return this.GetForgeFedRepository() + } if this.IsActivityStreamsService() { return this.GetActivityStreamsService() } @@ -1068,6 +1166,12 @@ func (this ActivityStreamsSubjectProperty) GetType() vocab.Type { if this.IsActivityStreamsTentativeReject() { return this.GetActivityStreamsTentativeReject() } + if this.IsForgeFedTicket() { + return this.GetForgeFedTicket() + } + if this.IsForgeFedTicketDependency() { + return this.GetForgeFedTicketDependency() + } if this.IsActivityStreamsTombstone() { return this.GetActivityStreamsTombstone() } @@ -1103,8 +1207,10 @@ func (this ActivityStreamsSubjectProperty) HasAny() bool { this.IsActivityStreamsArticle() || this.IsActivityStreamsAudio() || this.IsActivityStreamsBlock() || + this.IsForgeFedBranch() || this.IsActivityStreamsCollection() || this.IsActivityStreamsCollectionPage() || + this.IsForgeFedCommit() || this.IsActivityStreamsCreate() || this.IsActivityStreamsDelete() || this.IsActivityStreamsDislike() || @@ -1134,14 +1240,18 @@ func (this ActivityStreamsSubjectProperty) HasAny() bool { 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() || @@ -1534,6 +1644,48 @@ func (this ActivityStreamsSubjectProperty) IsActivityStreamsView() bool { return this.activitystreamsViewMember != nil } +// IsForgeFedBranch returns true if this property has a type of "Branch". When +// true, use the GetForgeFedBranch and SetForgeFedBranch methods to access and +// set this property. +func (this ActivityStreamsSubjectProperty) IsForgeFedBranch() bool { + return this.forgefedBranchMember != nil +} + +// IsForgeFedCommit returns true if this property has a type of "Commit". When +// true, use the GetForgeFedCommit and SetForgeFedCommit methods to access and +// set this property. +func (this ActivityStreamsSubjectProperty) IsForgeFedCommit() bool { + return this.forgefedCommitMember != nil +} + +// IsForgeFedPush returns true if this property has a type of "Push". When true, +// use the GetForgeFedPush and SetForgeFedPush methods to access and set this +// property. +func (this ActivityStreamsSubjectProperty) IsForgeFedPush() bool { + return this.forgefedPushMember != nil +} + +// IsForgeFedRepository returns true if this property has a type of "Repository". +// When true, use the GetForgeFedRepository and SetForgeFedRepository methods +// to access and set this property. +func (this ActivityStreamsSubjectProperty) IsForgeFedRepository() bool { + return this.forgefedRepositoryMember != nil +} + +// IsForgeFedTicket returns true if this property has a type of "Ticket". When +// true, use the GetForgeFedTicket and SetForgeFedTicket methods to access and +// set this property. +func (this ActivityStreamsSubjectProperty) IsForgeFedTicket() bool { + return this.forgefedTicketMember != nil +} + +// IsForgeFedTicketDependency returns true if this property has a type of +// "TicketDependency". When true, use the GetForgeFedTicketDependency and +// SetForgeFedTicketDependency methods to access and set this property. +func (this ActivityStreamsSubjectProperty) IsForgeFedTicketDependency() bool { + return this.forgefedTicketDependencyMember != nil +} + // IsIRI returns true if this property is an IRI. When true, use GetIRI and SetIRI // to access and set this property func (this ActivityStreamsSubjectProperty) IsIRI() bool { @@ -1581,10 +1733,14 @@ func (this ActivityStreamsSubjectProperty) JSONLDContext() map[string]string { 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() { @@ -1643,6 +1799,8 @@ func (this ActivityStreamsSubjectProperty) JSONLDContext() map[string]string { 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() { @@ -1653,12 +1811,18 @@ func (this ActivityStreamsSubjectProperty) JSONLDContext() map[string]string { 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() { @@ -1720,141 +1884,159 @@ func (this ActivityStreamsSubjectProperty) KindIndex() int { if this.IsActivityStreamsBlock() { return 10 } - if this.IsActivityStreamsCollection() { + if this.IsForgeFedBranch() { return 11 } - if this.IsActivityStreamsCollectionPage() { + if this.IsActivityStreamsCollection() { return 12 } - if this.IsActivityStreamsCreate() { + if this.IsActivityStreamsCollectionPage() { return 13 } - if this.IsActivityStreamsDelete() { + if this.IsForgeFedCommit() { return 14 } - if this.IsActivityStreamsDislike() { + if this.IsActivityStreamsCreate() { return 15 } - if this.IsActivityStreamsDocument() { + if this.IsActivityStreamsDelete() { return 16 } - if this.IsTootEmoji() { + if this.IsActivityStreamsDislike() { return 17 } - if this.IsActivityStreamsEvent() { + if this.IsActivityStreamsDocument() { return 18 } - if this.IsActivityStreamsFlag() { + if this.IsTootEmoji() { return 19 } - if this.IsActivityStreamsFollow() { + if this.IsActivityStreamsEvent() { return 20 } - if this.IsActivityStreamsGroup() { + if this.IsActivityStreamsFlag() { return 21 } - if this.IsTootIdentityProof() { + if this.IsActivityStreamsFollow() { return 22 } - if this.IsActivityStreamsIgnore() { + if this.IsActivityStreamsGroup() { return 23 } - if this.IsActivityStreamsImage() { + if this.IsTootIdentityProof() { return 24 } - if this.IsActivityStreamsIntransitiveActivity() { + if this.IsActivityStreamsIgnore() { return 25 } - if this.IsActivityStreamsInvite() { + if this.IsActivityStreamsImage() { return 26 } - if this.IsActivityStreamsJoin() { + if this.IsActivityStreamsIntransitiveActivity() { return 27 } - if this.IsActivityStreamsLeave() { + if this.IsActivityStreamsInvite() { return 28 } - if this.IsActivityStreamsLike() { + if this.IsActivityStreamsJoin() { return 29 } - if this.IsActivityStreamsListen() { + if this.IsActivityStreamsLeave() { return 30 } - if this.IsActivityStreamsMention() { + if this.IsActivityStreamsLike() { return 31 } - if this.IsActivityStreamsMove() { + if this.IsActivityStreamsListen() { return 32 } - if this.IsActivityStreamsNote() { + if this.IsActivityStreamsMention() { return 33 } - if this.IsActivityStreamsOffer() { + if this.IsActivityStreamsMove() { return 34 } - if this.IsActivityStreamsOrderedCollection() { + if this.IsActivityStreamsNote() { return 35 } - if this.IsActivityStreamsOrderedCollectionPage() { + if this.IsActivityStreamsOffer() { return 36 } - if this.IsActivityStreamsOrganization() { + if this.IsActivityStreamsOrderedCollection() { return 37 } - if this.IsActivityStreamsPage() { + if this.IsActivityStreamsOrderedCollectionPage() { return 38 } - if this.IsActivityStreamsPerson() { + if this.IsActivityStreamsOrganization() { return 39 } - if this.IsActivityStreamsPlace() { + if this.IsActivityStreamsPage() { return 40 } - if this.IsActivityStreamsProfile() { + if this.IsActivityStreamsPerson() { return 41 } - if this.IsActivityStreamsQuestion() { + if this.IsActivityStreamsPlace() { return 42 } - if this.IsActivityStreamsRead() { + if this.IsActivityStreamsProfile() { return 43 } - if this.IsActivityStreamsReject() { + if this.IsForgeFedPush() { return 44 } - if this.IsActivityStreamsRelationship() { + if this.IsActivityStreamsQuestion() { return 45 } - if this.IsActivityStreamsRemove() { + if this.IsActivityStreamsRead() { return 46 } - if this.IsActivityStreamsService() { + if this.IsActivityStreamsReject() { return 47 } - if this.IsActivityStreamsTentativeAccept() { + if this.IsActivityStreamsRelationship() { return 48 } - if this.IsActivityStreamsTentativeReject() { + if this.IsActivityStreamsRemove() { return 49 } - if this.IsActivityStreamsTombstone() { + if this.IsForgeFedRepository() { return 50 } - if this.IsActivityStreamsTravel() { + if this.IsActivityStreamsService() { return 51 } - if this.IsActivityStreamsUndo() { + if this.IsActivityStreamsTentativeAccept() { return 52 } - if this.IsActivityStreamsUpdate() { + if this.IsActivityStreamsTentativeReject() { return 53 } - if this.IsActivityStreamsVideo() { + if this.IsForgeFedTicket() { return 54 } - if this.IsActivityStreamsView() { + 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 } @@ -1894,10 +2076,14 @@ func (this ActivityStreamsSubjectProperty) LessThan(o vocab.ActivityStreamsSubje 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() { @@ -1956,6 +2142,8 @@ func (this ActivityStreamsSubjectProperty) LessThan(o vocab.ActivityStreamsSubje 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() { @@ -1966,12 +2154,18 @@ func (this ActivityStreamsSubjectProperty) LessThan(o vocab.ActivityStreamsSubje 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() { @@ -2026,10 +2220,14 @@ func (this ActivityStreamsSubjectProperty) Serialize() (interface{}, error) { 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() { @@ -2088,6 +2286,8 @@ func (this ActivityStreamsSubjectProperty) Serialize() (interface{}, error) { 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() { @@ -2098,12 +2298,18 @@ func (this ActivityStreamsSubjectProperty) Serialize() (interface{}, error) { 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() { @@ -2500,6 +2706,48 @@ func (this *ActivityStreamsSubjectProperty) SetActivityStreamsView(v vocab.Activ this.activitystreamsViewMember = v } +// SetForgeFedBranch sets the value of this property. Calling IsForgeFedBranch +// afterwards returns true. +func (this *ActivityStreamsSubjectProperty) SetForgeFedBranch(v vocab.ForgeFedBranch) { + this.Clear() + this.forgefedBranchMember = v +} + +// SetForgeFedCommit sets the value of this property. Calling IsForgeFedCommit +// afterwards returns true. +func (this *ActivityStreamsSubjectProperty) SetForgeFedCommit(v vocab.ForgeFedCommit) { + this.Clear() + this.forgefedCommitMember = v +} + +// SetForgeFedPush sets the value of this property. Calling IsForgeFedPush +// afterwards returns true. +func (this *ActivityStreamsSubjectProperty) SetForgeFedPush(v vocab.ForgeFedPush) { + this.Clear() + this.forgefedPushMember = v +} + +// SetForgeFedRepository sets the value of this property. Calling +// IsForgeFedRepository afterwards returns true. +func (this *ActivityStreamsSubjectProperty) SetForgeFedRepository(v vocab.ForgeFedRepository) { + this.Clear() + this.forgefedRepositoryMember = v +} + +// SetForgeFedTicket sets the value of this property. Calling IsForgeFedTicket +// afterwards returns true. +func (this *ActivityStreamsSubjectProperty) SetForgeFedTicket(v vocab.ForgeFedTicket) { + this.Clear() + this.forgefedTicketMember = v +} + +// SetForgeFedTicketDependency sets the value of this property. Calling +// IsForgeFedTicketDependency afterwards returns true. +func (this *ActivityStreamsSubjectProperty) SetForgeFedTicketDependency(v vocab.ForgeFedTicketDependency) { + this.Clear() + this.forgefedTicketDependencyMember = v +} + // SetIRI sets the value of this property. Calling IsIRI afterwards returns true. func (this *ActivityStreamsSubjectProperty) SetIRI(v *url.URL) { this.Clear() @@ -2567,6 +2815,10 @@ func (this *ActivityStreamsSubjectProperty) SetType(t vocab.Type) error { 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 @@ -2575,6 +2827,10 @@ func (this *ActivityStreamsSubjectProperty) SetType(t vocab.Type) error { 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 @@ -2691,6 +2947,10 @@ func (this *ActivityStreamsSubjectProperty) SetType(t vocab.Type) error { 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 @@ -2711,6 +2971,10 @@ func (this *ActivityStreamsSubjectProperty) SetType(t vocab.Type) error { 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 @@ -2723,6 +2987,14 @@ func (this *ActivityStreamsSubjectProperty) SetType(t vocab.Type) error { 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 diff --git a/streams/impl/activitystreams/property_tag/gen_pkg.go b/streams/impl/activitystreams/property_tag/gen_pkg.go index dc16492..1407af2 100644 --- a/streams/impl/activitystreams/property_tag/gen_pkg.go +++ b/streams/impl/activitystreams/property_tag/gen_pkg.go @@ -45,6 +45,10 @@ type privateManager interface { // 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" @@ -53,6 +57,10 @@ type privateManager interface { // 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" @@ -177,6 +185,9 @@ type privateManager interface { // 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" @@ -197,6 +208,10 @@ type privateManager interface { // 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" @@ -209,6 +224,14 @@ type privateManager interface { // 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" diff --git a/streams/impl/activitystreams/property_tag/gen_property_activitystreams_tag.go b/streams/impl/activitystreams/property_tag/gen_property_activitystreams_tag.go index 135eebe..2d1472f 100644 --- a/streams/impl/activitystreams/property_tag/gen_property_activitystreams_tag.go +++ b/streams/impl/activitystreams/property_tag/gen_property_activitystreams_tag.go @@ -25,8 +25,10 @@ type ActivityStreamsTagPropertyIterator struct { 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 @@ -56,14 +58,18 @@ type ActivityStreamsTagPropertyIterator struct { 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 @@ -168,6 +174,12 @@ func deserializeActivityStreamsTagPropertyIterator(i interface{}, aliasMap map[s alias: alias, } return this, nil + } else if v, err := mgr.DeserializeBranchForgeFed()(m, aliasMap); err == nil { + this := &ActivityStreamsTagPropertyIterator{ + alias: alias, + forgefedBranchMember: v, + } + return this, nil } else if v, err := mgr.DeserializeCollectionActivityStreams()(m, aliasMap); err == nil { this := &ActivityStreamsTagPropertyIterator{ activitystreamsCollectionMember: v, @@ -180,6 +192,12 @@ func deserializeActivityStreamsTagPropertyIterator(i interface{}, aliasMap map[s alias: alias, } return this, nil + } else if v, err := mgr.DeserializeCommitForgeFed()(m, aliasMap); err == nil { + this := &ActivityStreamsTagPropertyIterator{ + alias: alias, + forgefedCommitMember: v, + } + return this, nil } else if v, err := mgr.DeserializeCreateActivityStreams()(m, aliasMap); err == nil { this := &ActivityStreamsTagPropertyIterator{ activitystreamsCreateMember: v, @@ -354,6 +372,12 @@ func deserializeActivityStreamsTagPropertyIterator(i interface{}, aliasMap map[s alias: alias, } return this, nil + } else if v, err := mgr.DeserializePushForgeFed()(m, aliasMap); err == nil { + this := &ActivityStreamsTagPropertyIterator{ + alias: alias, + forgefedPushMember: v, + } + return this, nil } else if v, err := mgr.DeserializeQuestionActivityStreams()(m, aliasMap); err == nil { this := &ActivityStreamsTagPropertyIterator{ activitystreamsQuestionMember: v, @@ -384,6 +408,12 @@ func deserializeActivityStreamsTagPropertyIterator(i interface{}, aliasMap map[s alias: alias, } return this, nil + } else if v, err := mgr.DeserializeRepositoryForgeFed()(m, aliasMap); err == nil { + this := &ActivityStreamsTagPropertyIterator{ + alias: alias, + forgefedRepositoryMember: v, + } + return this, nil } else if v, err := mgr.DeserializeServiceActivityStreams()(m, aliasMap); err == nil { this := &ActivityStreamsTagPropertyIterator{ activitystreamsServiceMember: v, @@ -402,6 +432,18 @@ func deserializeActivityStreamsTagPropertyIterator(i interface{}, aliasMap map[s alias: alias, } return this, nil + } else if v, err := mgr.DeserializeTicketForgeFed()(m, aliasMap); err == nil { + this := &ActivityStreamsTagPropertyIterator{ + alias: alias, + forgefedTicketMember: v, + } + return this, nil + } else if v, err := mgr.DeserializeTicketDependencyForgeFed()(m, aliasMap); err == nil { + this := &ActivityStreamsTagPropertyIterator{ + alias: alias, + forgefedTicketDependencyMember: v, + } + return this, nil } else if v, err := mgr.DeserializeTombstoneActivityStreams()(m, aliasMap); err == nil { this := &ActivityStreamsTagPropertyIterator{ activitystreamsTombstoneMember: v, @@ -825,6 +867,44 @@ func (this ActivityStreamsTagPropertyIterator) GetActivityStreamsView() vocab.Ac return this.activitystreamsViewMember } +// GetForgeFedBranch returns the value of this property. When IsForgeFedBranch +// returns false, GetForgeFedBranch will return an arbitrary value. +func (this ActivityStreamsTagPropertyIterator) GetForgeFedBranch() vocab.ForgeFedBranch { + return this.forgefedBranchMember +} + +// GetForgeFedCommit returns the value of this property. When IsForgeFedCommit +// returns false, GetForgeFedCommit will return an arbitrary value. +func (this ActivityStreamsTagPropertyIterator) GetForgeFedCommit() vocab.ForgeFedCommit { + return this.forgefedCommitMember +} + +// GetForgeFedPush returns the value of this property. When IsForgeFedPush returns +// false, GetForgeFedPush will return an arbitrary value. +func (this ActivityStreamsTagPropertyIterator) GetForgeFedPush() vocab.ForgeFedPush { + return this.forgefedPushMember +} + +// GetForgeFedRepository returns the value of this property. When +// IsForgeFedRepository returns false, GetForgeFedRepository will return an +// arbitrary value. +func (this ActivityStreamsTagPropertyIterator) GetForgeFedRepository() vocab.ForgeFedRepository { + return this.forgefedRepositoryMember +} + +// GetForgeFedTicket returns the value of this property. When IsForgeFedTicket +// returns false, GetForgeFedTicket will return an arbitrary value. +func (this ActivityStreamsTagPropertyIterator) GetForgeFedTicket() vocab.ForgeFedTicket { + return this.forgefedTicketMember +} + +// GetForgeFedTicketDependency returns the value of this property. When +// IsForgeFedTicketDependency returns false, GetForgeFedTicketDependency will +// return an arbitrary value. +func (this ActivityStreamsTagPropertyIterator) GetForgeFedTicketDependency() vocab.ForgeFedTicketDependency { + return this.forgefedTicketDependencyMember +} + // GetIRI returns the IRI of this property. When IsIRI returns false, GetIRI will // return an arbitrary value. func (this ActivityStreamsTagPropertyIterator) GetIRI() *url.URL { @@ -880,12 +960,18 @@ func (this ActivityStreamsTagPropertyIterator) GetType() vocab.Type { 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() } @@ -973,6 +1059,9 @@ func (this ActivityStreamsTagPropertyIterator) GetType() vocab.Type { if this.IsActivityStreamsProfile() { return this.GetActivityStreamsProfile() } + if this.IsForgeFedPush() { + return this.GetForgeFedPush() + } if this.IsActivityStreamsQuestion() { return this.GetActivityStreamsQuestion() } @@ -988,6 +1077,9 @@ func (this ActivityStreamsTagPropertyIterator) GetType() vocab.Type { if this.IsActivityStreamsRemove() { return this.GetActivityStreamsRemove() } + if this.IsForgeFedRepository() { + return this.GetForgeFedRepository() + } if this.IsActivityStreamsService() { return this.GetActivityStreamsService() } @@ -997,6 +1089,12 @@ func (this ActivityStreamsTagPropertyIterator) GetType() vocab.Type { if this.IsActivityStreamsTentativeReject() { return this.GetActivityStreamsTentativeReject() } + if this.IsForgeFedTicket() { + return this.GetForgeFedTicket() + } + if this.IsForgeFedTicketDependency() { + return this.GetForgeFedTicketDependency() + } if this.IsActivityStreamsTombstone() { return this.GetActivityStreamsTombstone() } @@ -1032,8 +1130,10 @@ func (this ActivityStreamsTagPropertyIterator) HasAny() bool { this.IsActivityStreamsArticle() || this.IsActivityStreamsAudio() || this.IsActivityStreamsBlock() || + this.IsForgeFedBranch() || this.IsActivityStreamsCollection() || this.IsActivityStreamsCollectionPage() || + this.IsForgeFedCommit() || this.IsActivityStreamsCreate() || this.IsActivityStreamsDelete() || this.IsActivityStreamsDislike() || @@ -1063,14 +1163,18 @@ func (this ActivityStreamsTagPropertyIterator) HasAny() bool { 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() || @@ -1463,6 +1567,48 @@ func (this ActivityStreamsTagPropertyIterator) IsActivityStreamsView() bool { return this.activitystreamsViewMember != nil } +// IsForgeFedBranch returns true if this property has a type of "Branch". When +// true, use the GetForgeFedBranch and SetForgeFedBranch methods to access and +// set this property. +func (this ActivityStreamsTagPropertyIterator) IsForgeFedBranch() bool { + return this.forgefedBranchMember != nil +} + +// IsForgeFedCommit returns true if this property has a type of "Commit". When +// true, use the GetForgeFedCommit and SetForgeFedCommit methods to access and +// set this property. +func (this ActivityStreamsTagPropertyIterator) IsForgeFedCommit() bool { + return this.forgefedCommitMember != nil +} + +// IsForgeFedPush returns true if this property has a type of "Push". When true, +// use the GetForgeFedPush and SetForgeFedPush methods to access and set this +// property. +func (this ActivityStreamsTagPropertyIterator) IsForgeFedPush() bool { + return this.forgefedPushMember != nil +} + +// IsForgeFedRepository returns true if this property has a type of "Repository". +// When true, use the GetForgeFedRepository and SetForgeFedRepository methods +// to access and set this property. +func (this ActivityStreamsTagPropertyIterator) IsForgeFedRepository() bool { + return this.forgefedRepositoryMember != nil +} + +// IsForgeFedTicket returns true if this property has a type of "Ticket". When +// true, use the GetForgeFedTicket and SetForgeFedTicket methods to access and +// set this property. +func (this ActivityStreamsTagPropertyIterator) IsForgeFedTicket() bool { + return this.forgefedTicketMember != nil +} + +// IsForgeFedTicketDependency returns true if this property has a type of +// "TicketDependency". When true, use the GetForgeFedTicketDependency and +// SetForgeFedTicketDependency methods to access and set this property. +func (this ActivityStreamsTagPropertyIterator) IsForgeFedTicketDependency() bool { + return this.forgefedTicketDependencyMember != nil +} + // IsIRI returns true if this property is an IRI. When true, use GetIRI and SetIRI // to access and set this property func (this ActivityStreamsTagPropertyIterator) IsIRI() bool { @@ -1510,10 +1656,14 @@ func (this ActivityStreamsTagPropertyIterator) JSONLDContext() map[string]string 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() { @@ -1572,6 +1722,8 @@ func (this ActivityStreamsTagPropertyIterator) JSONLDContext() map[string]string 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() { @@ -1582,12 +1734,18 @@ func (this ActivityStreamsTagPropertyIterator) JSONLDContext() map[string]string 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() { @@ -1649,141 +1807,159 @@ func (this ActivityStreamsTagPropertyIterator) KindIndex() int { if this.IsActivityStreamsBlock() { return 10 } - if this.IsActivityStreamsCollection() { + if this.IsForgeFedBranch() { return 11 } - if this.IsActivityStreamsCollectionPage() { + if this.IsActivityStreamsCollection() { return 12 } - if this.IsActivityStreamsCreate() { + if this.IsActivityStreamsCollectionPage() { return 13 } - if this.IsActivityStreamsDelete() { + if this.IsForgeFedCommit() { return 14 } - if this.IsActivityStreamsDislike() { + if this.IsActivityStreamsCreate() { return 15 } - if this.IsActivityStreamsDocument() { + if this.IsActivityStreamsDelete() { return 16 } - if this.IsTootEmoji() { + if this.IsActivityStreamsDislike() { return 17 } - if this.IsActivityStreamsEvent() { + if this.IsActivityStreamsDocument() { return 18 } - if this.IsActivityStreamsFlag() { + if this.IsTootEmoji() { return 19 } - if this.IsActivityStreamsFollow() { + if this.IsActivityStreamsEvent() { return 20 } - if this.IsActivityStreamsGroup() { + if this.IsActivityStreamsFlag() { return 21 } - if this.IsTootIdentityProof() { + if this.IsActivityStreamsFollow() { return 22 } - if this.IsActivityStreamsIgnore() { + if this.IsActivityStreamsGroup() { return 23 } - if this.IsActivityStreamsImage() { + if this.IsTootIdentityProof() { return 24 } - if this.IsActivityStreamsIntransitiveActivity() { + if this.IsActivityStreamsIgnore() { return 25 } - if this.IsActivityStreamsInvite() { + if this.IsActivityStreamsImage() { return 26 } - if this.IsActivityStreamsJoin() { + if this.IsActivityStreamsIntransitiveActivity() { return 27 } - if this.IsActivityStreamsLeave() { + if this.IsActivityStreamsInvite() { return 28 } - if this.IsActivityStreamsLike() { + if this.IsActivityStreamsJoin() { return 29 } - if this.IsActivityStreamsListen() { + if this.IsActivityStreamsLeave() { return 30 } - if this.IsActivityStreamsMention() { + if this.IsActivityStreamsLike() { return 31 } - if this.IsActivityStreamsMove() { + if this.IsActivityStreamsListen() { return 32 } - if this.IsActivityStreamsNote() { + if this.IsActivityStreamsMention() { return 33 } - if this.IsActivityStreamsOffer() { + if this.IsActivityStreamsMove() { return 34 } - if this.IsActivityStreamsOrderedCollection() { + if this.IsActivityStreamsNote() { return 35 } - if this.IsActivityStreamsOrderedCollectionPage() { + if this.IsActivityStreamsOffer() { return 36 } - if this.IsActivityStreamsOrganization() { + if this.IsActivityStreamsOrderedCollection() { return 37 } - if this.IsActivityStreamsPage() { + if this.IsActivityStreamsOrderedCollectionPage() { return 38 } - if this.IsActivityStreamsPerson() { + if this.IsActivityStreamsOrganization() { return 39 } - if this.IsActivityStreamsPlace() { + if this.IsActivityStreamsPage() { return 40 } - if this.IsActivityStreamsProfile() { + if this.IsActivityStreamsPerson() { return 41 } - if this.IsActivityStreamsQuestion() { + if this.IsActivityStreamsPlace() { return 42 } - if this.IsActivityStreamsRead() { + if this.IsActivityStreamsProfile() { return 43 } - if this.IsActivityStreamsReject() { + if this.IsForgeFedPush() { return 44 } - if this.IsActivityStreamsRelationship() { + if this.IsActivityStreamsQuestion() { return 45 } - if this.IsActivityStreamsRemove() { + if this.IsActivityStreamsRead() { return 46 } - if this.IsActivityStreamsService() { + if this.IsActivityStreamsReject() { return 47 } - if this.IsActivityStreamsTentativeAccept() { + if this.IsActivityStreamsRelationship() { return 48 } - if this.IsActivityStreamsTentativeReject() { + if this.IsActivityStreamsRemove() { return 49 } - if this.IsActivityStreamsTombstone() { + if this.IsForgeFedRepository() { return 50 } - if this.IsActivityStreamsTravel() { + if this.IsActivityStreamsService() { return 51 } - if this.IsActivityStreamsUndo() { + if this.IsActivityStreamsTentativeAccept() { return 52 } - if this.IsActivityStreamsUpdate() { + if this.IsActivityStreamsTentativeReject() { return 53 } - if this.IsActivityStreamsVideo() { + if this.IsForgeFedTicket() { return 54 } - if this.IsActivityStreamsView() { + 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 } @@ -1823,10 +1999,14 @@ func (this ActivityStreamsTagPropertyIterator) LessThan(o vocab.ActivityStreamsT 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() { @@ -1885,6 +2065,8 @@ func (this ActivityStreamsTagPropertyIterator) LessThan(o vocab.ActivityStreamsT 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() { @@ -1895,12 +2077,18 @@ func (this ActivityStreamsTagPropertyIterator) LessThan(o vocab.ActivityStreamsT 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() { @@ -2324,6 +2512,48 @@ func (this *ActivityStreamsTagPropertyIterator) SetActivityStreamsView(v vocab.A this.activitystreamsViewMember = v } +// SetForgeFedBranch sets the value of this property. Calling IsForgeFedBranch +// afterwards returns true. +func (this *ActivityStreamsTagPropertyIterator) SetForgeFedBranch(v vocab.ForgeFedBranch) { + this.clear() + this.forgefedBranchMember = v +} + +// SetForgeFedCommit sets the value of this property. Calling IsForgeFedCommit +// afterwards returns true. +func (this *ActivityStreamsTagPropertyIterator) SetForgeFedCommit(v vocab.ForgeFedCommit) { + this.clear() + this.forgefedCommitMember = v +} + +// SetForgeFedPush sets the value of this property. Calling IsForgeFedPush +// afterwards returns true. +func (this *ActivityStreamsTagPropertyIterator) SetForgeFedPush(v vocab.ForgeFedPush) { + this.clear() + this.forgefedPushMember = v +} + +// SetForgeFedRepository sets the value of this property. Calling +// IsForgeFedRepository afterwards returns true. +func (this *ActivityStreamsTagPropertyIterator) SetForgeFedRepository(v vocab.ForgeFedRepository) { + this.clear() + this.forgefedRepositoryMember = v +} + +// SetForgeFedTicket sets the value of this property. Calling IsForgeFedTicket +// afterwards returns true. +func (this *ActivityStreamsTagPropertyIterator) SetForgeFedTicket(v vocab.ForgeFedTicket) { + this.clear() + this.forgefedTicketMember = v +} + +// SetForgeFedTicketDependency sets the value of this property. Calling +// IsForgeFedTicketDependency afterwards returns true. +func (this *ActivityStreamsTagPropertyIterator) SetForgeFedTicketDependency(v vocab.ForgeFedTicketDependency) { + this.clear() + this.forgefedTicketDependencyMember = v +} + // SetIRI sets the value of this property. Calling IsIRI afterwards returns true. func (this *ActivityStreamsTagPropertyIterator) SetIRI(v *url.URL) { this.clear() @@ -2391,6 +2621,10 @@ func (this *ActivityStreamsTagPropertyIterator) SetType(t vocab.Type) error { 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 @@ -2399,6 +2633,10 @@ func (this *ActivityStreamsTagPropertyIterator) SetType(t vocab.Type) error { 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 @@ -2515,6 +2753,10 @@ func (this *ActivityStreamsTagPropertyIterator) SetType(t vocab.Type) error { 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 @@ -2535,6 +2777,10 @@ func (this *ActivityStreamsTagPropertyIterator) SetType(t vocab.Type) error { 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 @@ -2547,6 +2793,14 @@ func (this *ActivityStreamsTagPropertyIterator) SetType(t vocab.Type) error { 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 @@ -2589,8 +2843,10 @@ func (this *ActivityStreamsTagPropertyIterator) clear() { 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 @@ -2620,14 +2876,18 @@ func (this *ActivityStreamsTagPropertyIterator) clear() { 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 @@ -2665,10 +2925,14 @@ func (this ActivityStreamsTagPropertyIterator) serialize() (interface{}, error) 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() { @@ -2727,6 +2991,8 @@ func (this ActivityStreamsTagPropertyIterator) serialize() (interface{}, error) 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() { @@ -2737,12 +3003,18 @@ func (this ActivityStreamsTagPropertyIterator) serialize() (interface{}, error) 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() { @@ -3420,6 +3692,73 @@ func (this *ActivityStreamsTagProperty) AppendActivityStreamsView(v vocab.Activi }) } +// AppendForgeFedBranch appends a Branch value to the back of a list of the +// property "tag". Invalidates iterators that are traversing using Prev. +func (this *ActivityStreamsTagProperty) AppendForgeFedBranch(v vocab.ForgeFedBranch) { + this.properties = append(this.properties, &ActivityStreamsTagPropertyIterator{ + alias: this.alias, + forgefedBranchMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendForgeFedCommit appends a Commit value to the back of a list of the +// property "tag". Invalidates iterators that are traversing using Prev. +func (this *ActivityStreamsTagProperty) AppendForgeFedCommit(v vocab.ForgeFedCommit) { + this.properties = append(this.properties, &ActivityStreamsTagPropertyIterator{ + alias: this.alias, + forgefedCommitMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendForgeFedPush appends a Push value to the back of a list of the property +// "tag". Invalidates iterators that are traversing using Prev. +func (this *ActivityStreamsTagProperty) AppendForgeFedPush(v vocab.ForgeFedPush) { + this.properties = append(this.properties, &ActivityStreamsTagPropertyIterator{ + alias: this.alias, + forgefedPushMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendForgeFedRepository appends a Repository value to the back of a list of +// the property "tag". Invalidates iterators that are traversing using Prev. +func (this *ActivityStreamsTagProperty) AppendForgeFedRepository(v vocab.ForgeFedRepository) { + this.properties = append(this.properties, &ActivityStreamsTagPropertyIterator{ + alias: this.alias, + forgefedRepositoryMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendForgeFedTicket appends a Ticket value to the back of a list of the +// property "tag". Invalidates iterators that are traversing using Prev. +func (this *ActivityStreamsTagProperty) AppendForgeFedTicket(v vocab.ForgeFedTicket) { + this.properties = append(this.properties, &ActivityStreamsTagPropertyIterator{ + alias: this.alias, + forgefedTicketMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendForgeFedTicketDependency appends a TicketDependency value to the back of +// a list of the property "tag". Invalidates iterators that are traversing +// using Prev. +func (this *ActivityStreamsTagProperty) AppendForgeFedTicketDependency(v vocab.ForgeFedTicketDependency) { + this.properties = append(this.properties, &ActivityStreamsTagPropertyIterator{ + alias: this.alias, + forgefedTicketDependencyMember: v, + myIdx: this.Len(), + parent: this, + }) +} + // AppendIRI appends an IRI value to the back of a list of the property "tag" func (this *ActivityStreamsTagProperty) AppendIRI(v *url.URL) { this.properties = append(this.properties, &ActivityStreamsTagPropertyIterator{ @@ -4415,6 +4754,108 @@ func (this *ActivityStreamsTagProperty) InsertActivityStreamsView(idx int, v voc } } +// InsertForgeFedBranch inserts a Branch value at the specified index for a +// property "tag". Existing elements at that index and higher are shifted back +// once. Invalidates all iterators. +func (this *ActivityStreamsTagProperty) InsertForgeFedBranch(idx int, v vocab.ForgeFedBranch) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsTagPropertyIterator{ + alias: this.alias, + forgefedBranchMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertForgeFedCommit inserts a Commit value at the specified index for a +// property "tag". Existing elements at that index and higher are shifted back +// once. Invalidates all iterators. +func (this *ActivityStreamsTagProperty) InsertForgeFedCommit(idx int, v vocab.ForgeFedCommit) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsTagPropertyIterator{ + alias: this.alias, + forgefedCommitMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertForgeFedPush inserts a Push value at the specified index for a property +// "tag". Existing elements at that index and higher are shifted back once. +// Invalidates all iterators. +func (this *ActivityStreamsTagProperty) InsertForgeFedPush(idx int, v vocab.ForgeFedPush) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsTagPropertyIterator{ + alias: this.alias, + forgefedPushMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertForgeFedRepository inserts a Repository value at the specified index for +// a property "tag". Existing elements at that index and higher are shifted +// back once. Invalidates all iterators. +func (this *ActivityStreamsTagProperty) InsertForgeFedRepository(idx int, v vocab.ForgeFedRepository) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsTagPropertyIterator{ + alias: this.alias, + forgefedRepositoryMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertForgeFedTicket inserts a Ticket value at the specified index for a +// property "tag". Existing elements at that index and higher are shifted back +// once. Invalidates all iterators. +func (this *ActivityStreamsTagProperty) InsertForgeFedTicket(idx int, v vocab.ForgeFedTicket) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsTagPropertyIterator{ + alias: this.alias, + forgefedTicketMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertForgeFedTicketDependency inserts a TicketDependency value at the +// specified index for a property "tag". Existing elements at that index and +// higher are shifted back once. Invalidates all iterators. +func (this *ActivityStreamsTagProperty) InsertForgeFedTicketDependency(idx int, v vocab.ForgeFedTicketDependency) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsTagPropertyIterator{ + alias: this.alias, + forgefedTicketDependencyMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + // Insert inserts an IRI value at the specified index for a property "tag". // Existing elements at that index and higher are shifted back once. // Invalidates all iterators. @@ -4572,182 +5013,206 @@ func (this ActivityStreamsTagProperty) Less(i, j int) bool { rhs := this.properties[j].GetActivityStreamsBlock() return lhs.LessThan(rhs) } else if idx1 == 11 { + lhs := this.properties[i].GetForgeFedBranch() + rhs := this.properties[j].GetForgeFedBranch() + return lhs.LessThan(rhs) + } else if idx1 == 12 { lhs := this.properties[i].GetActivityStreamsCollection() rhs := this.properties[j].GetActivityStreamsCollection() return lhs.LessThan(rhs) - } else if idx1 == 12 { + } else if idx1 == 13 { lhs := this.properties[i].GetActivityStreamsCollectionPage() rhs := this.properties[j].GetActivityStreamsCollectionPage() return lhs.LessThan(rhs) - } else if idx1 == 13 { + } else if idx1 == 14 { + lhs := this.properties[i].GetForgeFedCommit() + rhs := this.properties[j].GetForgeFedCommit() + return lhs.LessThan(rhs) + } else if idx1 == 15 { lhs := this.properties[i].GetActivityStreamsCreate() rhs := this.properties[j].GetActivityStreamsCreate() return lhs.LessThan(rhs) - } else if idx1 == 14 { + } else if idx1 == 16 { lhs := this.properties[i].GetActivityStreamsDelete() rhs := this.properties[j].GetActivityStreamsDelete() return lhs.LessThan(rhs) - } else if idx1 == 15 { + } else if idx1 == 17 { lhs := this.properties[i].GetActivityStreamsDislike() rhs := this.properties[j].GetActivityStreamsDislike() return lhs.LessThan(rhs) - } else if idx1 == 16 { + } else if idx1 == 18 { lhs := this.properties[i].GetActivityStreamsDocument() rhs := this.properties[j].GetActivityStreamsDocument() return lhs.LessThan(rhs) - } else if idx1 == 17 { + } else if idx1 == 19 { lhs := this.properties[i].GetTootEmoji() rhs := this.properties[j].GetTootEmoji() return lhs.LessThan(rhs) - } else if idx1 == 18 { + } else if idx1 == 20 { lhs := this.properties[i].GetActivityStreamsEvent() rhs := this.properties[j].GetActivityStreamsEvent() return lhs.LessThan(rhs) - } else if idx1 == 19 { + } else if idx1 == 21 { lhs := this.properties[i].GetActivityStreamsFlag() rhs := this.properties[j].GetActivityStreamsFlag() return lhs.LessThan(rhs) - } else if idx1 == 20 { + } else if idx1 == 22 { lhs := this.properties[i].GetActivityStreamsFollow() rhs := this.properties[j].GetActivityStreamsFollow() return lhs.LessThan(rhs) - } else if idx1 == 21 { + } else if idx1 == 23 { lhs := this.properties[i].GetActivityStreamsGroup() rhs := this.properties[j].GetActivityStreamsGroup() return lhs.LessThan(rhs) - } else if idx1 == 22 { + } else if idx1 == 24 { lhs := this.properties[i].GetTootIdentityProof() rhs := this.properties[j].GetTootIdentityProof() return lhs.LessThan(rhs) - } else if idx1 == 23 { + } else if idx1 == 25 { lhs := this.properties[i].GetActivityStreamsIgnore() rhs := this.properties[j].GetActivityStreamsIgnore() return lhs.LessThan(rhs) - } else if idx1 == 24 { + } else if idx1 == 26 { lhs := this.properties[i].GetActivityStreamsImage() rhs := this.properties[j].GetActivityStreamsImage() return lhs.LessThan(rhs) - } else if idx1 == 25 { + } else if idx1 == 27 { lhs := this.properties[i].GetActivityStreamsIntransitiveActivity() rhs := this.properties[j].GetActivityStreamsIntransitiveActivity() return lhs.LessThan(rhs) - } else if idx1 == 26 { + } else if idx1 == 28 { lhs := this.properties[i].GetActivityStreamsInvite() rhs := this.properties[j].GetActivityStreamsInvite() return lhs.LessThan(rhs) - } else if idx1 == 27 { + } else if idx1 == 29 { lhs := this.properties[i].GetActivityStreamsJoin() rhs := this.properties[j].GetActivityStreamsJoin() return lhs.LessThan(rhs) - } else if idx1 == 28 { + } else if idx1 == 30 { lhs := this.properties[i].GetActivityStreamsLeave() rhs := this.properties[j].GetActivityStreamsLeave() return lhs.LessThan(rhs) - } else if idx1 == 29 { + } else if idx1 == 31 { lhs := this.properties[i].GetActivityStreamsLike() rhs := this.properties[j].GetActivityStreamsLike() return lhs.LessThan(rhs) - } else if idx1 == 30 { + } else if idx1 == 32 { lhs := this.properties[i].GetActivityStreamsListen() rhs := this.properties[j].GetActivityStreamsListen() return lhs.LessThan(rhs) - } else if idx1 == 31 { + } else if idx1 == 33 { lhs := this.properties[i].GetActivityStreamsMention() rhs := this.properties[j].GetActivityStreamsMention() return lhs.LessThan(rhs) - } else if idx1 == 32 { + } else if idx1 == 34 { lhs := this.properties[i].GetActivityStreamsMove() rhs := this.properties[j].GetActivityStreamsMove() return lhs.LessThan(rhs) - } else if idx1 == 33 { + } else if idx1 == 35 { lhs := this.properties[i].GetActivityStreamsNote() rhs := this.properties[j].GetActivityStreamsNote() return lhs.LessThan(rhs) - } else if idx1 == 34 { + } else if idx1 == 36 { lhs := this.properties[i].GetActivityStreamsOffer() rhs := this.properties[j].GetActivityStreamsOffer() return lhs.LessThan(rhs) - } else if idx1 == 35 { + } else if idx1 == 37 { lhs := this.properties[i].GetActivityStreamsOrderedCollection() rhs := this.properties[j].GetActivityStreamsOrderedCollection() return lhs.LessThan(rhs) - } else if idx1 == 36 { + } else if idx1 == 38 { lhs := this.properties[i].GetActivityStreamsOrderedCollectionPage() rhs := this.properties[j].GetActivityStreamsOrderedCollectionPage() return lhs.LessThan(rhs) - } else if idx1 == 37 { + } else if idx1 == 39 { lhs := this.properties[i].GetActivityStreamsOrganization() rhs := this.properties[j].GetActivityStreamsOrganization() return lhs.LessThan(rhs) - } else if idx1 == 38 { + } else if idx1 == 40 { lhs := this.properties[i].GetActivityStreamsPage() rhs := this.properties[j].GetActivityStreamsPage() return lhs.LessThan(rhs) - } else if idx1 == 39 { + } else if idx1 == 41 { lhs := this.properties[i].GetActivityStreamsPerson() rhs := this.properties[j].GetActivityStreamsPerson() return lhs.LessThan(rhs) - } else if idx1 == 40 { + } else if idx1 == 42 { lhs := this.properties[i].GetActivityStreamsPlace() rhs := this.properties[j].GetActivityStreamsPlace() return lhs.LessThan(rhs) - } else if idx1 == 41 { + } else if idx1 == 43 { lhs := this.properties[i].GetActivityStreamsProfile() rhs := this.properties[j].GetActivityStreamsProfile() return lhs.LessThan(rhs) - } else if idx1 == 42 { + } else if idx1 == 44 { + lhs := this.properties[i].GetForgeFedPush() + rhs := this.properties[j].GetForgeFedPush() + return lhs.LessThan(rhs) + } else if idx1 == 45 { lhs := this.properties[i].GetActivityStreamsQuestion() rhs := this.properties[j].GetActivityStreamsQuestion() return lhs.LessThan(rhs) - } else if idx1 == 43 { + } else if idx1 == 46 { lhs := this.properties[i].GetActivityStreamsRead() rhs := this.properties[j].GetActivityStreamsRead() return lhs.LessThan(rhs) - } else if idx1 == 44 { + } else if idx1 == 47 { lhs := this.properties[i].GetActivityStreamsReject() rhs := this.properties[j].GetActivityStreamsReject() return lhs.LessThan(rhs) - } else if idx1 == 45 { + } else if idx1 == 48 { lhs := this.properties[i].GetActivityStreamsRelationship() rhs := this.properties[j].GetActivityStreamsRelationship() return lhs.LessThan(rhs) - } else if idx1 == 46 { + } else if idx1 == 49 { lhs := this.properties[i].GetActivityStreamsRemove() rhs := this.properties[j].GetActivityStreamsRemove() return lhs.LessThan(rhs) - } else if idx1 == 47 { + } else if idx1 == 50 { + lhs := this.properties[i].GetForgeFedRepository() + rhs := this.properties[j].GetForgeFedRepository() + return lhs.LessThan(rhs) + } else if idx1 == 51 { lhs := this.properties[i].GetActivityStreamsService() rhs := this.properties[j].GetActivityStreamsService() return lhs.LessThan(rhs) - } else if idx1 == 48 { + } else if idx1 == 52 { lhs := this.properties[i].GetActivityStreamsTentativeAccept() rhs := this.properties[j].GetActivityStreamsTentativeAccept() return lhs.LessThan(rhs) - } else if idx1 == 49 { + } else if idx1 == 53 { lhs := this.properties[i].GetActivityStreamsTentativeReject() rhs := this.properties[j].GetActivityStreamsTentativeReject() return lhs.LessThan(rhs) - } else if idx1 == 50 { + } else if idx1 == 54 { + lhs := this.properties[i].GetForgeFedTicket() + rhs := this.properties[j].GetForgeFedTicket() + return lhs.LessThan(rhs) + } else if idx1 == 55 { + lhs := this.properties[i].GetForgeFedTicketDependency() + rhs := this.properties[j].GetForgeFedTicketDependency() + return lhs.LessThan(rhs) + } else if idx1 == 56 { lhs := this.properties[i].GetActivityStreamsTombstone() rhs := this.properties[j].GetActivityStreamsTombstone() return lhs.LessThan(rhs) - } else if idx1 == 51 { + } else if idx1 == 57 { lhs := this.properties[i].GetActivityStreamsTravel() rhs := this.properties[j].GetActivityStreamsTravel() return lhs.LessThan(rhs) - } else if idx1 == 52 { + } else if idx1 == 58 { lhs := this.properties[i].GetActivityStreamsUndo() rhs := this.properties[j].GetActivityStreamsUndo() return lhs.LessThan(rhs) - } else if idx1 == 53 { + } else if idx1 == 59 { lhs := this.properties[i].GetActivityStreamsUpdate() rhs := this.properties[j].GetActivityStreamsUpdate() return lhs.LessThan(rhs) - } else if idx1 == 54 { + } else if idx1 == 60 { lhs := this.properties[i].GetActivityStreamsVideo() rhs := this.properties[j].GetActivityStreamsVideo() return lhs.LessThan(rhs) - } else if idx1 == 55 { + } else if idx1 == 61 { lhs := this.properties[i].GetActivityStreamsView() rhs := this.properties[j].GetActivityStreamsView() return lhs.LessThan(rhs) @@ -5548,6 +6013,90 @@ func (this *ActivityStreamsTagProperty) PrependActivityStreamsView(v vocab.Activ } } +// PrependForgeFedBranch prepends a Branch value to the front of a list of the +// property "tag". Invalidates all iterators. +func (this *ActivityStreamsTagProperty) PrependForgeFedBranch(v vocab.ForgeFedBranch) { + this.properties = append([]*ActivityStreamsTagPropertyIterator{{ + alias: this.alias, + forgefedBranchMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependForgeFedCommit prepends a Commit value to the front of a list of the +// property "tag". Invalidates all iterators. +func (this *ActivityStreamsTagProperty) PrependForgeFedCommit(v vocab.ForgeFedCommit) { + this.properties = append([]*ActivityStreamsTagPropertyIterator{{ + alias: this.alias, + forgefedCommitMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependForgeFedPush prepends a Push value to the front of a list of the +// property "tag". Invalidates all iterators. +func (this *ActivityStreamsTagProperty) PrependForgeFedPush(v vocab.ForgeFedPush) { + this.properties = append([]*ActivityStreamsTagPropertyIterator{{ + alias: this.alias, + forgefedPushMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependForgeFedRepository prepends a Repository value to the front of a list of +// the property "tag". Invalidates all iterators. +func (this *ActivityStreamsTagProperty) PrependForgeFedRepository(v vocab.ForgeFedRepository) { + this.properties = append([]*ActivityStreamsTagPropertyIterator{{ + alias: this.alias, + forgefedRepositoryMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependForgeFedTicket prepends a Ticket value to the front of a list of the +// property "tag". Invalidates all iterators. +func (this *ActivityStreamsTagProperty) PrependForgeFedTicket(v vocab.ForgeFedTicket) { + this.properties = append([]*ActivityStreamsTagPropertyIterator{{ + alias: this.alias, + forgefedTicketMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependForgeFedTicketDependency prepends a TicketDependency value to the front +// of a list of the property "tag". Invalidates all iterators. +func (this *ActivityStreamsTagProperty) PrependForgeFedTicketDependency(v vocab.ForgeFedTicketDependency) { + this.properties = append([]*ActivityStreamsTagPropertyIterator{{ + alias: this.alias, + forgefedTicketDependencyMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + // PrependIRI prepends an IRI value to the front of a list of the property "tag". func (this *ActivityStreamsTagProperty) PrependIRI(v *url.URL) { this.properties = append([]*ActivityStreamsTagPropertyIterator{{ @@ -6343,6 +6892,83 @@ func (this *ActivityStreamsTagProperty) SetActivityStreamsView(idx int, v vocab. } } +// SetForgeFedBranch sets a Branch value to be at the specified index for the +// property "tag". Panics if the index is out of bounds. Invalidates all +// iterators. +func (this *ActivityStreamsTagProperty) SetForgeFedBranch(idx int, v vocab.ForgeFedBranch) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsTagPropertyIterator{ + alias: this.alias, + forgefedBranchMember: v, + myIdx: idx, + parent: this, + } +} + +// SetForgeFedCommit sets a Commit value to be at the specified index for the +// property "tag". Panics if the index is out of bounds. Invalidates all +// iterators. +func (this *ActivityStreamsTagProperty) SetForgeFedCommit(idx int, v vocab.ForgeFedCommit) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsTagPropertyIterator{ + alias: this.alias, + forgefedCommitMember: v, + myIdx: idx, + parent: this, + } +} + +// SetForgeFedPush sets a Push value to be at the specified index for the property +// "tag". Panics if the index is out of bounds. Invalidates all iterators. +func (this *ActivityStreamsTagProperty) SetForgeFedPush(idx int, v vocab.ForgeFedPush) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsTagPropertyIterator{ + alias: this.alias, + forgefedPushMember: v, + myIdx: idx, + parent: this, + } +} + +// SetForgeFedRepository sets a Repository value to be at the specified index for +// the property "tag". Panics if the index is out of bounds. Invalidates all +// iterators. +func (this *ActivityStreamsTagProperty) SetForgeFedRepository(idx int, v vocab.ForgeFedRepository) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsTagPropertyIterator{ + alias: this.alias, + forgefedRepositoryMember: v, + myIdx: idx, + parent: this, + } +} + +// SetForgeFedTicket sets a Ticket value to be at the specified index for the +// property "tag". Panics if the index is out of bounds. Invalidates all +// iterators. +func (this *ActivityStreamsTagProperty) SetForgeFedTicket(idx int, v vocab.ForgeFedTicket) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsTagPropertyIterator{ + alias: this.alias, + forgefedTicketMember: v, + myIdx: idx, + parent: this, + } +} + +// SetForgeFedTicketDependency sets a TicketDependency value to be at the +// specified index for the property "tag". Panics if the index is out of +// bounds. Invalidates all iterators. +func (this *ActivityStreamsTagProperty) SetForgeFedTicketDependency(idx int, v vocab.ForgeFedTicketDependency) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsTagPropertyIterator{ + alias: this.alias, + forgefedTicketDependencyMember: v, + myIdx: idx, + parent: this, + } +} + // SetIRI sets an IRI value to be at the specified index for the property "tag". // Panics if the index is out of bounds. func (this *ActivityStreamsTagProperty) SetIRI(idx int, v *url.URL) { diff --git a/streams/impl/activitystreams/property_target/gen_pkg.go b/streams/impl/activitystreams/property_target/gen_pkg.go index 91e73ef..e2404b5 100644 --- a/streams/impl/activitystreams/property_target/gen_pkg.go +++ b/streams/impl/activitystreams/property_target/gen_pkg.go @@ -45,6 +45,10 @@ type privateManager interface { // 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" @@ -53,6 +57,10 @@ type privateManager interface { // 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" @@ -177,6 +185,9 @@ type privateManager interface { // 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" @@ -197,6 +208,10 @@ type privateManager interface { // 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" @@ -209,6 +224,14 @@ type privateManager interface { // 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" diff --git a/streams/impl/activitystreams/property_target/gen_property_activitystreams_target.go b/streams/impl/activitystreams/property_target/gen_property_activitystreams_target.go index 495cdab..f5d293a 100644 --- a/streams/impl/activitystreams/property_target/gen_property_activitystreams_target.go +++ b/streams/impl/activitystreams/property_target/gen_property_activitystreams_target.go @@ -25,8 +25,10 @@ type ActivityStreamsTargetPropertyIterator struct { 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 @@ -56,14 +58,18 @@ type ActivityStreamsTargetPropertyIterator struct { 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 @@ -169,6 +175,12 @@ func deserializeActivityStreamsTargetPropertyIterator(i interface{}, aliasMap ma alias: alias, } return this, nil + } else if v, err := mgr.DeserializeBranchForgeFed()(m, aliasMap); err == nil { + this := &ActivityStreamsTargetPropertyIterator{ + alias: alias, + forgefedBranchMember: v, + } + return this, nil } else if v, err := mgr.DeserializeCollectionActivityStreams()(m, aliasMap); err == nil { this := &ActivityStreamsTargetPropertyIterator{ activitystreamsCollectionMember: v, @@ -181,6 +193,12 @@ func deserializeActivityStreamsTargetPropertyIterator(i interface{}, aliasMap ma alias: alias, } return this, nil + } else if v, err := mgr.DeserializeCommitForgeFed()(m, aliasMap); err == nil { + this := &ActivityStreamsTargetPropertyIterator{ + alias: alias, + forgefedCommitMember: v, + } + return this, nil } else if v, err := mgr.DeserializeCreateActivityStreams()(m, aliasMap); err == nil { this := &ActivityStreamsTargetPropertyIterator{ activitystreamsCreateMember: v, @@ -355,6 +373,12 @@ func deserializeActivityStreamsTargetPropertyIterator(i interface{}, aliasMap ma alias: alias, } return this, nil + } else if v, err := mgr.DeserializePushForgeFed()(m, aliasMap); err == nil { + this := &ActivityStreamsTargetPropertyIterator{ + alias: alias, + forgefedPushMember: v, + } + return this, nil } else if v, err := mgr.DeserializeQuestionActivityStreams()(m, aliasMap); err == nil { this := &ActivityStreamsTargetPropertyIterator{ activitystreamsQuestionMember: v, @@ -385,6 +409,12 @@ func deserializeActivityStreamsTargetPropertyIterator(i interface{}, aliasMap ma alias: alias, } return this, nil + } else if v, err := mgr.DeserializeRepositoryForgeFed()(m, aliasMap); err == nil { + this := &ActivityStreamsTargetPropertyIterator{ + alias: alias, + forgefedRepositoryMember: v, + } + return this, nil } else if v, err := mgr.DeserializeServiceActivityStreams()(m, aliasMap); err == nil { this := &ActivityStreamsTargetPropertyIterator{ activitystreamsServiceMember: v, @@ -403,6 +433,18 @@ func deserializeActivityStreamsTargetPropertyIterator(i interface{}, aliasMap ma alias: alias, } return this, nil + } else if v, err := mgr.DeserializeTicketForgeFed()(m, aliasMap); err == nil { + this := &ActivityStreamsTargetPropertyIterator{ + alias: alias, + forgefedTicketMember: v, + } + return this, nil + } else if v, err := mgr.DeserializeTicketDependencyForgeFed()(m, aliasMap); err == nil { + this := &ActivityStreamsTargetPropertyIterator{ + alias: alias, + forgefedTicketDependencyMember: v, + } + return this, nil } else if v, err := mgr.DeserializeTombstoneActivityStreams()(m, aliasMap); err == nil { this := &ActivityStreamsTargetPropertyIterator{ activitystreamsTombstoneMember: v, @@ -826,6 +868,44 @@ func (this ActivityStreamsTargetPropertyIterator) GetActivityStreamsView() vocab return this.activitystreamsViewMember } +// GetForgeFedBranch returns the value of this property. When IsForgeFedBranch +// returns false, GetForgeFedBranch will return an arbitrary value. +func (this ActivityStreamsTargetPropertyIterator) GetForgeFedBranch() vocab.ForgeFedBranch { + return this.forgefedBranchMember +} + +// GetForgeFedCommit returns the value of this property. When IsForgeFedCommit +// returns false, GetForgeFedCommit will return an arbitrary value. +func (this ActivityStreamsTargetPropertyIterator) GetForgeFedCommit() vocab.ForgeFedCommit { + return this.forgefedCommitMember +} + +// GetForgeFedPush returns the value of this property. When IsForgeFedPush returns +// false, GetForgeFedPush will return an arbitrary value. +func (this ActivityStreamsTargetPropertyIterator) GetForgeFedPush() vocab.ForgeFedPush { + return this.forgefedPushMember +} + +// GetForgeFedRepository returns the value of this property. When +// IsForgeFedRepository returns false, GetForgeFedRepository will return an +// arbitrary value. +func (this ActivityStreamsTargetPropertyIterator) GetForgeFedRepository() vocab.ForgeFedRepository { + return this.forgefedRepositoryMember +} + +// GetForgeFedTicket returns the value of this property. When IsForgeFedTicket +// returns false, GetForgeFedTicket will return an arbitrary value. +func (this ActivityStreamsTargetPropertyIterator) GetForgeFedTicket() vocab.ForgeFedTicket { + return this.forgefedTicketMember +} + +// GetForgeFedTicketDependency returns the value of this property. When +// IsForgeFedTicketDependency returns false, GetForgeFedTicketDependency will +// return an arbitrary value. +func (this ActivityStreamsTargetPropertyIterator) GetForgeFedTicketDependency() vocab.ForgeFedTicketDependency { + return this.forgefedTicketDependencyMember +} + // GetIRI returns the IRI of this property. When IsIRI returns false, GetIRI will // return an arbitrary value. func (this ActivityStreamsTargetPropertyIterator) GetIRI() *url.URL { @@ -881,12 +961,18 @@ func (this ActivityStreamsTargetPropertyIterator) GetType() vocab.Type { 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() } @@ -974,6 +1060,9 @@ func (this ActivityStreamsTargetPropertyIterator) GetType() vocab.Type { if this.IsActivityStreamsProfile() { return this.GetActivityStreamsProfile() } + if this.IsForgeFedPush() { + return this.GetForgeFedPush() + } if this.IsActivityStreamsQuestion() { return this.GetActivityStreamsQuestion() } @@ -989,6 +1078,9 @@ func (this ActivityStreamsTargetPropertyIterator) GetType() vocab.Type { if this.IsActivityStreamsRemove() { return this.GetActivityStreamsRemove() } + if this.IsForgeFedRepository() { + return this.GetForgeFedRepository() + } if this.IsActivityStreamsService() { return this.GetActivityStreamsService() } @@ -998,6 +1090,12 @@ func (this ActivityStreamsTargetPropertyIterator) GetType() vocab.Type { if this.IsActivityStreamsTentativeReject() { return this.GetActivityStreamsTentativeReject() } + if this.IsForgeFedTicket() { + return this.GetForgeFedTicket() + } + if this.IsForgeFedTicketDependency() { + return this.GetForgeFedTicketDependency() + } if this.IsActivityStreamsTombstone() { return this.GetActivityStreamsTombstone() } @@ -1033,8 +1131,10 @@ func (this ActivityStreamsTargetPropertyIterator) HasAny() bool { this.IsActivityStreamsArticle() || this.IsActivityStreamsAudio() || this.IsActivityStreamsBlock() || + this.IsForgeFedBranch() || this.IsActivityStreamsCollection() || this.IsActivityStreamsCollectionPage() || + this.IsForgeFedCommit() || this.IsActivityStreamsCreate() || this.IsActivityStreamsDelete() || this.IsActivityStreamsDislike() || @@ -1064,14 +1164,18 @@ func (this ActivityStreamsTargetPropertyIterator) HasAny() bool { 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() || @@ -1464,6 +1568,48 @@ func (this ActivityStreamsTargetPropertyIterator) IsActivityStreamsView() bool { return this.activitystreamsViewMember != nil } +// IsForgeFedBranch returns true if this property has a type of "Branch". When +// true, use the GetForgeFedBranch and SetForgeFedBranch methods to access and +// set this property. +func (this ActivityStreamsTargetPropertyIterator) IsForgeFedBranch() bool { + return this.forgefedBranchMember != nil +} + +// IsForgeFedCommit returns true if this property has a type of "Commit". When +// true, use the GetForgeFedCommit and SetForgeFedCommit methods to access and +// set this property. +func (this ActivityStreamsTargetPropertyIterator) IsForgeFedCommit() bool { + return this.forgefedCommitMember != nil +} + +// IsForgeFedPush returns true if this property has a type of "Push". When true, +// use the GetForgeFedPush and SetForgeFedPush methods to access and set this +// property. +func (this ActivityStreamsTargetPropertyIterator) IsForgeFedPush() bool { + return this.forgefedPushMember != nil +} + +// IsForgeFedRepository returns true if this property has a type of "Repository". +// When true, use the GetForgeFedRepository and SetForgeFedRepository methods +// to access and set this property. +func (this ActivityStreamsTargetPropertyIterator) IsForgeFedRepository() bool { + return this.forgefedRepositoryMember != nil +} + +// IsForgeFedTicket returns true if this property has a type of "Ticket". When +// true, use the GetForgeFedTicket and SetForgeFedTicket methods to access and +// set this property. +func (this ActivityStreamsTargetPropertyIterator) IsForgeFedTicket() bool { + return this.forgefedTicketMember != nil +} + +// IsForgeFedTicketDependency returns true if this property has a type of +// "TicketDependency". When true, use the GetForgeFedTicketDependency and +// SetForgeFedTicketDependency methods to access and set this property. +func (this ActivityStreamsTargetPropertyIterator) IsForgeFedTicketDependency() bool { + return this.forgefedTicketDependencyMember != nil +} + // IsIRI returns true if this property is an IRI. When true, use GetIRI and SetIRI // to access and set this property func (this ActivityStreamsTargetPropertyIterator) IsIRI() bool { @@ -1511,10 +1657,14 @@ func (this ActivityStreamsTargetPropertyIterator) JSONLDContext() map[string]str 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() { @@ -1573,6 +1723,8 @@ func (this ActivityStreamsTargetPropertyIterator) JSONLDContext() map[string]str 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() { @@ -1583,12 +1735,18 @@ func (this ActivityStreamsTargetPropertyIterator) JSONLDContext() map[string]str 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() { @@ -1650,141 +1808,159 @@ func (this ActivityStreamsTargetPropertyIterator) KindIndex() int { if this.IsActivityStreamsBlock() { return 10 } - if this.IsActivityStreamsCollection() { + if this.IsForgeFedBranch() { return 11 } - if this.IsActivityStreamsCollectionPage() { + if this.IsActivityStreamsCollection() { return 12 } - if this.IsActivityStreamsCreate() { + if this.IsActivityStreamsCollectionPage() { return 13 } - if this.IsActivityStreamsDelete() { + if this.IsForgeFedCommit() { return 14 } - if this.IsActivityStreamsDislike() { + if this.IsActivityStreamsCreate() { return 15 } - if this.IsActivityStreamsDocument() { + if this.IsActivityStreamsDelete() { return 16 } - if this.IsTootEmoji() { + if this.IsActivityStreamsDislike() { return 17 } - if this.IsActivityStreamsEvent() { + if this.IsActivityStreamsDocument() { return 18 } - if this.IsActivityStreamsFlag() { + if this.IsTootEmoji() { return 19 } - if this.IsActivityStreamsFollow() { + if this.IsActivityStreamsEvent() { return 20 } - if this.IsActivityStreamsGroup() { + if this.IsActivityStreamsFlag() { return 21 } - if this.IsTootIdentityProof() { + if this.IsActivityStreamsFollow() { return 22 } - if this.IsActivityStreamsIgnore() { + if this.IsActivityStreamsGroup() { return 23 } - if this.IsActivityStreamsImage() { + if this.IsTootIdentityProof() { return 24 } - if this.IsActivityStreamsIntransitiveActivity() { + if this.IsActivityStreamsIgnore() { return 25 } - if this.IsActivityStreamsInvite() { + if this.IsActivityStreamsImage() { return 26 } - if this.IsActivityStreamsJoin() { + if this.IsActivityStreamsIntransitiveActivity() { return 27 } - if this.IsActivityStreamsLeave() { + if this.IsActivityStreamsInvite() { return 28 } - if this.IsActivityStreamsLike() { + if this.IsActivityStreamsJoin() { return 29 } - if this.IsActivityStreamsListen() { + if this.IsActivityStreamsLeave() { return 30 } - if this.IsActivityStreamsMention() { + if this.IsActivityStreamsLike() { return 31 } - if this.IsActivityStreamsMove() { + if this.IsActivityStreamsListen() { return 32 } - if this.IsActivityStreamsNote() { + if this.IsActivityStreamsMention() { return 33 } - if this.IsActivityStreamsOffer() { + if this.IsActivityStreamsMove() { return 34 } - if this.IsActivityStreamsOrderedCollection() { + if this.IsActivityStreamsNote() { return 35 } - if this.IsActivityStreamsOrderedCollectionPage() { + if this.IsActivityStreamsOffer() { return 36 } - if this.IsActivityStreamsOrganization() { + if this.IsActivityStreamsOrderedCollection() { return 37 } - if this.IsActivityStreamsPage() { + if this.IsActivityStreamsOrderedCollectionPage() { return 38 } - if this.IsActivityStreamsPerson() { + if this.IsActivityStreamsOrganization() { return 39 } - if this.IsActivityStreamsPlace() { + if this.IsActivityStreamsPage() { return 40 } - if this.IsActivityStreamsProfile() { + if this.IsActivityStreamsPerson() { return 41 } - if this.IsActivityStreamsQuestion() { + if this.IsActivityStreamsPlace() { return 42 } - if this.IsActivityStreamsRead() { + if this.IsActivityStreamsProfile() { return 43 } - if this.IsActivityStreamsReject() { + if this.IsForgeFedPush() { return 44 } - if this.IsActivityStreamsRelationship() { + if this.IsActivityStreamsQuestion() { return 45 } - if this.IsActivityStreamsRemove() { + if this.IsActivityStreamsRead() { return 46 } - if this.IsActivityStreamsService() { + if this.IsActivityStreamsReject() { return 47 } - if this.IsActivityStreamsTentativeAccept() { + if this.IsActivityStreamsRelationship() { return 48 } - if this.IsActivityStreamsTentativeReject() { + if this.IsActivityStreamsRemove() { return 49 } - if this.IsActivityStreamsTombstone() { + if this.IsForgeFedRepository() { return 50 } - if this.IsActivityStreamsTravel() { + if this.IsActivityStreamsService() { return 51 } - if this.IsActivityStreamsUndo() { + if this.IsActivityStreamsTentativeAccept() { return 52 } - if this.IsActivityStreamsUpdate() { + if this.IsActivityStreamsTentativeReject() { return 53 } - if this.IsActivityStreamsVideo() { + if this.IsForgeFedTicket() { return 54 } - if this.IsActivityStreamsView() { + 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 } @@ -1824,10 +2000,14 @@ func (this ActivityStreamsTargetPropertyIterator) LessThan(o vocab.ActivityStrea 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() { @@ -1886,6 +2066,8 @@ func (this ActivityStreamsTargetPropertyIterator) LessThan(o vocab.ActivityStrea 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() { @@ -1896,12 +2078,18 @@ func (this ActivityStreamsTargetPropertyIterator) LessThan(o vocab.ActivityStrea 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() { @@ -2325,6 +2513,48 @@ func (this *ActivityStreamsTargetPropertyIterator) SetActivityStreamsView(v voca this.activitystreamsViewMember = v } +// SetForgeFedBranch sets the value of this property. Calling IsForgeFedBranch +// afterwards returns true. +func (this *ActivityStreamsTargetPropertyIterator) SetForgeFedBranch(v vocab.ForgeFedBranch) { + this.clear() + this.forgefedBranchMember = v +} + +// SetForgeFedCommit sets the value of this property. Calling IsForgeFedCommit +// afterwards returns true. +func (this *ActivityStreamsTargetPropertyIterator) SetForgeFedCommit(v vocab.ForgeFedCommit) { + this.clear() + this.forgefedCommitMember = v +} + +// SetForgeFedPush sets the value of this property. Calling IsForgeFedPush +// afterwards returns true. +func (this *ActivityStreamsTargetPropertyIterator) SetForgeFedPush(v vocab.ForgeFedPush) { + this.clear() + this.forgefedPushMember = v +} + +// SetForgeFedRepository sets the value of this property. Calling +// IsForgeFedRepository afterwards returns true. +func (this *ActivityStreamsTargetPropertyIterator) SetForgeFedRepository(v vocab.ForgeFedRepository) { + this.clear() + this.forgefedRepositoryMember = v +} + +// SetForgeFedTicket sets the value of this property. Calling IsForgeFedTicket +// afterwards returns true. +func (this *ActivityStreamsTargetPropertyIterator) SetForgeFedTicket(v vocab.ForgeFedTicket) { + this.clear() + this.forgefedTicketMember = v +} + +// SetForgeFedTicketDependency sets the value of this property. Calling +// IsForgeFedTicketDependency afterwards returns true. +func (this *ActivityStreamsTargetPropertyIterator) SetForgeFedTicketDependency(v vocab.ForgeFedTicketDependency) { + this.clear() + this.forgefedTicketDependencyMember = v +} + // SetIRI sets the value of this property. Calling IsIRI afterwards returns true. func (this *ActivityStreamsTargetPropertyIterator) SetIRI(v *url.URL) { this.clear() @@ -2392,6 +2622,10 @@ func (this *ActivityStreamsTargetPropertyIterator) SetType(t vocab.Type) error { 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 @@ -2400,6 +2634,10 @@ func (this *ActivityStreamsTargetPropertyIterator) SetType(t vocab.Type) error { 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 @@ -2516,6 +2754,10 @@ func (this *ActivityStreamsTargetPropertyIterator) SetType(t vocab.Type) error { 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 @@ -2536,6 +2778,10 @@ func (this *ActivityStreamsTargetPropertyIterator) SetType(t vocab.Type) error { 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 @@ -2548,6 +2794,14 @@ func (this *ActivityStreamsTargetPropertyIterator) SetType(t vocab.Type) error { 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 @@ -2590,8 +2844,10 @@ func (this *ActivityStreamsTargetPropertyIterator) clear() { 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 @@ -2621,14 +2877,18 @@ func (this *ActivityStreamsTargetPropertyIterator) clear() { 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 @@ -2666,10 +2926,14 @@ func (this ActivityStreamsTargetPropertyIterator) serialize() (interface{}, erro 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() { @@ -2728,6 +2992,8 @@ func (this ActivityStreamsTargetPropertyIterator) serialize() (interface{}, erro 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() { @@ -2738,12 +3004,18 @@ func (this ActivityStreamsTargetPropertyIterator) serialize() (interface{}, erro 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() { @@ -3422,6 +3694,73 @@ func (this *ActivityStreamsTargetProperty) AppendActivityStreamsView(v vocab.Act }) } +// AppendForgeFedBranch appends a Branch value to the back of a list of the +// property "target". Invalidates iterators that are traversing using Prev. +func (this *ActivityStreamsTargetProperty) AppendForgeFedBranch(v vocab.ForgeFedBranch) { + this.properties = append(this.properties, &ActivityStreamsTargetPropertyIterator{ + alias: this.alias, + forgefedBranchMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendForgeFedCommit appends a Commit value to the back of a list of the +// property "target". Invalidates iterators that are traversing using Prev. +func (this *ActivityStreamsTargetProperty) AppendForgeFedCommit(v vocab.ForgeFedCommit) { + this.properties = append(this.properties, &ActivityStreamsTargetPropertyIterator{ + alias: this.alias, + forgefedCommitMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendForgeFedPush appends a Push value to the back of a list of the property +// "target". Invalidates iterators that are traversing using Prev. +func (this *ActivityStreamsTargetProperty) AppendForgeFedPush(v vocab.ForgeFedPush) { + this.properties = append(this.properties, &ActivityStreamsTargetPropertyIterator{ + alias: this.alias, + forgefedPushMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendForgeFedRepository appends a Repository value to the back of a list of +// the property "target". Invalidates iterators that are traversing using Prev. +func (this *ActivityStreamsTargetProperty) AppendForgeFedRepository(v vocab.ForgeFedRepository) { + this.properties = append(this.properties, &ActivityStreamsTargetPropertyIterator{ + alias: this.alias, + forgefedRepositoryMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendForgeFedTicket appends a Ticket value to the back of a list of the +// property "target". Invalidates iterators that are traversing using Prev. +func (this *ActivityStreamsTargetProperty) AppendForgeFedTicket(v vocab.ForgeFedTicket) { + this.properties = append(this.properties, &ActivityStreamsTargetPropertyIterator{ + alias: this.alias, + forgefedTicketMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendForgeFedTicketDependency appends a TicketDependency value to the back of +// a list of the property "target". Invalidates iterators that are traversing +// using Prev. +func (this *ActivityStreamsTargetProperty) AppendForgeFedTicketDependency(v vocab.ForgeFedTicketDependency) { + this.properties = append(this.properties, &ActivityStreamsTargetPropertyIterator{ + alias: this.alias, + forgefedTicketDependencyMember: v, + myIdx: this.Len(), + parent: this, + }) +} + // AppendIRI appends an IRI value to the back of a list of the property "target" func (this *ActivityStreamsTargetProperty) AppendIRI(v *url.URL) { this.properties = append(this.properties, &ActivityStreamsTargetPropertyIterator{ @@ -4417,6 +4756,108 @@ func (this *ActivityStreamsTargetProperty) InsertActivityStreamsView(idx int, v } } +// InsertForgeFedBranch inserts a Branch value at the specified index for a +// property "target". Existing elements at that index and higher are shifted +// back once. Invalidates all iterators. +func (this *ActivityStreamsTargetProperty) InsertForgeFedBranch(idx int, v vocab.ForgeFedBranch) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsTargetPropertyIterator{ + alias: this.alias, + forgefedBranchMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertForgeFedCommit inserts a Commit value at the specified index for a +// property "target". Existing elements at that index and higher are shifted +// back once. Invalidates all iterators. +func (this *ActivityStreamsTargetProperty) InsertForgeFedCommit(idx int, v vocab.ForgeFedCommit) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsTargetPropertyIterator{ + alias: this.alias, + forgefedCommitMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertForgeFedPush inserts a Push value at the specified index for a property +// "target". Existing elements at that index and higher are shifted back once. +// Invalidates all iterators. +func (this *ActivityStreamsTargetProperty) InsertForgeFedPush(idx int, v vocab.ForgeFedPush) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsTargetPropertyIterator{ + alias: this.alias, + forgefedPushMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertForgeFedRepository inserts a Repository value at the specified index for +// a property "target". Existing elements at that index and higher are shifted +// back once. Invalidates all iterators. +func (this *ActivityStreamsTargetProperty) InsertForgeFedRepository(idx int, v vocab.ForgeFedRepository) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsTargetPropertyIterator{ + alias: this.alias, + forgefedRepositoryMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertForgeFedTicket inserts a Ticket value at the specified index for a +// property "target". Existing elements at that index and higher are shifted +// back once. Invalidates all iterators. +func (this *ActivityStreamsTargetProperty) InsertForgeFedTicket(idx int, v vocab.ForgeFedTicket) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsTargetPropertyIterator{ + alias: this.alias, + forgefedTicketMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertForgeFedTicketDependency inserts a TicketDependency value at the +// specified index for a property "target". Existing elements at that index +// and higher are shifted back once. Invalidates all iterators. +func (this *ActivityStreamsTargetProperty) InsertForgeFedTicketDependency(idx int, v vocab.ForgeFedTicketDependency) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsTargetPropertyIterator{ + alias: this.alias, + forgefedTicketDependencyMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + // Insert inserts an IRI value at the specified index for a property "target". // Existing elements at that index and higher are shifted back once. // Invalidates all iterators. @@ -4574,182 +5015,206 @@ func (this ActivityStreamsTargetProperty) Less(i, j int) bool { rhs := this.properties[j].GetActivityStreamsBlock() return lhs.LessThan(rhs) } else if idx1 == 11 { + lhs := this.properties[i].GetForgeFedBranch() + rhs := this.properties[j].GetForgeFedBranch() + return lhs.LessThan(rhs) + } else if idx1 == 12 { lhs := this.properties[i].GetActivityStreamsCollection() rhs := this.properties[j].GetActivityStreamsCollection() return lhs.LessThan(rhs) - } else if idx1 == 12 { + } else if idx1 == 13 { lhs := this.properties[i].GetActivityStreamsCollectionPage() rhs := this.properties[j].GetActivityStreamsCollectionPage() return lhs.LessThan(rhs) - } else if idx1 == 13 { + } else if idx1 == 14 { + lhs := this.properties[i].GetForgeFedCommit() + rhs := this.properties[j].GetForgeFedCommit() + return lhs.LessThan(rhs) + } else if idx1 == 15 { lhs := this.properties[i].GetActivityStreamsCreate() rhs := this.properties[j].GetActivityStreamsCreate() return lhs.LessThan(rhs) - } else if idx1 == 14 { + } else if idx1 == 16 { lhs := this.properties[i].GetActivityStreamsDelete() rhs := this.properties[j].GetActivityStreamsDelete() return lhs.LessThan(rhs) - } else if idx1 == 15 { + } else if idx1 == 17 { lhs := this.properties[i].GetActivityStreamsDislike() rhs := this.properties[j].GetActivityStreamsDislike() return lhs.LessThan(rhs) - } else if idx1 == 16 { + } else if idx1 == 18 { lhs := this.properties[i].GetActivityStreamsDocument() rhs := this.properties[j].GetActivityStreamsDocument() return lhs.LessThan(rhs) - } else if idx1 == 17 { + } else if idx1 == 19 { lhs := this.properties[i].GetTootEmoji() rhs := this.properties[j].GetTootEmoji() return lhs.LessThan(rhs) - } else if idx1 == 18 { + } else if idx1 == 20 { lhs := this.properties[i].GetActivityStreamsEvent() rhs := this.properties[j].GetActivityStreamsEvent() return lhs.LessThan(rhs) - } else if idx1 == 19 { + } else if idx1 == 21 { lhs := this.properties[i].GetActivityStreamsFlag() rhs := this.properties[j].GetActivityStreamsFlag() return lhs.LessThan(rhs) - } else if idx1 == 20 { + } else if idx1 == 22 { lhs := this.properties[i].GetActivityStreamsFollow() rhs := this.properties[j].GetActivityStreamsFollow() return lhs.LessThan(rhs) - } else if idx1 == 21 { + } else if idx1 == 23 { lhs := this.properties[i].GetActivityStreamsGroup() rhs := this.properties[j].GetActivityStreamsGroup() return lhs.LessThan(rhs) - } else if idx1 == 22 { + } else if idx1 == 24 { lhs := this.properties[i].GetTootIdentityProof() rhs := this.properties[j].GetTootIdentityProof() return lhs.LessThan(rhs) - } else if idx1 == 23 { + } else if idx1 == 25 { lhs := this.properties[i].GetActivityStreamsIgnore() rhs := this.properties[j].GetActivityStreamsIgnore() return lhs.LessThan(rhs) - } else if idx1 == 24 { + } else if idx1 == 26 { lhs := this.properties[i].GetActivityStreamsImage() rhs := this.properties[j].GetActivityStreamsImage() return lhs.LessThan(rhs) - } else if idx1 == 25 { + } else if idx1 == 27 { lhs := this.properties[i].GetActivityStreamsIntransitiveActivity() rhs := this.properties[j].GetActivityStreamsIntransitiveActivity() return lhs.LessThan(rhs) - } else if idx1 == 26 { + } else if idx1 == 28 { lhs := this.properties[i].GetActivityStreamsInvite() rhs := this.properties[j].GetActivityStreamsInvite() return lhs.LessThan(rhs) - } else if idx1 == 27 { + } else if idx1 == 29 { lhs := this.properties[i].GetActivityStreamsJoin() rhs := this.properties[j].GetActivityStreamsJoin() return lhs.LessThan(rhs) - } else if idx1 == 28 { + } else if idx1 == 30 { lhs := this.properties[i].GetActivityStreamsLeave() rhs := this.properties[j].GetActivityStreamsLeave() return lhs.LessThan(rhs) - } else if idx1 == 29 { + } else if idx1 == 31 { lhs := this.properties[i].GetActivityStreamsLike() rhs := this.properties[j].GetActivityStreamsLike() return lhs.LessThan(rhs) - } else if idx1 == 30 { + } else if idx1 == 32 { lhs := this.properties[i].GetActivityStreamsListen() rhs := this.properties[j].GetActivityStreamsListen() return lhs.LessThan(rhs) - } else if idx1 == 31 { + } else if idx1 == 33 { lhs := this.properties[i].GetActivityStreamsMention() rhs := this.properties[j].GetActivityStreamsMention() return lhs.LessThan(rhs) - } else if idx1 == 32 { + } else if idx1 == 34 { lhs := this.properties[i].GetActivityStreamsMove() rhs := this.properties[j].GetActivityStreamsMove() return lhs.LessThan(rhs) - } else if idx1 == 33 { + } else if idx1 == 35 { lhs := this.properties[i].GetActivityStreamsNote() rhs := this.properties[j].GetActivityStreamsNote() return lhs.LessThan(rhs) - } else if idx1 == 34 { + } else if idx1 == 36 { lhs := this.properties[i].GetActivityStreamsOffer() rhs := this.properties[j].GetActivityStreamsOffer() return lhs.LessThan(rhs) - } else if idx1 == 35 { + } else if idx1 == 37 { lhs := this.properties[i].GetActivityStreamsOrderedCollection() rhs := this.properties[j].GetActivityStreamsOrderedCollection() return lhs.LessThan(rhs) - } else if idx1 == 36 { + } else if idx1 == 38 { lhs := this.properties[i].GetActivityStreamsOrderedCollectionPage() rhs := this.properties[j].GetActivityStreamsOrderedCollectionPage() return lhs.LessThan(rhs) - } else if idx1 == 37 { + } else if idx1 == 39 { lhs := this.properties[i].GetActivityStreamsOrganization() rhs := this.properties[j].GetActivityStreamsOrganization() return lhs.LessThan(rhs) - } else if idx1 == 38 { + } else if idx1 == 40 { lhs := this.properties[i].GetActivityStreamsPage() rhs := this.properties[j].GetActivityStreamsPage() return lhs.LessThan(rhs) - } else if idx1 == 39 { + } else if idx1 == 41 { lhs := this.properties[i].GetActivityStreamsPerson() rhs := this.properties[j].GetActivityStreamsPerson() return lhs.LessThan(rhs) - } else if idx1 == 40 { + } else if idx1 == 42 { lhs := this.properties[i].GetActivityStreamsPlace() rhs := this.properties[j].GetActivityStreamsPlace() return lhs.LessThan(rhs) - } else if idx1 == 41 { + } else if idx1 == 43 { lhs := this.properties[i].GetActivityStreamsProfile() rhs := this.properties[j].GetActivityStreamsProfile() return lhs.LessThan(rhs) - } else if idx1 == 42 { + } else if idx1 == 44 { + lhs := this.properties[i].GetForgeFedPush() + rhs := this.properties[j].GetForgeFedPush() + return lhs.LessThan(rhs) + } else if idx1 == 45 { lhs := this.properties[i].GetActivityStreamsQuestion() rhs := this.properties[j].GetActivityStreamsQuestion() return lhs.LessThan(rhs) - } else if idx1 == 43 { + } else if idx1 == 46 { lhs := this.properties[i].GetActivityStreamsRead() rhs := this.properties[j].GetActivityStreamsRead() return lhs.LessThan(rhs) - } else if idx1 == 44 { + } else if idx1 == 47 { lhs := this.properties[i].GetActivityStreamsReject() rhs := this.properties[j].GetActivityStreamsReject() return lhs.LessThan(rhs) - } else if idx1 == 45 { + } else if idx1 == 48 { lhs := this.properties[i].GetActivityStreamsRelationship() rhs := this.properties[j].GetActivityStreamsRelationship() return lhs.LessThan(rhs) - } else if idx1 == 46 { + } else if idx1 == 49 { lhs := this.properties[i].GetActivityStreamsRemove() rhs := this.properties[j].GetActivityStreamsRemove() return lhs.LessThan(rhs) - } else if idx1 == 47 { + } else if idx1 == 50 { + lhs := this.properties[i].GetForgeFedRepository() + rhs := this.properties[j].GetForgeFedRepository() + return lhs.LessThan(rhs) + } else if idx1 == 51 { lhs := this.properties[i].GetActivityStreamsService() rhs := this.properties[j].GetActivityStreamsService() return lhs.LessThan(rhs) - } else if idx1 == 48 { + } else if idx1 == 52 { lhs := this.properties[i].GetActivityStreamsTentativeAccept() rhs := this.properties[j].GetActivityStreamsTentativeAccept() return lhs.LessThan(rhs) - } else if idx1 == 49 { + } else if idx1 == 53 { lhs := this.properties[i].GetActivityStreamsTentativeReject() rhs := this.properties[j].GetActivityStreamsTentativeReject() return lhs.LessThan(rhs) - } else if idx1 == 50 { + } else if idx1 == 54 { + lhs := this.properties[i].GetForgeFedTicket() + rhs := this.properties[j].GetForgeFedTicket() + return lhs.LessThan(rhs) + } else if idx1 == 55 { + lhs := this.properties[i].GetForgeFedTicketDependency() + rhs := this.properties[j].GetForgeFedTicketDependency() + return lhs.LessThan(rhs) + } else if idx1 == 56 { lhs := this.properties[i].GetActivityStreamsTombstone() rhs := this.properties[j].GetActivityStreamsTombstone() return lhs.LessThan(rhs) - } else if idx1 == 51 { + } else if idx1 == 57 { lhs := this.properties[i].GetActivityStreamsTravel() rhs := this.properties[j].GetActivityStreamsTravel() return lhs.LessThan(rhs) - } else if idx1 == 52 { + } else if idx1 == 58 { lhs := this.properties[i].GetActivityStreamsUndo() rhs := this.properties[j].GetActivityStreamsUndo() return lhs.LessThan(rhs) - } else if idx1 == 53 { + } else if idx1 == 59 { lhs := this.properties[i].GetActivityStreamsUpdate() rhs := this.properties[j].GetActivityStreamsUpdate() return lhs.LessThan(rhs) - } else if idx1 == 54 { + } else if idx1 == 60 { lhs := this.properties[i].GetActivityStreamsVideo() rhs := this.properties[j].GetActivityStreamsVideo() return lhs.LessThan(rhs) - } else if idx1 == 55 { + } else if idx1 == 61 { lhs := this.properties[i].GetActivityStreamsView() rhs := this.properties[j].GetActivityStreamsView() return lhs.LessThan(rhs) @@ -5550,6 +6015,90 @@ func (this *ActivityStreamsTargetProperty) PrependActivityStreamsView(v vocab.Ac } } +// PrependForgeFedBranch prepends a Branch value to the front of a list of the +// property "target". Invalidates all iterators. +func (this *ActivityStreamsTargetProperty) PrependForgeFedBranch(v vocab.ForgeFedBranch) { + this.properties = append([]*ActivityStreamsTargetPropertyIterator{{ + alias: this.alias, + forgefedBranchMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependForgeFedCommit prepends a Commit value to the front of a list of the +// property "target". Invalidates all iterators. +func (this *ActivityStreamsTargetProperty) PrependForgeFedCommit(v vocab.ForgeFedCommit) { + this.properties = append([]*ActivityStreamsTargetPropertyIterator{{ + alias: this.alias, + forgefedCommitMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependForgeFedPush prepends a Push value to the front of a list of the +// property "target". Invalidates all iterators. +func (this *ActivityStreamsTargetProperty) PrependForgeFedPush(v vocab.ForgeFedPush) { + this.properties = append([]*ActivityStreamsTargetPropertyIterator{{ + alias: this.alias, + forgefedPushMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependForgeFedRepository prepends a Repository value to the front of a list of +// the property "target". Invalidates all iterators. +func (this *ActivityStreamsTargetProperty) PrependForgeFedRepository(v vocab.ForgeFedRepository) { + this.properties = append([]*ActivityStreamsTargetPropertyIterator{{ + alias: this.alias, + forgefedRepositoryMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependForgeFedTicket prepends a Ticket value to the front of a list of the +// property "target". Invalidates all iterators. +func (this *ActivityStreamsTargetProperty) PrependForgeFedTicket(v vocab.ForgeFedTicket) { + this.properties = append([]*ActivityStreamsTargetPropertyIterator{{ + alias: this.alias, + forgefedTicketMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependForgeFedTicketDependency prepends a TicketDependency value to the front +// of a list of the property "target". Invalidates all iterators. +func (this *ActivityStreamsTargetProperty) PrependForgeFedTicketDependency(v vocab.ForgeFedTicketDependency) { + this.properties = append([]*ActivityStreamsTargetPropertyIterator{{ + alias: this.alias, + forgefedTicketDependencyMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + // PrependIRI prepends an IRI value to the front of a list of the property // "target". func (this *ActivityStreamsTargetProperty) PrependIRI(v *url.URL) { @@ -6346,6 +6895,83 @@ func (this *ActivityStreamsTargetProperty) SetActivityStreamsView(idx int, v voc } } +// SetForgeFedBranch sets a Branch value to be at the specified index for the +// property "target". Panics if the index is out of bounds. Invalidates all +// iterators. +func (this *ActivityStreamsTargetProperty) SetForgeFedBranch(idx int, v vocab.ForgeFedBranch) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsTargetPropertyIterator{ + alias: this.alias, + forgefedBranchMember: v, + myIdx: idx, + parent: this, + } +} + +// SetForgeFedCommit sets a Commit value to be at the specified index for the +// property "target". Panics if the index is out of bounds. Invalidates all +// iterators. +func (this *ActivityStreamsTargetProperty) SetForgeFedCommit(idx int, v vocab.ForgeFedCommit) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsTargetPropertyIterator{ + alias: this.alias, + forgefedCommitMember: v, + myIdx: idx, + parent: this, + } +} + +// SetForgeFedPush sets a Push value to be at the specified index for the property +// "target". Panics if the index is out of bounds. Invalidates all iterators. +func (this *ActivityStreamsTargetProperty) SetForgeFedPush(idx int, v vocab.ForgeFedPush) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsTargetPropertyIterator{ + alias: this.alias, + forgefedPushMember: v, + myIdx: idx, + parent: this, + } +} + +// SetForgeFedRepository sets a Repository value to be at the specified index for +// the property "target". Panics if the index is out of bounds. Invalidates +// all iterators. +func (this *ActivityStreamsTargetProperty) SetForgeFedRepository(idx int, v vocab.ForgeFedRepository) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsTargetPropertyIterator{ + alias: this.alias, + forgefedRepositoryMember: v, + myIdx: idx, + parent: this, + } +} + +// SetForgeFedTicket sets a Ticket value to be at the specified index for the +// property "target". Panics if the index is out of bounds. Invalidates all +// iterators. +func (this *ActivityStreamsTargetProperty) SetForgeFedTicket(idx int, v vocab.ForgeFedTicket) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsTargetPropertyIterator{ + alias: this.alias, + forgefedTicketMember: v, + myIdx: idx, + parent: this, + } +} + +// SetForgeFedTicketDependency sets a TicketDependency value to be at the +// specified index for the property "target". Panics if the index is out of +// bounds. Invalidates all iterators. +func (this *ActivityStreamsTargetProperty) SetForgeFedTicketDependency(idx int, v vocab.ForgeFedTicketDependency) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsTargetPropertyIterator{ + alias: this.alias, + forgefedTicketDependencyMember: v, + myIdx: idx, + parent: this, + } +} + // SetIRI sets an IRI value to be at the specified index for the property // "target". Panics if the index is out of bounds. func (this *ActivityStreamsTargetProperty) SetIRI(idx int, v *url.URL) { diff --git a/streams/impl/activitystreams/property_to/gen_pkg.go b/streams/impl/activitystreams/property_to/gen_pkg.go index 83b418b..c4f9f3b 100644 --- a/streams/impl/activitystreams/property_to/gen_pkg.go +++ b/streams/impl/activitystreams/property_to/gen_pkg.go @@ -45,6 +45,10 @@ type privateManager interface { // 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" @@ -53,6 +57,10 @@ type privateManager interface { // 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" @@ -177,6 +185,9 @@ type privateManager interface { // 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" @@ -197,6 +208,10 @@ type privateManager interface { // 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" @@ -209,6 +224,14 @@ type privateManager interface { // 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" diff --git a/streams/impl/activitystreams/property_to/gen_property_activitystreams_to.go b/streams/impl/activitystreams/property_to/gen_property_activitystreams_to.go index 440374c..b5082a4 100644 --- a/streams/impl/activitystreams/property_to/gen_property_activitystreams_to.go +++ b/streams/impl/activitystreams/property_to/gen_property_activitystreams_to.go @@ -25,8 +25,10 @@ type ActivityStreamsToPropertyIterator struct { 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 @@ -56,14 +58,18 @@ type ActivityStreamsToPropertyIterator struct { 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 @@ -168,6 +174,12 @@ func deserializeActivityStreamsToPropertyIterator(i interface{}, aliasMap map[st alias: alias, } return this, nil + } else if v, err := mgr.DeserializeBranchForgeFed()(m, aliasMap); err == nil { + this := &ActivityStreamsToPropertyIterator{ + alias: alias, + forgefedBranchMember: v, + } + return this, nil } else if v, err := mgr.DeserializeCollectionActivityStreams()(m, aliasMap); err == nil { this := &ActivityStreamsToPropertyIterator{ activitystreamsCollectionMember: v, @@ -180,6 +192,12 @@ func deserializeActivityStreamsToPropertyIterator(i interface{}, aliasMap map[st alias: alias, } return this, nil + } else if v, err := mgr.DeserializeCommitForgeFed()(m, aliasMap); err == nil { + this := &ActivityStreamsToPropertyIterator{ + alias: alias, + forgefedCommitMember: v, + } + return this, nil } else if v, err := mgr.DeserializeCreateActivityStreams()(m, aliasMap); err == nil { this := &ActivityStreamsToPropertyIterator{ activitystreamsCreateMember: v, @@ -354,6 +372,12 @@ func deserializeActivityStreamsToPropertyIterator(i interface{}, aliasMap map[st alias: alias, } return this, nil + } else if v, err := mgr.DeserializePushForgeFed()(m, aliasMap); err == nil { + this := &ActivityStreamsToPropertyIterator{ + alias: alias, + forgefedPushMember: v, + } + return this, nil } else if v, err := mgr.DeserializeQuestionActivityStreams()(m, aliasMap); err == nil { this := &ActivityStreamsToPropertyIterator{ activitystreamsQuestionMember: v, @@ -384,6 +408,12 @@ func deserializeActivityStreamsToPropertyIterator(i interface{}, aliasMap map[st alias: alias, } return this, nil + } else if v, err := mgr.DeserializeRepositoryForgeFed()(m, aliasMap); err == nil { + this := &ActivityStreamsToPropertyIterator{ + alias: alias, + forgefedRepositoryMember: v, + } + return this, nil } else if v, err := mgr.DeserializeServiceActivityStreams()(m, aliasMap); err == nil { this := &ActivityStreamsToPropertyIterator{ activitystreamsServiceMember: v, @@ -402,6 +432,18 @@ func deserializeActivityStreamsToPropertyIterator(i interface{}, aliasMap map[st alias: alias, } return this, nil + } else if v, err := mgr.DeserializeTicketForgeFed()(m, aliasMap); err == nil { + this := &ActivityStreamsToPropertyIterator{ + alias: alias, + forgefedTicketMember: v, + } + return this, nil + } else if v, err := mgr.DeserializeTicketDependencyForgeFed()(m, aliasMap); err == nil { + this := &ActivityStreamsToPropertyIterator{ + alias: alias, + forgefedTicketDependencyMember: v, + } + return this, nil } else if v, err := mgr.DeserializeTombstoneActivityStreams()(m, aliasMap); err == nil { this := &ActivityStreamsToPropertyIterator{ activitystreamsTombstoneMember: v, @@ -825,6 +867,44 @@ func (this ActivityStreamsToPropertyIterator) GetActivityStreamsView() vocab.Act return this.activitystreamsViewMember } +// GetForgeFedBranch returns the value of this property. When IsForgeFedBranch +// returns false, GetForgeFedBranch will return an arbitrary value. +func (this ActivityStreamsToPropertyIterator) GetForgeFedBranch() vocab.ForgeFedBranch { + return this.forgefedBranchMember +} + +// GetForgeFedCommit returns the value of this property. When IsForgeFedCommit +// returns false, GetForgeFedCommit will return an arbitrary value. +func (this ActivityStreamsToPropertyIterator) GetForgeFedCommit() vocab.ForgeFedCommit { + return this.forgefedCommitMember +} + +// GetForgeFedPush returns the value of this property. When IsForgeFedPush returns +// false, GetForgeFedPush will return an arbitrary value. +func (this ActivityStreamsToPropertyIterator) GetForgeFedPush() vocab.ForgeFedPush { + return this.forgefedPushMember +} + +// GetForgeFedRepository returns the value of this property. When +// IsForgeFedRepository returns false, GetForgeFedRepository will return an +// arbitrary value. +func (this ActivityStreamsToPropertyIterator) GetForgeFedRepository() vocab.ForgeFedRepository { + return this.forgefedRepositoryMember +} + +// GetForgeFedTicket returns the value of this property. When IsForgeFedTicket +// returns false, GetForgeFedTicket will return an arbitrary value. +func (this ActivityStreamsToPropertyIterator) GetForgeFedTicket() vocab.ForgeFedTicket { + return this.forgefedTicketMember +} + +// GetForgeFedTicketDependency returns the value of this property. When +// IsForgeFedTicketDependency returns false, GetForgeFedTicketDependency will +// return an arbitrary value. +func (this ActivityStreamsToPropertyIterator) GetForgeFedTicketDependency() vocab.ForgeFedTicketDependency { + return this.forgefedTicketDependencyMember +} + // GetIRI returns the IRI of this property. When IsIRI returns false, GetIRI will // return an arbitrary value. func (this ActivityStreamsToPropertyIterator) GetIRI() *url.URL { @@ -880,12 +960,18 @@ func (this ActivityStreamsToPropertyIterator) GetType() vocab.Type { 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() } @@ -973,6 +1059,9 @@ func (this ActivityStreamsToPropertyIterator) GetType() vocab.Type { if this.IsActivityStreamsProfile() { return this.GetActivityStreamsProfile() } + if this.IsForgeFedPush() { + return this.GetForgeFedPush() + } if this.IsActivityStreamsQuestion() { return this.GetActivityStreamsQuestion() } @@ -988,6 +1077,9 @@ func (this ActivityStreamsToPropertyIterator) GetType() vocab.Type { if this.IsActivityStreamsRemove() { return this.GetActivityStreamsRemove() } + if this.IsForgeFedRepository() { + return this.GetForgeFedRepository() + } if this.IsActivityStreamsService() { return this.GetActivityStreamsService() } @@ -997,6 +1089,12 @@ func (this ActivityStreamsToPropertyIterator) GetType() vocab.Type { if this.IsActivityStreamsTentativeReject() { return this.GetActivityStreamsTentativeReject() } + if this.IsForgeFedTicket() { + return this.GetForgeFedTicket() + } + if this.IsForgeFedTicketDependency() { + return this.GetForgeFedTicketDependency() + } if this.IsActivityStreamsTombstone() { return this.GetActivityStreamsTombstone() } @@ -1032,8 +1130,10 @@ func (this ActivityStreamsToPropertyIterator) HasAny() bool { this.IsActivityStreamsArticle() || this.IsActivityStreamsAudio() || this.IsActivityStreamsBlock() || + this.IsForgeFedBranch() || this.IsActivityStreamsCollection() || this.IsActivityStreamsCollectionPage() || + this.IsForgeFedCommit() || this.IsActivityStreamsCreate() || this.IsActivityStreamsDelete() || this.IsActivityStreamsDislike() || @@ -1063,14 +1163,18 @@ func (this ActivityStreamsToPropertyIterator) HasAny() bool { 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() || @@ -1463,6 +1567,48 @@ func (this ActivityStreamsToPropertyIterator) IsActivityStreamsView() bool { return this.activitystreamsViewMember != nil } +// IsForgeFedBranch returns true if this property has a type of "Branch". When +// true, use the GetForgeFedBranch and SetForgeFedBranch methods to access and +// set this property. +func (this ActivityStreamsToPropertyIterator) IsForgeFedBranch() bool { + return this.forgefedBranchMember != nil +} + +// IsForgeFedCommit returns true if this property has a type of "Commit". When +// true, use the GetForgeFedCommit and SetForgeFedCommit methods to access and +// set this property. +func (this ActivityStreamsToPropertyIterator) IsForgeFedCommit() bool { + return this.forgefedCommitMember != nil +} + +// IsForgeFedPush returns true if this property has a type of "Push". When true, +// use the GetForgeFedPush and SetForgeFedPush methods to access and set this +// property. +func (this ActivityStreamsToPropertyIterator) IsForgeFedPush() bool { + return this.forgefedPushMember != nil +} + +// IsForgeFedRepository returns true if this property has a type of "Repository". +// When true, use the GetForgeFedRepository and SetForgeFedRepository methods +// to access and set this property. +func (this ActivityStreamsToPropertyIterator) IsForgeFedRepository() bool { + return this.forgefedRepositoryMember != nil +} + +// IsForgeFedTicket returns true if this property has a type of "Ticket". When +// true, use the GetForgeFedTicket and SetForgeFedTicket methods to access and +// set this property. +func (this ActivityStreamsToPropertyIterator) IsForgeFedTicket() bool { + return this.forgefedTicketMember != nil +} + +// IsForgeFedTicketDependency returns true if this property has a type of +// "TicketDependency". When true, use the GetForgeFedTicketDependency and +// SetForgeFedTicketDependency methods to access and set this property. +func (this ActivityStreamsToPropertyIterator) IsForgeFedTicketDependency() bool { + return this.forgefedTicketDependencyMember != nil +} + // IsIRI returns true if this property is an IRI. When true, use GetIRI and SetIRI // to access and set this property func (this ActivityStreamsToPropertyIterator) IsIRI() bool { @@ -1510,10 +1656,14 @@ func (this ActivityStreamsToPropertyIterator) JSONLDContext() map[string]string 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() { @@ -1572,6 +1722,8 @@ func (this ActivityStreamsToPropertyIterator) JSONLDContext() map[string]string 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() { @@ -1582,12 +1734,18 @@ func (this ActivityStreamsToPropertyIterator) JSONLDContext() map[string]string 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() { @@ -1649,141 +1807,159 @@ func (this ActivityStreamsToPropertyIterator) KindIndex() int { if this.IsActivityStreamsBlock() { return 10 } - if this.IsActivityStreamsCollection() { + if this.IsForgeFedBranch() { return 11 } - if this.IsActivityStreamsCollectionPage() { + if this.IsActivityStreamsCollection() { return 12 } - if this.IsActivityStreamsCreate() { + if this.IsActivityStreamsCollectionPage() { return 13 } - if this.IsActivityStreamsDelete() { + if this.IsForgeFedCommit() { return 14 } - if this.IsActivityStreamsDislike() { + if this.IsActivityStreamsCreate() { return 15 } - if this.IsActivityStreamsDocument() { + if this.IsActivityStreamsDelete() { return 16 } - if this.IsTootEmoji() { + if this.IsActivityStreamsDislike() { return 17 } - if this.IsActivityStreamsEvent() { + if this.IsActivityStreamsDocument() { return 18 } - if this.IsActivityStreamsFlag() { + if this.IsTootEmoji() { return 19 } - if this.IsActivityStreamsFollow() { + if this.IsActivityStreamsEvent() { return 20 } - if this.IsActivityStreamsGroup() { + if this.IsActivityStreamsFlag() { return 21 } - if this.IsTootIdentityProof() { + if this.IsActivityStreamsFollow() { return 22 } - if this.IsActivityStreamsIgnore() { + if this.IsActivityStreamsGroup() { return 23 } - if this.IsActivityStreamsImage() { + if this.IsTootIdentityProof() { return 24 } - if this.IsActivityStreamsIntransitiveActivity() { + if this.IsActivityStreamsIgnore() { return 25 } - if this.IsActivityStreamsInvite() { + if this.IsActivityStreamsImage() { return 26 } - if this.IsActivityStreamsJoin() { + if this.IsActivityStreamsIntransitiveActivity() { return 27 } - if this.IsActivityStreamsLeave() { + if this.IsActivityStreamsInvite() { return 28 } - if this.IsActivityStreamsLike() { + if this.IsActivityStreamsJoin() { return 29 } - if this.IsActivityStreamsListen() { + if this.IsActivityStreamsLeave() { return 30 } - if this.IsActivityStreamsMention() { + if this.IsActivityStreamsLike() { return 31 } - if this.IsActivityStreamsMove() { + if this.IsActivityStreamsListen() { return 32 } - if this.IsActivityStreamsNote() { + if this.IsActivityStreamsMention() { return 33 } - if this.IsActivityStreamsOffer() { + if this.IsActivityStreamsMove() { return 34 } - if this.IsActivityStreamsOrderedCollection() { + if this.IsActivityStreamsNote() { return 35 } - if this.IsActivityStreamsOrderedCollectionPage() { + if this.IsActivityStreamsOffer() { return 36 } - if this.IsActivityStreamsOrganization() { + if this.IsActivityStreamsOrderedCollection() { return 37 } - if this.IsActivityStreamsPage() { + if this.IsActivityStreamsOrderedCollectionPage() { return 38 } - if this.IsActivityStreamsPerson() { + if this.IsActivityStreamsOrganization() { return 39 } - if this.IsActivityStreamsPlace() { + if this.IsActivityStreamsPage() { return 40 } - if this.IsActivityStreamsProfile() { + if this.IsActivityStreamsPerson() { return 41 } - if this.IsActivityStreamsQuestion() { + if this.IsActivityStreamsPlace() { return 42 } - if this.IsActivityStreamsRead() { + if this.IsActivityStreamsProfile() { return 43 } - if this.IsActivityStreamsReject() { + if this.IsForgeFedPush() { return 44 } - if this.IsActivityStreamsRelationship() { + if this.IsActivityStreamsQuestion() { return 45 } - if this.IsActivityStreamsRemove() { + if this.IsActivityStreamsRead() { return 46 } - if this.IsActivityStreamsService() { + if this.IsActivityStreamsReject() { return 47 } - if this.IsActivityStreamsTentativeAccept() { + if this.IsActivityStreamsRelationship() { return 48 } - if this.IsActivityStreamsTentativeReject() { + if this.IsActivityStreamsRemove() { return 49 } - if this.IsActivityStreamsTombstone() { + if this.IsForgeFedRepository() { return 50 } - if this.IsActivityStreamsTravel() { + if this.IsActivityStreamsService() { return 51 } - if this.IsActivityStreamsUndo() { + if this.IsActivityStreamsTentativeAccept() { return 52 } - if this.IsActivityStreamsUpdate() { + if this.IsActivityStreamsTentativeReject() { return 53 } - if this.IsActivityStreamsVideo() { + if this.IsForgeFedTicket() { return 54 } - if this.IsActivityStreamsView() { + 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 } @@ -1823,10 +1999,14 @@ func (this ActivityStreamsToPropertyIterator) LessThan(o vocab.ActivityStreamsTo 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() { @@ -1885,6 +2065,8 @@ func (this ActivityStreamsToPropertyIterator) LessThan(o vocab.ActivityStreamsTo 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() { @@ -1895,12 +2077,18 @@ func (this ActivityStreamsToPropertyIterator) LessThan(o vocab.ActivityStreamsTo 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() { @@ -2324,6 +2512,48 @@ func (this *ActivityStreamsToPropertyIterator) SetActivityStreamsView(v vocab.Ac this.activitystreamsViewMember = v } +// SetForgeFedBranch sets the value of this property. Calling IsForgeFedBranch +// afterwards returns true. +func (this *ActivityStreamsToPropertyIterator) SetForgeFedBranch(v vocab.ForgeFedBranch) { + this.clear() + this.forgefedBranchMember = v +} + +// SetForgeFedCommit sets the value of this property. Calling IsForgeFedCommit +// afterwards returns true. +func (this *ActivityStreamsToPropertyIterator) SetForgeFedCommit(v vocab.ForgeFedCommit) { + this.clear() + this.forgefedCommitMember = v +} + +// SetForgeFedPush sets the value of this property. Calling IsForgeFedPush +// afterwards returns true. +func (this *ActivityStreamsToPropertyIterator) SetForgeFedPush(v vocab.ForgeFedPush) { + this.clear() + this.forgefedPushMember = v +} + +// SetForgeFedRepository sets the value of this property. Calling +// IsForgeFedRepository afterwards returns true. +func (this *ActivityStreamsToPropertyIterator) SetForgeFedRepository(v vocab.ForgeFedRepository) { + this.clear() + this.forgefedRepositoryMember = v +} + +// SetForgeFedTicket sets the value of this property. Calling IsForgeFedTicket +// afterwards returns true. +func (this *ActivityStreamsToPropertyIterator) SetForgeFedTicket(v vocab.ForgeFedTicket) { + this.clear() + this.forgefedTicketMember = v +} + +// SetForgeFedTicketDependency sets the value of this property. Calling +// IsForgeFedTicketDependency afterwards returns true. +func (this *ActivityStreamsToPropertyIterator) SetForgeFedTicketDependency(v vocab.ForgeFedTicketDependency) { + this.clear() + this.forgefedTicketDependencyMember = v +} + // SetIRI sets the value of this property. Calling IsIRI afterwards returns true. func (this *ActivityStreamsToPropertyIterator) SetIRI(v *url.URL) { this.clear() @@ -2391,6 +2621,10 @@ func (this *ActivityStreamsToPropertyIterator) SetType(t vocab.Type) error { 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 @@ -2399,6 +2633,10 @@ func (this *ActivityStreamsToPropertyIterator) SetType(t vocab.Type) error { 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 @@ -2515,6 +2753,10 @@ func (this *ActivityStreamsToPropertyIterator) SetType(t vocab.Type) error { 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 @@ -2535,6 +2777,10 @@ func (this *ActivityStreamsToPropertyIterator) SetType(t vocab.Type) error { 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 @@ -2547,6 +2793,14 @@ func (this *ActivityStreamsToPropertyIterator) SetType(t vocab.Type) error { 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 @@ -2589,8 +2843,10 @@ func (this *ActivityStreamsToPropertyIterator) clear() { 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 @@ -2620,14 +2876,18 @@ func (this *ActivityStreamsToPropertyIterator) clear() { 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 @@ -2665,10 +2925,14 @@ func (this ActivityStreamsToPropertyIterator) serialize() (interface{}, error) { 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() { @@ -2727,6 +2991,8 @@ func (this ActivityStreamsToPropertyIterator) serialize() (interface{}, error) { 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() { @@ -2737,12 +3003,18 @@ func (this ActivityStreamsToPropertyIterator) serialize() (interface{}, error) { 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() { @@ -3420,6 +3692,73 @@ func (this *ActivityStreamsToProperty) AppendActivityStreamsView(v vocab.Activit }) } +// AppendForgeFedBranch appends a Branch value to the back of a list of the +// property "to". Invalidates iterators that are traversing using Prev. +func (this *ActivityStreamsToProperty) AppendForgeFedBranch(v vocab.ForgeFedBranch) { + this.properties = append(this.properties, &ActivityStreamsToPropertyIterator{ + alias: this.alias, + forgefedBranchMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendForgeFedCommit appends a Commit value to the back of a list of the +// property "to". Invalidates iterators that are traversing using Prev. +func (this *ActivityStreamsToProperty) AppendForgeFedCommit(v vocab.ForgeFedCommit) { + this.properties = append(this.properties, &ActivityStreamsToPropertyIterator{ + alias: this.alias, + forgefedCommitMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendForgeFedPush appends a Push value to the back of a list of the property +// "to". Invalidates iterators that are traversing using Prev. +func (this *ActivityStreamsToProperty) AppendForgeFedPush(v vocab.ForgeFedPush) { + this.properties = append(this.properties, &ActivityStreamsToPropertyIterator{ + alias: this.alias, + forgefedPushMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendForgeFedRepository appends a Repository value to the back of a list of +// the property "to". Invalidates iterators that are traversing using Prev. +func (this *ActivityStreamsToProperty) AppendForgeFedRepository(v vocab.ForgeFedRepository) { + this.properties = append(this.properties, &ActivityStreamsToPropertyIterator{ + alias: this.alias, + forgefedRepositoryMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendForgeFedTicket appends a Ticket value to the back of a list of the +// property "to". Invalidates iterators that are traversing using Prev. +func (this *ActivityStreamsToProperty) AppendForgeFedTicket(v vocab.ForgeFedTicket) { + this.properties = append(this.properties, &ActivityStreamsToPropertyIterator{ + alias: this.alias, + forgefedTicketMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendForgeFedTicketDependency appends a TicketDependency value to the back of +// a list of the property "to". Invalidates iterators that are traversing +// using Prev. +func (this *ActivityStreamsToProperty) AppendForgeFedTicketDependency(v vocab.ForgeFedTicketDependency) { + this.properties = append(this.properties, &ActivityStreamsToPropertyIterator{ + alias: this.alias, + forgefedTicketDependencyMember: v, + myIdx: this.Len(), + parent: this, + }) +} + // AppendIRI appends an IRI value to the back of a list of the property "to" func (this *ActivityStreamsToProperty) AppendIRI(v *url.URL) { this.properties = append(this.properties, &ActivityStreamsToPropertyIterator{ @@ -4415,6 +4754,108 @@ func (this *ActivityStreamsToProperty) InsertActivityStreamsView(idx int, v voca } } +// InsertForgeFedBranch inserts a Branch value at the specified index for a +// property "to". Existing elements at that index and higher are shifted back +// once. Invalidates all iterators. +func (this *ActivityStreamsToProperty) InsertForgeFedBranch(idx int, v vocab.ForgeFedBranch) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsToPropertyIterator{ + alias: this.alias, + forgefedBranchMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertForgeFedCommit inserts a Commit value at the specified index for a +// property "to". Existing elements at that index and higher are shifted back +// once. Invalidates all iterators. +func (this *ActivityStreamsToProperty) InsertForgeFedCommit(idx int, v vocab.ForgeFedCommit) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsToPropertyIterator{ + alias: this.alias, + forgefedCommitMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertForgeFedPush inserts a Push value at the specified index for a property +// "to". Existing elements at that index and higher are shifted back once. +// Invalidates all iterators. +func (this *ActivityStreamsToProperty) InsertForgeFedPush(idx int, v vocab.ForgeFedPush) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsToPropertyIterator{ + alias: this.alias, + forgefedPushMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertForgeFedRepository inserts a Repository value at the specified index for +// a property "to". Existing elements at that index and higher are shifted +// back once. Invalidates all iterators. +func (this *ActivityStreamsToProperty) InsertForgeFedRepository(idx int, v vocab.ForgeFedRepository) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsToPropertyIterator{ + alias: this.alias, + forgefedRepositoryMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertForgeFedTicket inserts a Ticket value at the specified index for a +// property "to". Existing elements at that index and higher are shifted back +// once. Invalidates all iterators. +func (this *ActivityStreamsToProperty) InsertForgeFedTicket(idx int, v vocab.ForgeFedTicket) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsToPropertyIterator{ + alias: this.alias, + forgefedTicketMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertForgeFedTicketDependency inserts a TicketDependency value at the +// specified index for a property "to". Existing elements at that index and +// higher are shifted back once. Invalidates all iterators. +func (this *ActivityStreamsToProperty) InsertForgeFedTicketDependency(idx int, v vocab.ForgeFedTicketDependency) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsToPropertyIterator{ + alias: this.alias, + forgefedTicketDependencyMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + // Insert inserts an IRI value at the specified index for a property "to". // Existing elements at that index and higher are shifted back once. // Invalidates all iterators. @@ -4572,182 +5013,206 @@ func (this ActivityStreamsToProperty) Less(i, j int) bool { rhs := this.properties[j].GetActivityStreamsBlock() return lhs.LessThan(rhs) } else if idx1 == 11 { + lhs := this.properties[i].GetForgeFedBranch() + rhs := this.properties[j].GetForgeFedBranch() + return lhs.LessThan(rhs) + } else if idx1 == 12 { lhs := this.properties[i].GetActivityStreamsCollection() rhs := this.properties[j].GetActivityStreamsCollection() return lhs.LessThan(rhs) - } else if idx1 == 12 { + } else if idx1 == 13 { lhs := this.properties[i].GetActivityStreamsCollectionPage() rhs := this.properties[j].GetActivityStreamsCollectionPage() return lhs.LessThan(rhs) - } else if idx1 == 13 { + } else if idx1 == 14 { + lhs := this.properties[i].GetForgeFedCommit() + rhs := this.properties[j].GetForgeFedCommit() + return lhs.LessThan(rhs) + } else if idx1 == 15 { lhs := this.properties[i].GetActivityStreamsCreate() rhs := this.properties[j].GetActivityStreamsCreate() return lhs.LessThan(rhs) - } else if idx1 == 14 { + } else if idx1 == 16 { lhs := this.properties[i].GetActivityStreamsDelete() rhs := this.properties[j].GetActivityStreamsDelete() return lhs.LessThan(rhs) - } else if idx1 == 15 { + } else if idx1 == 17 { lhs := this.properties[i].GetActivityStreamsDislike() rhs := this.properties[j].GetActivityStreamsDislike() return lhs.LessThan(rhs) - } else if idx1 == 16 { + } else if idx1 == 18 { lhs := this.properties[i].GetActivityStreamsDocument() rhs := this.properties[j].GetActivityStreamsDocument() return lhs.LessThan(rhs) - } else if idx1 == 17 { + } else if idx1 == 19 { lhs := this.properties[i].GetTootEmoji() rhs := this.properties[j].GetTootEmoji() return lhs.LessThan(rhs) - } else if idx1 == 18 { + } else if idx1 == 20 { lhs := this.properties[i].GetActivityStreamsEvent() rhs := this.properties[j].GetActivityStreamsEvent() return lhs.LessThan(rhs) - } else if idx1 == 19 { + } else if idx1 == 21 { lhs := this.properties[i].GetActivityStreamsFlag() rhs := this.properties[j].GetActivityStreamsFlag() return lhs.LessThan(rhs) - } else if idx1 == 20 { + } else if idx1 == 22 { lhs := this.properties[i].GetActivityStreamsFollow() rhs := this.properties[j].GetActivityStreamsFollow() return lhs.LessThan(rhs) - } else if idx1 == 21 { + } else if idx1 == 23 { lhs := this.properties[i].GetActivityStreamsGroup() rhs := this.properties[j].GetActivityStreamsGroup() return lhs.LessThan(rhs) - } else if idx1 == 22 { + } else if idx1 == 24 { lhs := this.properties[i].GetTootIdentityProof() rhs := this.properties[j].GetTootIdentityProof() return lhs.LessThan(rhs) - } else if idx1 == 23 { + } else if idx1 == 25 { lhs := this.properties[i].GetActivityStreamsIgnore() rhs := this.properties[j].GetActivityStreamsIgnore() return lhs.LessThan(rhs) - } else if idx1 == 24 { + } else if idx1 == 26 { lhs := this.properties[i].GetActivityStreamsImage() rhs := this.properties[j].GetActivityStreamsImage() return lhs.LessThan(rhs) - } else if idx1 == 25 { + } else if idx1 == 27 { lhs := this.properties[i].GetActivityStreamsIntransitiveActivity() rhs := this.properties[j].GetActivityStreamsIntransitiveActivity() return lhs.LessThan(rhs) - } else if idx1 == 26 { + } else if idx1 == 28 { lhs := this.properties[i].GetActivityStreamsInvite() rhs := this.properties[j].GetActivityStreamsInvite() return lhs.LessThan(rhs) - } else if idx1 == 27 { + } else if idx1 == 29 { lhs := this.properties[i].GetActivityStreamsJoin() rhs := this.properties[j].GetActivityStreamsJoin() return lhs.LessThan(rhs) - } else if idx1 == 28 { + } else if idx1 == 30 { lhs := this.properties[i].GetActivityStreamsLeave() rhs := this.properties[j].GetActivityStreamsLeave() return lhs.LessThan(rhs) - } else if idx1 == 29 { + } else if idx1 == 31 { lhs := this.properties[i].GetActivityStreamsLike() rhs := this.properties[j].GetActivityStreamsLike() return lhs.LessThan(rhs) - } else if idx1 == 30 { + } else if idx1 == 32 { lhs := this.properties[i].GetActivityStreamsListen() rhs := this.properties[j].GetActivityStreamsListen() return lhs.LessThan(rhs) - } else if idx1 == 31 { + } else if idx1 == 33 { lhs := this.properties[i].GetActivityStreamsMention() rhs := this.properties[j].GetActivityStreamsMention() return lhs.LessThan(rhs) - } else if idx1 == 32 { + } else if idx1 == 34 { lhs := this.properties[i].GetActivityStreamsMove() rhs := this.properties[j].GetActivityStreamsMove() return lhs.LessThan(rhs) - } else if idx1 == 33 { + } else if idx1 == 35 { lhs := this.properties[i].GetActivityStreamsNote() rhs := this.properties[j].GetActivityStreamsNote() return lhs.LessThan(rhs) - } else if idx1 == 34 { + } else if idx1 == 36 { lhs := this.properties[i].GetActivityStreamsOffer() rhs := this.properties[j].GetActivityStreamsOffer() return lhs.LessThan(rhs) - } else if idx1 == 35 { + } else if idx1 == 37 { lhs := this.properties[i].GetActivityStreamsOrderedCollection() rhs := this.properties[j].GetActivityStreamsOrderedCollection() return lhs.LessThan(rhs) - } else if idx1 == 36 { + } else if idx1 == 38 { lhs := this.properties[i].GetActivityStreamsOrderedCollectionPage() rhs := this.properties[j].GetActivityStreamsOrderedCollectionPage() return lhs.LessThan(rhs) - } else if idx1 == 37 { + } else if idx1 == 39 { lhs := this.properties[i].GetActivityStreamsOrganization() rhs := this.properties[j].GetActivityStreamsOrganization() return lhs.LessThan(rhs) - } else if idx1 == 38 { + } else if idx1 == 40 { lhs := this.properties[i].GetActivityStreamsPage() rhs := this.properties[j].GetActivityStreamsPage() return lhs.LessThan(rhs) - } else if idx1 == 39 { + } else if idx1 == 41 { lhs := this.properties[i].GetActivityStreamsPerson() rhs := this.properties[j].GetActivityStreamsPerson() return lhs.LessThan(rhs) - } else if idx1 == 40 { + } else if idx1 == 42 { lhs := this.properties[i].GetActivityStreamsPlace() rhs := this.properties[j].GetActivityStreamsPlace() return lhs.LessThan(rhs) - } else if idx1 == 41 { + } else if idx1 == 43 { lhs := this.properties[i].GetActivityStreamsProfile() rhs := this.properties[j].GetActivityStreamsProfile() return lhs.LessThan(rhs) - } else if idx1 == 42 { + } else if idx1 == 44 { + lhs := this.properties[i].GetForgeFedPush() + rhs := this.properties[j].GetForgeFedPush() + return lhs.LessThan(rhs) + } else if idx1 == 45 { lhs := this.properties[i].GetActivityStreamsQuestion() rhs := this.properties[j].GetActivityStreamsQuestion() return lhs.LessThan(rhs) - } else if idx1 == 43 { + } else if idx1 == 46 { lhs := this.properties[i].GetActivityStreamsRead() rhs := this.properties[j].GetActivityStreamsRead() return lhs.LessThan(rhs) - } else if idx1 == 44 { + } else if idx1 == 47 { lhs := this.properties[i].GetActivityStreamsReject() rhs := this.properties[j].GetActivityStreamsReject() return lhs.LessThan(rhs) - } else if idx1 == 45 { + } else if idx1 == 48 { lhs := this.properties[i].GetActivityStreamsRelationship() rhs := this.properties[j].GetActivityStreamsRelationship() return lhs.LessThan(rhs) - } else if idx1 == 46 { + } else if idx1 == 49 { lhs := this.properties[i].GetActivityStreamsRemove() rhs := this.properties[j].GetActivityStreamsRemove() return lhs.LessThan(rhs) - } else if idx1 == 47 { + } else if idx1 == 50 { + lhs := this.properties[i].GetForgeFedRepository() + rhs := this.properties[j].GetForgeFedRepository() + return lhs.LessThan(rhs) + } else if idx1 == 51 { lhs := this.properties[i].GetActivityStreamsService() rhs := this.properties[j].GetActivityStreamsService() return lhs.LessThan(rhs) - } else if idx1 == 48 { + } else if idx1 == 52 { lhs := this.properties[i].GetActivityStreamsTentativeAccept() rhs := this.properties[j].GetActivityStreamsTentativeAccept() return lhs.LessThan(rhs) - } else if idx1 == 49 { + } else if idx1 == 53 { lhs := this.properties[i].GetActivityStreamsTentativeReject() rhs := this.properties[j].GetActivityStreamsTentativeReject() return lhs.LessThan(rhs) - } else if idx1 == 50 { + } else if idx1 == 54 { + lhs := this.properties[i].GetForgeFedTicket() + rhs := this.properties[j].GetForgeFedTicket() + return lhs.LessThan(rhs) + } else if idx1 == 55 { + lhs := this.properties[i].GetForgeFedTicketDependency() + rhs := this.properties[j].GetForgeFedTicketDependency() + return lhs.LessThan(rhs) + } else if idx1 == 56 { lhs := this.properties[i].GetActivityStreamsTombstone() rhs := this.properties[j].GetActivityStreamsTombstone() return lhs.LessThan(rhs) - } else if idx1 == 51 { + } else if idx1 == 57 { lhs := this.properties[i].GetActivityStreamsTravel() rhs := this.properties[j].GetActivityStreamsTravel() return lhs.LessThan(rhs) - } else if idx1 == 52 { + } else if idx1 == 58 { lhs := this.properties[i].GetActivityStreamsUndo() rhs := this.properties[j].GetActivityStreamsUndo() return lhs.LessThan(rhs) - } else if idx1 == 53 { + } else if idx1 == 59 { lhs := this.properties[i].GetActivityStreamsUpdate() rhs := this.properties[j].GetActivityStreamsUpdate() return lhs.LessThan(rhs) - } else if idx1 == 54 { + } else if idx1 == 60 { lhs := this.properties[i].GetActivityStreamsVideo() rhs := this.properties[j].GetActivityStreamsVideo() return lhs.LessThan(rhs) - } else if idx1 == 55 { + } else if idx1 == 61 { lhs := this.properties[i].GetActivityStreamsView() rhs := this.properties[j].GetActivityStreamsView() return lhs.LessThan(rhs) @@ -5548,6 +6013,90 @@ func (this *ActivityStreamsToProperty) PrependActivityStreamsView(v vocab.Activi } } +// PrependForgeFedBranch prepends a Branch value to the front of a list of the +// property "to". Invalidates all iterators. +func (this *ActivityStreamsToProperty) PrependForgeFedBranch(v vocab.ForgeFedBranch) { + this.properties = append([]*ActivityStreamsToPropertyIterator{{ + alias: this.alias, + forgefedBranchMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependForgeFedCommit prepends a Commit value to the front of a list of the +// property "to". Invalidates all iterators. +func (this *ActivityStreamsToProperty) PrependForgeFedCommit(v vocab.ForgeFedCommit) { + this.properties = append([]*ActivityStreamsToPropertyIterator{{ + alias: this.alias, + forgefedCommitMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependForgeFedPush prepends a Push value to the front of a list of the +// property "to". Invalidates all iterators. +func (this *ActivityStreamsToProperty) PrependForgeFedPush(v vocab.ForgeFedPush) { + this.properties = append([]*ActivityStreamsToPropertyIterator{{ + alias: this.alias, + forgefedPushMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependForgeFedRepository prepends a Repository value to the front of a list of +// the property "to". Invalidates all iterators. +func (this *ActivityStreamsToProperty) PrependForgeFedRepository(v vocab.ForgeFedRepository) { + this.properties = append([]*ActivityStreamsToPropertyIterator{{ + alias: this.alias, + forgefedRepositoryMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependForgeFedTicket prepends a Ticket value to the front of a list of the +// property "to". Invalidates all iterators. +func (this *ActivityStreamsToProperty) PrependForgeFedTicket(v vocab.ForgeFedTicket) { + this.properties = append([]*ActivityStreamsToPropertyIterator{{ + alias: this.alias, + forgefedTicketMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependForgeFedTicketDependency prepends a TicketDependency value to the front +// of a list of the property "to". Invalidates all iterators. +func (this *ActivityStreamsToProperty) PrependForgeFedTicketDependency(v vocab.ForgeFedTicketDependency) { + this.properties = append([]*ActivityStreamsToPropertyIterator{{ + alias: this.alias, + forgefedTicketDependencyMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + // PrependIRI prepends an IRI value to the front of a list of the property "to". func (this *ActivityStreamsToProperty) PrependIRI(v *url.URL) { this.properties = append([]*ActivityStreamsToPropertyIterator{{ @@ -6343,6 +6892,83 @@ func (this *ActivityStreamsToProperty) SetActivityStreamsView(idx int, v vocab.A } } +// SetForgeFedBranch sets a Branch value to be at the specified index for the +// property "to". Panics if the index is out of bounds. Invalidates all +// iterators. +func (this *ActivityStreamsToProperty) SetForgeFedBranch(idx int, v vocab.ForgeFedBranch) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsToPropertyIterator{ + alias: this.alias, + forgefedBranchMember: v, + myIdx: idx, + parent: this, + } +} + +// SetForgeFedCommit sets a Commit value to be at the specified index for the +// property "to". Panics if the index is out of bounds. Invalidates all +// iterators. +func (this *ActivityStreamsToProperty) SetForgeFedCommit(idx int, v vocab.ForgeFedCommit) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsToPropertyIterator{ + alias: this.alias, + forgefedCommitMember: v, + myIdx: idx, + parent: this, + } +} + +// SetForgeFedPush sets a Push value to be at the specified index for the property +// "to". Panics if the index is out of bounds. Invalidates all iterators. +func (this *ActivityStreamsToProperty) SetForgeFedPush(idx int, v vocab.ForgeFedPush) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsToPropertyIterator{ + alias: this.alias, + forgefedPushMember: v, + myIdx: idx, + parent: this, + } +} + +// SetForgeFedRepository sets a Repository value to be at the specified index for +// the property "to". Panics if the index is out of bounds. Invalidates all +// iterators. +func (this *ActivityStreamsToProperty) SetForgeFedRepository(idx int, v vocab.ForgeFedRepository) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsToPropertyIterator{ + alias: this.alias, + forgefedRepositoryMember: v, + myIdx: idx, + parent: this, + } +} + +// SetForgeFedTicket sets a Ticket value to be at the specified index for the +// property "to". Panics if the index is out of bounds. Invalidates all +// iterators. +func (this *ActivityStreamsToProperty) SetForgeFedTicket(idx int, v vocab.ForgeFedTicket) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsToPropertyIterator{ + alias: this.alias, + forgefedTicketMember: v, + myIdx: idx, + parent: this, + } +} + +// SetForgeFedTicketDependency sets a TicketDependency value to be at the +// specified index for the property "to". Panics if the index is out of +// bounds. Invalidates all iterators. +func (this *ActivityStreamsToProperty) SetForgeFedTicketDependency(idx int, v vocab.ForgeFedTicketDependency) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsToPropertyIterator{ + alias: this.alias, + forgefedTicketDependencyMember: v, + myIdx: idx, + parent: this, + } +} + // SetIRI sets an IRI value to be at the specified index for the property "to". // Panics if the index is out of bounds. func (this *ActivityStreamsToProperty) SetIRI(idx int, v *url.URL) { diff --git a/streams/impl/activitystreams/type_accept/gen_pkg.go b/streams/impl/activitystreams/type_accept/gen_pkg.go index bfb0da9..2068c7d 100644 --- a/streams/impl/activitystreams/type_accept/gen_pkg.go +++ b/streams/impl/activitystreams/type_accept/gen_pkg.go @@ -148,10 +148,22 @@ type privateManager interface { // method for the "ActivityStreamsTargetProperty" non-functional // property in the vocabulary "ActivityStreams" DeserializeTargetPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTargetProperty, error) + // DeserializeTeamPropertyForgeFed returns the deserialization method for + // the "ForgeFedTeamProperty" non-functional property in the + // vocabulary "ForgeFed" + DeserializeTeamPropertyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTeamProperty, error) + // DeserializeTicketsTrackedByPropertyForgeFed returns the deserialization + // method for the "ForgeFedTicketsTrackedByProperty" non-functional + // property in the vocabulary "ForgeFed" + DeserializeTicketsTrackedByPropertyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTicketsTrackedByProperty, error) // DeserializeToPropertyActivityStreams returns the deserialization method // for the "ActivityStreamsToProperty" non-functional property in the // vocabulary "ActivityStreams" DeserializeToPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsToProperty, error) + // DeserializeTracksTicketsForPropertyForgeFed returns the deserialization + // method for the "ForgeFedTracksTicketsForProperty" non-functional + // property in the vocabulary "ForgeFed" + DeserializeTracksTicketsForPropertyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTracksTicketsForProperty, error) // DeserializeTypePropertyJSONLD returns the deserialization method for // the "JSONLDTypeProperty" non-functional property in the vocabulary // "JSONLD" diff --git a/streams/impl/activitystreams/type_accept/gen_type_activitystreams_accept.go b/streams/impl/activitystreams/type_accept/gen_type_activitystreams_accept.go index a1971e1..2c919e6 100644 --- a/streams/impl/activitystreams/type_accept/gen_type_activitystreams_accept.go +++ b/streams/impl/activitystreams/type_accept/gen_type_activitystreams_accept.go @@ -82,7 +82,10 @@ type ActivityStreamsAccept struct { ActivityStreamsSummary vocab.ActivityStreamsSummaryProperty ActivityStreamsTag vocab.ActivityStreamsTagProperty ActivityStreamsTarget vocab.ActivityStreamsTargetProperty + ForgeFedTeam vocab.ForgeFedTeamProperty + ForgeFedTicketsTrackedBy vocab.ForgeFedTicketsTrackedByProperty ActivityStreamsTo vocab.ActivityStreamsToProperty + ForgeFedTracksTicketsFor vocab.ForgeFedTracksTicketsForProperty JSONLDType vocab.JSONLDTypeProperty ActivityStreamsUpdated vocab.ActivityStreamsUpdatedProperty ActivityStreamsUrl vocab.ActivityStreamsUrlProperty @@ -334,11 +337,26 @@ func DeserializeAccept(m map[string]interface{}, aliasMap map[string]string) (*A } else if p != nil { this.ActivityStreamsTarget = p } + if p, err := mgr.DeserializeTeamPropertyForgeFed()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ForgeFedTeam = p + } + if p, err := mgr.DeserializeTicketsTrackedByPropertyForgeFed()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ForgeFedTicketsTrackedBy = p + } if p, err := mgr.DeserializeToPropertyActivityStreams()(m, aliasMap); err != nil { return nil, err } else if p != nil { this.ActivityStreamsTo = p } + if p, err := mgr.DeserializeTracksTicketsForPropertyForgeFed()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ForgeFedTracksTicketsFor = p + } if p, err := mgr.DeserializeTypePropertyJSONLD()(m, aliasMap); err != nil { return nil, err } else if p != nil { @@ -433,8 +451,14 @@ func DeserializeAccept(m map[string]interface{}, aliasMap map[string]string) (*A continue } else if k == "target" { continue + } else if k == "team" { + continue + } else if k == "ticketsTrackedBy" { + continue } else if k == "to" { continue + } else if k == "tracksTicketsFor" { + continue } else if k == "type" { continue } else if k == "updated" { @@ -684,6 +708,23 @@ func (this ActivityStreamsAccept) GetActivityStreamsUrl() vocab.ActivityStreamsU return this.ActivityStreamsUrl } +// GetForgeFedTeam returns the "team" property if it exists, and nil otherwise. +func (this ActivityStreamsAccept) GetForgeFedTeam() vocab.ForgeFedTeamProperty { + return this.ForgeFedTeam +} + +// GetForgeFedTicketsTrackedBy returns the "ticketsTrackedBy" property if it +// exists, and nil otherwise. +func (this ActivityStreamsAccept) GetForgeFedTicketsTrackedBy() vocab.ForgeFedTicketsTrackedByProperty { + return this.ForgeFedTicketsTrackedBy +} + +// GetForgeFedTracksTicketsFor returns the "tracksTicketsFor" property if it +// exists, and nil otherwise. +func (this ActivityStreamsAccept) GetForgeFedTracksTicketsFor() vocab.ForgeFedTracksTicketsForProperty { + return this.ForgeFedTracksTicketsFor +} + // GetJSONLDId returns the "id" property if it exists, and nil otherwise. func (this ActivityStreamsAccept) GetJSONLDId() vocab.JSONLDIdProperty { return this.JSONLDId @@ -753,7 +794,10 @@ func (this ActivityStreamsAccept) JSONLDContext() map[string]string { m = this.helperJSONLDContext(this.ActivityStreamsSummary, m) m = this.helperJSONLDContext(this.ActivityStreamsTag, m) m = this.helperJSONLDContext(this.ActivityStreamsTarget, m) + m = this.helperJSONLDContext(this.ForgeFedTeam, m) + m = this.helperJSONLDContext(this.ForgeFedTicketsTrackedBy, m) m = this.helperJSONLDContext(this.ActivityStreamsTo, m) + m = this.helperJSONLDContext(this.ForgeFedTracksTicketsFor, m) m = this.helperJSONLDContext(this.JSONLDType, m) m = this.helperJSONLDContext(this.ActivityStreamsUpdated, m) m = this.helperJSONLDContext(this.ActivityStreamsUrl, m) @@ -1241,6 +1285,34 @@ func (this ActivityStreamsAccept) LessThan(o vocab.ActivityStreamsAccept) bool { // Anything else is greater than nil return false } // Else: Both are nil + // Compare property "team" + if lhs, rhs := this.ForgeFedTeam, o.GetForgeFedTeam(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "ticketsTrackedBy" + if lhs, rhs := this.ForgeFedTicketsTrackedBy, o.GetForgeFedTicketsTrackedBy(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil // Compare property "to" if lhs, rhs := this.ActivityStreamsTo, o.GetActivityStreamsTo(); lhs != nil && rhs != nil { if lhs.LessThan(rhs) { @@ -1255,6 +1327,20 @@ func (this ActivityStreamsAccept) LessThan(o vocab.ActivityStreamsAccept) bool { // Anything else is greater than nil return false } // Else: Both are nil + // Compare property "tracksTicketsFor" + if lhs, rhs := this.ForgeFedTracksTicketsFor, o.GetForgeFedTracksTicketsFor(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil // Compare property "type" if lhs, rhs := this.JSONLDType, o.GetJSONLDType(); lhs != nil && rhs != nil { if lhs.LessThan(rhs) { @@ -1592,6 +1678,22 @@ func (this ActivityStreamsAccept) Serialize() (map[string]interface{}, error) { m[this.ActivityStreamsTarget.Name()] = i } } + // Maybe serialize property "team" + if this.ForgeFedTeam != nil { + if i, err := this.ForgeFedTeam.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ForgeFedTeam.Name()] = i + } + } + // Maybe serialize property "ticketsTrackedBy" + if this.ForgeFedTicketsTrackedBy != nil { + if i, err := this.ForgeFedTicketsTrackedBy.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ForgeFedTicketsTrackedBy.Name()] = i + } + } // Maybe serialize property "to" if this.ActivityStreamsTo != nil { if i, err := this.ActivityStreamsTo.Serialize(); err != nil { @@ -1600,6 +1702,14 @@ func (this ActivityStreamsAccept) Serialize() (map[string]interface{}, error) { m[this.ActivityStreamsTo.Name()] = i } } + // Maybe serialize property "tracksTicketsFor" + if this.ForgeFedTracksTicketsFor != nil { + if i, err := this.ForgeFedTracksTicketsFor.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ForgeFedTracksTicketsFor.Name()] = i + } + } // Maybe serialize property "type" if this.JSONLDType != nil { if i, err := this.JSONLDType.Serialize(); err != nil { @@ -1818,6 +1928,21 @@ func (this *ActivityStreamsAccept) SetActivityStreamsUrl(i vocab.ActivityStreams this.ActivityStreamsUrl = i } +// SetForgeFedTeam sets the "team" property. +func (this *ActivityStreamsAccept) SetForgeFedTeam(i vocab.ForgeFedTeamProperty) { + this.ForgeFedTeam = i +} + +// SetForgeFedTicketsTrackedBy sets the "ticketsTrackedBy" property. +func (this *ActivityStreamsAccept) SetForgeFedTicketsTrackedBy(i vocab.ForgeFedTicketsTrackedByProperty) { + this.ForgeFedTicketsTrackedBy = i +} + +// SetForgeFedTracksTicketsFor sets the "tracksTicketsFor" property. +func (this *ActivityStreamsAccept) SetForgeFedTracksTicketsFor(i vocab.ForgeFedTracksTicketsForProperty) { + this.ForgeFedTracksTicketsFor = i +} + // SetJSONLDId sets the "id" property. func (this *ActivityStreamsAccept) SetJSONLDId(i vocab.JSONLDIdProperty) { this.JSONLDId = i diff --git a/streams/impl/activitystreams/type_activity/gen_pkg.go b/streams/impl/activitystreams/type_activity/gen_pkg.go index ac23b74..77291a6 100644 --- a/streams/impl/activitystreams/type_activity/gen_pkg.go +++ b/streams/impl/activitystreams/type_activity/gen_pkg.go @@ -148,10 +148,22 @@ type privateManager interface { // method for the "ActivityStreamsTargetProperty" non-functional // property in the vocabulary "ActivityStreams" DeserializeTargetPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTargetProperty, error) + // DeserializeTeamPropertyForgeFed returns the deserialization method for + // the "ForgeFedTeamProperty" non-functional property in the + // vocabulary "ForgeFed" + DeserializeTeamPropertyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTeamProperty, error) + // DeserializeTicketsTrackedByPropertyForgeFed returns the deserialization + // method for the "ForgeFedTicketsTrackedByProperty" non-functional + // property in the vocabulary "ForgeFed" + DeserializeTicketsTrackedByPropertyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTicketsTrackedByProperty, error) // DeserializeToPropertyActivityStreams returns the deserialization method // for the "ActivityStreamsToProperty" non-functional property in the // vocabulary "ActivityStreams" DeserializeToPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsToProperty, error) + // DeserializeTracksTicketsForPropertyForgeFed returns the deserialization + // method for the "ForgeFedTracksTicketsForProperty" non-functional + // property in the vocabulary "ForgeFed" + DeserializeTracksTicketsForPropertyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTracksTicketsForProperty, error) // DeserializeTypePropertyJSONLD returns the deserialization method for // the "JSONLDTypeProperty" non-functional property in the vocabulary // "JSONLD" diff --git a/streams/impl/activitystreams/type_activity/gen_type_activitystreams_activity.go b/streams/impl/activitystreams/type_activity/gen_type_activitystreams_activity.go index 3af698c..337a5de 100644 --- a/streams/impl/activitystreams/type_activity/gen_type_activitystreams_activity.go +++ b/streams/impl/activitystreams/type_activity/gen_type_activitystreams_activity.go @@ -62,7 +62,10 @@ type ActivityStreamsActivity struct { ActivityStreamsSummary vocab.ActivityStreamsSummaryProperty ActivityStreamsTag vocab.ActivityStreamsTagProperty ActivityStreamsTarget vocab.ActivityStreamsTargetProperty + ForgeFedTeam vocab.ForgeFedTeamProperty + ForgeFedTicketsTrackedBy vocab.ForgeFedTicketsTrackedByProperty ActivityStreamsTo vocab.ActivityStreamsToProperty + ForgeFedTracksTicketsFor vocab.ForgeFedTracksTicketsForProperty JSONLDType vocab.JSONLDTypeProperty ActivityStreamsUpdated vocab.ActivityStreamsUpdatedProperty ActivityStreamsUrl vocab.ActivityStreamsUrlProperty @@ -86,7 +89,7 @@ func ActivityIsDisjointWith(other vocab.Type) bool { // Activity type. Note that it returns false if the types are the same; see // the "IsOrExtendsActivity" variant instead. func ActivityIsExtendedBy(other vocab.Type) bool { - extensions := []string{"Accept", "Add", "Announce", "Arrive", "Block", "Create", "Delete", "Dislike", "Flag", "Follow", "Ignore", "IntransitiveActivity", "Invite", "Join", "Leave", "Like", "Listen", "Move", "Offer", "Question", "Read", "Reject", "Remove", "TentativeAccept", "TentativeReject", "Travel", "Undo", "Update", "View"} + extensions := []string{"Accept", "Add", "Announce", "Arrive", "Block", "Create", "Delete", "Dislike", "Flag", "Follow", "Ignore", "IntransitiveActivity", "Invite", "Join", "Leave", "Like", "Listen", "Move", "Offer", "Push", "Question", "Read", "Reject", "Remove", "TentativeAccept", "TentativeReject", "Travel", "Undo", "Update", "View"} for _, ext := range extensions { if ext == other.GetTypeName() { return true @@ -314,11 +317,26 @@ func DeserializeActivity(m map[string]interface{}, aliasMap map[string]string) ( } else if p != nil { this.ActivityStreamsTarget = p } + if p, err := mgr.DeserializeTeamPropertyForgeFed()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ForgeFedTeam = p + } + if p, err := mgr.DeserializeTicketsTrackedByPropertyForgeFed()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ForgeFedTicketsTrackedBy = p + } if p, err := mgr.DeserializeToPropertyActivityStreams()(m, aliasMap); err != nil { return nil, err } else if p != nil { this.ActivityStreamsTo = p } + if p, err := mgr.DeserializeTracksTicketsForPropertyForgeFed()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ForgeFedTracksTicketsFor = p + } if p, err := mgr.DeserializeTypePropertyJSONLD()(m, aliasMap); err != nil { return nil, err } else if p != nil { @@ -413,8 +431,14 @@ func DeserializeActivity(m map[string]interface{}, aliasMap map[string]string) ( continue } else if k == "target" { continue + } else if k == "team" { + continue + } else if k == "ticketsTrackedBy" { + continue } else if k == "to" { continue + } else if k == "tracksTicketsFor" { + continue } else if k == "type" { continue } else if k == "updated" { @@ -664,6 +688,23 @@ func (this ActivityStreamsActivity) GetActivityStreamsUrl() vocab.ActivityStream return this.ActivityStreamsUrl } +// GetForgeFedTeam returns the "team" property if it exists, and nil otherwise. +func (this ActivityStreamsActivity) GetForgeFedTeam() vocab.ForgeFedTeamProperty { + return this.ForgeFedTeam +} + +// GetForgeFedTicketsTrackedBy returns the "ticketsTrackedBy" property if it +// exists, and nil otherwise. +func (this ActivityStreamsActivity) GetForgeFedTicketsTrackedBy() vocab.ForgeFedTicketsTrackedByProperty { + return this.ForgeFedTicketsTrackedBy +} + +// GetForgeFedTracksTicketsFor returns the "tracksTicketsFor" property if it +// exists, and nil otherwise. +func (this ActivityStreamsActivity) GetForgeFedTracksTicketsFor() vocab.ForgeFedTracksTicketsForProperty { + return this.ForgeFedTracksTicketsFor +} + // GetJSONLDId returns the "id" property if it exists, and nil otherwise. func (this ActivityStreamsActivity) GetJSONLDId() vocab.JSONLDIdProperty { return this.JSONLDId @@ -733,7 +774,10 @@ func (this ActivityStreamsActivity) JSONLDContext() map[string]string { m = this.helperJSONLDContext(this.ActivityStreamsSummary, m) m = this.helperJSONLDContext(this.ActivityStreamsTag, m) m = this.helperJSONLDContext(this.ActivityStreamsTarget, m) + m = this.helperJSONLDContext(this.ForgeFedTeam, m) + m = this.helperJSONLDContext(this.ForgeFedTicketsTrackedBy, m) m = this.helperJSONLDContext(this.ActivityStreamsTo, m) + m = this.helperJSONLDContext(this.ForgeFedTracksTicketsFor, m) m = this.helperJSONLDContext(this.JSONLDType, m) m = this.helperJSONLDContext(this.ActivityStreamsUpdated, m) m = this.helperJSONLDContext(this.ActivityStreamsUrl, m) @@ -1221,6 +1265,34 @@ func (this ActivityStreamsActivity) LessThan(o vocab.ActivityStreamsActivity) bo // Anything else is greater than nil return false } // Else: Both are nil + // Compare property "team" + if lhs, rhs := this.ForgeFedTeam, o.GetForgeFedTeam(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "ticketsTrackedBy" + if lhs, rhs := this.ForgeFedTicketsTrackedBy, o.GetForgeFedTicketsTrackedBy(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil // Compare property "to" if lhs, rhs := this.ActivityStreamsTo, o.GetActivityStreamsTo(); lhs != nil && rhs != nil { if lhs.LessThan(rhs) { @@ -1235,6 +1307,20 @@ func (this ActivityStreamsActivity) LessThan(o vocab.ActivityStreamsActivity) bo // Anything else is greater than nil return false } // Else: Both are nil + // Compare property "tracksTicketsFor" + if lhs, rhs := this.ForgeFedTracksTicketsFor, o.GetForgeFedTracksTicketsFor(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil // Compare property "type" if lhs, rhs := this.JSONLDType, o.GetJSONLDType(); lhs != nil && rhs != nil { if lhs.LessThan(rhs) { @@ -1572,6 +1658,22 @@ func (this ActivityStreamsActivity) Serialize() (map[string]interface{}, error) m[this.ActivityStreamsTarget.Name()] = i } } + // Maybe serialize property "team" + if this.ForgeFedTeam != nil { + if i, err := this.ForgeFedTeam.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ForgeFedTeam.Name()] = i + } + } + // Maybe serialize property "ticketsTrackedBy" + if this.ForgeFedTicketsTrackedBy != nil { + if i, err := this.ForgeFedTicketsTrackedBy.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ForgeFedTicketsTrackedBy.Name()] = i + } + } // Maybe serialize property "to" if this.ActivityStreamsTo != nil { if i, err := this.ActivityStreamsTo.Serialize(); err != nil { @@ -1580,6 +1682,14 @@ func (this ActivityStreamsActivity) Serialize() (map[string]interface{}, error) m[this.ActivityStreamsTo.Name()] = i } } + // Maybe serialize property "tracksTicketsFor" + if this.ForgeFedTracksTicketsFor != nil { + if i, err := this.ForgeFedTracksTicketsFor.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ForgeFedTracksTicketsFor.Name()] = i + } + } // Maybe serialize property "type" if this.JSONLDType != nil { if i, err := this.JSONLDType.Serialize(); err != nil { @@ -1798,6 +1908,21 @@ func (this *ActivityStreamsActivity) SetActivityStreamsUrl(i vocab.ActivityStrea this.ActivityStreamsUrl = i } +// SetForgeFedTeam sets the "team" property. +func (this *ActivityStreamsActivity) SetForgeFedTeam(i vocab.ForgeFedTeamProperty) { + this.ForgeFedTeam = i +} + +// SetForgeFedTicketsTrackedBy sets the "ticketsTrackedBy" property. +func (this *ActivityStreamsActivity) SetForgeFedTicketsTrackedBy(i vocab.ForgeFedTicketsTrackedByProperty) { + this.ForgeFedTicketsTrackedBy = i +} + +// SetForgeFedTracksTicketsFor sets the "tracksTicketsFor" property. +func (this *ActivityStreamsActivity) SetForgeFedTracksTicketsFor(i vocab.ForgeFedTracksTicketsForProperty) { + this.ForgeFedTracksTicketsFor = i +} + // SetJSONLDId sets the "id" property. func (this *ActivityStreamsActivity) SetJSONLDId(i vocab.JSONLDIdProperty) { this.JSONLDId = i diff --git a/streams/impl/activitystreams/type_add/gen_pkg.go b/streams/impl/activitystreams/type_add/gen_pkg.go index 0911493..1f66953 100644 --- a/streams/impl/activitystreams/type_add/gen_pkg.go +++ b/streams/impl/activitystreams/type_add/gen_pkg.go @@ -148,10 +148,22 @@ type privateManager interface { // method for the "ActivityStreamsTargetProperty" non-functional // property in the vocabulary "ActivityStreams" DeserializeTargetPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTargetProperty, error) + // DeserializeTeamPropertyForgeFed returns the deserialization method for + // the "ForgeFedTeamProperty" non-functional property in the + // vocabulary "ForgeFed" + DeserializeTeamPropertyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTeamProperty, error) + // DeserializeTicketsTrackedByPropertyForgeFed returns the deserialization + // method for the "ForgeFedTicketsTrackedByProperty" non-functional + // property in the vocabulary "ForgeFed" + DeserializeTicketsTrackedByPropertyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTicketsTrackedByProperty, error) // DeserializeToPropertyActivityStreams returns the deserialization method // for the "ActivityStreamsToProperty" non-functional property in the // vocabulary "ActivityStreams" DeserializeToPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsToProperty, error) + // DeserializeTracksTicketsForPropertyForgeFed returns the deserialization + // method for the "ForgeFedTracksTicketsForProperty" non-functional + // property in the vocabulary "ForgeFed" + DeserializeTracksTicketsForPropertyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTracksTicketsForProperty, error) // DeserializeTypePropertyJSONLD returns the deserialization method for // the "JSONLDTypeProperty" non-functional property in the vocabulary // "JSONLD" diff --git a/streams/impl/activitystreams/type_add/gen_type_activitystreams_add.go b/streams/impl/activitystreams/type_add/gen_type_activitystreams_add.go index 60d523c..770a4c1 100644 --- a/streams/impl/activitystreams/type_add/gen_type_activitystreams_add.go +++ b/streams/impl/activitystreams/type_add/gen_type_activitystreams_add.go @@ -82,7 +82,10 @@ type ActivityStreamsAdd struct { ActivityStreamsSummary vocab.ActivityStreamsSummaryProperty ActivityStreamsTag vocab.ActivityStreamsTagProperty ActivityStreamsTarget vocab.ActivityStreamsTargetProperty + ForgeFedTeam vocab.ForgeFedTeamProperty + ForgeFedTicketsTrackedBy vocab.ForgeFedTicketsTrackedByProperty ActivityStreamsTo vocab.ActivityStreamsToProperty + ForgeFedTracksTicketsFor vocab.ForgeFedTracksTicketsForProperty JSONLDType vocab.JSONLDTypeProperty ActivityStreamsUpdated vocab.ActivityStreamsUpdatedProperty ActivityStreamsUrl vocab.ActivityStreamsUrlProperty @@ -329,11 +332,26 @@ func DeserializeAdd(m map[string]interface{}, aliasMap map[string]string) (*Acti } else if p != nil { this.ActivityStreamsTarget = p } + if p, err := mgr.DeserializeTeamPropertyForgeFed()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ForgeFedTeam = p + } + if p, err := mgr.DeserializeTicketsTrackedByPropertyForgeFed()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ForgeFedTicketsTrackedBy = p + } if p, err := mgr.DeserializeToPropertyActivityStreams()(m, aliasMap); err != nil { return nil, err } else if p != nil { this.ActivityStreamsTo = p } + if p, err := mgr.DeserializeTracksTicketsForPropertyForgeFed()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ForgeFedTracksTicketsFor = p + } if p, err := mgr.DeserializeTypePropertyJSONLD()(m, aliasMap); err != nil { return nil, err } else if p != nil { @@ -428,8 +446,14 @@ func DeserializeAdd(m map[string]interface{}, aliasMap map[string]string) (*Acti continue } else if k == "target" { continue + } else if k == "team" { + continue + } else if k == "ticketsTrackedBy" { + continue } else if k == "to" { continue + } else if k == "tracksTicketsFor" { + continue } else if k == "type" { continue } else if k == "updated" { @@ -679,6 +703,23 @@ func (this ActivityStreamsAdd) GetActivityStreamsUrl() vocab.ActivityStreamsUrlP return this.ActivityStreamsUrl } +// GetForgeFedTeam returns the "team" property if it exists, and nil otherwise. +func (this ActivityStreamsAdd) GetForgeFedTeam() vocab.ForgeFedTeamProperty { + return this.ForgeFedTeam +} + +// GetForgeFedTicketsTrackedBy returns the "ticketsTrackedBy" property if it +// exists, and nil otherwise. +func (this ActivityStreamsAdd) GetForgeFedTicketsTrackedBy() vocab.ForgeFedTicketsTrackedByProperty { + return this.ForgeFedTicketsTrackedBy +} + +// GetForgeFedTracksTicketsFor returns the "tracksTicketsFor" property if it +// exists, and nil otherwise. +func (this ActivityStreamsAdd) GetForgeFedTracksTicketsFor() vocab.ForgeFedTracksTicketsForProperty { + return this.ForgeFedTracksTicketsFor +} + // GetJSONLDId returns the "id" property if it exists, and nil otherwise. func (this ActivityStreamsAdd) GetJSONLDId() vocab.JSONLDIdProperty { return this.JSONLDId @@ -748,7 +789,10 @@ func (this ActivityStreamsAdd) JSONLDContext() map[string]string { m = this.helperJSONLDContext(this.ActivityStreamsSummary, m) m = this.helperJSONLDContext(this.ActivityStreamsTag, m) m = this.helperJSONLDContext(this.ActivityStreamsTarget, m) + m = this.helperJSONLDContext(this.ForgeFedTeam, m) + m = this.helperJSONLDContext(this.ForgeFedTicketsTrackedBy, m) m = this.helperJSONLDContext(this.ActivityStreamsTo, m) + m = this.helperJSONLDContext(this.ForgeFedTracksTicketsFor, m) m = this.helperJSONLDContext(this.JSONLDType, m) m = this.helperJSONLDContext(this.ActivityStreamsUpdated, m) m = this.helperJSONLDContext(this.ActivityStreamsUrl, m) @@ -1236,6 +1280,34 @@ func (this ActivityStreamsAdd) LessThan(o vocab.ActivityStreamsAdd) bool { // Anything else is greater than nil return false } // Else: Both are nil + // Compare property "team" + if lhs, rhs := this.ForgeFedTeam, o.GetForgeFedTeam(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "ticketsTrackedBy" + if lhs, rhs := this.ForgeFedTicketsTrackedBy, o.GetForgeFedTicketsTrackedBy(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil // Compare property "to" if lhs, rhs := this.ActivityStreamsTo, o.GetActivityStreamsTo(); lhs != nil && rhs != nil { if lhs.LessThan(rhs) { @@ -1250,6 +1322,20 @@ func (this ActivityStreamsAdd) LessThan(o vocab.ActivityStreamsAdd) bool { // Anything else is greater than nil return false } // Else: Both are nil + // Compare property "tracksTicketsFor" + if lhs, rhs := this.ForgeFedTracksTicketsFor, o.GetForgeFedTracksTicketsFor(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil // Compare property "type" if lhs, rhs := this.JSONLDType, o.GetJSONLDType(); lhs != nil && rhs != nil { if lhs.LessThan(rhs) { @@ -1587,6 +1673,22 @@ func (this ActivityStreamsAdd) Serialize() (map[string]interface{}, error) { m[this.ActivityStreamsTarget.Name()] = i } } + // Maybe serialize property "team" + if this.ForgeFedTeam != nil { + if i, err := this.ForgeFedTeam.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ForgeFedTeam.Name()] = i + } + } + // Maybe serialize property "ticketsTrackedBy" + if this.ForgeFedTicketsTrackedBy != nil { + if i, err := this.ForgeFedTicketsTrackedBy.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ForgeFedTicketsTrackedBy.Name()] = i + } + } // Maybe serialize property "to" if this.ActivityStreamsTo != nil { if i, err := this.ActivityStreamsTo.Serialize(); err != nil { @@ -1595,6 +1697,14 @@ func (this ActivityStreamsAdd) Serialize() (map[string]interface{}, error) { m[this.ActivityStreamsTo.Name()] = i } } + // Maybe serialize property "tracksTicketsFor" + if this.ForgeFedTracksTicketsFor != nil { + if i, err := this.ForgeFedTracksTicketsFor.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ForgeFedTracksTicketsFor.Name()] = i + } + } // Maybe serialize property "type" if this.JSONLDType != nil { if i, err := this.JSONLDType.Serialize(); err != nil { @@ -1813,6 +1923,21 @@ func (this *ActivityStreamsAdd) SetActivityStreamsUrl(i vocab.ActivityStreamsUrl this.ActivityStreamsUrl = i } +// SetForgeFedTeam sets the "team" property. +func (this *ActivityStreamsAdd) SetForgeFedTeam(i vocab.ForgeFedTeamProperty) { + this.ForgeFedTeam = i +} + +// SetForgeFedTicketsTrackedBy sets the "ticketsTrackedBy" property. +func (this *ActivityStreamsAdd) SetForgeFedTicketsTrackedBy(i vocab.ForgeFedTicketsTrackedByProperty) { + this.ForgeFedTicketsTrackedBy = i +} + +// SetForgeFedTracksTicketsFor sets the "tracksTicketsFor" property. +func (this *ActivityStreamsAdd) SetForgeFedTracksTicketsFor(i vocab.ForgeFedTracksTicketsForProperty) { + this.ForgeFedTracksTicketsFor = i +} + // SetJSONLDId sets the "id" property. func (this *ActivityStreamsAdd) SetJSONLDId(i vocab.JSONLDIdProperty) { this.JSONLDId = i diff --git a/streams/impl/activitystreams/type_announce/gen_pkg.go b/streams/impl/activitystreams/type_announce/gen_pkg.go index 29b335c..626354e 100644 --- a/streams/impl/activitystreams/type_announce/gen_pkg.go +++ b/streams/impl/activitystreams/type_announce/gen_pkg.go @@ -148,10 +148,22 @@ type privateManager interface { // method for the "ActivityStreamsTargetProperty" non-functional // property in the vocabulary "ActivityStreams" DeserializeTargetPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTargetProperty, error) + // DeserializeTeamPropertyForgeFed returns the deserialization method for + // the "ForgeFedTeamProperty" non-functional property in the + // vocabulary "ForgeFed" + DeserializeTeamPropertyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTeamProperty, error) + // DeserializeTicketsTrackedByPropertyForgeFed returns the deserialization + // method for the "ForgeFedTicketsTrackedByProperty" non-functional + // property in the vocabulary "ForgeFed" + DeserializeTicketsTrackedByPropertyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTicketsTrackedByProperty, error) // DeserializeToPropertyActivityStreams returns the deserialization method // for the "ActivityStreamsToProperty" non-functional property in the // vocabulary "ActivityStreams" DeserializeToPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsToProperty, error) + // DeserializeTracksTicketsForPropertyForgeFed returns the deserialization + // method for the "ForgeFedTracksTicketsForProperty" non-functional + // property in the vocabulary "ForgeFed" + DeserializeTracksTicketsForPropertyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTracksTicketsForProperty, error) // DeserializeTypePropertyJSONLD returns the deserialization method for // the "JSONLDTypeProperty" non-functional property in the vocabulary // "JSONLD" diff --git a/streams/impl/activitystreams/type_announce/gen_type_activitystreams_announce.go b/streams/impl/activitystreams/type_announce/gen_type_activitystreams_announce.go index 9a881ce..761e3ef 100644 --- a/streams/impl/activitystreams/type_announce/gen_type_activitystreams_announce.go +++ b/streams/impl/activitystreams/type_announce/gen_type_activitystreams_announce.go @@ -64,7 +64,10 @@ type ActivityStreamsAnnounce struct { ActivityStreamsSummary vocab.ActivityStreamsSummaryProperty ActivityStreamsTag vocab.ActivityStreamsTagProperty ActivityStreamsTarget vocab.ActivityStreamsTargetProperty + ForgeFedTeam vocab.ForgeFedTeamProperty + ForgeFedTicketsTrackedBy vocab.ForgeFedTicketsTrackedByProperty ActivityStreamsTo vocab.ActivityStreamsToProperty + ForgeFedTracksTicketsFor vocab.ForgeFedTracksTicketsForProperty JSONLDType vocab.JSONLDTypeProperty ActivityStreamsUpdated vocab.ActivityStreamsUpdatedProperty ActivityStreamsUrl vocab.ActivityStreamsUrlProperty @@ -311,11 +314,26 @@ func DeserializeAnnounce(m map[string]interface{}, aliasMap map[string]string) ( } else if p != nil { this.ActivityStreamsTarget = p } + if p, err := mgr.DeserializeTeamPropertyForgeFed()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ForgeFedTeam = p + } + if p, err := mgr.DeserializeTicketsTrackedByPropertyForgeFed()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ForgeFedTicketsTrackedBy = p + } if p, err := mgr.DeserializeToPropertyActivityStreams()(m, aliasMap); err != nil { return nil, err } else if p != nil { this.ActivityStreamsTo = p } + if p, err := mgr.DeserializeTracksTicketsForPropertyForgeFed()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ForgeFedTracksTicketsFor = p + } if p, err := mgr.DeserializeTypePropertyJSONLD()(m, aliasMap); err != nil { return nil, err } else if p != nil { @@ -410,8 +428,14 @@ func DeserializeAnnounce(m map[string]interface{}, aliasMap map[string]string) ( continue } else if k == "target" { continue + } else if k == "team" { + continue + } else if k == "ticketsTrackedBy" { + continue } else if k == "to" { continue + } else if k == "tracksTicketsFor" { + continue } else if k == "type" { continue } else if k == "updated" { @@ -661,6 +685,23 @@ func (this ActivityStreamsAnnounce) GetActivityStreamsUrl() vocab.ActivityStream return this.ActivityStreamsUrl } +// GetForgeFedTeam returns the "team" property if it exists, and nil otherwise. +func (this ActivityStreamsAnnounce) GetForgeFedTeam() vocab.ForgeFedTeamProperty { + return this.ForgeFedTeam +} + +// GetForgeFedTicketsTrackedBy returns the "ticketsTrackedBy" property if it +// exists, and nil otherwise. +func (this ActivityStreamsAnnounce) GetForgeFedTicketsTrackedBy() vocab.ForgeFedTicketsTrackedByProperty { + return this.ForgeFedTicketsTrackedBy +} + +// GetForgeFedTracksTicketsFor returns the "tracksTicketsFor" property if it +// exists, and nil otherwise. +func (this ActivityStreamsAnnounce) GetForgeFedTracksTicketsFor() vocab.ForgeFedTracksTicketsForProperty { + return this.ForgeFedTracksTicketsFor +} + // GetJSONLDId returns the "id" property if it exists, and nil otherwise. func (this ActivityStreamsAnnounce) GetJSONLDId() vocab.JSONLDIdProperty { return this.JSONLDId @@ -730,7 +771,10 @@ func (this ActivityStreamsAnnounce) JSONLDContext() map[string]string { m = this.helperJSONLDContext(this.ActivityStreamsSummary, m) m = this.helperJSONLDContext(this.ActivityStreamsTag, m) m = this.helperJSONLDContext(this.ActivityStreamsTarget, m) + m = this.helperJSONLDContext(this.ForgeFedTeam, m) + m = this.helperJSONLDContext(this.ForgeFedTicketsTrackedBy, m) m = this.helperJSONLDContext(this.ActivityStreamsTo, m) + m = this.helperJSONLDContext(this.ForgeFedTracksTicketsFor, m) m = this.helperJSONLDContext(this.JSONLDType, m) m = this.helperJSONLDContext(this.ActivityStreamsUpdated, m) m = this.helperJSONLDContext(this.ActivityStreamsUrl, m) @@ -1218,6 +1262,34 @@ func (this ActivityStreamsAnnounce) LessThan(o vocab.ActivityStreamsAnnounce) bo // Anything else is greater than nil return false } // Else: Both are nil + // Compare property "team" + if lhs, rhs := this.ForgeFedTeam, o.GetForgeFedTeam(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "ticketsTrackedBy" + if lhs, rhs := this.ForgeFedTicketsTrackedBy, o.GetForgeFedTicketsTrackedBy(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil // Compare property "to" if lhs, rhs := this.ActivityStreamsTo, o.GetActivityStreamsTo(); lhs != nil && rhs != nil { if lhs.LessThan(rhs) { @@ -1232,6 +1304,20 @@ func (this ActivityStreamsAnnounce) LessThan(o vocab.ActivityStreamsAnnounce) bo // Anything else is greater than nil return false } // Else: Both are nil + // Compare property "tracksTicketsFor" + if lhs, rhs := this.ForgeFedTracksTicketsFor, o.GetForgeFedTracksTicketsFor(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil // Compare property "type" if lhs, rhs := this.JSONLDType, o.GetJSONLDType(); lhs != nil && rhs != nil { if lhs.LessThan(rhs) { @@ -1569,6 +1655,22 @@ func (this ActivityStreamsAnnounce) Serialize() (map[string]interface{}, error) m[this.ActivityStreamsTarget.Name()] = i } } + // Maybe serialize property "team" + if this.ForgeFedTeam != nil { + if i, err := this.ForgeFedTeam.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ForgeFedTeam.Name()] = i + } + } + // Maybe serialize property "ticketsTrackedBy" + if this.ForgeFedTicketsTrackedBy != nil { + if i, err := this.ForgeFedTicketsTrackedBy.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ForgeFedTicketsTrackedBy.Name()] = i + } + } // Maybe serialize property "to" if this.ActivityStreamsTo != nil { if i, err := this.ActivityStreamsTo.Serialize(); err != nil { @@ -1577,6 +1679,14 @@ func (this ActivityStreamsAnnounce) Serialize() (map[string]interface{}, error) m[this.ActivityStreamsTo.Name()] = i } } + // Maybe serialize property "tracksTicketsFor" + if this.ForgeFedTracksTicketsFor != nil { + if i, err := this.ForgeFedTracksTicketsFor.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ForgeFedTracksTicketsFor.Name()] = i + } + } // Maybe serialize property "type" if this.JSONLDType != nil { if i, err := this.JSONLDType.Serialize(); err != nil { @@ -1795,6 +1905,21 @@ func (this *ActivityStreamsAnnounce) SetActivityStreamsUrl(i vocab.ActivityStrea this.ActivityStreamsUrl = i } +// SetForgeFedTeam sets the "team" property. +func (this *ActivityStreamsAnnounce) SetForgeFedTeam(i vocab.ForgeFedTeamProperty) { + this.ForgeFedTeam = i +} + +// SetForgeFedTicketsTrackedBy sets the "ticketsTrackedBy" property. +func (this *ActivityStreamsAnnounce) SetForgeFedTicketsTrackedBy(i vocab.ForgeFedTicketsTrackedByProperty) { + this.ForgeFedTicketsTrackedBy = i +} + +// SetForgeFedTracksTicketsFor sets the "tracksTicketsFor" property. +func (this *ActivityStreamsAnnounce) SetForgeFedTracksTicketsFor(i vocab.ForgeFedTracksTicketsForProperty) { + this.ForgeFedTracksTicketsFor = i +} + // SetJSONLDId sets the "id" property. func (this *ActivityStreamsAnnounce) SetJSONLDId(i vocab.JSONLDIdProperty) { this.JSONLDId = i diff --git a/streams/impl/activitystreams/type_application/gen_pkg.go b/streams/impl/activitystreams/type_application/gen_pkg.go index 9ade6b6..77f9181 100644 --- a/streams/impl/activitystreams/type_application/gen_pkg.go +++ b/streams/impl/activitystreams/type_application/gen_pkg.go @@ -169,10 +169,22 @@ type privateManager interface { // method for the "ActivityStreamsTagProperty" non-functional property // in the vocabulary "ActivityStreams" DeserializeTagPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTagProperty, error) + // DeserializeTeamPropertyForgeFed returns the deserialization method for + // the "ForgeFedTeamProperty" non-functional property in the + // vocabulary "ForgeFed" + DeserializeTeamPropertyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTeamProperty, error) + // DeserializeTicketsTrackedByPropertyForgeFed returns the deserialization + // method for the "ForgeFedTicketsTrackedByProperty" non-functional + // property in the vocabulary "ForgeFed" + DeserializeTicketsTrackedByPropertyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTicketsTrackedByProperty, error) // DeserializeToPropertyActivityStreams returns the deserialization method // for the "ActivityStreamsToProperty" non-functional property in the // vocabulary "ActivityStreams" DeserializeToPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsToProperty, error) + // DeserializeTracksTicketsForPropertyForgeFed returns the deserialization + // method for the "ForgeFedTracksTicketsForProperty" non-functional + // property in the vocabulary "ForgeFed" + DeserializeTracksTicketsForPropertyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTracksTicketsForProperty, error) // DeserializeTypePropertyJSONLD returns the deserialization method for // the "JSONLDTypeProperty" non-functional property in the vocabulary // "JSONLD" diff --git a/streams/impl/activitystreams/type_application/gen_type_activitystreams_application.go b/streams/impl/activitystreams/type_application/gen_type_activitystreams_application.go index 9005c0b..e4f64ed 100644 --- a/streams/impl/activitystreams/type_application/gen_type_activitystreams_application.go +++ b/streams/impl/activitystreams/type_application/gen_type_activitystreams_application.go @@ -55,7 +55,10 @@ type ActivityStreamsApplication struct { ActivityStreamsStreams vocab.ActivityStreamsStreamsProperty ActivityStreamsSummary vocab.ActivityStreamsSummaryProperty ActivityStreamsTag vocab.ActivityStreamsTagProperty + ForgeFedTeam vocab.ForgeFedTeamProperty + ForgeFedTicketsTrackedBy vocab.ForgeFedTicketsTrackedByProperty ActivityStreamsTo vocab.ActivityStreamsToProperty + ForgeFedTracksTicketsFor vocab.ForgeFedTracksTicketsForProperty JSONLDType vocab.JSONLDTypeProperty ActivityStreamsUpdated vocab.ActivityStreamsUpdatedProperty ActivityStreamsUrl vocab.ActivityStreamsUrlProperty @@ -327,11 +330,26 @@ func DeserializeApplication(m map[string]interface{}, aliasMap map[string]string } else if p != nil { this.ActivityStreamsTag = p } + if p, err := mgr.DeserializeTeamPropertyForgeFed()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ForgeFedTeam = p + } + if p, err := mgr.DeserializeTicketsTrackedByPropertyForgeFed()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ForgeFedTicketsTrackedBy = p + } if p, err := mgr.DeserializeToPropertyActivityStreams()(m, aliasMap); err != nil { return nil, err } else if p != nil { this.ActivityStreamsTo = p } + if p, err := mgr.DeserializeTracksTicketsForPropertyForgeFed()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ForgeFedTracksTicketsFor = p + } if p, err := mgr.DeserializeTypePropertyJSONLD()(m, aliasMap); err != nil { return nil, err } else if p != nil { @@ -438,8 +456,14 @@ func DeserializeApplication(m map[string]interface{}, aliasMap map[string]string continue } else if k == "tag" { continue + } else if k == "team" { + continue + } else if k == "ticketsTrackedBy" { + continue } else if k == "to" { continue + } else if k == "tracksTicketsFor" { + continue } else if k == "type" { continue } else if k == "updated" { @@ -701,6 +725,23 @@ func (this ActivityStreamsApplication) GetActivityStreamsUrl() vocab.ActivityStr return this.ActivityStreamsUrl } +// GetForgeFedTeam returns the "team" property if it exists, and nil otherwise. +func (this ActivityStreamsApplication) GetForgeFedTeam() vocab.ForgeFedTeamProperty { + return this.ForgeFedTeam +} + +// GetForgeFedTicketsTrackedBy returns the "ticketsTrackedBy" property if it +// exists, and nil otherwise. +func (this ActivityStreamsApplication) GetForgeFedTicketsTrackedBy() vocab.ForgeFedTicketsTrackedByProperty { + return this.ForgeFedTicketsTrackedBy +} + +// GetForgeFedTracksTicketsFor returns the "tracksTicketsFor" property if it +// exists, and nil otherwise. +func (this ActivityStreamsApplication) GetForgeFedTracksTicketsFor() vocab.ForgeFedTracksTicketsForProperty { + return this.ForgeFedTracksTicketsFor +} + // GetJSONLDId returns the "id" property if it exists, and nil otherwise. func (this ActivityStreamsApplication) GetJSONLDId() vocab.JSONLDIdProperty { return this.JSONLDId @@ -792,7 +833,10 @@ func (this ActivityStreamsApplication) JSONLDContext() map[string]string { m = this.helperJSONLDContext(this.ActivityStreamsStreams, m) m = this.helperJSONLDContext(this.ActivityStreamsSummary, m) m = this.helperJSONLDContext(this.ActivityStreamsTag, m) + m = this.helperJSONLDContext(this.ForgeFedTeam, m) + m = this.helperJSONLDContext(this.ForgeFedTicketsTrackedBy, m) m = this.helperJSONLDContext(this.ActivityStreamsTo, m) + m = this.helperJSONLDContext(this.ForgeFedTracksTicketsFor, m) m = this.helperJSONLDContext(this.JSONLDType, m) m = this.helperJSONLDContext(this.ActivityStreamsUpdated, m) m = this.helperJSONLDContext(this.ActivityStreamsUrl, m) @@ -1350,6 +1394,34 @@ func (this ActivityStreamsApplication) LessThan(o vocab.ActivityStreamsApplicati // Anything else is greater than nil return false } // Else: Both are nil + // Compare property "team" + if lhs, rhs := this.ForgeFedTeam, o.GetForgeFedTeam(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "ticketsTrackedBy" + if lhs, rhs := this.ForgeFedTicketsTrackedBy, o.GetForgeFedTicketsTrackedBy(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil // Compare property "to" if lhs, rhs := this.ActivityStreamsTo, o.GetActivityStreamsTo(); lhs != nil && rhs != nil { if lhs.LessThan(rhs) { @@ -1364,6 +1436,20 @@ func (this ActivityStreamsApplication) LessThan(o vocab.ActivityStreamsApplicati // Anything else is greater than nil return false } // Else: Both are nil + // Compare property "tracksTicketsFor" + if lhs, rhs := this.ForgeFedTracksTicketsFor, o.GetForgeFedTracksTicketsFor(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil // Compare property "type" if lhs, rhs := this.JSONLDType, o.GetJSONLDType(); lhs != nil && rhs != nil { if lhs.LessThan(rhs) { @@ -1741,6 +1827,22 @@ func (this ActivityStreamsApplication) Serialize() (map[string]interface{}, erro m[this.ActivityStreamsTag.Name()] = i } } + // Maybe serialize property "team" + if this.ForgeFedTeam != nil { + if i, err := this.ForgeFedTeam.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ForgeFedTeam.Name()] = i + } + } + // Maybe serialize property "ticketsTrackedBy" + if this.ForgeFedTicketsTrackedBy != nil { + if i, err := this.ForgeFedTicketsTrackedBy.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ForgeFedTicketsTrackedBy.Name()] = i + } + } // Maybe serialize property "to" if this.ActivityStreamsTo != nil { if i, err := this.ActivityStreamsTo.Serialize(); err != nil { @@ -1749,6 +1851,14 @@ func (this ActivityStreamsApplication) Serialize() (map[string]interface{}, erro m[this.ActivityStreamsTo.Name()] = i } } + // Maybe serialize property "tracksTicketsFor" + if this.ForgeFedTracksTicketsFor != nil { + if i, err := this.ForgeFedTracksTicketsFor.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ForgeFedTracksTicketsFor.Name()] = i + } + } // Maybe serialize property "type" if this.JSONLDType != nil { if i, err := this.JSONLDType.Serialize(); err != nil { @@ -1977,6 +2087,21 @@ func (this *ActivityStreamsApplication) SetActivityStreamsUrl(i vocab.ActivitySt this.ActivityStreamsUrl = i } +// SetForgeFedTeam sets the "team" property. +func (this *ActivityStreamsApplication) SetForgeFedTeam(i vocab.ForgeFedTeamProperty) { + this.ForgeFedTeam = i +} + +// SetForgeFedTicketsTrackedBy sets the "ticketsTrackedBy" property. +func (this *ActivityStreamsApplication) SetForgeFedTicketsTrackedBy(i vocab.ForgeFedTicketsTrackedByProperty) { + this.ForgeFedTicketsTrackedBy = i +} + +// SetForgeFedTracksTicketsFor sets the "tracksTicketsFor" property. +func (this *ActivityStreamsApplication) SetForgeFedTracksTicketsFor(i vocab.ForgeFedTracksTicketsForProperty) { + this.ForgeFedTracksTicketsFor = i +} + // SetJSONLDId sets the "id" property. func (this *ActivityStreamsApplication) SetJSONLDId(i vocab.JSONLDIdProperty) { this.JSONLDId = i diff --git a/streams/impl/activitystreams/type_arrive/gen_pkg.go b/streams/impl/activitystreams/type_arrive/gen_pkg.go index 8ac8c40..3ed9d13 100644 --- a/streams/impl/activitystreams/type_arrive/gen_pkg.go +++ b/streams/impl/activitystreams/type_arrive/gen_pkg.go @@ -144,10 +144,22 @@ type privateManager interface { // method for the "ActivityStreamsTargetProperty" non-functional // property in the vocabulary "ActivityStreams" DeserializeTargetPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTargetProperty, error) + // DeserializeTeamPropertyForgeFed returns the deserialization method for + // the "ForgeFedTeamProperty" non-functional property in the + // vocabulary "ForgeFed" + DeserializeTeamPropertyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTeamProperty, error) + // DeserializeTicketsTrackedByPropertyForgeFed returns the deserialization + // method for the "ForgeFedTicketsTrackedByProperty" non-functional + // property in the vocabulary "ForgeFed" + DeserializeTicketsTrackedByPropertyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTicketsTrackedByProperty, error) // DeserializeToPropertyActivityStreams returns the deserialization method // for the "ActivityStreamsToProperty" non-functional property in the // vocabulary "ActivityStreams" DeserializeToPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsToProperty, error) + // DeserializeTracksTicketsForPropertyForgeFed returns the deserialization + // method for the "ForgeFedTracksTicketsForProperty" non-functional + // property in the vocabulary "ForgeFed" + DeserializeTracksTicketsForPropertyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTracksTicketsForProperty, error) // DeserializeTypePropertyJSONLD returns the deserialization method for // the "JSONLDTypeProperty" non-functional property in the vocabulary // "JSONLD" diff --git a/streams/impl/activitystreams/type_arrive/gen_type_activitystreams_arrive.go b/streams/impl/activitystreams/type_arrive/gen_type_activitystreams_arrive.go index ec82b0c..0e09740 100644 --- a/streams/impl/activitystreams/type_arrive/gen_type_activitystreams_arrive.go +++ b/streams/impl/activitystreams/type_arrive/gen_type_activitystreams_arrive.go @@ -63,7 +63,10 @@ type ActivityStreamsArrive struct { ActivityStreamsSummary vocab.ActivityStreamsSummaryProperty ActivityStreamsTag vocab.ActivityStreamsTagProperty ActivityStreamsTarget vocab.ActivityStreamsTargetProperty + ForgeFedTeam vocab.ForgeFedTeamProperty + ForgeFedTicketsTrackedBy vocab.ForgeFedTicketsTrackedByProperty ActivityStreamsTo vocab.ActivityStreamsToProperty + ForgeFedTracksTicketsFor vocab.ForgeFedTracksTicketsForProperty JSONLDType vocab.JSONLDTypeProperty ActivityStreamsUpdated vocab.ActivityStreamsUpdatedProperty ActivityStreamsUrl vocab.ActivityStreamsUrlProperty @@ -305,11 +308,26 @@ func DeserializeArrive(m map[string]interface{}, aliasMap map[string]string) (*A } else if p != nil { this.ActivityStreamsTarget = p } + if p, err := mgr.DeserializeTeamPropertyForgeFed()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ForgeFedTeam = p + } + if p, err := mgr.DeserializeTicketsTrackedByPropertyForgeFed()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ForgeFedTicketsTrackedBy = p + } if p, err := mgr.DeserializeToPropertyActivityStreams()(m, aliasMap); err != nil { return nil, err } else if p != nil { this.ActivityStreamsTo = p } + if p, err := mgr.DeserializeTracksTicketsForPropertyForgeFed()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ForgeFedTracksTicketsFor = p + } if p, err := mgr.DeserializeTypePropertyJSONLD()(m, aliasMap); err != nil { return nil, err } else if p != nil { @@ -402,8 +420,14 @@ func DeserializeArrive(m map[string]interface{}, aliasMap map[string]string) (*A continue } else if k == "target" { continue + } else if k == "team" { + continue + } else if k == "ticketsTrackedBy" { + continue } else if k == "to" { continue + } else if k == "tracksTicketsFor" { + continue } else if k == "type" { continue } else if k == "updated" { @@ -647,6 +671,23 @@ func (this ActivityStreamsArrive) GetActivityStreamsUrl() vocab.ActivityStreamsU return this.ActivityStreamsUrl } +// GetForgeFedTeam returns the "team" property if it exists, and nil otherwise. +func (this ActivityStreamsArrive) GetForgeFedTeam() vocab.ForgeFedTeamProperty { + return this.ForgeFedTeam +} + +// GetForgeFedTicketsTrackedBy returns the "ticketsTrackedBy" property if it +// exists, and nil otherwise. +func (this ActivityStreamsArrive) GetForgeFedTicketsTrackedBy() vocab.ForgeFedTicketsTrackedByProperty { + return this.ForgeFedTicketsTrackedBy +} + +// GetForgeFedTracksTicketsFor returns the "tracksTicketsFor" property if it +// exists, and nil otherwise. +func (this ActivityStreamsArrive) GetForgeFedTracksTicketsFor() vocab.ForgeFedTracksTicketsForProperty { + return this.ForgeFedTracksTicketsFor +} + // GetJSONLDId returns the "id" property if it exists, and nil otherwise. func (this ActivityStreamsArrive) GetJSONLDId() vocab.JSONLDIdProperty { return this.JSONLDId @@ -715,7 +756,10 @@ func (this ActivityStreamsArrive) JSONLDContext() map[string]string { m = this.helperJSONLDContext(this.ActivityStreamsSummary, m) m = this.helperJSONLDContext(this.ActivityStreamsTag, m) m = this.helperJSONLDContext(this.ActivityStreamsTarget, m) + m = this.helperJSONLDContext(this.ForgeFedTeam, m) + m = this.helperJSONLDContext(this.ForgeFedTicketsTrackedBy, m) m = this.helperJSONLDContext(this.ActivityStreamsTo, m) + m = this.helperJSONLDContext(this.ForgeFedTracksTicketsFor, m) m = this.helperJSONLDContext(this.JSONLDType, m) m = this.helperJSONLDContext(this.ActivityStreamsUpdated, m) m = this.helperJSONLDContext(this.ActivityStreamsUrl, m) @@ -1189,6 +1233,34 @@ func (this ActivityStreamsArrive) LessThan(o vocab.ActivityStreamsArrive) bool { // Anything else is greater than nil return false } // Else: Both are nil + // Compare property "team" + if lhs, rhs := this.ForgeFedTeam, o.GetForgeFedTeam(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "ticketsTrackedBy" + if lhs, rhs := this.ForgeFedTicketsTrackedBy, o.GetForgeFedTicketsTrackedBy(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil // Compare property "to" if lhs, rhs := this.ActivityStreamsTo, o.GetActivityStreamsTo(); lhs != nil && rhs != nil { if lhs.LessThan(rhs) { @@ -1203,6 +1275,20 @@ func (this ActivityStreamsArrive) LessThan(o vocab.ActivityStreamsArrive) bool { // Anything else is greater than nil return false } // Else: Both are nil + // Compare property "tracksTicketsFor" + if lhs, rhs := this.ForgeFedTracksTicketsFor, o.GetForgeFedTracksTicketsFor(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil // Compare property "type" if lhs, rhs := this.JSONLDType, o.GetJSONLDType(); lhs != nil && rhs != nil { if lhs.LessThan(rhs) { @@ -1532,6 +1618,22 @@ func (this ActivityStreamsArrive) Serialize() (map[string]interface{}, error) { m[this.ActivityStreamsTarget.Name()] = i } } + // Maybe serialize property "team" + if this.ForgeFedTeam != nil { + if i, err := this.ForgeFedTeam.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ForgeFedTeam.Name()] = i + } + } + // Maybe serialize property "ticketsTrackedBy" + if this.ForgeFedTicketsTrackedBy != nil { + if i, err := this.ForgeFedTicketsTrackedBy.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ForgeFedTicketsTrackedBy.Name()] = i + } + } // Maybe serialize property "to" if this.ActivityStreamsTo != nil { if i, err := this.ActivityStreamsTo.Serialize(); err != nil { @@ -1540,6 +1642,14 @@ func (this ActivityStreamsArrive) Serialize() (map[string]interface{}, error) { m[this.ActivityStreamsTo.Name()] = i } } + // Maybe serialize property "tracksTicketsFor" + if this.ForgeFedTracksTicketsFor != nil { + if i, err := this.ForgeFedTracksTicketsFor.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ForgeFedTracksTicketsFor.Name()] = i + } + } // Maybe serialize property "type" if this.JSONLDType != nil { if i, err := this.JSONLDType.Serialize(); err != nil { @@ -1753,6 +1863,21 @@ func (this *ActivityStreamsArrive) SetActivityStreamsUrl(i vocab.ActivityStreams this.ActivityStreamsUrl = i } +// SetForgeFedTeam sets the "team" property. +func (this *ActivityStreamsArrive) SetForgeFedTeam(i vocab.ForgeFedTeamProperty) { + this.ForgeFedTeam = i +} + +// SetForgeFedTicketsTrackedBy sets the "ticketsTrackedBy" property. +func (this *ActivityStreamsArrive) SetForgeFedTicketsTrackedBy(i vocab.ForgeFedTicketsTrackedByProperty) { + this.ForgeFedTicketsTrackedBy = i +} + +// SetForgeFedTracksTicketsFor sets the "tracksTicketsFor" property. +func (this *ActivityStreamsArrive) SetForgeFedTracksTicketsFor(i vocab.ForgeFedTracksTicketsForProperty) { + this.ForgeFedTracksTicketsFor = i +} + // SetJSONLDId sets the "id" property. func (this *ActivityStreamsArrive) SetJSONLDId(i vocab.JSONLDIdProperty) { this.JSONLDId = i diff --git a/streams/impl/activitystreams/type_article/gen_pkg.go b/streams/impl/activitystreams/type_article/gen_pkg.go index 220bd8d..4c0055c 100644 --- a/streams/impl/activitystreams/type_article/gen_pkg.go +++ b/streams/impl/activitystreams/type_article/gen_pkg.go @@ -128,10 +128,22 @@ type privateManager interface { // method for the "ActivityStreamsTagProperty" non-functional property // in the vocabulary "ActivityStreams" DeserializeTagPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTagProperty, error) + // DeserializeTeamPropertyForgeFed returns the deserialization method for + // the "ForgeFedTeamProperty" non-functional property in the + // vocabulary "ForgeFed" + DeserializeTeamPropertyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTeamProperty, error) + // DeserializeTicketsTrackedByPropertyForgeFed returns the deserialization + // method for the "ForgeFedTicketsTrackedByProperty" non-functional + // property in the vocabulary "ForgeFed" + DeserializeTicketsTrackedByPropertyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTicketsTrackedByProperty, error) // DeserializeToPropertyActivityStreams returns the deserialization method // for the "ActivityStreamsToProperty" non-functional property in the // vocabulary "ActivityStreams" DeserializeToPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsToProperty, error) + // DeserializeTracksTicketsForPropertyForgeFed returns the deserialization + // method for the "ForgeFedTracksTicketsForProperty" non-functional + // property in the vocabulary "ForgeFed" + DeserializeTracksTicketsForPropertyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTracksTicketsForProperty, error) // DeserializeTypePropertyJSONLD returns the deserialization method for // the "JSONLDTypeProperty" non-functional property in the vocabulary // "JSONLD" diff --git a/streams/impl/activitystreams/type_article/gen_type_activitystreams_article.go b/streams/impl/activitystreams/type_article/gen_type_activitystreams_article.go index 5df663c..158c880 100644 --- a/streams/impl/activitystreams/type_article/gen_type_activitystreams_article.go +++ b/streams/impl/activitystreams/type_article/gen_type_activitystreams_article.go @@ -48,7 +48,10 @@ type ActivityStreamsArticle struct { ActivityStreamsStartTime vocab.ActivityStreamsStartTimeProperty ActivityStreamsSummary vocab.ActivityStreamsSummaryProperty ActivityStreamsTag vocab.ActivityStreamsTagProperty + ForgeFedTeam vocab.ForgeFedTeamProperty + ForgeFedTicketsTrackedBy vocab.ForgeFedTicketsTrackedByProperty ActivityStreamsTo vocab.ActivityStreamsToProperty + ForgeFedTracksTicketsFor vocab.ForgeFedTracksTicketsForProperty JSONLDType vocab.JSONLDTypeProperty ActivityStreamsUpdated vocab.ActivityStreamsUpdatedProperty ActivityStreamsUrl vocab.ActivityStreamsUrlProperty @@ -270,11 +273,26 @@ func DeserializeArticle(m map[string]interface{}, aliasMap map[string]string) (* } else if p != nil { this.ActivityStreamsTag = p } + if p, err := mgr.DeserializeTeamPropertyForgeFed()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ForgeFedTeam = p + } + if p, err := mgr.DeserializeTicketsTrackedByPropertyForgeFed()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ForgeFedTicketsTrackedBy = p + } if p, err := mgr.DeserializeToPropertyActivityStreams()(m, aliasMap); err != nil { return nil, err } else if p != nil { this.ActivityStreamsTo = p } + if p, err := mgr.DeserializeTracksTicketsForPropertyForgeFed()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ForgeFedTracksTicketsFor = p + } if p, err := mgr.DeserializeTypePropertyJSONLD()(m, aliasMap); err != nil { return nil, err } else if p != nil { @@ -359,8 +377,14 @@ func DeserializeArticle(m map[string]interface{}, aliasMap map[string]string) (* continue } else if k == "tag" { continue + } else if k == "team" { + continue + } else if k == "ticketsTrackedBy" { + continue } else if k == "to" { continue + } else if k == "tracksTicketsFor" { + continue } else if k == "type" { continue } else if k == "updated" { @@ -580,6 +604,23 @@ func (this ActivityStreamsArticle) GetActivityStreamsUrl() vocab.ActivityStreams return this.ActivityStreamsUrl } +// GetForgeFedTeam returns the "team" property if it exists, and nil otherwise. +func (this ActivityStreamsArticle) GetForgeFedTeam() vocab.ForgeFedTeamProperty { + return this.ForgeFedTeam +} + +// GetForgeFedTicketsTrackedBy returns the "ticketsTrackedBy" property if it +// exists, and nil otherwise. +func (this ActivityStreamsArticle) GetForgeFedTicketsTrackedBy() vocab.ForgeFedTicketsTrackedByProperty { + return this.ForgeFedTicketsTrackedBy +} + +// GetForgeFedTracksTicketsFor returns the "tracksTicketsFor" property if it +// exists, and nil otherwise. +func (this ActivityStreamsArticle) GetForgeFedTracksTicketsFor() vocab.ForgeFedTracksTicketsForProperty { + return this.ForgeFedTracksTicketsFor +} + // GetJSONLDId returns the "id" property if it exists, and nil otherwise. func (this ActivityStreamsArticle) GetJSONLDId() vocab.JSONLDIdProperty { return this.JSONLDId @@ -644,7 +685,10 @@ func (this ActivityStreamsArticle) JSONLDContext() map[string]string { m = this.helperJSONLDContext(this.ActivityStreamsStartTime, m) m = this.helperJSONLDContext(this.ActivityStreamsSummary, m) m = this.helperJSONLDContext(this.ActivityStreamsTag, m) + m = this.helperJSONLDContext(this.ForgeFedTeam, m) + m = this.helperJSONLDContext(this.ForgeFedTicketsTrackedBy, m) m = this.helperJSONLDContext(this.ActivityStreamsTo, m) + m = this.helperJSONLDContext(this.ForgeFedTracksTicketsFor, m) m = this.helperJSONLDContext(this.JSONLDType, m) m = this.helperJSONLDContext(this.ActivityStreamsUpdated, m) m = this.helperJSONLDContext(this.ActivityStreamsUrl, m) @@ -1062,6 +1106,34 @@ func (this ActivityStreamsArticle) LessThan(o vocab.ActivityStreamsArticle) bool // Anything else is greater than nil return false } // Else: Both are nil + // Compare property "team" + if lhs, rhs := this.ForgeFedTeam, o.GetForgeFedTeam(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "ticketsTrackedBy" + if lhs, rhs := this.ForgeFedTicketsTrackedBy, o.GetForgeFedTicketsTrackedBy(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil // Compare property "to" if lhs, rhs := this.ActivityStreamsTo, o.GetActivityStreamsTo(); lhs != nil && rhs != nil { if lhs.LessThan(rhs) { @@ -1076,6 +1148,20 @@ func (this ActivityStreamsArticle) LessThan(o vocab.ActivityStreamsArticle) bool // Anything else is greater than nil return false } // Else: Both are nil + // Compare property "tracksTicketsFor" + if lhs, rhs := this.ForgeFedTracksTicketsFor, o.GetForgeFedTracksTicketsFor(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil // Compare property "type" if lhs, rhs := this.JSONLDType, o.GetJSONLDType(); lhs != nil && rhs != nil { if lhs.LessThan(rhs) { @@ -1373,6 +1459,22 @@ func (this ActivityStreamsArticle) Serialize() (map[string]interface{}, error) { m[this.ActivityStreamsTag.Name()] = i } } + // Maybe serialize property "team" + if this.ForgeFedTeam != nil { + if i, err := this.ForgeFedTeam.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ForgeFedTeam.Name()] = i + } + } + // Maybe serialize property "ticketsTrackedBy" + if this.ForgeFedTicketsTrackedBy != nil { + if i, err := this.ForgeFedTicketsTrackedBy.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ForgeFedTicketsTrackedBy.Name()] = i + } + } // Maybe serialize property "to" if this.ActivityStreamsTo != nil { if i, err := this.ActivityStreamsTo.Serialize(); err != nil { @@ -1381,6 +1483,14 @@ func (this ActivityStreamsArticle) Serialize() (map[string]interface{}, error) { m[this.ActivityStreamsTo.Name()] = i } } + // Maybe serialize property "tracksTicketsFor" + if this.ForgeFedTracksTicketsFor != nil { + if i, err := this.ForgeFedTracksTicketsFor.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ForgeFedTracksTicketsFor.Name()] = i + } + } // Maybe serialize property "type" if this.JSONLDType != nil { if i, err := this.JSONLDType.Serialize(); err != nil { @@ -1574,6 +1684,21 @@ func (this *ActivityStreamsArticle) SetActivityStreamsUrl(i vocab.ActivityStream this.ActivityStreamsUrl = i } +// SetForgeFedTeam sets the "team" property. +func (this *ActivityStreamsArticle) SetForgeFedTeam(i vocab.ForgeFedTeamProperty) { + this.ForgeFedTeam = i +} + +// SetForgeFedTicketsTrackedBy sets the "ticketsTrackedBy" property. +func (this *ActivityStreamsArticle) SetForgeFedTicketsTrackedBy(i vocab.ForgeFedTicketsTrackedByProperty) { + this.ForgeFedTicketsTrackedBy = i +} + +// SetForgeFedTracksTicketsFor sets the "tracksTicketsFor" property. +func (this *ActivityStreamsArticle) SetForgeFedTracksTicketsFor(i vocab.ForgeFedTracksTicketsForProperty) { + this.ForgeFedTracksTicketsFor = i +} + // SetJSONLDId sets the "id" property. func (this *ActivityStreamsArticle) SetJSONLDId(i vocab.JSONLDIdProperty) { this.JSONLDId = i diff --git a/streams/impl/activitystreams/type_audio/gen_pkg.go b/streams/impl/activitystreams/type_audio/gen_pkg.go index 58959dd..ece1181 100644 --- a/streams/impl/activitystreams/type_audio/gen_pkg.go +++ b/streams/impl/activitystreams/type_audio/gen_pkg.go @@ -132,10 +132,22 @@ type privateManager interface { // method for the "ActivityStreamsTagProperty" non-functional property // in the vocabulary "ActivityStreams" DeserializeTagPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTagProperty, error) + // DeserializeTeamPropertyForgeFed returns the deserialization method for + // the "ForgeFedTeamProperty" non-functional property in the + // vocabulary "ForgeFed" + DeserializeTeamPropertyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTeamProperty, error) + // DeserializeTicketsTrackedByPropertyForgeFed returns the deserialization + // method for the "ForgeFedTicketsTrackedByProperty" non-functional + // property in the vocabulary "ForgeFed" + DeserializeTicketsTrackedByPropertyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTicketsTrackedByProperty, error) // DeserializeToPropertyActivityStreams returns the deserialization method // for the "ActivityStreamsToProperty" non-functional property in the // vocabulary "ActivityStreams" DeserializeToPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsToProperty, error) + // DeserializeTracksTicketsForPropertyForgeFed returns the deserialization + // method for the "ForgeFedTracksTicketsForProperty" non-functional + // property in the vocabulary "ForgeFed" + DeserializeTracksTicketsForPropertyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTracksTicketsForProperty, error) // DeserializeTypePropertyJSONLD returns the deserialization method for // the "JSONLDTypeProperty" non-functional property in the vocabulary // "JSONLD" diff --git a/streams/impl/activitystreams/type_audio/gen_type_activitystreams_audio.go b/streams/impl/activitystreams/type_audio/gen_type_activitystreams_audio.go index 3def4ec..30a0040 100644 --- a/streams/impl/activitystreams/type_audio/gen_type_activitystreams_audio.go +++ b/streams/impl/activitystreams/type_audio/gen_type_activitystreams_audio.go @@ -51,7 +51,10 @@ type ActivityStreamsAudio struct { ActivityStreamsStartTime vocab.ActivityStreamsStartTimeProperty ActivityStreamsSummary vocab.ActivityStreamsSummaryProperty ActivityStreamsTag vocab.ActivityStreamsTagProperty + ForgeFedTeam vocab.ForgeFedTeamProperty + ForgeFedTicketsTrackedBy vocab.ForgeFedTicketsTrackedByProperty ActivityStreamsTo vocab.ActivityStreamsToProperty + ForgeFedTracksTicketsFor vocab.ForgeFedTracksTicketsForProperty JSONLDType vocab.JSONLDTypeProperty ActivityStreamsUpdated vocab.ActivityStreamsUpdatedProperty ActivityStreamsUrl vocab.ActivityStreamsUrlProperty @@ -278,11 +281,26 @@ func DeserializeAudio(m map[string]interface{}, aliasMap map[string]string) (*Ac } else if p != nil { this.ActivityStreamsTag = p } + if p, err := mgr.DeserializeTeamPropertyForgeFed()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ForgeFedTeam = p + } + if p, err := mgr.DeserializeTicketsTrackedByPropertyForgeFed()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ForgeFedTicketsTrackedBy = p + } if p, err := mgr.DeserializeToPropertyActivityStreams()(m, aliasMap); err != nil { return nil, err } else if p != nil { this.ActivityStreamsTo = p } + if p, err := mgr.DeserializeTracksTicketsForPropertyForgeFed()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ForgeFedTracksTicketsFor = p + } if p, err := mgr.DeserializeTypePropertyJSONLD()(m, aliasMap); err != nil { return nil, err } else if p != nil { @@ -369,8 +387,14 @@ func DeserializeAudio(m map[string]interface{}, aliasMap map[string]string) (*Ac continue } else if k == "tag" { continue + } else if k == "team" { + continue + } else if k == "ticketsTrackedBy" { + continue } else if k == "to" { continue + } else if k == "tracksTicketsFor" { + continue } else if k == "type" { continue } else if k == "updated" { @@ -590,6 +614,23 @@ func (this ActivityStreamsAudio) GetActivityStreamsUrl() vocab.ActivityStreamsUr return this.ActivityStreamsUrl } +// GetForgeFedTeam returns the "team" property if it exists, and nil otherwise. +func (this ActivityStreamsAudio) GetForgeFedTeam() vocab.ForgeFedTeamProperty { + return this.ForgeFedTeam +} + +// GetForgeFedTicketsTrackedBy returns the "ticketsTrackedBy" property if it +// exists, and nil otherwise. +func (this ActivityStreamsAudio) GetForgeFedTicketsTrackedBy() vocab.ForgeFedTicketsTrackedByProperty { + return this.ForgeFedTicketsTrackedBy +} + +// GetForgeFedTracksTicketsFor returns the "tracksTicketsFor" property if it +// exists, and nil otherwise. +func (this ActivityStreamsAudio) GetForgeFedTracksTicketsFor() vocab.ForgeFedTracksTicketsForProperty { + return this.ForgeFedTracksTicketsFor +} + // GetJSONLDId returns the "id" property if it exists, and nil otherwise. func (this ActivityStreamsAudio) GetJSONLDId() vocab.JSONLDIdProperty { return this.JSONLDId @@ -660,7 +701,10 @@ func (this ActivityStreamsAudio) JSONLDContext() map[string]string { m = this.helperJSONLDContext(this.ActivityStreamsStartTime, m) m = this.helperJSONLDContext(this.ActivityStreamsSummary, m) m = this.helperJSONLDContext(this.ActivityStreamsTag, m) + m = this.helperJSONLDContext(this.ForgeFedTeam, m) + m = this.helperJSONLDContext(this.ForgeFedTicketsTrackedBy, m) m = this.helperJSONLDContext(this.ActivityStreamsTo, m) + m = this.helperJSONLDContext(this.ForgeFedTracksTicketsFor, m) m = this.helperJSONLDContext(this.JSONLDType, m) m = this.helperJSONLDContext(this.ActivityStreamsUpdated, m) m = this.helperJSONLDContext(this.ActivityStreamsUrl, m) @@ -1092,6 +1136,34 @@ func (this ActivityStreamsAudio) LessThan(o vocab.ActivityStreamsAudio) bool { // Anything else is greater than nil return false } // Else: Both are nil + // Compare property "team" + if lhs, rhs := this.ForgeFedTeam, o.GetForgeFedTeam(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "ticketsTrackedBy" + if lhs, rhs := this.ForgeFedTicketsTrackedBy, o.GetForgeFedTicketsTrackedBy(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil // Compare property "to" if lhs, rhs := this.ActivityStreamsTo, o.GetActivityStreamsTo(); lhs != nil && rhs != nil { if lhs.LessThan(rhs) { @@ -1106,6 +1178,20 @@ func (this ActivityStreamsAudio) LessThan(o vocab.ActivityStreamsAudio) bool { // Anything else is greater than nil return false } // Else: Both are nil + // Compare property "tracksTicketsFor" + if lhs, rhs := this.ForgeFedTracksTicketsFor, o.GetForgeFedTracksTicketsFor(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil // Compare property "type" if lhs, rhs := this.JSONLDType, o.GetJSONLDType(); lhs != nil && rhs != nil { if lhs.LessThan(rhs) { @@ -1411,6 +1497,22 @@ func (this ActivityStreamsAudio) Serialize() (map[string]interface{}, error) { m[this.ActivityStreamsTag.Name()] = i } } + // Maybe serialize property "team" + if this.ForgeFedTeam != nil { + if i, err := this.ForgeFedTeam.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ForgeFedTeam.Name()] = i + } + } + // Maybe serialize property "ticketsTrackedBy" + if this.ForgeFedTicketsTrackedBy != nil { + if i, err := this.ForgeFedTicketsTrackedBy.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ForgeFedTicketsTrackedBy.Name()] = i + } + } // Maybe serialize property "to" if this.ActivityStreamsTo != nil { if i, err := this.ActivityStreamsTo.Serialize(); err != nil { @@ -1419,6 +1521,14 @@ func (this ActivityStreamsAudio) Serialize() (map[string]interface{}, error) { m[this.ActivityStreamsTo.Name()] = i } } + // Maybe serialize property "tracksTicketsFor" + if this.ForgeFedTracksTicketsFor != nil { + if i, err := this.ForgeFedTracksTicketsFor.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ForgeFedTracksTicketsFor.Name()] = i + } + } // Maybe serialize property "type" if this.JSONLDType != nil { if i, err := this.JSONLDType.Serialize(); err != nil { @@ -1612,6 +1722,21 @@ func (this *ActivityStreamsAudio) SetActivityStreamsUrl(i vocab.ActivityStreamsU this.ActivityStreamsUrl = i } +// SetForgeFedTeam sets the "team" property. +func (this *ActivityStreamsAudio) SetForgeFedTeam(i vocab.ForgeFedTeamProperty) { + this.ForgeFedTeam = i +} + +// SetForgeFedTicketsTrackedBy sets the "ticketsTrackedBy" property. +func (this *ActivityStreamsAudio) SetForgeFedTicketsTrackedBy(i vocab.ForgeFedTicketsTrackedByProperty) { + this.ForgeFedTicketsTrackedBy = i +} + +// SetForgeFedTracksTicketsFor sets the "tracksTicketsFor" property. +func (this *ActivityStreamsAudio) SetForgeFedTracksTicketsFor(i vocab.ForgeFedTracksTicketsForProperty) { + this.ForgeFedTracksTicketsFor = i +} + // SetJSONLDId sets the "id" property. func (this *ActivityStreamsAudio) SetJSONLDId(i vocab.JSONLDIdProperty) { this.JSONLDId = i diff --git a/streams/impl/activitystreams/type_block/gen_pkg.go b/streams/impl/activitystreams/type_block/gen_pkg.go index 7798e05..23e71ec 100644 --- a/streams/impl/activitystreams/type_block/gen_pkg.go +++ b/streams/impl/activitystreams/type_block/gen_pkg.go @@ -148,10 +148,22 @@ type privateManager interface { // method for the "ActivityStreamsTargetProperty" non-functional // property in the vocabulary "ActivityStreams" DeserializeTargetPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTargetProperty, error) + // DeserializeTeamPropertyForgeFed returns the deserialization method for + // the "ForgeFedTeamProperty" non-functional property in the + // vocabulary "ForgeFed" + DeserializeTeamPropertyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTeamProperty, error) + // DeserializeTicketsTrackedByPropertyForgeFed returns the deserialization + // method for the "ForgeFedTicketsTrackedByProperty" non-functional + // property in the vocabulary "ForgeFed" + DeserializeTicketsTrackedByPropertyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTicketsTrackedByProperty, error) // DeserializeToPropertyActivityStreams returns the deserialization method // for the "ActivityStreamsToProperty" non-functional property in the // vocabulary "ActivityStreams" DeserializeToPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsToProperty, error) + // DeserializeTracksTicketsForPropertyForgeFed returns the deserialization + // method for the "ForgeFedTracksTicketsForProperty" non-functional + // property in the vocabulary "ForgeFed" + DeserializeTracksTicketsForPropertyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTracksTicketsForProperty, error) // DeserializeTypePropertyJSONLD returns the deserialization method for // the "JSONLDTypeProperty" non-functional property in the vocabulary // "JSONLD" diff --git a/streams/impl/activitystreams/type_block/gen_type_activitystreams_block.go b/streams/impl/activitystreams/type_block/gen_type_activitystreams_block.go index 6bd2a9f..07a7c98 100644 --- a/streams/impl/activitystreams/type_block/gen_type_activitystreams_block.go +++ b/streams/impl/activitystreams/type_block/gen_type_activitystreams_block.go @@ -55,7 +55,10 @@ type ActivityStreamsBlock struct { ActivityStreamsSummary vocab.ActivityStreamsSummaryProperty ActivityStreamsTag vocab.ActivityStreamsTagProperty ActivityStreamsTarget vocab.ActivityStreamsTargetProperty + ForgeFedTeam vocab.ForgeFedTeamProperty + ForgeFedTicketsTrackedBy vocab.ForgeFedTicketsTrackedByProperty ActivityStreamsTo vocab.ActivityStreamsToProperty + ForgeFedTracksTicketsFor vocab.ForgeFedTracksTicketsForProperty JSONLDType vocab.JSONLDTypeProperty ActivityStreamsUpdated vocab.ActivityStreamsUpdatedProperty ActivityStreamsUrl vocab.ActivityStreamsUrlProperty @@ -302,11 +305,26 @@ func DeserializeBlock(m map[string]interface{}, aliasMap map[string]string) (*Ac } else if p != nil { this.ActivityStreamsTarget = p } + if p, err := mgr.DeserializeTeamPropertyForgeFed()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ForgeFedTeam = p + } + if p, err := mgr.DeserializeTicketsTrackedByPropertyForgeFed()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ForgeFedTicketsTrackedBy = p + } if p, err := mgr.DeserializeToPropertyActivityStreams()(m, aliasMap); err != nil { return nil, err } else if p != nil { this.ActivityStreamsTo = p } + if p, err := mgr.DeserializeTracksTicketsForPropertyForgeFed()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ForgeFedTracksTicketsFor = p + } if p, err := mgr.DeserializeTypePropertyJSONLD()(m, aliasMap); err != nil { return nil, err } else if p != nil { @@ -401,8 +419,14 @@ func DeserializeBlock(m map[string]interface{}, aliasMap map[string]string) (*Ac continue } else if k == "target" { continue + } else if k == "team" { + continue + } else if k == "ticketsTrackedBy" { + continue } else if k == "to" { continue + } else if k == "tracksTicketsFor" { + continue } else if k == "type" { continue } else if k == "updated" { @@ -652,6 +676,23 @@ func (this ActivityStreamsBlock) GetActivityStreamsUrl() vocab.ActivityStreamsUr return this.ActivityStreamsUrl } +// GetForgeFedTeam returns the "team" property if it exists, and nil otherwise. +func (this ActivityStreamsBlock) GetForgeFedTeam() vocab.ForgeFedTeamProperty { + return this.ForgeFedTeam +} + +// GetForgeFedTicketsTrackedBy returns the "ticketsTrackedBy" property if it +// exists, and nil otherwise. +func (this ActivityStreamsBlock) GetForgeFedTicketsTrackedBy() vocab.ForgeFedTicketsTrackedByProperty { + return this.ForgeFedTicketsTrackedBy +} + +// GetForgeFedTracksTicketsFor returns the "tracksTicketsFor" property if it +// exists, and nil otherwise. +func (this ActivityStreamsBlock) GetForgeFedTracksTicketsFor() vocab.ForgeFedTracksTicketsForProperty { + return this.ForgeFedTracksTicketsFor +} + // GetJSONLDId returns the "id" property if it exists, and nil otherwise. func (this ActivityStreamsBlock) GetJSONLDId() vocab.JSONLDIdProperty { return this.JSONLDId @@ -721,7 +762,10 @@ func (this ActivityStreamsBlock) JSONLDContext() map[string]string { m = this.helperJSONLDContext(this.ActivityStreamsSummary, m) m = this.helperJSONLDContext(this.ActivityStreamsTag, m) m = this.helperJSONLDContext(this.ActivityStreamsTarget, m) + m = this.helperJSONLDContext(this.ForgeFedTeam, m) + m = this.helperJSONLDContext(this.ForgeFedTicketsTrackedBy, m) m = this.helperJSONLDContext(this.ActivityStreamsTo, m) + m = this.helperJSONLDContext(this.ForgeFedTracksTicketsFor, m) m = this.helperJSONLDContext(this.JSONLDType, m) m = this.helperJSONLDContext(this.ActivityStreamsUpdated, m) m = this.helperJSONLDContext(this.ActivityStreamsUrl, m) @@ -1209,6 +1253,34 @@ func (this ActivityStreamsBlock) LessThan(o vocab.ActivityStreamsBlock) bool { // Anything else is greater than nil return false } // Else: Both are nil + // Compare property "team" + if lhs, rhs := this.ForgeFedTeam, o.GetForgeFedTeam(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "ticketsTrackedBy" + if lhs, rhs := this.ForgeFedTicketsTrackedBy, o.GetForgeFedTicketsTrackedBy(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil // Compare property "to" if lhs, rhs := this.ActivityStreamsTo, o.GetActivityStreamsTo(); lhs != nil && rhs != nil { if lhs.LessThan(rhs) { @@ -1223,6 +1295,20 @@ func (this ActivityStreamsBlock) LessThan(o vocab.ActivityStreamsBlock) bool { // Anything else is greater than nil return false } // Else: Both are nil + // Compare property "tracksTicketsFor" + if lhs, rhs := this.ForgeFedTracksTicketsFor, o.GetForgeFedTracksTicketsFor(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil // Compare property "type" if lhs, rhs := this.JSONLDType, o.GetJSONLDType(); lhs != nil && rhs != nil { if lhs.LessThan(rhs) { @@ -1560,6 +1646,22 @@ func (this ActivityStreamsBlock) Serialize() (map[string]interface{}, error) { m[this.ActivityStreamsTarget.Name()] = i } } + // Maybe serialize property "team" + if this.ForgeFedTeam != nil { + if i, err := this.ForgeFedTeam.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ForgeFedTeam.Name()] = i + } + } + // Maybe serialize property "ticketsTrackedBy" + if this.ForgeFedTicketsTrackedBy != nil { + if i, err := this.ForgeFedTicketsTrackedBy.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ForgeFedTicketsTrackedBy.Name()] = i + } + } // Maybe serialize property "to" if this.ActivityStreamsTo != nil { if i, err := this.ActivityStreamsTo.Serialize(); err != nil { @@ -1568,6 +1670,14 @@ func (this ActivityStreamsBlock) Serialize() (map[string]interface{}, error) { m[this.ActivityStreamsTo.Name()] = i } } + // Maybe serialize property "tracksTicketsFor" + if this.ForgeFedTracksTicketsFor != nil { + if i, err := this.ForgeFedTracksTicketsFor.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ForgeFedTracksTicketsFor.Name()] = i + } + } // Maybe serialize property "type" if this.JSONLDType != nil { if i, err := this.JSONLDType.Serialize(); err != nil { @@ -1786,6 +1896,21 @@ func (this *ActivityStreamsBlock) SetActivityStreamsUrl(i vocab.ActivityStreamsU this.ActivityStreamsUrl = i } +// SetForgeFedTeam sets the "team" property. +func (this *ActivityStreamsBlock) SetForgeFedTeam(i vocab.ForgeFedTeamProperty) { + this.ForgeFedTeam = i +} + +// SetForgeFedTicketsTrackedBy sets the "ticketsTrackedBy" property. +func (this *ActivityStreamsBlock) SetForgeFedTicketsTrackedBy(i vocab.ForgeFedTicketsTrackedByProperty) { + this.ForgeFedTicketsTrackedBy = i +} + +// SetForgeFedTracksTicketsFor sets the "tracksTicketsFor" property. +func (this *ActivityStreamsBlock) SetForgeFedTracksTicketsFor(i vocab.ForgeFedTracksTicketsForProperty) { + this.ForgeFedTracksTicketsFor = i +} + // SetJSONLDId sets the "id" property. func (this *ActivityStreamsBlock) SetJSONLDId(i vocab.JSONLDIdProperty) { this.JSONLDId = i diff --git a/streams/impl/activitystreams/type_collection/gen_pkg.go b/streams/impl/activitystreams/type_collection/gen_pkg.go index e921066..45181d6 100644 --- a/streams/impl/activitystreams/type_collection/gen_pkg.go +++ b/streams/impl/activitystreams/type_collection/gen_pkg.go @@ -144,6 +144,14 @@ type privateManager interface { // method for the "ActivityStreamsTagProperty" non-functional property // in the vocabulary "ActivityStreams" DeserializeTagPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTagProperty, error) + // DeserializeTeamPropertyForgeFed returns the deserialization method for + // the "ForgeFedTeamProperty" non-functional property in the + // vocabulary "ForgeFed" + DeserializeTeamPropertyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTeamProperty, error) + // DeserializeTicketsTrackedByPropertyForgeFed returns the deserialization + // method for the "ForgeFedTicketsTrackedByProperty" non-functional + // property in the vocabulary "ForgeFed" + DeserializeTicketsTrackedByPropertyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTicketsTrackedByProperty, error) // DeserializeToPropertyActivityStreams returns the deserialization method // for the "ActivityStreamsToProperty" non-functional property in the // vocabulary "ActivityStreams" @@ -152,6 +160,10 @@ type privateManager interface { // deserialization method for the "ActivityStreamsTotalItemsProperty" // non-functional property in the vocabulary "ActivityStreams" DeserializeTotalItemsPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTotalItemsProperty, error) + // DeserializeTracksTicketsForPropertyForgeFed returns the deserialization + // method for the "ForgeFedTracksTicketsForProperty" non-functional + // property in the vocabulary "ForgeFed" + DeserializeTracksTicketsForPropertyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTracksTicketsForProperty, error) // DeserializeTypePropertyJSONLD returns the deserialization method for // the "JSONLDTypeProperty" non-functional property in the vocabulary // "JSONLD" diff --git a/streams/impl/activitystreams/type_collection/gen_type_activitystreams_collection.go b/streams/impl/activitystreams/type_collection/gen_type_activitystreams_collection.go index c9d2d5b..6482591 100644 --- a/streams/impl/activitystreams/type_collection/gen_type_activitystreams_collection.go +++ b/streams/impl/activitystreams/type_collection/gen_type_activitystreams_collection.go @@ -62,8 +62,11 @@ type ActivityStreamsCollection struct { ActivityStreamsStartTime vocab.ActivityStreamsStartTimeProperty ActivityStreamsSummary vocab.ActivityStreamsSummaryProperty ActivityStreamsTag vocab.ActivityStreamsTagProperty + ForgeFedTeam vocab.ForgeFedTeamProperty + ForgeFedTicketsTrackedBy vocab.ForgeFedTicketsTrackedByProperty ActivityStreamsTo vocab.ActivityStreamsToProperty ActivityStreamsTotalItems vocab.ActivityStreamsTotalItemsProperty + ForgeFedTracksTicketsFor vocab.ForgeFedTracksTicketsForProperty JSONLDType vocab.JSONLDTypeProperty ActivityStreamsUpdated vocab.ActivityStreamsUpdatedProperty ActivityStreamsUrl vocab.ActivityStreamsUrlProperty @@ -310,6 +313,16 @@ func DeserializeCollection(m map[string]interface{}, aliasMap map[string]string) } else if p != nil { this.ActivityStreamsTag = p } + if p, err := mgr.DeserializeTeamPropertyForgeFed()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ForgeFedTeam = p + } + if p, err := mgr.DeserializeTicketsTrackedByPropertyForgeFed()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ForgeFedTicketsTrackedBy = p + } if p, err := mgr.DeserializeToPropertyActivityStreams()(m, aliasMap); err != nil { return nil, err } else if p != nil { @@ -320,6 +333,11 @@ func DeserializeCollection(m map[string]interface{}, aliasMap map[string]string) } else if p != nil { this.ActivityStreamsTotalItems = p } + if p, err := mgr.DeserializeTracksTicketsForPropertyForgeFed()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ForgeFedTracksTicketsFor = p + } if p, err := mgr.DeserializeTypePropertyJSONLD()(m, aliasMap); err != nil { return nil, err } else if p != nil { @@ -412,10 +430,16 @@ func DeserializeCollection(m map[string]interface{}, aliasMap map[string]string) continue } else if k == "tag" { continue + } else if k == "team" { + continue + } else if k == "ticketsTrackedBy" { + continue } else if k == "to" { continue } else if k == "totalItems" { continue + } else if k == "tracksTicketsFor" { + continue } else if k == "type" { continue } else if k == "updated" { @@ -665,6 +689,23 @@ func (this ActivityStreamsCollection) GetActivityStreamsUrl() vocab.ActivityStre return this.ActivityStreamsUrl } +// GetForgeFedTeam returns the "team" property if it exists, and nil otherwise. +func (this ActivityStreamsCollection) GetForgeFedTeam() vocab.ForgeFedTeamProperty { + return this.ForgeFedTeam +} + +// GetForgeFedTicketsTrackedBy returns the "ticketsTrackedBy" property if it +// exists, and nil otherwise. +func (this ActivityStreamsCollection) GetForgeFedTicketsTrackedBy() vocab.ForgeFedTicketsTrackedByProperty { + return this.ForgeFedTicketsTrackedBy +} + +// GetForgeFedTracksTicketsFor returns the "tracksTicketsFor" property if it +// exists, and nil otherwise. +func (this ActivityStreamsCollection) GetForgeFedTracksTicketsFor() vocab.ForgeFedTracksTicketsForProperty { + return this.ForgeFedTracksTicketsFor +} + // GetJSONLDId returns the "id" property if it exists, and nil otherwise. func (this ActivityStreamsCollection) GetJSONLDId() vocab.JSONLDIdProperty { return this.JSONLDId @@ -733,8 +774,11 @@ func (this ActivityStreamsCollection) JSONLDContext() map[string]string { m = this.helperJSONLDContext(this.ActivityStreamsStartTime, m) m = this.helperJSONLDContext(this.ActivityStreamsSummary, m) m = this.helperJSONLDContext(this.ActivityStreamsTag, m) + m = this.helperJSONLDContext(this.ForgeFedTeam, m) + m = this.helperJSONLDContext(this.ForgeFedTicketsTrackedBy, m) m = this.helperJSONLDContext(this.ActivityStreamsTo, m) m = this.helperJSONLDContext(this.ActivityStreamsTotalItems, m) + m = this.helperJSONLDContext(this.ForgeFedTracksTicketsFor, m) m = this.helperJSONLDContext(this.JSONLDType, m) m = this.helperJSONLDContext(this.ActivityStreamsUpdated, m) m = this.helperJSONLDContext(this.ActivityStreamsUrl, m) @@ -1208,6 +1252,34 @@ func (this ActivityStreamsCollection) LessThan(o vocab.ActivityStreamsCollection // Anything else is greater than nil return false } // Else: Both are nil + // Compare property "team" + if lhs, rhs := this.ForgeFedTeam, o.GetForgeFedTeam(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "ticketsTrackedBy" + if lhs, rhs := this.ForgeFedTicketsTrackedBy, o.GetForgeFedTicketsTrackedBy(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil // Compare property "to" if lhs, rhs := this.ActivityStreamsTo, o.GetActivityStreamsTo(); lhs != nil && rhs != nil { if lhs.LessThan(rhs) { @@ -1236,6 +1308,20 @@ func (this ActivityStreamsCollection) LessThan(o vocab.ActivityStreamsCollection // Anything else is greater than nil return false } // Else: Both are nil + // Compare property "tracksTicketsFor" + if lhs, rhs := this.ForgeFedTracksTicketsFor, o.GetForgeFedTracksTicketsFor(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil // Compare property "type" if lhs, rhs := this.JSONLDType, o.GetJSONLDType(); lhs != nil && rhs != nil { if lhs.LessThan(rhs) { @@ -1565,6 +1651,22 @@ func (this ActivityStreamsCollection) Serialize() (map[string]interface{}, error m[this.ActivityStreamsTag.Name()] = i } } + // Maybe serialize property "team" + if this.ForgeFedTeam != nil { + if i, err := this.ForgeFedTeam.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ForgeFedTeam.Name()] = i + } + } + // Maybe serialize property "ticketsTrackedBy" + if this.ForgeFedTicketsTrackedBy != nil { + if i, err := this.ForgeFedTicketsTrackedBy.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ForgeFedTicketsTrackedBy.Name()] = i + } + } // Maybe serialize property "to" if this.ActivityStreamsTo != nil { if i, err := this.ActivityStreamsTo.Serialize(); err != nil { @@ -1581,6 +1683,14 @@ func (this ActivityStreamsCollection) Serialize() (map[string]interface{}, error m[this.ActivityStreamsTotalItems.Name()] = i } } + // Maybe serialize property "tracksTicketsFor" + if this.ForgeFedTracksTicketsFor != nil { + if i, err := this.ForgeFedTracksTicketsFor.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ForgeFedTracksTicketsFor.Name()] = i + } + } // Maybe serialize property "type" if this.JSONLDType != nil { if i, err := this.JSONLDType.Serialize(); err != nil { @@ -1799,6 +1909,21 @@ func (this *ActivityStreamsCollection) SetActivityStreamsUrl(i vocab.ActivityStr this.ActivityStreamsUrl = i } +// SetForgeFedTeam sets the "team" property. +func (this *ActivityStreamsCollection) SetForgeFedTeam(i vocab.ForgeFedTeamProperty) { + this.ForgeFedTeam = i +} + +// SetForgeFedTicketsTrackedBy sets the "ticketsTrackedBy" property. +func (this *ActivityStreamsCollection) SetForgeFedTicketsTrackedBy(i vocab.ForgeFedTicketsTrackedByProperty) { + this.ForgeFedTicketsTrackedBy = i +} + +// SetForgeFedTracksTicketsFor sets the "tracksTicketsFor" property. +func (this *ActivityStreamsCollection) SetForgeFedTracksTicketsFor(i vocab.ForgeFedTracksTicketsForProperty) { + this.ForgeFedTracksTicketsFor = i +} + // SetJSONLDId sets the "id" property. func (this *ActivityStreamsCollection) SetJSONLDId(i vocab.JSONLDIdProperty) { this.JSONLDId = i diff --git a/streams/impl/activitystreams/type_collectionpage/gen_pkg.go b/streams/impl/activitystreams/type_collectionpage/gen_pkg.go index fbba14b..0ac83ca 100644 --- a/streams/impl/activitystreams/type_collectionpage/gen_pkg.go +++ b/streams/impl/activitystreams/type_collectionpage/gen_pkg.go @@ -156,6 +156,14 @@ type privateManager interface { // method for the "ActivityStreamsTagProperty" non-functional property // in the vocabulary "ActivityStreams" DeserializeTagPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTagProperty, error) + // DeserializeTeamPropertyForgeFed returns the deserialization method for + // the "ForgeFedTeamProperty" non-functional property in the + // vocabulary "ForgeFed" + DeserializeTeamPropertyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTeamProperty, error) + // DeserializeTicketsTrackedByPropertyForgeFed returns the deserialization + // method for the "ForgeFedTicketsTrackedByProperty" non-functional + // property in the vocabulary "ForgeFed" + DeserializeTicketsTrackedByPropertyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTicketsTrackedByProperty, error) // DeserializeToPropertyActivityStreams returns the deserialization method // for the "ActivityStreamsToProperty" non-functional property in the // vocabulary "ActivityStreams" @@ -164,6 +172,10 @@ type privateManager interface { // deserialization method for the "ActivityStreamsTotalItemsProperty" // non-functional property in the vocabulary "ActivityStreams" DeserializeTotalItemsPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTotalItemsProperty, error) + // DeserializeTracksTicketsForPropertyForgeFed returns the deserialization + // method for the "ForgeFedTracksTicketsForProperty" non-functional + // property in the vocabulary "ForgeFed" + DeserializeTracksTicketsForPropertyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTracksTicketsForProperty, error) // DeserializeTypePropertyJSONLD returns the deserialization method for // the "JSONLDTypeProperty" non-functional property in the vocabulary // "JSONLD" diff --git a/streams/impl/activitystreams/type_collectionpage/gen_type_activitystreams_collectionpage.go b/streams/impl/activitystreams/type_collectionpage/gen_type_activitystreams_collectionpage.go index db73c5e..126f14a 100644 --- a/streams/impl/activitystreams/type_collectionpage/gen_type_activitystreams_collectionpage.go +++ b/streams/impl/activitystreams/type_collectionpage/gen_type_activitystreams_collectionpage.go @@ -66,8 +66,11 @@ type ActivityStreamsCollectionPage struct { ActivityStreamsStartTime vocab.ActivityStreamsStartTimeProperty ActivityStreamsSummary vocab.ActivityStreamsSummaryProperty ActivityStreamsTag vocab.ActivityStreamsTagProperty + ForgeFedTeam vocab.ForgeFedTeamProperty + ForgeFedTicketsTrackedBy vocab.ForgeFedTicketsTrackedByProperty ActivityStreamsTo vocab.ActivityStreamsToProperty ActivityStreamsTotalItems vocab.ActivityStreamsTotalItemsProperty + ForgeFedTracksTicketsFor vocab.ForgeFedTracksTicketsForProperty JSONLDType vocab.JSONLDTypeProperty ActivityStreamsUpdated vocab.ActivityStreamsUpdatedProperty ActivityStreamsUrl vocab.ActivityStreamsUrlProperty @@ -329,6 +332,16 @@ func DeserializeCollectionPage(m map[string]interface{}, aliasMap map[string]str } else if p != nil { this.ActivityStreamsTag = p } + if p, err := mgr.DeserializeTeamPropertyForgeFed()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ForgeFedTeam = p + } + if p, err := mgr.DeserializeTicketsTrackedByPropertyForgeFed()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ForgeFedTicketsTrackedBy = p + } if p, err := mgr.DeserializeToPropertyActivityStreams()(m, aliasMap); err != nil { return nil, err } else if p != nil { @@ -339,6 +352,11 @@ func DeserializeCollectionPage(m map[string]interface{}, aliasMap map[string]str } else if p != nil { this.ActivityStreamsTotalItems = p } + if p, err := mgr.DeserializeTracksTicketsForPropertyForgeFed()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ForgeFedTracksTicketsFor = p + } if p, err := mgr.DeserializeTypePropertyJSONLD()(m, aliasMap); err != nil { return nil, err } else if p != nil { @@ -437,10 +455,16 @@ func DeserializeCollectionPage(m map[string]interface{}, aliasMap map[string]str continue } else if k == "tag" { continue + } else if k == "team" { + continue + } else if k == "ticketsTrackedBy" { + continue } else if k == "to" { continue } else if k == "totalItems" { continue + } else if k == "tracksTicketsFor" { + continue } else if k == "type" { continue } else if k == "updated" { @@ -708,6 +732,23 @@ func (this ActivityStreamsCollectionPage) GetActivityStreamsUrl() vocab.Activity return this.ActivityStreamsUrl } +// GetForgeFedTeam returns the "team" property if it exists, and nil otherwise. +func (this ActivityStreamsCollectionPage) GetForgeFedTeam() vocab.ForgeFedTeamProperty { + return this.ForgeFedTeam +} + +// GetForgeFedTicketsTrackedBy returns the "ticketsTrackedBy" property if it +// exists, and nil otherwise. +func (this ActivityStreamsCollectionPage) GetForgeFedTicketsTrackedBy() vocab.ForgeFedTicketsTrackedByProperty { + return this.ForgeFedTicketsTrackedBy +} + +// GetForgeFedTracksTicketsFor returns the "tracksTicketsFor" property if it +// exists, and nil otherwise. +func (this ActivityStreamsCollectionPage) GetForgeFedTracksTicketsFor() vocab.ForgeFedTracksTicketsForProperty { + return this.ForgeFedTracksTicketsFor +} + // GetJSONLDId returns the "id" property if it exists, and nil otherwise. func (this ActivityStreamsCollectionPage) GetJSONLDId() vocab.JSONLDIdProperty { return this.JSONLDId @@ -779,8 +820,11 @@ func (this ActivityStreamsCollectionPage) JSONLDContext() map[string]string { m = this.helperJSONLDContext(this.ActivityStreamsStartTime, m) m = this.helperJSONLDContext(this.ActivityStreamsSummary, m) m = this.helperJSONLDContext(this.ActivityStreamsTag, m) + m = this.helperJSONLDContext(this.ForgeFedTeam, m) + m = this.helperJSONLDContext(this.ForgeFedTicketsTrackedBy, m) m = this.helperJSONLDContext(this.ActivityStreamsTo, m) m = this.helperJSONLDContext(this.ActivityStreamsTotalItems, m) + m = this.helperJSONLDContext(this.ForgeFedTracksTicketsFor, m) m = this.helperJSONLDContext(this.JSONLDType, m) m = this.helperJSONLDContext(this.ActivityStreamsUpdated, m) m = this.helperJSONLDContext(this.ActivityStreamsUrl, m) @@ -1296,6 +1340,34 @@ func (this ActivityStreamsCollectionPage) LessThan(o vocab.ActivityStreamsCollec // Anything else is greater than nil return false } // Else: Both are nil + // Compare property "team" + if lhs, rhs := this.ForgeFedTeam, o.GetForgeFedTeam(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "ticketsTrackedBy" + if lhs, rhs := this.ForgeFedTicketsTrackedBy, o.GetForgeFedTicketsTrackedBy(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil // Compare property "to" if lhs, rhs := this.ActivityStreamsTo, o.GetActivityStreamsTo(); lhs != nil && rhs != nil { if lhs.LessThan(rhs) { @@ -1324,6 +1396,20 @@ func (this ActivityStreamsCollectionPage) LessThan(o vocab.ActivityStreamsCollec // Anything else is greater than nil return false } // Else: Both are nil + // Compare property "tracksTicketsFor" + if lhs, rhs := this.ForgeFedTracksTicketsFor, o.GetForgeFedTracksTicketsFor(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil // Compare property "type" if lhs, rhs := this.JSONLDType, o.GetJSONLDType(); lhs != nil && rhs != nil { if lhs.LessThan(rhs) { @@ -1677,6 +1763,22 @@ func (this ActivityStreamsCollectionPage) Serialize() (map[string]interface{}, e m[this.ActivityStreamsTag.Name()] = i } } + // Maybe serialize property "team" + if this.ForgeFedTeam != nil { + if i, err := this.ForgeFedTeam.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ForgeFedTeam.Name()] = i + } + } + // Maybe serialize property "ticketsTrackedBy" + if this.ForgeFedTicketsTrackedBy != nil { + if i, err := this.ForgeFedTicketsTrackedBy.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ForgeFedTicketsTrackedBy.Name()] = i + } + } // Maybe serialize property "to" if this.ActivityStreamsTo != nil { if i, err := this.ActivityStreamsTo.Serialize(); err != nil { @@ -1693,6 +1795,14 @@ func (this ActivityStreamsCollectionPage) Serialize() (map[string]interface{}, e m[this.ActivityStreamsTotalItems.Name()] = i } } + // Maybe serialize property "tracksTicketsFor" + if this.ForgeFedTracksTicketsFor != nil { + if i, err := this.ForgeFedTracksTicketsFor.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ForgeFedTracksTicketsFor.Name()] = i + } + } // Maybe serialize property "type" if this.JSONLDType != nil { if i, err := this.JSONLDType.Serialize(); err != nil { @@ -1926,6 +2036,21 @@ func (this *ActivityStreamsCollectionPage) SetActivityStreamsUrl(i vocab.Activit this.ActivityStreamsUrl = i } +// SetForgeFedTeam sets the "team" property. +func (this *ActivityStreamsCollectionPage) SetForgeFedTeam(i vocab.ForgeFedTeamProperty) { + this.ForgeFedTeam = i +} + +// SetForgeFedTicketsTrackedBy sets the "ticketsTrackedBy" property. +func (this *ActivityStreamsCollectionPage) SetForgeFedTicketsTrackedBy(i vocab.ForgeFedTicketsTrackedByProperty) { + this.ForgeFedTicketsTrackedBy = i +} + +// SetForgeFedTracksTicketsFor sets the "tracksTicketsFor" property. +func (this *ActivityStreamsCollectionPage) SetForgeFedTracksTicketsFor(i vocab.ForgeFedTracksTicketsForProperty) { + this.ForgeFedTracksTicketsFor = i +} + // SetJSONLDId sets the "id" property. func (this *ActivityStreamsCollectionPage) SetJSONLDId(i vocab.JSONLDIdProperty) { this.JSONLDId = i diff --git a/streams/impl/activitystreams/type_create/gen_pkg.go b/streams/impl/activitystreams/type_create/gen_pkg.go index 79ebd18..64861bd 100644 --- a/streams/impl/activitystreams/type_create/gen_pkg.go +++ b/streams/impl/activitystreams/type_create/gen_pkg.go @@ -148,10 +148,22 @@ type privateManager interface { // method for the "ActivityStreamsTargetProperty" non-functional // property in the vocabulary "ActivityStreams" DeserializeTargetPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTargetProperty, error) + // DeserializeTeamPropertyForgeFed returns the deserialization method for + // the "ForgeFedTeamProperty" non-functional property in the + // vocabulary "ForgeFed" + DeserializeTeamPropertyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTeamProperty, error) + // DeserializeTicketsTrackedByPropertyForgeFed returns the deserialization + // method for the "ForgeFedTicketsTrackedByProperty" non-functional + // property in the vocabulary "ForgeFed" + DeserializeTicketsTrackedByPropertyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTicketsTrackedByProperty, error) // DeserializeToPropertyActivityStreams returns the deserialization method // for the "ActivityStreamsToProperty" non-functional property in the // vocabulary "ActivityStreams" DeserializeToPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsToProperty, error) + // DeserializeTracksTicketsForPropertyForgeFed returns the deserialization + // method for the "ForgeFedTracksTicketsForProperty" non-functional + // property in the vocabulary "ForgeFed" + DeserializeTracksTicketsForPropertyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTracksTicketsForProperty, error) // DeserializeTypePropertyJSONLD returns the deserialization method for // the "JSONLDTypeProperty" non-functional property in the vocabulary // "JSONLD" diff --git a/streams/impl/activitystreams/type_create/gen_type_activitystreams_create.go b/streams/impl/activitystreams/type_create/gen_type_activitystreams_create.go index 572a7e4..05c74e3 100644 --- a/streams/impl/activitystreams/type_create/gen_type_activitystreams_create.go +++ b/streams/impl/activitystreams/type_create/gen_type_activitystreams_create.go @@ -59,7 +59,10 @@ type ActivityStreamsCreate struct { ActivityStreamsSummary vocab.ActivityStreamsSummaryProperty ActivityStreamsTag vocab.ActivityStreamsTagProperty ActivityStreamsTarget vocab.ActivityStreamsTargetProperty + ForgeFedTeam vocab.ForgeFedTeamProperty + ForgeFedTicketsTrackedBy vocab.ForgeFedTicketsTrackedByProperty ActivityStreamsTo vocab.ActivityStreamsToProperty + ForgeFedTracksTicketsFor vocab.ForgeFedTracksTicketsForProperty JSONLDType vocab.JSONLDTypeProperty ActivityStreamsUpdated vocab.ActivityStreamsUpdatedProperty ActivityStreamsUrl vocab.ActivityStreamsUrlProperty @@ -306,11 +309,26 @@ func DeserializeCreate(m map[string]interface{}, aliasMap map[string]string) (*A } else if p != nil { this.ActivityStreamsTarget = p } + if p, err := mgr.DeserializeTeamPropertyForgeFed()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ForgeFedTeam = p + } + if p, err := mgr.DeserializeTicketsTrackedByPropertyForgeFed()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ForgeFedTicketsTrackedBy = p + } if p, err := mgr.DeserializeToPropertyActivityStreams()(m, aliasMap); err != nil { return nil, err } else if p != nil { this.ActivityStreamsTo = p } + if p, err := mgr.DeserializeTracksTicketsForPropertyForgeFed()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ForgeFedTracksTicketsFor = p + } if p, err := mgr.DeserializeTypePropertyJSONLD()(m, aliasMap); err != nil { return nil, err } else if p != nil { @@ -405,8 +423,14 @@ func DeserializeCreate(m map[string]interface{}, aliasMap map[string]string) (*A continue } else if k == "target" { continue + } else if k == "team" { + continue + } else if k == "ticketsTrackedBy" { + continue } else if k == "to" { continue + } else if k == "tracksTicketsFor" { + continue } else if k == "type" { continue } else if k == "updated" { @@ -656,6 +680,23 @@ func (this ActivityStreamsCreate) GetActivityStreamsUrl() vocab.ActivityStreamsU return this.ActivityStreamsUrl } +// GetForgeFedTeam returns the "team" property if it exists, and nil otherwise. +func (this ActivityStreamsCreate) GetForgeFedTeam() vocab.ForgeFedTeamProperty { + return this.ForgeFedTeam +} + +// GetForgeFedTicketsTrackedBy returns the "ticketsTrackedBy" property if it +// exists, and nil otherwise. +func (this ActivityStreamsCreate) GetForgeFedTicketsTrackedBy() vocab.ForgeFedTicketsTrackedByProperty { + return this.ForgeFedTicketsTrackedBy +} + +// GetForgeFedTracksTicketsFor returns the "tracksTicketsFor" property if it +// exists, and nil otherwise. +func (this ActivityStreamsCreate) GetForgeFedTracksTicketsFor() vocab.ForgeFedTracksTicketsForProperty { + return this.ForgeFedTracksTicketsFor +} + // GetJSONLDId returns the "id" property if it exists, and nil otherwise. func (this ActivityStreamsCreate) GetJSONLDId() vocab.JSONLDIdProperty { return this.JSONLDId @@ -725,7 +766,10 @@ func (this ActivityStreamsCreate) JSONLDContext() map[string]string { m = this.helperJSONLDContext(this.ActivityStreamsSummary, m) m = this.helperJSONLDContext(this.ActivityStreamsTag, m) m = this.helperJSONLDContext(this.ActivityStreamsTarget, m) + m = this.helperJSONLDContext(this.ForgeFedTeam, m) + m = this.helperJSONLDContext(this.ForgeFedTicketsTrackedBy, m) m = this.helperJSONLDContext(this.ActivityStreamsTo, m) + m = this.helperJSONLDContext(this.ForgeFedTracksTicketsFor, m) m = this.helperJSONLDContext(this.JSONLDType, m) m = this.helperJSONLDContext(this.ActivityStreamsUpdated, m) m = this.helperJSONLDContext(this.ActivityStreamsUrl, m) @@ -1213,6 +1257,34 @@ func (this ActivityStreamsCreate) LessThan(o vocab.ActivityStreamsCreate) bool { // Anything else is greater than nil return false } // Else: Both are nil + // Compare property "team" + if lhs, rhs := this.ForgeFedTeam, o.GetForgeFedTeam(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "ticketsTrackedBy" + if lhs, rhs := this.ForgeFedTicketsTrackedBy, o.GetForgeFedTicketsTrackedBy(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil // Compare property "to" if lhs, rhs := this.ActivityStreamsTo, o.GetActivityStreamsTo(); lhs != nil && rhs != nil { if lhs.LessThan(rhs) { @@ -1227,6 +1299,20 @@ func (this ActivityStreamsCreate) LessThan(o vocab.ActivityStreamsCreate) bool { // Anything else is greater than nil return false } // Else: Both are nil + // Compare property "tracksTicketsFor" + if lhs, rhs := this.ForgeFedTracksTicketsFor, o.GetForgeFedTracksTicketsFor(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil // Compare property "type" if lhs, rhs := this.JSONLDType, o.GetJSONLDType(); lhs != nil && rhs != nil { if lhs.LessThan(rhs) { @@ -1564,6 +1650,22 @@ func (this ActivityStreamsCreate) Serialize() (map[string]interface{}, error) { m[this.ActivityStreamsTarget.Name()] = i } } + // Maybe serialize property "team" + if this.ForgeFedTeam != nil { + if i, err := this.ForgeFedTeam.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ForgeFedTeam.Name()] = i + } + } + // Maybe serialize property "ticketsTrackedBy" + if this.ForgeFedTicketsTrackedBy != nil { + if i, err := this.ForgeFedTicketsTrackedBy.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ForgeFedTicketsTrackedBy.Name()] = i + } + } // Maybe serialize property "to" if this.ActivityStreamsTo != nil { if i, err := this.ActivityStreamsTo.Serialize(); err != nil { @@ -1572,6 +1674,14 @@ func (this ActivityStreamsCreate) Serialize() (map[string]interface{}, error) { m[this.ActivityStreamsTo.Name()] = i } } + // Maybe serialize property "tracksTicketsFor" + if this.ForgeFedTracksTicketsFor != nil { + if i, err := this.ForgeFedTracksTicketsFor.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ForgeFedTracksTicketsFor.Name()] = i + } + } // Maybe serialize property "type" if this.JSONLDType != nil { if i, err := this.JSONLDType.Serialize(); err != nil { @@ -1790,6 +1900,21 @@ func (this *ActivityStreamsCreate) SetActivityStreamsUrl(i vocab.ActivityStreams this.ActivityStreamsUrl = i } +// SetForgeFedTeam sets the "team" property. +func (this *ActivityStreamsCreate) SetForgeFedTeam(i vocab.ForgeFedTeamProperty) { + this.ForgeFedTeam = i +} + +// SetForgeFedTicketsTrackedBy sets the "ticketsTrackedBy" property. +func (this *ActivityStreamsCreate) SetForgeFedTicketsTrackedBy(i vocab.ForgeFedTicketsTrackedByProperty) { + this.ForgeFedTicketsTrackedBy = i +} + +// SetForgeFedTracksTicketsFor sets the "tracksTicketsFor" property. +func (this *ActivityStreamsCreate) SetForgeFedTracksTicketsFor(i vocab.ForgeFedTracksTicketsForProperty) { + this.ForgeFedTracksTicketsFor = i +} + // SetJSONLDId sets the "id" property. func (this *ActivityStreamsCreate) SetJSONLDId(i vocab.JSONLDIdProperty) { this.JSONLDId = i diff --git a/streams/impl/activitystreams/type_delete/gen_pkg.go b/streams/impl/activitystreams/type_delete/gen_pkg.go index 94c2f22..59f8c6e 100644 --- a/streams/impl/activitystreams/type_delete/gen_pkg.go +++ b/streams/impl/activitystreams/type_delete/gen_pkg.go @@ -148,10 +148,22 @@ type privateManager interface { // method for the "ActivityStreamsTargetProperty" non-functional // property in the vocabulary "ActivityStreams" DeserializeTargetPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTargetProperty, error) + // DeserializeTeamPropertyForgeFed returns the deserialization method for + // the "ForgeFedTeamProperty" non-functional property in the + // vocabulary "ForgeFed" + DeserializeTeamPropertyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTeamProperty, error) + // DeserializeTicketsTrackedByPropertyForgeFed returns the deserialization + // method for the "ForgeFedTicketsTrackedByProperty" non-functional + // property in the vocabulary "ForgeFed" + DeserializeTicketsTrackedByPropertyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTicketsTrackedByProperty, error) // DeserializeToPropertyActivityStreams returns the deserialization method // for the "ActivityStreamsToProperty" non-functional property in the // vocabulary "ActivityStreams" DeserializeToPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsToProperty, error) + // DeserializeTracksTicketsForPropertyForgeFed returns the deserialization + // method for the "ForgeFedTracksTicketsForProperty" non-functional + // property in the vocabulary "ForgeFed" + DeserializeTracksTicketsForPropertyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTracksTicketsForProperty, error) // DeserializeTypePropertyJSONLD returns the deserialization method for // the "JSONLDTypeProperty" non-functional property in the vocabulary // "JSONLD" diff --git a/streams/impl/activitystreams/type_delete/gen_type_activitystreams_delete.go b/streams/impl/activitystreams/type_delete/gen_type_activitystreams_delete.go index e55567d..4876994 100644 --- a/streams/impl/activitystreams/type_delete/gen_type_activitystreams_delete.go +++ b/streams/impl/activitystreams/type_delete/gen_type_activitystreams_delete.go @@ -60,7 +60,10 @@ type ActivityStreamsDelete struct { ActivityStreamsSummary vocab.ActivityStreamsSummaryProperty ActivityStreamsTag vocab.ActivityStreamsTagProperty ActivityStreamsTarget vocab.ActivityStreamsTargetProperty + ForgeFedTeam vocab.ForgeFedTeamProperty + ForgeFedTicketsTrackedBy vocab.ForgeFedTicketsTrackedByProperty ActivityStreamsTo vocab.ActivityStreamsToProperty + ForgeFedTracksTicketsFor vocab.ForgeFedTracksTicketsForProperty JSONLDType vocab.JSONLDTypeProperty ActivityStreamsUpdated vocab.ActivityStreamsUpdatedProperty ActivityStreamsUrl vocab.ActivityStreamsUrlProperty @@ -307,11 +310,26 @@ func DeserializeDelete(m map[string]interface{}, aliasMap map[string]string) (*A } else if p != nil { this.ActivityStreamsTarget = p } + if p, err := mgr.DeserializeTeamPropertyForgeFed()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ForgeFedTeam = p + } + if p, err := mgr.DeserializeTicketsTrackedByPropertyForgeFed()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ForgeFedTicketsTrackedBy = p + } if p, err := mgr.DeserializeToPropertyActivityStreams()(m, aliasMap); err != nil { return nil, err } else if p != nil { this.ActivityStreamsTo = p } + if p, err := mgr.DeserializeTracksTicketsForPropertyForgeFed()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ForgeFedTracksTicketsFor = p + } if p, err := mgr.DeserializeTypePropertyJSONLD()(m, aliasMap); err != nil { return nil, err } else if p != nil { @@ -406,8 +424,14 @@ func DeserializeDelete(m map[string]interface{}, aliasMap map[string]string) (*A continue } else if k == "target" { continue + } else if k == "team" { + continue + } else if k == "ticketsTrackedBy" { + continue } else if k == "to" { continue + } else if k == "tracksTicketsFor" { + continue } else if k == "type" { continue } else if k == "updated" { @@ -657,6 +681,23 @@ func (this ActivityStreamsDelete) GetActivityStreamsUrl() vocab.ActivityStreamsU return this.ActivityStreamsUrl } +// GetForgeFedTeam returns the "team" property if it exists, and nil otherwise. +func (this ActivityStreamsDelete) GetForgeFedTeam() vocab.ForgeFedTeamProperty { + return this.ForgeFedTeam +} + +// GetForgeFedTicketsTrackedBy returns the "ticketsTrackedBy" property if it +// exists, and nil otherwise. +func (this ActivityStreamsDelete) GetForgeFedTicketsTrackedBy() vocab.ForgeFedTicketsTrackedByProperty { + return this.ForgeFedTicketsTrackedBy +} + +// GetForgeFedTracksTicketsFor returns the "tracksTicketsFor" property if it +// exists, and nil otherwise. +func (this ActivityStreamsDelete) GetForgeFedTracksTicketsFor() vocab.ForgeFedTracksTicketsForProperty { + return this.ForgeFedTracksTicketsFor +} + // GetJSONLDId returns the "id" property if it exists, and nil otherwise. func (this ActivityStreamsDelete) GetJSONLDId() vocab.JSONLDIdProperty { return this.JSONLDId @@ -726,7 +767,10 @@ func (this ActivityStreamsDelete) JSONLDContext() map[string]string { m = this.helperJSONLDContext(this.ActivityStreamsSummary, m) m = this.helperJSONLDContext(this.ActivityStreamsTag, m) m = this.helperJSONLDContext(this.ActivityStreamsTarget, m) + m = this.helperJSONLDContext(this.ForgeFedTeam, m) + m = this.helperJSONLDContext(this.ForgeFedTicketsTrackedBy, m) m = this.helperJSONLDContext(this.ActivityStreamsTo, m) + m = this.helperJSONLDContext(this.ForgeFedTracksTicketsFor, m) m = this.helperJSONLDContext(this.JSONLDType, m) m = this.helperJSONLDContext(this.ActivityStreamsUpdated, m) m = this.helperJSONLDContext(this.ActivityStreamsUrl, m) @@ -1214,6 +1258,34 @@ func (this ActivityStreamsDelete) LessThan(o vocab.ActivityStreamsDelete) bool { // Anything else is greater than nil return false } // Else: Both are nil + // Compare property "team" + if lhs, rhs := this.ForgeFedTeam, o.GetForgeFedTeam(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "ticketsTrackedBy" + if lhs, rhs := this.ForgeFedTicketsTrackedBy, o.GetForgeFedTicketsTrackedBy(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil // Compare property "to" if lhs, rhs := this.ActivityStreamsTo, o.GetActivityStreamsTo(); lhs != nil && rhs != nil { if lhs.LessThan(rhs) { @@ -1228,6 +1300,20 @@ func (this ActivityStreamsDelete) LessThan(o vocab.ActivityStreamsDelete) bool { // Anything else is greater than nil return false } // Else: Both are nil + // Compare property "tracksTicketsFor" + if lhs, rhs := this.ForgeFedTracksTicketsFor, o.GetForgeFedTracksTicketsFor(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil // Compare property "type" if lhs, rhs := this.JSONLDType, o.GetJSONLDType(); lhs != nil && rhs != nil { if lhs.LessThan(rhs) { @@ -1565,6 +1651,22 @@ func (this ActivityStreamsDelete) Serialize() (map[string]interface{}, error) { m[this.ActivityStreamsTarget.Name()] = i } } + // Maybe serialize property "team" + if this.ForgeFedTeam != nil { + if i, err := this.ForgeFedTeam.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ForgeFedTeam.Name()] = i + } + } + // Maybe serialize property "ticketsTrackedBy" + if this.ForgeFedTicketsTrackedBy != nil { + if i, err := this.ForgeFedTicketsTrackedBy.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ForgeFedTicketsTrackedBy.Name()] = i + } + } // Maybe serialize property "to" if this.ActivityStreamsTo != nil { if i, err := this.ActivityStreamsTo.Serialize(); err != nil { @@ -1573,6 +1675,14 @@ func (this ActivityStreamsDelete) Serialize() (map[string]interface{}, error) { m[this.ActivityStreamsTo.Name()] = i } } + // Maybe serialize property "tracksTicketsFor" + if this.ForgeFedTracksTicketsFor != nil { + if i, err := this.ForgeFedTracksTicketsFor.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ForgeFedTracksTicketsFor.Name()] = i + } + } // Maybe serialize property "type" if this.JSONLDType != nil { if i, err := this.JSONLDType.Serialize(); err != nil { @@ -1791,6 +1901,21 @@ func (this *ActivityStreamsDelete) SetActivityStreamsUrl(i vocab.ActivityStreams this.ActivityStreamsUrl = i } +// SetForgeFedTeam sets the "team" property. +func (this *ActivityStreamsDelete) SetForgeFedTeam(i vocab.ForgeFedTeamProperty) { + this.ForgeFedTeam = i +} + +// SetForgeFedTicketsTrackedBy sets the "ticketsTrackedBy" property. +func (this *ActivityStreamsDelete) SetForgeFedTicketsTrackedBy(i vocab.ForgeFedTicketsTrackedByProperty) { + this.ForgeFedTicketsTrackedBy = i +} + +// SetForgeFedTracksTicketsFor sets the "tracksTicketsFor" property. +func (this *ActivityStreamsDelete) SetForgeFedTracksTicketsFor(i vocab.ForgeFedTracksTicketsForProperty) { + this.ForgeFedTracksTicketsFor = i +} + // SetJSONLDId sets the "id" property. func (this *ActivityStreamsDelete) SetJSONLDId(i vocab.JSONLDIdProperty) { this.JSONLDId = i diff --git a/streams/impl/activitystreams/type_dislike/gen_pkg.go b/streams/impl/activitystreams/type_dislike/gen_pkg.go index b36a515..dd34234 100644 --- a/streams/impl/activitystreams/type_dislike/gen_pkg.go +++ b/streams/impl/activitystreams/type_dislike/gen_pkg.go @@ -148,10 +148,22 @@ type privateManager interface { // method for the "ActivityStreamsTargetProperty" non-functional // property in the vocabulary "ActivityStreams" DeserializeTargetPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTargetProperty, error) + // DeserializeTeamPropertyForgeFed returns the deserialization method for + // the "ForgeFedTeamProperty" non-functional property in the + // vocabulary "ForgeFed" + DeserializeTeamPropertyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTeamProperty, error) + // DeserializeTicketsTrackedByPropertyForgeFed returns the deserialization + // method for the "ForgeFedTicketsTrackedByProperty" non-functional + // property in the vocabulary "ForgeFed" + DeserializeTicketsTrackedByPropertyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTicketsTrackedByProperty, error) // DeserializeToPropertyActivityStreams returns the deserialization method // for the "ActivityStreamsToProperty" non-functional property in the // vocabulary "ActivityStreams" DeserializeToPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsToProperty, error) + // DeserializeTracksTicketsForPropertyForgeFed returns the deserialization + // method for the "ForgeFedTracksTicketsForProperty" non-functional + // property in the vocabulary "ForgeFed" + DeserializeTracksTicketsForPropertyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTracksTicketsForProperty, error) // DeserializeTypePropertyJSONLD returns the deserialization method for // the "JSONLDTypeProperty" non-functional property in the vocabulary // "JSONLD" diff --git a/streams/impl/activitystreams/type_dislike/gen_type_activitystreams_dislike.go b/streams/impl/activitystreams/type_dislike/gen_type_activitystreams_dislike.go index 07ccc9d..4ac4abf 100644 --- a/streams/impl/activitystreams/type_dislike/gen_type_activitystreams_dislike.go +++ b/streams/impl/activitystreams/type_dislike/gen_type_activitystreams_dislike.go @@ -52,7 +52,10 @@ type ActivityStreamsDislike struct { ActivityStreamsSummary vocab.ActivityStreamsSummaryProperty ActivityStreamsTag vocab.ActivityStreamsTagProperty ActivityStreamsTarget vocab.ActivityStreamsTargetProperty + ForgeFedTeam vocab.ForgeFedTeamProperty + ForgeFedTicketsTrackedBy vocab.ForgeFedTicketsTrackedByProperty ActivityStreamsTo vocab.ActivityStreamsToProperty + ForgeFedTracksTicketsFor vocab.ForgeFedTracksTicketsForProperty JSONLDType vocab.JSONLDTypeProperty ActivityStreamsUpdated vocab.ActivityStreamsUpdatedProperty ActivityStreamsUrl vocab.ActivityStreamsUrlProperty @@ -279,11 +282,26 @@ func DeserializeDislike(m map[string]interface{}, aliasMap map[string]string) (* } else if p != nil { this.ActivityStreamsTarget = p } + if p, err := mgr.DeserializeTeamPropertyForgeFed()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ForgeFedTeam = p + } + if p, err := mgr.DeserializeTicketsTrackedByPropertyForgeFed()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ForgeFedTicketsTrackedBy = p + } if p, err := mgr.DeserializeToPropertyActivityStreams()(m, aliasMap); err != nil { return nil, err } else if p != nil { this.ActivityStreamsTo = p } + if p, err := mgr.DeserializeTracksTicketsForPropertyForgeFed()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ForgeFedTracksTicketsFor = p + } if p, err := mgr.DeserializeTypePropertyJSONLD()(m, aliasMap); err != nil { return nil, err } else if p != nil { @@ -378,8 +396,14 @@ func DeserializeDislike(m map[string]interface{}, aliasMap map[string]string) (* continue } else if k == "target" { continue + } else if k == "team" { + continue + } else if k == "ticketsTrackedBy" { + continue } else if k == "to" { continue + } else if k == "tracksTicketsFor" { + continue } else if k == "type" { continue } else if k == "updated" { @@ -649,6 +673,23 @@ func (this ActivityStreamsDislike) GetActivityStreamsUrl() vocab.ActivityStreams return this.ActivityStreamsUrl } +// GetForgeFedTeam returns the "team" property if it exists, and nil otherwise. +func (this ActivityStreamsDislike) GetForgeFedTeam() vocab.ForgeFedTeamProperty { + return this.ForgeFedTeam +} + +// GetForgeFedTicketsTrackedBy returns the "ticketsTrackedBy" property if it +// exists, and nil otherwise. +func (this ActivityStreamsDislike) GetForgeFedTicketsTrackedBy() vocab.ForgeFedTicketsTrackedByProperty { + return this.ForgeFedTicketsTrackedBy +} + +// GetForgeFedTracksTicketsFor returns the "tracksTicketsFor" property if it +// exists, and nil otherwise. +func (this ActivityStreamsDislike) GetForgeFedTracksTicketsFor() vocab.ForgeFedTracksTicketsForProperty { + return this.ForgeFedTracksTicketsFor +} + // GetJSONLDId returns the "id" property if it exists, and nil otherwise. func (this ActivityStreamsDislike) GetJSONLDId() vocab.JSONLDIdProperty { return this.JSONLDId @@ -718,7 +759,10 @@ func (this ActivityStreamsDislike) JSONLDContext() map[string]string { m = this.helperJSONLDContext(this.ActivityStreamsSummary, m) m = this.helperJSONLDContext(this.ActivityStreamsTag, m) m = this.helperJSONLDContext(this.ActivityStreamsTarget, m) + m = this.helperJSONLDContext(this.ForgeFedTeam, m) + m = this.helperJSONLDContext(this.ForgeFedTicketsTrackedBy, m) m = this.helperJSONLDContext(this.ActivityStreamsTo, m) + m = this.helperJSONLDContext(this.ForgeFedTracksTicketsFor, m) m = this.helperJSONLDContext(this.JSONLDType, m) m = this.helperJSONLDContext(this.ActivityStreamsUpdated, m) m = this.helperJSONLDContext(this.ActivityStreamsUrl, m) @@ -1206,6 +1250,34 @@ func (this ActivityStreamsDislike) LessThan(o vocab.ActivityStreamsDislike) bool // Anything else is greater than nil return false } // Else: Both are nil + // Compare property "team" + if lhs, rhs := this.ForgeFedTeam, o.GetForgeFedTeam(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "ticketsTrackedBy" + if lhs, rhs := this.ForgeFedTicketsTrackedBy, o.GetForgeFedTicketsTrackedBy(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil // Compare property "to" if lhs, rhs := this.ActivityStreamsTo, o.GetActivityStreamsTo(); lhs != nil && rhs != nil { if lhs.LessThan(rhs) { @@ -1220,6 +1292,20 @@ func (this ActivityStreamsDislike) LessThan(o vocab.ActivityStreamsDislike) bool // Anything else is greater than nil return false } // Else: Both are nil + // Compare property "tracksTicketsFor" + if lhs, rhs := this.ForgeFedTracksTicketsFor, o.GetForgeFedTracksTicketsFor(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil // Compare property "type" if lhs, rhs := this.JSONLDType, o.GetJSONLDType(); lhs != nil && rhs != nil { if lhs.LessThan(rhs) { @@ -1557,6 +1643,22 @@ func (this ActivityStreamsDislike) Serialize() (map[string]interface{}, error) { m[this.ActivityStreamsTarget.Name()] = i } } + // Maybe serialize property "team" + if this.ForgeFedTeam != nil { + if i, err := this.ForgeFedTeam.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ForgeFedTeam.Name()] = i + } + } + // Maybe serialize property "ticketsTrackedBy" + if this.ForgeFedTicketsTrackedBy != nil { + if i, err := this.ForgeFedTicketsTrackedBy.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ForgeFedTicketsTrackedBy.Name()] = i + } + } // Maybe serialize property "to" if this.ActivityStreamsTo != nil { if i, err := this.ActivityStreamsTo.Serialize(); err != nil { @@ -1565,6 +1667,14 @@ func (this ActivityStreamsDislike) Serialize() (map[string]interface{}, error) { m[this.ActivityStreamsTo.Name()] = i } } + // Maybe serialize property "tracksTicketsFor" + if this.ForgeFedTracksTicketsFor != nil { + if i, err := this.ForgeFedTracksTicketsFor.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ForgeFedTracksTicketsFor.Name()] = i + } + } // Maybe serialize property "type" if this.JSONLDType != nil { if i, err := this.JSONLDType.Serialize(); err != nil { @@ -1783,6 +1893,21 @@ func (this *ActivityStreamsDislike) SetActivityStreamsUrl(i vocab.ActivityStream this.ActivityStreamsUrl = i } +// SetForgeFedTeam sets the "team" property. +func (this *ActivityStreamsDislike) SetForgeFedTeam(i vocab.ForgeFedTeamProperty) { + this.ForgeFedTeam = i +} + +// SetForgeFedTicketsTrackedBy sets the "ticketsTrackedBy" property. +func (this *ActivityStreamsDislike) SetForgeFedTicketsTrackedBy(i vocab.ForgeFedTicketsTrackedByProperty) { + this.ForgeFedTicketsTrackedBy = i +} + +// SetForgeFedTracksTicketsFor sets the "tracksTicketsFor" property. +func (this *ActivityStreamsDislike) SetForgeFedTracksTicketsFor(i vocab.ForgeFedTracksTicketsForProperty) { + this.ForgeFedTracksTicketsFor = i +} + // SetJSONLDId sets the "id" property. func (this *ActivityStreamsDislike) SetJSONLDId(i vocab.JSONLDIdProperty) { this.JSONLDId = i diff --git a/streams/impl/activitystreams/type_document/gen_pkg.go b/streams/impl/activitystreams/type_document/gen_pkg.go index 934146c..a649777 100644 --- a/streams/impl/activitystreams/type_document/gen_pkg.go +++ b/streams/impl/activitystreams/type_document/gen_pkg.go @@ -132,10 +132,22 @@ type privateManager interface { // method for the "ActivityStreamsTagProperty" non-functional property // in the vocabulary "ActivityStreams" DeserializeTagPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTagProperty, error) + // DeserializeTeamPropertyForgeFed returns the deserialization method for + // the "ForgeFedTeamProperty" non-functional property in the + // vocabulary "ForgeFed" + DeserializeTeamPropertyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTeamProperty, error) + // DeserializeTicketsTrackedByPropertyForgeFed returns the deserialization + // method for the "ForgeFedTicketsTrackedByProperty" non-functional + // property in the vocabulary "ForgeFed" + DeserializeTicketsTrackedByPropertyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTicketsTrackedByProperty, error) // DeserializeToPropertyActivityStreams returns the deserialization method // for the "ActivityStreamsToProperty" non-functional property in the // vocabulary "ActivityStreams" DeserializeToPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsToProperty, error) + // DeserializeTracksTicketsForPropertyForgeFed returns the deserialization + // method for the "ForgeFedTracksTicketsForProperty" non-functional + // property in the vocabulary "ForgeFed" + DeserializeTracksTicketsForPropertyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTracksTicketsForProperty, error) // DeserializeTypePropertyJSONLD returns the deserialization method for // the "JSONLDTypeProperty" non-functional property in the vocabulary // "JSONLD" diff --git a/streams/impl/activitystreams/type_document/gen_type_activitystreams_document.go b/streams/impl/activitystreams/type_document/gen_type_activitystreams_document.go index e85b4b4..093f639 100644 --- a/streams/impl/activitystreams/type_document/gen_type_activitystreams_document.go +++ b/streams/impl/activitystreams/type_document/gen_type_activitystreams_document.go @@ -47,7 +47,10 @@ type ActivityStreamsDocument struct { ActivityStreamsStartTime vocab.ActivityStreamsStartTimeProperty ActivityStreamsSummary vocab.ActivityStreamsSummaryProperty ActivityStreamsTag vocab.ActivityStreamsTagProperty + ForgeFedTeam vocab.ForgeFedTeamProperty + ForgeFedTicketsTrackedBy vocab.ForgeFedTicketsTrackedByProperty ActivityStreamsTo vocab.ActivityStreamsToProperty + ForgeFedTracksTicketsFor vocab.ForgeFedTracksTicketsForProperty JSONLDType vocab.JSONLDTypeProperty ActivityStreamsUpdated vocab.ActivityStreamsUpdatedProperty ActivityStreamsUrl vocab.ActivityStreamsUrlProperty @@ -254,11 +257,26 @@ func DeserializeDocument(m map[string]interface{}, aliasMap map[string]string) ( } else if p != nil { this.ActivityStreamsTag = p } + if p, err := mgr.DeserializeTeamPropertyForgeFed()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ForgeFedTeam = p + } + if p, err := mgr.DeserializeTicketsTrackedByPropertyForgeFed()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ForgeFedTicketsTrackedBy = p + } if p, err := mgr.DeserializeToPropertyActivityStreams()(m, aliasMap); err != nil { return nil, err } else if p != nil { this.ActivityStreamsTo = p } + if p, err := mgr.DeserializeTracksTicketsForPropertyForgeFed()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ForgeFedTracksTicketsFor = p + } if p, err := mgr.DeserializeTypePropertyJSONLD()(m, aliasMap); err != nil { return nil, err } else if p != nil { @@ -345,8 +363,14 @@ func DeserializeDocument(m map[string]interface{}, aliasMap map[string]string) ( continue } else if k == "tag" { continue + } else if k == "team" { + continue + } else if k == "ticketsTrackedBy" { + continue } else if k == "to" { continue + } else if k == "tracksTicketsFor" { + continue } else if k == "type" { continue } else if k == "updated" { @@ -591,6 +615,23 @@ func (this ActivityStreamsDocument) GetActivityStreamsUrl() vocab.ActivityStream return this.ActivityStreamsUrl } +// GetForgeFedTeam returns the "team" property if it exists, and nil otherwise. +func (this ActivityStreamsDocument) GetForgeFedTeam() vocab.ForgeFedTeamProperty { + return this.ForgeFedTeam +} + +// GetForgeFedTicketsTrackedBy returns the "ticketsTrackedBy" property if it +// exists, and nil otherwise. +func (this ActivityStreamsDocument) GetForgeFedTicketsTrackedBy() vocab.ForgeFedTicketsTrackedByProperty { + return this.ForgeFedTicketsTrackedBy +} + +// GetForgeFedTracksTicketsFor returns the "tracksTicketsFor" property if it +// exists, and nil otherwise. +func (this ActivityStreamsDocument) GetForgeFedTracksTicketsFor() vocab.ForgeFedTracksTicketsForProperty { + return this.ForgeFedTracksTicketsFor +} + // GetJSONLDId returns the "id" property if it exists, and nil otherwise. func (this ActivityStreamsDocument) GetJSONLDId() vocab.JSONLDIdProperty { return this.JSONLDId @@ -661,7 +702,10 @@ func (this ActivityStreamsDocument) JSONLDContext() map[string]string { m = this.helperJSONLDContext(this.ActivityStreamsStartTime, m) m = this.helperJSONLDContext(this.ActivityStreamsSummary, m) m = this.helperJSONLDContext(this.ActivityStreamsTag, m) + m = this.helperJSONLDContext(this.ForgeFedTeam, m) + m = this.helperJSONLDContext(this.ForgeFedTicketsTrackedBy, m) m = this.helperJSONLDContext(this.ActivityStreamsTo, m) + m = this.helperJSONLDContext(this.ForgeFedTracksTicketsFor, m) m = this.helperJSONLDContext(this.JSONLDType, m) m = this.helperJSONLDContext(this.ActivityStreamsUpdated, m) m = this.helperJSONLDContext(this.ActivityStreamsUrl, m) @@ -1093,6 +1137,34 @@ func (this ActivityStreamsDocument) LessThan(o vocab.ActivityStreamsDocument) bo // Anything else is greater than nil return false } // Else: Both are nil + // Compare property "team" + if lhs, rhs := this.ForgeFedTeam, o.GetForgeFedTeam(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "ticketsTrackedBy" + if lhs, rhs := this.ForgeFedTicketsTrackedBy, o.GetForgeFedTicketsTrackedBy(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil // Compare property "to" if lhs, rhs := this.ActivityStreamsTo, o.GetActivityStreamsTo(); lhs != nil && rhs != nil { if lhs.LessThan(rhs) { @@ -1107,6 +1179,20 @@ func (this ActivityStreamsDocument) LessThan(o vocab.ActivityStreamsDocument) bo // Anything else is greater than nil return false } // Else: Both are nil + // Compare property "tracksTicketsFor" + if lhs, rhs := this.ForgeFedTracksTicketsFor, o.GetForgeFedTracksTicketsFor(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil // Compare property "type" if lhs, rhs := this.JSONLDType, o.GetJSONLDType(); lhs != nil && rhs != nil { if lhs.LessThan(rhs) { @@ -1412,6 +1498,22 @@ func (this ActivityStreamsDocument) Serialize() (map[string]interface{}, error) m[this.ActivityStreamsTag.Name()] = i } } + // Maybe serialize property "team" + if this.ForgeFedTeam != nil { + if i, err := this.ForgeFedTeam.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ForgeFedTeam.Name()] = i + } + } + // Maybe serialize property "ticketsTrackedBy" + if this.ForgeFedTicketsTrackedBy != nil { + if i, err := this.ForgeFedTicketsTrackedBy.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ForgeFedTicketsTrackedBy.Name()] = i + } + } // Maybe serialize property "to" if this.ActivityStreamsTo != nil { if i, err := this.ActivityStreamsTo.Serialize(); err != nil { @@ -1420,6 +1522,14 @@ func (this ActivityStreamsDocument) Serialize() (map[string]interface{}, error) m[this.ActivityStreamsTo.Name()] = i } } + // Maybe serialize property "tracksTicketsFor" + if this.ForgeFedTracksTicketsFor != nil { + if i, err := this.ForgeFedTracksTicketsFor.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ForgeFedTracksTicketsFor.Name()] = i + } + } // Maybe serialize property "type" if this.JSONLDType != nil { if i, err := this.JSONLDType.Serialize(); err != nil { @@ -1613,6 +1723,21 @@ func (this *ActivityStreamsDocument) SetActivityStreamsUrl(i vocab.ActivityStrea this.ActivityStreamsUrl = i } +// SetForgeFedTeam sets the "team" property. +func (this *ActivityStreamsDocument) SetForgeFedTeam(i vocab.ForgeFedTeamProperty) { + this.ForgeFedTeam = i +} + +// SetForgeFedTicketsTrackedBy sets the "ticketsTrackedBy" property. +func (this *ActivityStreamsDocument) SetForgeFedTicketsTrackedBy(i vocab.ForgeFedTicketsTrackedByProperty) { + this.ForgeFedTicketsTrackedBy = i +} + +// SetForgeFedTracksTicketsFor sets the "tracksTicketsFor" property. +func (this *ActivityStreamsDocument) SetForgeFedTracksTicketsFor(i vocab.ForgeFedTracksTicketsForProperty) { + this.ForgeFedTracksTicketsFor = i +} + // SetJSONLDId sets the "id" property. func (this *ActivityStreamsDocument) SetJSONLDId(i vocab.JSONLDIdProperty) { this.JSONLDId = i diff --git a/streams/impl/activitystreams/type_event/gen_pkg.go b/streams/impl/activitystreams/type_event/gen_pkg.go index 49c8154..74af2a1 100644 --- a/streams/impl/activitystreams/type_event/gen_pkg.go +++ b/streams/impl/activitystreams/type_event/gen_pkg.go @@ -128,10 +128,22 @@ type privateManager interface { // method for the "ActivityStreamsTagProperty" non-functional property // in the vocabulary "ActivityStreams" DeserializeTagPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTagProperty, error) + // DeserializeTeamPropertyForgeFed returns the deserialization method for + // the "ForgeFedTeamProperty" non-functional property in the + // vocabulary "ForgeFed" + DeserializeTeamPropertyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTeamProperty, error) + // DeserializeTicketsTrackedByPropertyForgeFed returns the deserialization + // method for the "ForgeFedTicketsTrackedByProperty" non-functional + // property in the vocabulary "ForgeFed" + DeserializeTicketsTrackedByPropertyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTicketsTrackedByProperty, error) // DeserializeToPropertyActivityStreams returns the deserialization method // for the "ActivityStreamsToProperty" non-functional property in the // vocabulary "ActivityStreams" DeserializeToPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsToProperty, error) + // DeserializeTracksTicketsForPropertyForgeFed returns the deserialization + // method for the "ForgeFedTracksTicketsForProperty" non-functional + // property in the vocabulary "ForgeFed" + DeserializeTracksTicketsForPropertyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTracksTicketsForProperty, error) // DeserializeTypePropertyJSONLD returns the deserialization method for // the "JSONLDTypeProperty" non-functional property in the vocabulary // "JSONLD" diff --git a/streams/impl/activitystreams/type_event/gen_type_activitystreams_event.go b/streams/impl/activitystreams/type_event/gen_type_activitystreams_event.go index 12f4665..6ebf1de 100644 --- a/streams/impl/activitystreams/type_event/gen_type_activitystreams_event.go +++ b/streams/impl/activitystreams/type_event/gen_type_activitystreams_event.go @@ -47,7 +47,10 @@ type ActivityStreamsEvent struct { ActivityStreamsStartTime vocab.ActivityStreamsStartTimeProperty ActivityStreamsSummary vocab.ActivityStreamsSummaryProperty ActivityStreamsTag vocab.ActivityStreamsTagProperty + ForgeFedTeam vocab.ForgeFedTeamProperty + ForgeFedTicketsTrackedBy vocab.ForgeFedTicketsTrackedByProperty ActivityStreamsTo vocab.ActivityStreamsToProperty + ForgeFedTracksTicketsFor vocab.ForgeFedTracksTicketsForProperty JSONLDType vocab.JSONLDTypeProperty ActivityStreamsUpdated vocab.ActivityStreamsUpdatedProperty ActivityStreamsUrl vocab.ActivityStreamsUrlProperty @@ -249,11 +252,26 @@ func DeserializeEvent(m map[string]interface{}, aliasMap map[string]string) (*Ac } else if p != nil { this.ActivityStreamsTag = p } + if p, err := mgr.DeserializeTeamPropertyForgeFed()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ForgeFedTeam = p + } + if p, err := mgr.DeserializeTicketsTrackedByPropertyForgeFed()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ForgeFedTicketsTrackedBy = p + } if p, err := mgr.DeserializeToPropertyActivityStreams()(m, aliasMap); err != nil { return nil, err } else if p != nil { this.ActivityStreamsTo = p } + if p, err := mgr.DeserializeTracksTicketsForPropertyForgeFed()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ForgeFedTracksTicketsFor = p + } if p, err := mgr.DeserializeTypePropertyJSONLD()(m, aliasMap); err != nil { return nil, err } else if p != nil { @@ -338,8 +356,14 @@ func DeserializeEvent(m map[string]interface{}, aliasMap map[string]string) (*Ac continue } else if k == "tag" { continue + } else if k == "team" { + continue + } else if k == "ticketsTrackedBy" { + continue } else if k == "to" { continue + } else if k == "tracksTicketsFor" { + continue } else if k == "type" { continue } else if k == "updated" { @@ -579,6 +603,23 @@ func (this ActivityStreamsEvent) GetActivityStreamsUrl() vocab.ActivityStreamsUr return this.ActivityStreamsUrl } +// GetForgeFedTeam returns the "team" property if it exists, and nil otherwise. +func (this ActivityStreamsEvent) GetForgeFedTeam() vocab.ForgeFedTeamProperty { + return this.ForgeFedTeam +} + +// GetForgeFedTicketsTrackedBy returns the "ticketsTrackedBy" property if it +// exists, and nil otherwise. +func (this ActivityStreamsEvent) GetForgeFedTicketsTrackedBy() vocab.ForgeFedTicketsTrackedByProperty { + return this.ForgeFedTicketsTrackedBy +} + +// GetForgeFedTracksTicketsFor returns the "tracksTicketsFor" property if it +// exists, and nil otherwise. +func (this ActivityStreamsEvent) GetForgeFedTracksTicketsFor() vocab.ForgeFedTracksTicketsForProperty { + return this.ForgeFedTracksTicketsFor +} + // GetJSONLDId returns the "id" property if it exists, and nil otherwise. func (this ActivityStreamsEvent) GetJSONLDId() vocab.JSONLDIdProperty { return this.JSONLDId @@ -643,7 +684,10 @@ func (this ActivityStreamsEvent) JSONLDContext() map[string]string { m = this.helperJSONLDContext(this.ActivityStreamsStartTime, m) m = this.helperJSONLDContext(this.ActivityStreamsSummary, m) m = this.helperJSONLDContext(this.ActivityStreamsTag, m) + m = this.helperJSONLDContext(this.ForgeFedTeam, m) + m = this.helperJSONLDContext(this.ForgeFedTicketsTrackedBy, m) m = this.helperJSONLDContext(this.ActivityStreamsTo, m) + m = this.helperJSONLDContext(this.ForgeFedTracksTicketsFor, m) m = this.helperJSONLDContext(this.JSONLDType, m) m = this.helperJSONLDContext(this.ActivityStreamsUpdated, m) m = this.helperJSONLDContext(this.ActivityStreamsUrl, m) @@ -1061,6 +1105,34 @@ func (this ActivityStreamsEvent) LessThan(o vocab.ActivityStreamsEvent) bool { // Anything else is greater than nil return false } // Else: Both are nil + // Compare property "team" + if lhs, rhs := this.ForgeFedTeam, o.GetForgeFedTeam(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "ticketsTrackedBy" + if lhs, rhs := this.ForgeFedTicketsTrackedBy, o.GetForgeFedTicketsTrackedBy(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil // Compare property "to" if lhs, rhs := this.ActivityStreamsTo, o.GetActivityStreamsTo(); lhs != nil && rhs != nil { if lhs.LessThan(rhs) { @@ -1075,6 +1147,20 @@ func (this ActivityStreamsEvent) LessThan(o vocab.ActivityStreamsEvent) bool { // Anything else is greater than nil return false } // Else: Both are nil + // Compare property "tracksTicketsFor" + if lhs, rhs := this.ForgeFedTracksTicketsFor, o.GetForgeFedTracksTicketsFor(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil // Compare property "type" if lhs, rhs := this.JSONLDType, o.GetJSONLDType(); lhs != nil && rhs != nil { if lhs.LessThan(rhs) { @@ -1372,6 +1458,22 @@ func (this ActivityStreamsEvent) Serialize() (map[string]interface{}, error) { m[this.ActivityStreamsTag.Name()] = i } } + // Maybe serialize property "team" + if this.ForgeFedTeam != nil { + if i, err := this.ForgeFedTeam.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ForgeFedTeam.Name()] = i + } + } + // Maybe serialize property "ticketsTrackedBy" + if this.ForgeFedTicketsTrackedBy != nil { + if i, err := this.ForgeFedTicketsTrackedBy.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ForgeFedTicketsTrackedBy.Name()] = i + } + } // Maybe serialize property "to" if this.ActivityStreamsTo != nil { if i, err := this.ActivityStreamsTo.Serialize(); err != nil { @@ -1380,6 +1482,14 @@ func (this ActivityStreamsEvent) Serialize() (map[string]interface{}, error) { m[this.ActivityStreamsTo.Name()] = i } } + // Maybe serialize property "tracksTicketsFor" + if this.ForgeFedTracksTicketsFor != nil { + if i, err := this.ForgeFedTracksTicketsFor.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ForgeFedTracksTicketsFor.Name()] = i + } + } // Maybe serialize property "type" if this.JSONLDType != nil { if i, err := this.JSONLDType.Serialize(); err != nil { @@ -1573,6 +1683,21 @@ func (this *ActivityStreamsEvent) SetActivityStreamsUrl(i vocab.ActivityStreamsU this.ActivityStreamsUrl = i } +// SetForgeFedTeam sets the "team" property. +func (this *ActivityStreamsEvent) SetForgeFedTeam(i vocab.ForgeFedTeamProperty) { + this.ForgeFedTeam = i +} + +// SetForgeFedTicketsTrackedBy sets the "ticketsTrackedBy" property. +func (this *ActivityStreamsEvent) SetForgeFedTicketsTrackedBy(i vocab.ForgeFedTicketsTrackedByProperty) { + this.ForgeFedTicketsTrackedBy = i +} + +// SetForgeFedTracksTicketsFor sets the "tracksTicketsFor" property. +func (this *ActivityStreamsEvent) SetForgeFedTracksTicketsFor(i vocab.ForgeFedTracksTicketsForProperty) { + this.ForgeFedTracksTicketsFor = i +} + // SetJSONLDId sets the "id" property. func (this *ActivityStreamsEvent) SetJSONLDId(i vocab.JSONLDIdProperty) { this.JSONLDId = i diff --git a/streams/impl/activitystreams/type_flag/gen_pkg.go b/streams/impl/activitystreams/type_flag/gen_pkg.go index 1dc1df7..9099556 100644 --- a/streams/impl/activitystreams/type_flag/gen_pkg.go +++ b/streams/impl/activitystreams/type_flag/gen_pkg.go @@ -148,10 +148,22 @@ type privateManager interface { // method for the "ActivityStreamsTargetProperty" non-functional // property in the vocabulary "ActivityStreams" DeserializeTargetPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTargetProperty, error) + // DeserializeTeamPropertyForgeFed returns the deserialization method for + // the "ForgeFedTeamProperty" non-functional property in the + // vocabulary "ForgeFed" + DeserializeTeamPropertyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTeamProperty, error) + // DeserializeTicketsTrackedByPropertyForgeFed returns the deserialization + // method for the "ForgeFedTicketsTrackedByProperty" non-functional + // property in the vocabulary "ForgeFed" + DeserializeTicketsTrackedByPropertyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTicketsTrackedByProperty, error) // DeserializeToPropertyActivityStreams returns the deserialization method // for the "ActivityStreamsToProperty" non-functional property in the // vocabulary "ActivityStreams" DeserializeToPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsToProperty, error) + // DeserializeTracksTicketsForPropertyForgeFed returns the deserialization + // method for the "ForgeFedTracksTicketsForProperty" non-functional + // property in the vocabulary "ForgeFed" + DeserializeTracksTicketsForPropertyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTracksTicketsForProperty, error) // DeserializeTypePropertyJSONLD returns the deserialization method for // the "JSONLDTypeProperty" non-functional property in the vocabulary // "JSONLD" diff --git a/streams/impl/activitystreams/type_flag/gen_type_activitystreams_flag.go b/streams/impl/activitystreams/type_flag/gen_type_activitystreams_flag.go index c8fe428..f979a1f 100644 --- a/streams/impl/activitystreams/type_flag/gen_type_activitystreams_flag.go +++ b/streams/impl/activitystreams/type_flag/gen_type_activitystreams_flag.go @@ -57,7 +57,10 @@ type ActivityStreamsFlag struct { ActivityStreamsSummary vocab.ActivityStreamsSummaryProperty ActivityStreamsTag vocab.ActivityStreamsTagProperty ActivityStreamsTarget vocab.ActivityStreamsTargetProperty + ForgeFedTeam vocab.ForgeFedTeamProperty + ForgeFedTicketsTrackedBy vocab.ForgeFedTicketsTrackedByProperty ActivityStreamsTo vocab.ActivityStreamsToProperty + ForgeFedTracksTicketsFor vocab.ForgeFedTracksTicketsForProperty JSONLDType vocab.JSONLDTypeProperty ActivityStreamsUpdated vocab.ActivityStreamsUpdatedProperty ActivityStreamsUrl vocab.ActivityStreamsUrlProperty @@ -284,11 +287,26 @@ func DeserializeFlag(m map[string]interface{}, aliasMap map[string]string) (*Act } else if p != nil { this.ActivityStreamsTarget = p } + if p, err := mgr.DeserializeTeamPropertyForgeFed()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ForgeFedTeam = p + } + if p, err := mgr.DeserializeTicketsTrackedByPropertyForgeFed()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ForgeFedTicketsTrackedBy = p + } if p, err := mgr.DeserializeToPropertyActivityStreams()(m, aliasMap); err != nil { return nil, err } else if p != nil { this.ActivityStreamsTo = p } + if p, err := mgr.DeserializeTracksTicketsForPropertyForgeFed()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ForgeFedTracksTicketsFor = p + } if p, err := mgr.DeserializeTypePropertyJSONLD()(m, aliasMap); err != nil { return nil, err } else if p != nil { @@ -383,8 +401,14 @@ func DeserializeFlag(m map[string]interface{}, aliasMap map[string]string) (*Act continue } else if k == "target" { continue + } else if k == "team" { + continue + } else if k == "ticketsTrackedBy" { + continue } else if k == "to" { continue + } else if k == "tracksTicketsFor" { + continue } else if k == "type" { continue } else if k == "updated" { @@ -654,6 +678,23 @@ func (this ActivityStreamsFlag) GetActivityStreamsUrl() vocab.ActivityStreamsUrl return this.ActivityStreamsUrl } +// GetForgeFedTeam returns the "team" property if it exists, and nil otherwise. +func (this ActivityStreamsFlag) GetForgeFedTeam() vocab.ForgeFedTeamProperty { + return this.ForgeFedTeam +} + +// GetForgeFedTicketsTrackedBy returns the "ticketsTrackedBy" property if it +// exists, and nil otherwise. +func (this ActivityStreamsFlag) GetForgeFedTicketsTrackedBy() vocab.ForgeFedTicketsTrackedByProperty { + return this.ForgeFedTicketsTrackedBy +} + +// GetForgeFedTracksTicketsFor returns the "tracksTicketsFor" property if it +// exists, and nil otherwise. +func (this ActivityStreamsFlag) GetForgeFedTracksTicketsFor() vocab.ForgeFedTracksTicketsForProperty { + return this.ForgeFedTracksTicketsFor +} + // GetJSONLDId returns the "id" property if it exists, and nil otherwise. func (this ActivityStreamsFlag) GetJSONLDId() vocab.JSONLDIdProperty { return this.JSONLDId @@ -723,7 +764,10 @@ func (this ActivityStreamsFlag) JSONLDContext() map[string]string { m = this.helperJSONLDContext(this.ActivityStreamsSummary, m) m = this.helperJSONLDContext(this.ActivityStreamsTag, m) m = this.helperJSONLDContext(this.ActivityStreamsTarget, m) + m = this.helperJSONLDContext(this.ForgeFedTeam, m) + m = this.helperJSONLDContext(this.ForgeFedTicketsTrackedBy, m) m = this.helperJSONLDContext(this.ActivityStreamsTo, m) + m = this.helperJSONLDContext(this.ForgeFedTracksTicketsFor, m) m = this.helperJSONLDContext(this.JSONLDType, m) m = this.helperJSONLDContext(this.ActivityStreamsUpdated, m) m = this.helperJSONLDContext(this.ActivityStreamsUrl, m) @@ -1211,6 +1255,34 @@ func (this ActivityStreamsFlag) LessThan(o vocab.ActivityStreamsFlag) bool { // Anything else is greater than nil return false } // Else: Both are nil + // Compare property "team" + if lhs, rhs := this.ForgeFedTeam, o.GetForgeFedTeam(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "ticketsTrackedBy" + if lhs, rhs := this.ForgeFedTicketsTrackedBy, o.GetForgeFedTicketsTrackedBy(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil // Compare property "to" if lhs, rhs := this.ActivityStreamsTo, o.GetActivityStreamsTo(); lhs != nil && rhs != nil { if lhs.LessThan(rhs) { @@ -1225,6 +1297,20 @@ func (this ActivityStreamsFlag) LessThan(o vocab.ActivityStreamsFlag) bool { // Anything else is greater than nil return false } // Else: Both are nil + // Compare property "tracksTicketsFor" + if lhs, rhs := this.ForgeFedTracksTicketsFor, o.GetForgeFedTracksTicketsFor(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil // Compare property "type" if lhs, rhs := this.JSONLDType, o.GetJSONLDType(); lhs != nil && rhs != nil { if lhs.LessThan(rhs) { @@ -1562,6 +1648,22 @@ func (this ActivityStreamsFlag) Serialize() (map[string]interface{}, error) { m[this.ActivityStreamsTarget.Name()] = i } } + // Maybe serialize property "team" + if this.ForgeFedTeam != nil { + if i, err := this.ForgeFedTeam.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ForgeFedTeam.Name()] = i + } + } + // Maybe serialize property "ticketsTrackedBy" + if this.ForgeFedTicketsTrackedBy != nil { + if i, err := this.ForgeFedTicketsTrackedBy.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ForgeFedTicketsTrackedBy.Name()] = i + } + } // Maybe serialize property "to" if this.ActivityStreamsTo != nil { if i, err := this.ActivityStreamsTo.Serialize(); err != nil { @@ -1570,6 +1672,14 @@ func (this ActivityStreamsFlag) Serialize() (map[string]interface{}, error) { m[this.ActivityStreamsTo.Name()] = i } } + // Maybe serialize property "tracksTicketsFor" + if this.ForgeFedTracksTicketsFor != nil { + if i, err := this.ForgeFedTracksTicketsFor.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ForgeFedTracksTicketsFor.Name()] = i + } + } // Maybe serialize property "type" if this.JSONLDType != nil { if i, err := this.JSONLDType.Serialize(); err != nil { @@ -1788,6 +1898,21 @@ func (this *ActivityStreamsFlag) SetActivityStreamsUrl(i vocab.ActivityStreamsUr this.ActivityStreamsUrl = i } +// SetForgeFedTeam sets the "team" property. +func (this *ActivityStreamsFlag) SetForgeFedTeam(i vocab.ForgeFedTeamProperty) { + this.ForgeFedTeam = i +} + +// SetForgeFedTicketsTrackedBy sets the "ticketsTrackedBy" property. +func (this *ActivityStreamsFlag) SetForgeFedTicketsTrackedBy(i vocab.ForgeFedTicketsTrackedByProperty) { + this.ForgeFedTicketsTrackedBy = i +} + +// SetForgeFedTracksTicketsFor sets the "tracksTicketsFor" property. +func (this *ActivityStreamsFlag) SetForgeFedTracksTicketsFor(i vocab.ForgeFedTracksTicketsForProperty) { + this.ForgeFedTracksTicketsFor = i +} + // SetJSONLDId sets the "id" property. func (this *ActivityStreamsFlag) SetJSONLDId(i vocab.JSONLDIdProperty) { this.JSONLDId = i diff --git a/streams/impl/activitystreams/type_follow/gen_pkg.go b/streams/impl/activitystreams/type_follow/gen_pkg.go index c9730e7..17d65c2 100644 --- a/streams/impl/activitystreams/type_follow/gen_pkg.go +++ b/streams/impl/activitystreams/type_follow/gen_pkg.go @@ -148,10 +148,22 @@ type privateManager interface { // method for the "ActivityStreamsTargetProperty" non-functional // property in the vocabulary "ActivityStreams" DeserializeTargetPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTargetProperty, error) + // DeserializeTeamPropertyForgeFed returns the deserialization method for + // the "ForgeFedTeamProperty" non-functional property in the + // vocabulary "ForgeFed" + DeserializeTeamPropertyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTeamProperty, error) + // DeserializeTicketsTrackedByPropertyForgeFed returns the deserialization + // method for the "ForgeFedTicketsTrackedByProperty" non-functional + // property in the vocabulary "ForgeFed" + DeserializeTicketsTrackedByPropertyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTicketsTrackedByProperty, error) // DeserializeToPropertyActivityStreams returns the deserialization method // for the "ActivityStreamsToProperty" non-functional property in the // vocabulary "ActivityStreams" DeserializeToPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsToProperty, error) + // DeserializeTracksTicketsForPropertyForgeFed returns the deserialization + // method for the "ForgeFedTracksTicketsForProperty" non-functional + // property in the vocabulary "ForgeFed" + DeserializeTracksTicketsForPropertyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTracksTicketsForProperty, error) // DeserializeTypePropertyJSONLD returns the deserialization method for // the "JSONLDTypeProperty" non-functional property in the vocabulary // "JSONLD" diff --git a/streams/impl/activitystreams/type_follow/gen_type_activitystreams_follow.go b/streams/impl/activitystreams/type_follow/gen_type_activitystreams_follow.go index ebbfd8b..1cf4b89 100644 --- a/streams/impl/activitystreams/type_follow/gen_type_activitystreams_follow.go +++ b/streams/impl/activitystreams/type_follow/gen_type_activitystreams_follow.go @@ -61,7 +61,10 @@ type ActivityStreamsFollow struct { ActivityStreamsSummary vocab.ActivityStreamsSummaryProperty ActivityStreamsTag vocab.ActivityStreamsTagProperty ActivityStreamsTarget vocab.ActivityStreamsTargetProperty + ForgeFedTeam vocab.ForgeFedTeamProperty + ForgeFedTicketsTrackedBy vocab.ForgeFedTicketsTrackedByProperty ActivityStreamsTo vocab.ActivityStreamsToProperty + ForgeFedTracksTicketsFor vocab.ForgeFedTracksTicketsForProperty JSONLDType vocab.JSONLDTypeProperty ActivityStreamsUpdated vocab.ActivityStreamsUpdatedProperty ActivityStreamsUrl vocab.ActivityStreamsUrlProperty @@ -288,11 +291,26 @@ func DeserializeFollow(m map[string]interface{}, aliasMap map[string]string) (*A } else if p != nil { this.ActivityStreamsTarget = p } + if p, err := mgr.DeserializeTeamPropertyForgeFed()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ForgeFedTeam = p + } + if p, err := mgr.DeserializeTicketsTrackedByPropertyForgeFed()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ForgeFedTicketsTrackedBy = p + } if p, err := mgr.DeserializeToPropertyActivityStreams()(m, aliasMap); err != nil { return nil, err } else if p != nil { this.ActivityStreamsTo = p } + if p, err := mgr.DeserializeTracksTicketsForPropertyForgeFed()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ForgeFedTracksTicketsFor = p + } if p, err := mgr.DeserializeTypePropertyJSONLD()(m, aliasMap); err != nil { return nil, err } else if p != nil { @@ -387,8 +405,14 @@ func DeserializeFollow(m map[string]interface{}, aliasMap map[string]string) (*A continue } else if k == "target" { continue + } else if k == "team" { + continue + } else if k == "ticketsTrackedBy" { + continue } else if k == "to" { continue + } else if k == "tracksTicketsFor" { + continue } else if k == "type" { continue } else if k == "updated" { @@ -658,6 +682,23 @@ func (this ActivityStreamsFollow) GetActivityStreamsUrl() vocab.ActivityStreamsU return this.ActivityStreamsUrl } +// GetForgeFedTeam returns the "team" property if it exists, and nil otherwise. +func (this ActivityStreamsFollow) GetForgeFedTeam() vocab.ForgeFedTeamProperty { + return this.ForgeFedTeam +} + +// GetForgeFedTicketsTrackedBy returns the "ticketsTrackedBy" property if it +// exists, and nil otherwise. +func (this ActivityStreamsFollow) GetForgeFedTicketsTrackedBy() vocab.ForgeFedTicketsTrackedByProperty { + return this.ForgeFedTicketsTrackedBy +} + +// GetForgeFedTracksTicketsFor returns the "tracksTicketsFor" property if it +// exists, and nil otherwise. +func (this ActivityStreamsFollow) GetForgeFedTracksTicketsFor() vocab.ForgeFedTracksTicketsForProperty { + return this.ForgeFedTracksTicketsFor +} + // GetJSONLDId returns the "id" property if it exists, and nil otherwise. func (this ActivityStreamsFollow) GetJSONLDId() vocab.JSONLDIdProperty { return this.JSONLDId @@ -727,7 +768,10 @@ func (this ActivityStreamsFollow) JSONLDContext() map[string]string { m = this.helperJSONLDContext(this.ActivityStreamsSummary, m) m = this.helperJSONLDContext(this.ActivityStreamsTag, m) m = this.helperJSONLDContext(this.ActivityStreamsTarget, m) + m = this.helperJSONLDContext(this.ForgeFedTeam, m) + m = this.helperJSONLDContext(this.ForgeFedTicketsTrackedBy, m) m = this.helperJSONLDContext(this.ActivityStreamsTo, m) + m = this.helperJSONLDContext(this.ForgeFedTracksTicketsFor, m) m = this.helperJSONLDContext(this.JSONLDType, m) m = this.helperJSONLDContext(this.ActivityStreamsUpdated, m) m = this.helperJSONLDContext(this.ActivityStreamsUrl, m) @@ -1215,6 +1259,34 @@ func (this ActivityStreamsFollow) LessThan(o vocab.ActivityStreamsFollow) bool { // Anything else is greater than nil return false } // Else: Both are nil + // Compare property "team" + if lhs, rhs := this.ForgeFedTeam, o.GetForgeFedTeam(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "ticketsTrackedBy" + if lhs, rhs := this.ForgeFedTicketsTrackedBy, o.GetForgeFedTicketsTrackedBy(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil // Compare property "to" if lhs, rhs := this.ActivityStreamsTo, o.GetActivityStreamsTo(); lhs != nil && rhs != nil { if lhs.LessThan(rhs) { @@ -1229,6 +1301,20 @@ func (this ActivityStreamsFollow) LessThan(o vocab.ActivityStreamsFollow) bool { // Anything else is greater than nil return false } // Else: Both are nil + // Compare property "tracksTicketsFor" + if lhs, rhs := this.ForgeFedTracksTicketsFor, o.GetForgeFedTracksTicketsFor(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil // Compare property "type" if lhs, rhs := this.JSONLDType, o.GetJSONLDType(); lhs != nil && rhs != nil { if lhs.LessThan(rhs) { @@ -1566,6 +1652,22 @@ func (this ActivityStreamsFollow) Serialize() (map[string]interface{}, error) { m[this.ActivityStreamsTarget.Name()] = i } } + // Maybe serialize property "team" + if this.ForgeFedTeam != nil { + if i, err := this.ForgeFedTeam.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ForgeFedTeam.Name()] = i + } + } + // Maybe serialize property "ticketsTrackedBy" + if this.ForgeFedTicketsTrackedBy != nil { + if i, err := this.ForgeFedTicketsTrackedBy.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ForgeFedTicketsTrackedBy.Name()] = i + } + } // Maybe serialize property "to" if this.ActivityStreamsTo != nil { if i, err := this.ActivityStreamsTo.Serialize(); err != nil { @@ -1574,6 +1676,14 @@ func (this ActivityStreamsFollow) Serialize() (map[string]interface{}, error) { m[this.ActivityStreamsTo.Name()] = i } } + // Maybe serialize property "tracksTicketsFor" + if this.ForgeFedTracksTicketsFor != nil { + if i, err := this.ForgeFedTracksTicketsFor.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ForgeFedTracksTicketsFor.Name()] = i + } + } // Maybe serialize property "type" if this.JSONLDType != nil { if i, err := this.JSONLDType.Serialize(); err != nil { @@ -1792,6 +1902,21 @@ func (this *ActivityStreamsFollow) SetActivityStreamsUrl(i vocab.ActivityStreams this.ActivityStreamsUrl = i } +// SetForgeFedTeam sets the "team" property. +func (this *ActivityStreamsFollow) SetForgeFedTeam(i vocab.ForgeFedTeamProperty) { + this.ForgeFedTeam = i +} + +// SetForgeFedTicketsTrackedBy sets the "ticketsTrackedBy" property. +func (this *ActivityStreamsFollow) SetForgeFedTicketsTrackedBy(i vocab.ForgeFedTicketsTrackedByProperty) { + this.ForgeFedTicketsTrackedBy = i +} + +// SetForgeFedTracksTicketsFor sets the "tracksTicketsFor" property. +func (this *ActivityStreamsFollow) SetForgeFedTracksTicketsFor(i vocab.ForgeFedTracksTicketsForProperty) { + this.ForgeFedTracksTicketsFor = i +} + // SetJSONLDId sets the "id" property. func (this *ActivityStreamsFollow) SetJSONLDId(i vocab.JSONLDIdProperty) { this.JSONLDId = i diff --git a/streams/impl/activitystreams/type_group/gen_pkg.go b/streams/impl/activitystreams/type_group/gen_pkg.go index 185694a..71161f9 100644 --- a/streams/impl/activitystreams/type_group/gen_pkg.go +++ b/streams/impl/activitystreams/type_group/gen_pkg.go @@ -169,10 +169,22 @@ type privateManager interface { // method for the "ActivityStreamsTagProperty" non-functional property // in the vocabulary "ActivityStreams" DeserializeTagPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTagProperty, error) + // DeserializeTeamPropertyForgeFed returns the deserialization method for + // the "ForgeFedTeamProperty" non-functional property in the + // vocabulary "ForgeFed" + DeserializeTeamPropertyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTeamProperty, error) + // DeserializeTicketsTrackedByPropertyForgeFed returns the deserialization + // method for the "ForgeFedTicketsTrackedByProperty" non-functional + // property in the vocabulary "ForgeFed" + DeserializeTicketsTrackedByPropertyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTicketsTrackedByProperty, error) // DeserializeToPropertyActivityStreams returns the deserialization method // for the "ActivityStreamsToProperty" non-functional property in the // vocabulary "ActivityStreams" DeserializeToPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsToProperty, error) + // DeserializeTracksTicketsForPropertyForgeFed returns the deserialization + // method for the "ForgeFedTracksTicketsForProperty" non-functional + // property in the vocabulary "ForgeFed" + DeserializeTracksTicketsForPropertyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTracksTicketsForProperty, error) // DeserializeTypePropertyJSONLD returns the deserialization method for // the "JSONLDTypeProperty" non-functional property in the vocabulary // "JSONLD" diff --git a/streams/impl/activitystreams/type_group/gen_type_activitystreams_group.go b/streams/impl/activitystreams/type_group/gen_type_activitystreams_group.go index c0d0b36..7c7e43d 100644 --- a/streams/impl/activitystreams/type_group/gen_type_activitystreams_group.go +++ b/streams/impl/activitystreams/type_group/gen_type_activitystreams_group.go @@ -55,7 +55,10 @@ type ActivityStreamsGroup struct { ActivityStreamsStreams vocab.ActivityStreamsStreamsProperty ActivityStreamsSummary vocab.ActivityStreamsSummaryProperty ActivityStreamsTag vocab.ActivityStreamsTagProperty + ForgeFedTeam vocab.ForgeFedTeamProperty + ForgeFedTicketsTrackedBy vocab.ForgeFedTicketsTrackedByProperty ActivityStreamsTo vocab.ActivityStreamsToProperty + ForgeFedTracksTicketsFor vocab.ForgeFedTracksTicketsForProperty JSONLDType vocab.JSONLDTypeProperty ActivityStreamsUpdated vocab.ActivityStreamsUpdatedProperty ActivityStreamsUrl vocab.ActivityStreamsUrlProperty @@ -307,11 +310,26 @@ func DeserializeGroup(m map[string]interface{}, aliasMap map[string]string) (*Ac } else if p != nil { this.ActivityStreamsTag = p } + if p, err := mgr.DeserializeTeamPropertyForgeFed()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ForgeFedTeam = p + } + if p, err := mgr.DeserializeTicketsTrackedByPropertyForgeFed()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ForgeFedTicketsTrackedBy = p + } if p, err := mgr.DeserializeToPropertyActivityStreams()(m, aliasMap); err != nil { return nil, err } else if p != nil { this.ActivityStreamsTo = p } + if p, err := mgr.DeserializeTracksTicketsForPropertyForgeFed()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ForgeFedTracksTicketsFor = p + } if p, err := mgr.DeserializeTypePropertyJSONLD()(m, aliasMap); err != nil { return nil, err } else if p != nil { @@ -418,8 +436,14 @@ func DeserializeGroup(m map[string]interface{}, aliasMap map[string]string) (*Ac continue } else if k == "tag" { continue + } else if k == "team" { + continue + } else if k == "ticketsTrackedBy" { + continue } else if k == "to" { continue + } else if k == "tracksTicketsFor" { + continue } else if k == "type" { continue } else if k == "updated" { @@ -701,6 +725,23 @@ func (this ActivityStreamsGroup) GetActivityStreamsUrl() vocab.ActivityStreamsUr return this.ActivityStreamsUrl } +// GetForgeFedTeam returns the "team" property if it exists, and nil otherwise. +func (this ActivityStreamsGroup) GetForgeFedTeam() vocab.ForgeFedTeamProperty { + return this.ForgeFedTeam +} + +// GetForgeFedTicketsTrackedBy returns the "ticketsTrackedBy" property if it +// exists, and nil otherwise. +func (this ActivityStreamsGroup) GetForgeFedTicketsTrackedBy() vocab.ForgeFedTicketsTrackedByProperty { + return this.ForgeFedTicketsTrackedBy +} + +// GetForgeFedTracksTicketsFor returns the "tracksTicketsFor" property if it +// exists, and nil otherwise. +func (this ActivityStreamsGroup) GetForgeFedTracksTicketsFor() vocab.ForgeFedTracksTicketsForProperty { + return this.ForgeFedTracksTicketsFor +} + // GetJSONLDId returns the "id" property if it exists, and nil otherwise. func (this ActivityStreamsGroup) GetJSONLDId() vocab.JSONLDIdProperty { return this.JSONLDId @@ -792,7 +833,10 @@ func (this ActivityStreamsGroup) JSONLDContext() map[string]string { m = this.helperJSONLDContext(this.ActivityStreamsStreams, m) m = this.helperJSONLDContext(this.ActivityStreamsSummary, m) m = this.helperJSONLDContext(this.ActivityStreamsTag, m) + m = this.helperJSONLDContext(this.ForgeFedTeam, m) + m = this.helperJSONLDContext(this.ForgeFedTicketsTrackedBy, m) m = this.helperJSONLDContext(this.ActivityStreamsTo, m) + m = this.helperJSONLDContext(this.ForgeFedTracksTicketsFor, m) m = this.helperJSONLDContext(this.JSONLDType, m) m = this.helperJSONLDContext(this.ActivityStreamsUpdated, m) m = this.helperJSONLDContext(this.ActivityStreamsUrl, m) @@ -1350,6 +1394,34 @@ func (this ActivityStreamsGroup) LessThan(o vocab.ActivityStreamsGroup) bool { // Anything else is greater than nil return false } // Else: Both are nil + // Compare property "team" + if lhs, rhs := this.ForgeFedTeam, o.GetForgeFedTeam(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "ticketsTrackedBy" + if lhs, rhs := this.ForgeFedTicketsTrackedBy, o.GetForgeFedTicketsTrackedBy(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil // Compare property "to" if lhs, rhs := this.ActivityStreamsTo, o.GetActivityStreamsTo(); lhs != nil && rhs != nil { if lhs.LessThan(rhs) { @@ -1364,6 +1436,20 @@ func (this ActivityStreamsGroup) LessThan(o vocab.ActivityStreamsGroup) bool { // Anything else is greater than nil return false } // Else: Both are nil + // Compare property "tracksTicketsFor" + if lhs, rhs := this.ForgeFedTracksTicketsFor, o.GetForgeFedTracksTicketsFor(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil // Compare property "type" if lhs, rhs := this.JSONLDType, o.GetJSONLDType(); lhs != nil && rhs != nil { if lhs.LessThan(rhs) { @@ -1741,6 +1827,22 @@ func (this ActivityStreamsGroup) Serialize() (map[string]interface{}, error) { m[this.ActivityStreamsTag.Name()] = i } } + // Maybe serialize property "team" + if this.ForgeFedTeam != nil { + if i, err := this.ForgeFedTeam.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ForgeFedTeam.Name()] = i + } + } + // Maybe serialize property "ticketsTrackedBy" + if this.ForgeFedTicketsTrackedBy != nil { + if i, err := this.ForgeFedTicketsTrackedBy.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ForgeFedTicketsTrackedBy.Name()] = i + } + } // Maybe serialize property "to" if this.ActivityStreamsTo != nil { if i, err := this.ActivityStreamsTo.Serialize(); err != nil { @@ -1749,6 +1851,14 @@ func (this ActivityStreamsGroup) Serialize() (map[string]interface{}, error) { m[this.ActivityStreamsTo.Name()] = i } } + // Maybe serialize property "tracksTicketsFor" + if this.ForgeFedTracksTicketsFor != nil { + if i, err := this.ForgeFedTracksTicketsFor.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ForgeFedTracksTicketsFor.Name()] = i + } + } // Maybe serialize property "type" if this.JSONLDType != nil { if i, err := this.JSONLDType.Serialize(); err != nil { @@ -1977,6 +2087,21 @@ func (this *ActivityStreamsGroup) SetActivityStreamsUrl(i vocab.ActivityStreamsU this.ActivityStreamsUrl = i } +// SetForgeFedTeam sets the "team" property. +func (this *ActivityStreamsGroup) SetForgeFedTeam(i vocab.ForgeFedTeamProperty) { + this.ForgeFedTeam = i +} + +// SetForgeFedTicketsTrackedBy sets the "ticketsTrackedBy" property. +func (this *ActivityStreamsGroup) SetForgeFedTicketsTrackedBy(i vocab.ForgeFedTicketsTrackedByProperty) { + this.ForgeFedTicketsTrackedBy = i +} + +// SetForgeFedTracksTicketsFor sets the "tracksTicketsFor" property. +func (this *ActivityStreamsGroup) SetForgeFedTracksTicketsFor(i vocab.ForgeFedTracksTicketsForProperty) { + this.ForgeFedTracksTicketsFor = i +} + // SetJSONLDId sets the "id" property. func (this *ActivityStreamsGroup) SetJSONLDId(i vocab.JSONLDIdProperty) { this.JSONLDId = i diff --git a/streams/impl/activitystreams/type_ignore/gen_pkg.go b/streams/impl/activitystreams/type_ignore/gen_pkg.go index 7264d5b..7b6ab21 100644 --- a/streams/impl/activitystreams/type_ignore/gen_pkg.go +++ b/streams/impl/activitystreams/type_ignore/gen_pkg.go @@ -148,10 +148,22 @@ type privateManager interface { // method for the "ActivityStreamsTargetProperty" non-functional // property in the vocabulary "ActivityStreams" DeserializeTargetPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTargetProperty, error) + // DeserializeTeamPropertyForgeFed returns the deserialization method for + // the "ForgeFedTeamProperty" non-functional property in the + // vocabulary "ForgeFed" + DeserializeTeamPropertyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTeamProperty, error) + // DeserializeTicketsTrackedByPropertyForgeFed returns the deserialization + // method for the "ForgeFedTicketsTrackedByProperty" non-functional + // property in the vocabulary "ForgeFed" + DeserializeTicketsTrackedByPropertyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTicketsTrackedByProperty, error) // DeserializeToPropertyActivityStreams returns the deserialization method // for the "ActivityStreamsToProperty" non-functional property in the // vocabulary "ActivityStreams" DeserializeToPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsToProperty, error) + // DeserializeTracksTicketsForPropertyForgeFed returns the deserialization + // method for the "ForgeFedTracksTicketsForProperty" non-functional + // property in the vocabulary "ForgeFed" + DeserializeTracksTicketsForPropertyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTracksTicketsForProperty, error) // DeserializeTypePropertyJSONLD returns the deserialization method for // the "JSONLDTypeProperty" non-functional property in the vocabulary // "JSONLD" diff --git a/streams/impl/activitystreams/type_ignore/gen_type_activitystreams_ignore.go b/streams/impl/activitystreams/type_ignore/gen_type_activitystreams_ignore.go index 5a07a4f..85f24e6 100644 --- a/streams/impl/activitystreams/type_ignore/gen_type_activitystreams_ignore.go +++ b/streams/impl/activitystreams/type_ignore/gen_type_activitystreams_ignore.go @@ -56,7 +56,10 @@ type ActivityStreamsIgnore struct { ActivityStreamsSummary vocab.ActivityStreamsSummaryProperty ActivityStreamsTag vocab.ActivityStreamsTagProperty ActivityStreamsTarget vocab.ActivityStreamsTargetProperty + ForgeFedTeam vocab.ForgeFedTeamProperty + ForgeFedTicketsTrackedBy vocab.ForgeFedTicketsTrackedByProperty ActivityStreamsTo vocab.ActivityStreamsToProperty + ForgeFedTracksTicketsFor vocab.ForgeFedTracksTicketsForProperty JSONLDType vocab.JSONLDTypeProperty ActivityStreamsUpdated vocab.ActivityStreamsUpdatedProperty ActivityStreamsUrl vocab.ActivityStreamsUrlProperty @@ -283,11 +286,26 @@ func DeserializeIgnore(m map[string]interface{}, aliasMap map[string]string) (*A } else if p != nil { this.ActivityStreamsTarget = p } + if p, err := mgr.DeserializeTeamPropertyForgeFed()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ForgeFedTeam = p + } + if p, err := mgr.DeserializeTicketsTrackedByPropertyForgeFed()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ForgeFedTicketsTrackedBy = p + } if p, err := mgr.DeserializeToPropertyActivityStreams()(m, aliasMap); err != nil { return nil, err } else if p != nil { this.ActivityStreamsTo = p } + if p, err := mgr.DeserializeTracksTicketsForPropertyForgeFed()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ForgeFedTracksTicketsFor = p + } if p, err := mgr.DeserializeTypePropertyJSONLD()(m, aliasMap); err != nil { return nil, err } else if p != nil { @@ -382,8 +400,14 @@ func DeserializeIgnore(m map[string]interface{}, aliasMap map[string]string) (*A continue } else if k == "target" { continue + } else if k == "team" { + continue + } else if k == "ticketsTrackedBy" { + continue } else if k == "to" { continue + } else if k == "tracksTicketsFor" { + continue } else if k == "type" { continue } else if k == "updated" { @@ -658,6 +682,23 @@ func (this ActivityStreamsIgnore) GetActivityStreamsUrl() vocab.ActivityStreamsU return this.ActivityStreamsUrl } +// GetForgeFedTeam returns the "team" property if it exists, and nil otherwise. +func (this ActivityStreamsIgnore) GetForgeFedTeam() vocab.ForgeFedTeamProperty { + return this.ForgeFedTeam +} + +// GetForgeFedTicketsTrackedBy returns the "ticketsTrackedBy" property if it +// exists, and nil otherwise. +func (this ActivityStreamsIgnore) GetForgeFedTicketsTrackedBy() vocab.ForgeFedTicketsTrackedByProperty { + return this.ForgeFedTicketsTrackedBy +} + +// GetForgeFedTracksTicketsFor returns the "tracksTicketsFor" property if it +// exists, and nil otherwise. +func (this ActivityStreamsIgnore) GetForgeFedTracksTicketsFor() vocab.ForgeFedTracksTicketsForProperty { + return this.ForgeFedTracksTicketsFor +} + // GetJSONLDId returns the "id" property if it exists, and nil otherwise. func (this ActivityStreamsIgnore) GetJSONLDId() vocab.JSONLDIdProperty { return this.JSONLDId @@ -727,7 +768,10 @@ func (this ActivityStreamsIgnore) JSONLDContext() map[string]string { m = this.helperJSONLDContext(this.ActivityStreamsSummary, m) m = this.helperJSONLDContext(this.ActivityStreamsTag, m) m = this.helperJSONLDContext(this.ActivityStreamsTarget, m) + m = this.helperJSONLDContext(this.ForgeFedTeam, m) + m = this.helperJSONLDContext(this.ForgeFedTicketsTrackedBy, m) m = this.helperJSONLDContext(this.ActivityStreamsTo, m) + m = this.helperJSONLDContext(this.ForgeFedTracksTicketsFor, m) m = this.helperJSONLDContext(this.JSONLDType, m) m = this.helperJSONLDContext(this.ActivityStreamsUpdated, m) m = this.helperJSONLDContext(this.ActivityStreamsUrl, m) @@ -1215,6 +1259,34 @@ func (this ActivityStreamsIgnore) LessThan(o vocab.ActivityStreamsIgnore) bool { // Anything else is greater than nil return false } // Else: Both are nil + // Compare property "team" + if lhs, rhs := this.ForgeFedTeam, o.GetForgeFedTeam(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "ticketsTrackedBy" + if lhs, rhs := this.ForgeFedTicketsTrackedBy, o.GetForgeFedTicketsTrackedBy(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil // Compare property "to" if lhs, rhs := this.ActivityStreamsTo, o.GetActivityStreamsTo(); lhs != nil && rhs != nil { if lhs.LessThan(rhs) { @@ -1229,6 +1301,20 @@ func (this ActivityStreamsIgnore) LessThan(o vocab.ActivityStreamsIgnore) bool { // Anything else is greater than nil return false } // Else: Both are nil + // Compare property "tracksTicketsFor" + if lhs, rhs := this.ForgeFedTracksTicketsFor, o.GetForgeFedTracksTicketsFor(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil // Compare property "type" if lhs, rhs := this.JSONLDType, o.GetJSONLDType(); lhs != nil && rhs != nil { if lhs.LessThan(rhs) { @@ -1566,6 +1652,22 @@ func (this ActivityStreamsIgnore) Serialize() (map[string]interface{}, error) { m[this.ActivityStreamsTarget.Name()] = i } } + // Maybe serialize property "team" + if this.ForgeFedTeam != nil { + if i, err := this.ForgeFedTeam.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ForgeFedTeam.Name()] = i + } + } + // Maybe serialize property "ticketsTrackedBy" + if this.ForgeFedTicketsTrackedBy != nil { + if i, err := this.ForgeFedTicketsTrackedBy.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ForgeFedTicketsTrackedBy.Name()] = i + } + } // Maybe serialize property "to" if this.ActivityStreamsTo != nil { if i, err := this.ActivityStreamsTo.Serialize(); err != nil { @@ -1574,6 +1676,14 @@ func (this ActivityStreamsIgnore) Serialize() (map[string]interface{}, error) { m[this.ActivityStreamsTo.Name()] = i } } + // Maybe serialize property "tracksTicketsFor" + if this.ForgeFedTracksTicketsFor != nil { + if i, err := this.ForgeFedTracksTicketsFor.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ForgeFedTracksTicketsFor.Name()] = i + } + } // Maybe serialize property "type" if this.JSONLDType != nil { if i, err := this.JSONLDType.Serialize(); err != nil { @@ -1792,6 +1902,21 @@ func (this *ActivityStreamsIgnore) SetActivityStreamsUrl(i vocab.ActivityStreams this.ActivityStreamsUrl = i } +// SetForgeFedTeam sets the "team" property. +func (this *ActivityStreamsIgnore) SetForgeFedTeam(i vocab.ForgeFedTeamProperty) { + this.ForgeFedTeam = i +} + +// SetForgeFedTicketsTrackedBy sets the "ticketsTrackedBy" property. +func (this *ActivityStreamsIgnore) SetForgeFedTicketsTrackedBy(i vocab.ForgeFedTicketsTrackedByProperty) { + this.ForgeFedTicketsTrackedBy = i +} + +// SetForgeFedTracksTicketsFor sets the "tracksTicketsFor" property. +func (this *ActivityStreamsIgnore) SetForgeFedTracksTicketsFor(i vocab.ForgeFedTracksTicketsForProperty) { + this.ForgeFedTracksTicketsFor = i +} + // SetJSONLDId sets the "id" property. func (this *ActivityStreamsIgnore) SetJSONLDId(i vocab.JSONLDIdProperty) { this.JSONLDId = i diff --git a/streams/impl/activitystreams/type_image/gen_pkg.go b/streams/impl/activitystreams/type_image/gen_pkg.go index af2522a..2525ee0 100644 --- a/streams/impl/activitystreams/type_image/gen_pkg.go +++ b/streams/impl/activitystreams/type_image/gen_pkg.go @@ -136,10 +136,22 @@ type privateManager interface { // method for the "ActivityStreamsTagProperty" non-functional property // in the vocabulary "ActivityStreams" DeserializeTagPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTagProperty, error) + // DeserializeTeamPropertyForgeFed returns the deserialization method for + // the "ForgeFedTeamProperty" non-functional property in the + // vocabulary "ForgeFed" + DeserializeTeamPropertyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTeamProperty, error) + // DeserializeTicketsTrackedByPropertyForgeFed returns the deserialization + // method for the "ForgeFedTicketsTrackedByProperty" non-functional + // property in the vocabulary "ForgeFed" + DeserializeTicketsTrackedByPropertyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTicketsTrackedByProperty, error) // DeserializeToPropertyActivityStreams returns the deserialization method // for the "ActivityStreamsToProperty" non-functional property in the // vocabulary "ActivityStreams" DeserializeToPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsToProperty, error) + // DeserializeTracksTicketsForPropertyForgeFed returns the deserialization + // method for the "ForgeFedTracksTicketsForProperty" non-functional + // property in the vocabulary "ForgeFed" + DeserializeTracksTicketsForPropertyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTracksTicketsForProperty, error) // DeserializeTypePropertyJSONLD returns the deserialization method for // the "JSONLDTypeProperty" non-functional property in the vocabulary // "JSONLD" diff --git a/streams/impl/activitystreams/type_image/gen_type_activitystreams_image.go b/streams/impl/activitystreams/type_image/gen_type_activitystreams_image.go index 973aca5..47b11ea 100644 --- a/streams/impl/activitystreams/type_image/gen_type_activitystreams_image.go +++ b/streams/impl/activitystreams/type_image/gen_type_activitystreams_image.go @@ -59,7 +59,10 @@ type ActivityStreamsImage struct { ActivityStreamsStartTime vocab.ActivityStreamsStartTimeProperty ActivityStreamsSummary vocab.ActivityStreamsSummaryProperty ActivityStreamsTag vocab.ActivityStreamsTagProperty + ForgeFedTeam vocab.ForgeFedTeamProperty + ForgeFedTicketsTrackedBy vocab.ForgeFedTicketsTrackedByProperty ActivityStreamsTo vocab.ActivityStreamsToProperty + ForgeFedTracksTicketsFor vocab.ForgeFedTracksTicketsForProperty JSONLDType vocab.JSONLDTypeProperty ActivityStreamsUpdated vocab.ActivityStreamsUpdatedProperty ActivityStreamsUrl vocab.ActivityStreamsUrlProperty @@ -272,11 +275,26 @@ func DeserializeImage(m map[string]interface{}, aliasMap map[string]string) (*Ac } else if p != nil { this.ActivityStreamsTag = p } + if p, err := mgr.DeserializeTeamPropertyForgeFed()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ForgeFedTeam = p + } + if p, err := mgr.DeserializeTicketsTrackedByPropertyForgeFed()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ForgeFedTicketsTrackedBy = p + } if p, err := mgr.DeserializeToPropertyActivityStreams()(m, aliasMap); err != nil { return nil, err } else if p != nil { this.ActivityStreamsTo = p } + if p, err := mgr.DeserializeTracksTicketsForPropertyForgeFed()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ForgeFedTracksTicketsFor = p + } if p, err := mgr.DeserializeTypePropertyJSONLD()(m, aliasMap); err != nil { return nil, err } else if p != nil { @@ -370,8 +388,14 @@ func DeserializeImage(m map[string]interface{}, aliasMap map[string]string) (*Ac continue } else if k == "tag" { continue + } else if k == "team" { + continue + } else if k == "ticketsTrackedBy" { + continue } else if k == "to" { continue + } else if k == "tracksTicketsFor" { + continue } else if k == "type" { continue } else if k == "updated" { @@ -625,6 +649,23 @@ func (this ActivityStreamsImage) GetActivityStreamsWidth() vocab.ActivityStreams return this.ActivityStreamsWidth } +// GetForgeFedTeam returns the "team" property if it exists, and nil otherwise. +func (this ActivityStreamsImage) GetForgeFedTeam() vocab.ForgeFedTeamProperty { + return this.ForgeFedTeam +} + +// GetForgeFedTicketsTrackedBy returns the "ticketsTrackedBy" property if it +// exists, and nil otherwise. +func (this ActivityStreamsImage) GetForgeFedTicketsTrackedBy() vocab.ForgeFedTicketsTrackedByProperty { + return this.ForgeFedTicketsTrackedBy +} + +// GetForgeFedTracksTicketsFor returns the "tracksTicketsFor" property if it +// exists, and nil otherwise. +func (this ActivityStreamsImage) GetForgeFedTracksTicketsFor() vocab.ForgeFedTracksTicketsForProperty { + return this.ForgeFedTracksTicketsFor +} + // GetJSONLDId returns the "id" property if it exists, and nil otherwise. func (this ActivityStreamsImage) GetJSONLDId() vocab.JSONLDIdProperty { return this.JSONLDId @@ -696,7 +737,10 @@ func (this ActivityStreamsImage) JSONLDContext() map[string]string { m = this.helperJSONLDContext(this.ActivityStreamsStartTime, m) m = this.helperJSONLDContext(this.ActivityStreamsSummary, m) m = this.helperJSONLDContext(this.ActivityStreamsTag, m) + m = this.helperJSONLDContext(this.ForgeFedTeam, m) + m = this.helperJSONLDContext(this.ForgeFedTicketsTrackedBy, m) m = this.helperJSONLDContext(this.ActivityStreamsTo, m) + m = this.helperJSONLDContext(this.ForgeFedTracksTicketsFor, m) m = this.helperJSONLDContext(this.JSONLDType, m) m = this.helperJSONLDContext(this.ActivityStreamsUpdated, m) m = this.helperJSONLDContext(this.ActivityStreamsUrl, m) @@ -1143,6 +1187,34 @@ func (this ActivityStreamsImage) LessThan(o vocab.ActivityStreamsImage) bool { // Anything else is greater than nil return false } // Else: Both are nil + // Compare property "team" + if lhs, rhs := this.ForgeFedTeam, o.GetForgeFedTeam(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "ticketsTrackedBy" + if lhs, rhs := this.ForgeFedTicketsTrackedBy, o.GetForgeFedTicketsTrackedBy(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil // Compare property "to" if lhs, rhs := this.ActivityStreamsTo, o.GetActivityStreamsTo(); lhs != nil && rhs != nil { if lhs.LessThan(rhs) { @@ -1157,6 +1229,20 @@ func (this ActivityStreamsImage) LessThan(o vocab.ActivityStreamsImage) bool { // Anything else is greater than nil return false } // Else: Both are nil + // Compare property "tracksTicketsFor" + if lhs, rhs := this.ForgeFedTracksTicketsFor, o.GetForgeFedTracksTicketsFor(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil // Compare property "type" if lhs, rhs := this.JSONLDType, o.GetJSONLDType(); lhs != nil && rhs != nil { if lhs.LessThan(rhs) { @@ -1484,6 +1570,22 @@ func (this ActivityStreamsImage) Serialize() (map[string]interface{}, error) { m[this.ActivityStreamsTag.Name()] = i } } + // Maybe serialize property "team" + if this.ForgeFedTeam != nil { + if i, err := this.ForgeFedTeam.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ForgeFedTeam.Name()] = i + } + } + // Maybe serialize property "ticketsTrackedBy" + if this.ForgeFedTicketsTrackedBy != nil { + if i, err := this.ForgeFedTicketsTrackedBy.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ForgeFedTicketsTrackedBy.Name()] = i + } + } // Maybe serialize property "to" if this.ActivityStreamsTo != nil { if i, err := this.ActivityStreamsTo.Serialize(); err != nil { @@ -1492,6 +1594,14 @@ func (this ActivityStreamsImage) Serialize() (map[string]interface{}, error) { m[this.ActivityStreamsTo.Name()] = i } } + // Maybe serialize property "tracksTicketsFor" + if this.ForgeFedTracksTicketsFor != nil { + if i, err := this.ForgeFedTracksTicketsFor.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ForgeFedTracksTicketsFor.Name()] = i + } + } // Maybe serialize property "type" if this.JSONLDType != nil { if i, err := this.JSONLDType.Serialize(); err != nil { @@ -1703,6 +1813,21 @@ func (this *ActivityStreamsImage) SetActivityStreamsWidth(i vocab.ActivityStream this.ActivityStreamsWidth = i } +// SetForgeFedTeam sets the "team" property. +func (this *ActivityStreamsImage) SetForgeFedTeam(i vocab.ForgeFedTeamProperty) { + this.ForgeFedTeam = i +} + +// SetForgeFedTicketsTrackedBy sets the "ticketsTrackedBy" property. +func (this *ActivityStreamsImage) SetForgeFedTicketsTrackedBy(i vocab.ForgeFedTicketsTrackedByProperty) { + this.ForgeFedTicketsTrackedBy = i +} + +// SetForgeFedTracksTicketsFor sets the "tracksTicketsFor" property. +func (this *ActivityStreamsImage) SetForgeFedTracksTicketsFor(i vocab.ForgeFedTracksTicketsForProperty) { + this.ForgeFedTracksTicketsFor = i +} + // SetJSONLDId sets the "id" property. func (this *ActivityStreamsImage) SetJSONLDId(i vocab.JSONLDIdProperty) { this.JSONLDId = i diff --git a/streams/impl/activitystreams/type_intransitiveactivity/gen_pkg.go b/streams/impl/activitystreams/type_intransitiveactivity/gen_pkg.go index fa34c64..a7614d5 100644 --- a/streams/impl/activitystreams/type_intransitiveactivity/gen_pkg.go +++ b/streams/impl/activitystreams/type_intransitiveactivity/gen_pkg.go @@ -144,10 +144,22 @@ type privateManager interface { // method for the "ActivityStreamsTargetProperty" non-functional // property in the vocabulary "ActivityStreams" DeserializeTargetPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTargetProperty, error) + // DeserializeTeamPropertyForgeFed returns the deserialization method for + // the "ForgeFedTeamProperty" non-functional property in the + // vocabulary "ForgeFed" + DeserializeTeamPropertyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTeamProperty, error) + // DeserializeTicketsTrackedByPropertyForgeFed returns the deserialization + // method for the "ForgeFedTicketsTrackedByProperty" non-functional + // property in the vocabulary "ForgeFed" + DeserializeTicketsTrackedByPropertyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTicketsTrackedByProperty, error) // DeserializeToPropertyActivityStreams returns the deserialization method // for the "ActivityStreamsToProperty" non-functional property in the // vocabulary "ActivityStreams" DeserializeToPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsToProperty, error) + // DeserializeTracksTicketsForPropertyForgeFed returns the deserialization + // method for the "ForgeFedTracksTicketsForProperty" non-functional + // property in the vocabulary "ForgeFed" + DeserializeTracksTicketsForPropertyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTracksTicketsForProperty, error) // DeserializeTypePropertyJSONLD returns the deserialization method for // the "JSONLDTypeProperty" non-functional property in the vocabulary // "JSONLD" diff --git a/streams/impl/activitystreams/type_intransitiveactivity/gen_type_activitystreams_intransitiveactivity.go b/streams/impl/activitystreams/type_intransitiveactivity/gen_type_activitystreams_intransitiveactivity.go index 16d7e3b..1aec4ec 100644 --- a/streams/impl/activitystreams/type_intransitiveactivity/gen_type_activitystreams_intransitiveactivity.go +++ b/streams/impl/activitystreams/type_intransitiveactivity/gen_type_activitystreams_intransitiveactivity.go @@ -59,7 +59,10 @@ type ActivityStreamsIntransitiveActivity struct { ActivityStreamsSummary vocab.ActivityStreamsSummaryProperty ActivityStreamsTag vocab.ActivityStreamsTagProperty ActivityStreamsTarget vocab.ActivityStreamsTargetProperty + ForgeFedTeam vocab.ForgeFedTeamProperty + ForgeFedTicketsTrackedBy vocab.ForgeFedTicketsTrackedByProperty ActivityStreamsTo vocab.ActivityStreamsToProperty + ForgeFedTracksTicketsFor vocab.ForgeFedTracksTicketsForProperty JSONLDType vocab.JSONLDTypeProperty ActivityStreamsUpdated vocab.ActivityStreamsUpdatedProperty ActivityStreamsUrl vocab.ActivityStreamsUrlProperty @@ -281,11 +284,26 @@ func DeserializeIntransitiveActivity(m map[string]interface{}, aliasMap map[stri } else if p != nil { this.ActivityStreamsTarget = p } + if p, err := mgr.DeserializeTeamPropertyForgeFed()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ForgeFedTeam = p + } + if p, err := mgr.DeserializeTicketsTrackedByPropertyForgeFed()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ForgeFedTicketsTrackedBy = p + } if p, err := mgr.DeserializeToPropertyActivityStreams()(m, aliasMap); err != nil { return nil, err } else if p != nil { this.ActivityStreamsTo = p } + if p, err := mgr.DeserializeTracksTicketsForPropertyForgeFed()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ForgeFedTracksTicketsFor = p + } if p, err := mgr.DeserializeTypePropertyJSONLD()(m, aliasMap); err != nil { return nil, err } else if p != nil { @@ -378,8 +396,14 @@ func DeserializeIntransitiveActivity(m map[string]interface{}, aliasMap map[stri continue } else if k == "target" { continue + } else if k == "team" { + continue + } else if k == "ticketsTrackedBy" { + continue } else if k == "to" { continue + } else if k == "tracksTicketsFor" { + continue } else if k == "type" { continue } else if k == "updated" { @@ -649,6 +673,23 @@ func (this ActivityStreamsIntransitiveActivity) GetActivityStreamsUrl() vocab.Ac return this.ActivityStreamsUrl } +// GetForgeFedTeam returns the "team" property if it exists, and nil otherwise. +func (this ActivityStreamsIntransitiveActivity) GetForgeFedTeam() vocab.ForgeFedTeamProperty { + return this.ForgeFedTeam +} + +// GetForgeFedTicketsTrackedBy returns the "ticketsTrackedBy" property if it +// exists, and nil otherwise. +func (this ActivityStreamsIntransitiveActivity) GetForgeFedTicketsTrackedBy() vocab.ForgeFedTicketsTrackedByProperty { + return this.ForgeFedTicketsTrackedBy +} + +// GetForgeFedTracksTicketsFor returns the "tracksTicketsFor" property if it +// exists, and nil otherwise. +func (this ActivityStreamsIntransitiveActivity) GetForgeFedTracksTicketsFor() vocab.ForgeFedTracksTicketsForProperty { + return this.ForgeFedTracksTicketsFor +} + // GetJSONLDId returns the "id" property if it exists, and nil otherwise. func (this ActivityStreamsIntransitiveActivity) GetJSONLDId() vocab.JSONLDIdProperty { return this.JSONLDId @@ -719,7 +760,10 @@ func (this ActivityStreamsIntransitiveActivity) JSONLDContext() map[string]strin m = this.helperJSONLDContext(this.ActivityStreamsSummary, m) m = this.helperJSONLDContext(this.ActivityStreamsTag, m) m = this.helperJSONLDContext(this.ActivityStreamsTarget, m) + m = this.helperJSONLDContext(this.ForgeFedTeam, m) + m = this.helperJSONLDContext(this.ForgeFedTicketsTrackedBy, m) m = this.helperJSONLDContext(this.ActivityStreamsTo, m) + m = this.helperJSONLDContext(this.ForgeFedTracksTicketsFor, m) m = this.helperJSONLDContext(this.JSONLDType, m) m = this.helperJSONLDContext(this.ActivityStreamsUpdated, m) m = this.helperJSONLDContext(this.ActivityStreamsUrl, m) @@ -1193,6 +1237,34 @@ func (this ActivityStreamsIntransitiveActivity) LessThan(o vocab.ActivityStreams // Anything else is greater than nil return false } // Else: Both are nil + // Compare property "team" + if lhs, rhs := this.ForgeFedTeam, o.GetForgeFedTeam(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "ticketsTrackedBy" + if lhs, rhs := this.ForgeFedTicketsTrackedBy, o.GetForgeFedTicketsTrackedBy(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil // Compare property "to" if lhs, rhs := this.ActivityStreamsTo, o.GetActivityStreamsTo(); lhs != nil && rhs != nil { if lhs.LessThan(rhs) { @@ -1207,6 +1279,20 @@ func (this ActivityStreamsIntransitiveActivity) LessThan(o vocab.ActivityStreams // Anything else is greater than nil return false } // Else: Both are nil + // Compare property "tracksTicketsFor" + if lhs, rhs := this.ForgeFedTracksTicketsFor, o.GetForgeFedTracksTicketsFor(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil // Compare property "type" if lhs, rhs := this.JSONLDType, o.GetJSONLDType(); lhs != nil && rhs != nil { if lhs.LessThan(rhs) { @@ -1536,6 +1622,22 @@ func (this ActivityStreamsIntransitiveActivity) Serialize() (map[string]interfac m[this.ActivityStreamsTarget.Name()] = i } } + // Maybe serialize property "team" + if this.ForgeFedTeam != nil { + if i, err := this.ForgeFedTeam.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ForgeFedTeam.Name()] = i + } + } + // Maybe serialize property "ticketsTrackedBy" + if this.ForgeFedTicketsTrackedBy != nil { + if i, err := this.ForgeFedTicketsTrackedBy.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ForgeFedTicketsTrackedBy.Name()] = i + } + } // Maybe serialize property "to" if this.ActivityStreamsTo != nil { if i, err := this.ActivityStreamsTo.Serialize(); err != nil { @@ -1544,6 +1646,14 @@ func (this ActivityStreamsIntransitiveActivity) Serialize() (map[string]interfac m[this.ActivityStreamsTo.Name()] = i } } + // Maybe serialize property "tracksTicketsFor" + if this.ForgeFedTracksTicketsFor != nil { + if i, err := this.ForgeFedTracksTicketsFor.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ForgeFedTracksTicketsFor.Name()] = i + } + } // Maybe serialize property "type" if this.JSONLDType != nil { if i, err := this.JSONLDType.Serialize(); err != nil { @@ -1757,6 +1867,21 @@ func (this *ActivityStreamsIntransitiveActivity) SetActivityStreamsUrl(i vocab.A this.ActivityStreamsUrl = i } +// SetForgeFedTeam sets the "team" property. +func (this *ActivityStreamsIntransitiveActivity) SetForgeFedTeam(i vocab.ForgeFedTeamProperty) { + this.ForgeFedTeam = i +} + +// SetForgeFedTicketsTrackedBy sets the "ticketsTrackedBy" property. +func (this *ActivityStreamsIntransitiveActivity) SetForgeFedTicketsTrackedBy(i vocab.ForgeFedTicketsTrackedByProperty) { + this.ForgeFedTicketsTrackedBy = i +} + +// SetForgeFedTracksTicketsFor sets the "tracksTicketsFor" property. +func (this *ActivityStreamsIntransitiveActivity) SetForgeFedTracksTicketsFor(i vocab.ForgeFedTracksTicketsForProperty) { + this.ForgeFedTracksTicketsFor = i +} + // SetJSONLDId sets the "id" property. func (this *ActivityStreamsIntransitiveActivity) SetJSONLDId(i vocab.JSONLDIdProperty) { this.JSONLDId = i diff --git a/streams/impl/activitystreams/type_invite/gen_pkg.go b/streams/impl/activitystreams/type_invite/gen_pkg.go index a2471ea..e87d031 100644 --- a/streams/impl/activitystreams/type_invite/gen_pkg.go +++ b/streams/impl/activitystreams/type_invite/gen_pkg.go @@ -148,10 +148,22 @@ type privateManager interface { // method for the "ActivityStreamsTargetProperty" non-functional // property in the vocabulary "ActivityStreams" DeserializeTargetPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTargetProperty, error) + // DeserializeTeamPropertyForgeFed returns the deserialization method for + // the "ForgeFedTeamProperty" non-functional property in the + // vocabulary "ForgeFed" + DeserializeTeamPropertyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTeamProperty, error) + // DeserializeTicketsTrackedByPropertyForgeFed returns the deserialization + // method for the "ForgeFedTicketsTrackedByProperty" non-functional + // property in the vocabulary "ForgeFed" + DeserializeTicketsTrackedByPropertyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTicketsTrackedByProperty, error) // DeserializeToPropertyActivityStreams returns the deserialization method // for the "ActivityStreamsToProperty" non-functional property in the // vocabulary "ActivityStreams" DeserializeToPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsToProperty, error) + // DeserializeTracksTicketsForPropertyForgeFed returns the deserialization + // method for the "ForgeFedTracksTicketsForProperty" non-functional + // property in the vocabulary "ForgeFed" + DeserializeTracksTicketsForPropertyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTracksTicketsForProperty, error) // DeserializeTypePropertyJSONLD returns the deserialization method for // the "JSONLDTypeProperty" non-functional property in the vocabulary // "JSONLD" diff --git a/streams/impl/activitystreams/type_invite/gen_type_activitystreams_invite.go b/streams/impl/activitystreams/type_invite/gen_type_activitystreams_invite.go index e6edeb8..d889247 100644 --- a/streams/impl/activitystreams/type_invite/gen_type_activitystreams_invite.go +++ b/streams/impl/activitystreams/type_invite/gen_type_activitystreams_invite.go @@ -69,7 +69,10 @@ type ActivityStreamsInvite struct { ActivityStreamsSummary vocab.ActivityStreamsSummaryProperty ActivityStreamsTag vocab.ActivityStreamsTagProperty ActivityStreamsTarget vocab.ActivityStreamsTargetProperty + ForgeFedTeam vocab.ForgeFedTeamProperty + ForgeFedTicketsTrackedBy vocab.ForgeFedTicketsTrackedByProperty ActivityStreamsTo vocab.ActivityStreamsToProperty + ForgeFedTracksTicketsFor vocab.ForgeFedTracksTicketsForProperty JSONLDType vocab.JSONLDTypeProperty ActivityStreamsUpdated vocab.ActivityStreamsUpdatedProperty ActivityStreamsUrl vocab.ActivityStreamsUrlProperty @@ -296,11 +299,26 @@ func DeserializeInvite(m map[string]interface{}, aliasMap map[string]string) (*A } else if p != nil { this.ActivityStreamsTarget = p } + if p, err := mgr.DeserializeTeamPropertyForgeFed()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ForgeFedTeam = p + } + if p, err := mgr.DeserializeTicketsTrackedByPropertyForgeFed()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ForgeFedTicketsTrackedBy = p + } if p, err := mgr.DeserializeToPropertyActivityStreams()(m, aliasMap); err != nil { return nil, err } else if p != nil { this.ActivityStreamsTo = p } + if p, err := mgr.DeserializeTracksTicketsForPropertyForgeFed()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ForgeFedTracksTicketsFor = p + } if p, err := mgr.DeserializeTypePropertyJSONLD()(m, aliasMap); err != nil { return nil, err } else if p != nil { @@ -395,8 +413,14 @@ func DeserializeInvite(m map[string]interface{}, aliasMap map[string]string) (*A continue } else if k == "target" { continue + } else if k == "team" { + continue + } else if k == "ticketsTrackedBy" { + continue } else if k == "to" { continue + } else if k == "tracksTicketsFor" { + continue } else if k == "type" { continue } else if k == "updated" { @@ -666,6 +690,23 @@ func (this ActivityStreamsInvite) GetActivityStreamsUrl() vocab.ActivityStreamsU return this.ActivityStreamsUrl } +// GetForgeFedTeam returns the "team" property if it exists, and nil otherwise. +func (this ActivityStreamsInvite) GetForgeFedTeam() vocab.ForgeFedTeamProperty { + return this.ForgeFedTeam +} + +// GetForgeFedTicketsTrackedBy returns the "ticketsTrackedBy" property if it +// exists, and nil otherwise. +func (this ActivityStreamsInvite) GetForgeFedTicketsTrackedBy() vocab.ForgeFedTicketsTrackedByProperty { + return this.ForgeFedTicketsTrackedBy +} + +// GetForgeFedTracksTicketsFor returns the "tracksTicketsFor" property if it +// exists, and nil otherwise. +func (this ActivityStreamsInvite) GetForgeFedTracksTicketsFor() vocab.ForgeFedTracksTicketsForProperty { + return this.ForgeFedTracksTicketsFor +} + // GetJSONLDId returns the "id" property if it exists, and nil otherwise. func (this ActivityStreamsInvite) GetJSONLDId() vocab.JSONLDIdProperty { return this.JSONLDId @@ -735,7 +776,10 @@ func (this ActivityStreamsInvite) JSONLDContext() map[string]string { m = this.helperJSONLDContext(this.ActivityStreamsSummary, m) m = this.helperJSONLDContext(this.ActivityStreamsTag, m) m = this.helperJSONLDContext(this.ActivityStreamsTarget, m) + m = this.helperJSONLDContext(this.ForgeFedTeam, m) + m = this.helperJSONLDContext(this.ForgeFedTicketsTrackedBy, m) m = this.helperJSONLDContext(this.ActivityStreamsTo, m) + m = this.helperJSONLDContext(this.ForgeFedTracksTicketsFor, m) m = this.helperJSONLDContext(this.JSONLDType, m) m = this.helperJSONLDContext(this.ActivityStreamsUpdated, m) m = this.helperJSONLDContext(this.ActivityStreamsUrl, m) @@ -1223,6 +1267,34 @@ func (this ActivityStreamsInvite) LessThan(o vocab.ActivityStreamsInvite) bool { // Anything else is greater than nil return false } // Else: Both are nil + // Compare property "team" + if lhs, rhs := this.ForgeFedTeam, o.GetForgeFedTeam(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "ticketsTrackedBy" + if lhs, rhs := this.ForgeFedTicketsTrackedBy, o.GetForgeFedTicketsTrackedBy(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil // Compare property "to" if lhs, rhs := this.ActivityStreamsTo, o.GetActivityStreamsTo(); lhs != nil && rhs != nil { if lhs.LessThan(rhs) { @@ -1237,6 +1309,20 @@ func (this ActivityStreamsInvite) LessThan(o vocab.ActivityStreamsInvite) bool { // Anything else is greater than nil return false } // Else: Both are nil + // Compare property "tracksTicketsFor" + if lhs, rhs := this.ForgeFedTracksTicketsFor, o.GetForgeFedTracksTicketsFor(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil // Compare property "type" if lhs, rhs := this.JSONLDType, o.GetJSONLDType(); lhs != nil && rhs != nil { if lhs.LessThan(rhs) { @@ -1574,6 +1660,22 @@ func (this ActivityStreamsInvite) Serialize() (map[string]interface{}, error) { m[this.ActivityStreamsTarget.Name()] = i } } + // Maybe serialize property "team" + if this.ForgeFedTeam != nil { + if i, err := this.ForgeFedTeam.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ForgeFedTeam.Name()] = i + } + } + // Maybe serialize property "ticketsTrackedBy" + if this.ForgeFedTicketsTrackedBy != nil { + if i, err := this.ForgeFedTicketsTrackedBy.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ForgeFedTicketsTrackedBy.Name()] = i + } + } // Maybe serialize property "to" if this.ActivityStreamsTo != nil { if i, err := this.ActivityStreamsTo.Serialize(); err != nil { @@ -1582,6 +1684,14 @@ func (this ActivityStreamsInvite) Serialize() (map[string]interface{}, error) { m[this.ActivityStreamsTo.Name()] = i } } + // Maybe serialize property "tracksTicketsFor" + if this.ForgeFedTracksTicketsFor != nil { + if i, err := this.ForgeFedTracksTicketsFor.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ForgeFedTracksTicketsFor.Name()] = i + } + } // Maybe serialize property "type" if this.JSONLDType != nil { if i, err := this.JSONLDType.Serialize(); err != nil { @@ -1800,6 +1910,21 @@ func (this *ActivityStreamsInvite) SetActivityStreamsUrl(i vocab.ActivityStreams this.ActivityStreamsUrl = i } +// SetForgeFedTeam sets the "team" property. +func (this *ActivityStreamsInvite) SetForgeFedTeam(i vocab.ForgeFedTeamProperty) { + this.ForgeFedTeam = i +} + +// SetForgeFedTicketsTrackedBy sets the "ticketsTrackedBy" property. +func (this *ActivityStreamsInvite) SetForgeFedTicketsTrackedBy(i vocab.ForgeFedTicketsTrackedByProperty) { + this.ForgeFedTicketsTrackedBy = i +} + +// SetForgeFedTracksTicketsFor sets the "tracksTicketsFor" property. +func (this *ActivityStreamsInvite) SetForgeFedTracksTicketsFor(i vocab.ForgeFedTracksTicketsForProperty) { + this.ForgeFedTracksTicketsFor = i +} + // SetJSONLDId sets the "id" property. func (this *ActivityStreamsInvite) SetJSONLDId(i vocab.JSONLDIdProperty) { this.JSONLDId = i diff --git a/streams/impl/activitystreams/type_join/gen_pkg.go b/streams/impl/activitystreams/type_join/gen_pkg.go index 99375ba..20b91a5 100644 --- a/streams/impl/activitystreams/type_join/gen_pkg.go +++ b/streams/impl/activitystreams/type_join/gen_pkg.go @@ -148,10 +148,22 @@ type privateManager interface { // method for the "ActivityStreamsTargetProperty" non-functional // property in the vocabulary "ActivityStreams" DeserializeTargetPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTargetProperty, error) + // DeserializeTeamPropertyForgeFed returns the deserialization method for + // the "ForgeFedTeamProperty" non-functional property in the + // vocabulary "ForgeFed" + DeserializeTeamPropertyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTeamProperty, error) + // DeserializeTicketsTrackedByPropertyForgeFed returns the deserialization + // method for the "ForgeFedTicketsTrackedByProperty" non-functional + // property in the vocabulary "ForgeFed" + DeserializeTicketsTrackedByPropertyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTicketsTrackedByProperty, error) // DeserializeToPropertyActivityStreams returns the deserialization method // for the "ActivityStreamsToProperty" non-functional property in the // vocabulary "ActivityStreams" DeserializeToPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsToProperty, error) + // DeserializeTracksTicketsForPropertyForgeFed returns the deserialization + // method for the "ForgeFedTracksTicketsForProperty" non-functional + // property in the vocabulary "ForgeFed" + DeserializeTracksTicketsForPropertyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTracksTicketsForProperty, error) // DeserializeTypePropertyJSONLD returns the deserialization method for // the "JSONLDTypeProperty" non-functional property in the vocabulary // "JSONLD" diff --git a/streams/impl/activitystreams/type_join/gen_type_activitystreams_join.go b/streams/impl/activitystreams/type_join/gen_type_activitystreams_join.go index dcb965e..3699bee 100644 --- a/streams/impl/activitystreams/type_join/gen_type_activitystreams_join.go +++ b/streams/impl/activitystreams/type_join/gen_type_activitystreams_join.go @@ -59,7 +59,10 @@ type ActivityStreamsJoin struct { ActivityStreamsSummary vocab.ActivityStreamsSummaryProperty ActivityStreamsTag vocab.ActivityStreamsTagProperty ActivityStreamsTarget vocab.ActivityStreamsTargetProperty + ForgeFedTeam vocab.ForgeFedTeamProperty + ForgeFedTicketsTrackedBy vocab.ForgeFedTicketsTrackedByProperty ActivityStreamsTo vocab.ActivityStreamsToProperty + ForgeFedTracksTicketsFor vocab.ForgeFedTracksTicketsForProperty JSONLDType vocab.JSONLDTypeProperty ActivityStreamsUpdated vocab.ActivityStreamsUpdatedProperty ActivityStreamsUrl vocab.ActivityStreamsUrlProperty @@ -286,11 +289,26 @@ func DeserializeJoin(m map[string]interface{}, aliasMap map[string]string) (*Act } else if p != nil { this.ActivityStreamsTarget = p } + if p, err := mgr.DeserializeTeamPropertyForgeFed()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ForgeFedTeam = p + } + if p, err := mgr.DeserializeTicketsTrackedByPropertyForgeFed()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ForgeFedTicketsTrackedBy = p + } if p, err := mgr.DeserializeToPropertyActivityStreams()(m, aliasMap); err != nil { return nil, err } else if p != nil { this.ActivityStreamsTo = p } + if p, err := mgr.DeserializeTracksTicketsForPropertyForgeFed()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ForgeFedTracksTicketsFor = p + } if p, err := mgr.DeserializeTypePropertyJSONLD()(m, aliasMap); err != nil { return nil, err } else if p != nil { @@ -385,8 +403,14 @@ func DeserializeJoin(m map[string]interface{}, aliasMap map[string]string) (*Act continue } else if k == "target" { continue + } else if k == "team" { + continue + } else if k == "ticketsTrackedBy" { + continue } else if k == "to" { continue + } else if k == "tracksTicketsFor" { + continue } else if k == "type" { continue } else if k == "updated" { @@ -656,6 +680,23 @@ func (this ActivityStreamsJoin) GetActivityStreamsUrl() vocab.ActivityStreamsUrl return this.ActivityStreamsUrl } +// GetForgeFedTeam returns the "team" property if it exists, and nil otherwise. +func (this ActivityStreamsJoin) GetForgeFedTeam() vocab.ForgeFedTeamProperty { + return this.ForgeFedTeam +} + +// GetForgeFedTicketsTrackedBy returns the "ticketsTrackedBy" property if it +// exists, and nil otherwise. +func (this ActivityStreamsJoin) GetForgeFedTicketsTrackedBy() vocab.ForgeFedTicketsTrackedByProperty { + return this.ForgeFedTicketsTrackedBy +} + +// GetForgeFedTracksTicketsFor returns the "tracksTicketsFor" property if it +// exists, and nil otherwise. +func (this ActivityStreamsJoin) GetForgeFedTracksTicketsFor() vocab.ForgeFedTracksTicketsForProperty { + return this.ForgeFedTracksTicketsFor +} + // GetJSONLDId returns the "id" property if it exists, and nil otherwise. func (this ActivityStreamsJoin) GetJSONLDId() vocab.JSONLDIdProperty { return this.JSONLDId @@ -725,7 +766,10 @@ func (this ActivityStreamsJoin) JSONLDContext() map[string]string { m = this.helperJSONLDContext(this.ActivityStreamsSummary, m) m = this.helperJSONLDContext(this.ActivityStreamsTag, m) m = this.helperJSONLDContext(this.ActivityStreamsTarget, m) + m = this.helperJSONLDContext(this.ForgeFedTeam, m) + m = this.helperJSONLDContext(this.ForgeFedTicketsTrackedBy, m) m = this.helperJSONLDContext(this.ActivityStreamsTo, m) + m = this.helperJSONLDContext(this.ForgeFedTracksTicketsFor, m) m = this.helperJSONLDContext(this.JSONLDType, m) m = this.helperJSONLDContext(this.ActivityStreamsUpdated, m) m = this.helperJSONLDContext(this.ActivityStreamsUrl, m) @@ -1213,6 +1257,34 @@ func (this ActivityStreamsJoin) LessThan(o vocab.ActivityStreamsJoin) bool { // Anything else is greater than nil return false } // Else: Both are nil + // Compare property "team" + if lhs, rhs := this.ForgeFedTeam, o.GetForgeFedTeam(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "ticketsTrackedBy" + if lhs, rhs := this.ForgeFedTicketsTrackedBy, o.GetForgeFedTicketsTrackedBy(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil // Compare property "to" if lhs, rhs := this.ActivityStreamsTo, o.GetActivityStreamsTo(); lhs != nil && rhs != nil { if lhs.LessThan(rhs) { @@ -1227,6 +1299,20 @@ func (this ActivityStreamsJoin) LessThan(o vocab.ActivityStreamsJoin) bool { // Anything else is greater than nil return false } // Else: Both are nil + // Compare property "tracksTicketsFor" + if lhs, rhs := this.ForgeFedTracksTicketsFor, o.GetForgeFedTracksTicketsFor(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil // Compare property "type" if lhs, rhs := this.JSONLDType, o.GetJSONLDType(); lhs != nil && rhs != nil { if lhs.LessThan(rhs) { @@ -1564,6 +1650,22 @@ func (this ActivityStreamsJoin) Serialize() (map[string]interface{}, error) { m[this.ActivityStreamsTarget.Name()] = i } } + // Maybe serialize property "team" + if this.ForgeFedTeam != nil { + if i, err := this.ForgeFedTeam.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ForgeFedTeam.Name()] = i + } + } + // Maybe serialize property "ticketsTrackedBy" + if this.ForgeFedTicketsTrackedBy != nil { + if i, err := this.ForgeFedTicketsTrackedBy.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ForgeFedTicketsTrackedBy.Name()] = i + } + } // Maybe serialize property "to" if this.ActivityStreamsTo != nil { if i, err := this.ActivityStreamsTo.Serialize(); err != nil { @@ -1572,6 +1674,14 @@ func (this ActivityStreamsJoin) Serialize() (map[string]interface{}, error) { m[this.ActivityStreamsTo.Name()] = i } } + // Maybe serialize property "tracksTicketsFor" + if this.ForgeFedTracksTicketsFor != nil { + if i, err := this.ForgeFedTracksTicketsFor.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ForgeFedTracksTicketsFor.Name()] = i + } + } // Maybe serialize property "type" if this.JSONLDType != nil { if i, err := this.JSONLDType.Serialize(); err != nil { @@ -1790,6 +1900,21 @@ func (this *ActivityStreamsJoin) SetActivityStreamsUrl(i vocab.ActivityStreamsUr this.ActivityStreamsUrl = i } +// SetForgeFedTeam sets the "team" property. +func (this *ActivityStreamsJoin) SetForgeFedTeam(i vocab.ForgeFedTeamProperty) { + this.ForgeFedTeam = i +} + +// SetForgeFedTicketsTrackedBy sets the "ticketsTrackedBy" property. +func (this *ActivityStreamsJoin) SetForgeFedTicketsTrackedBy(i vocab.ForgeFedTicketsTrackedByProperty) { + this.ForgeFedTicketsTrackedBy = i +} + +// SetForgeFedTracksTicketsFor sets the "tracksTicketsFor" property. +func (this *ActivityStreamsJoin) SetForgeFedTracksTicketsFor(i vocab.ForgeFedTracksTicketsForProperty) { + this.ForgeFedTracksTicketsFor = i +} + // SetJSONLDId sets the "id" property. func (this *ActivityStreamsJoin) SetJSONLDId(i vocab.JSONLDIdProperty) { this.JSONLDId = i diff --git a/streams/impl/activitystreams/type_leave/gen_pkg.go b/streams/impl/activitystreams/type_leave/gen_pkg.go index b1fdc4d..1d646e2 100644 --- a/streams/impl/activitystreams/type_leave/gen_pkg.go +++ b/streams/impl/activitystreams/type_leave/gen_pkg.go @@ -148,10 +148,22 @@ type privateManager interface { // method for the "ActivityStreamsTargetProperty" non-functional // property in the vocabulary "ActivityStreams" DeserializeTargetPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTargetProperty, error) + // DeserializeTeamPropertyForgeFed returns the deserialization method for + // the "ForgeFedTeamProperty" non-functional property in the + // vocabulary "ForgeFed" + DeserializeTeamPropertyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTeamProperty, error) + // DeserializeTicketsTrackedByPropertyForgeFed returns the deserialization + // method for the "ForgeFedTicketsTrackedByProperty" non-functional + // property in the vocabulary "ForgeFed" + DeserializeTicketsTrackedByPropertyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTicketsTrackedByProperty, error) // DeserializeToPropertyActivityStreams returns the deserialization method // for the "ActivityStreamsToProperty" non-functional property in the // vocabulary "ActivityStreams" DeserializeToPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsToProperty, error) + // DeserializeTracksTicketsForPropertyForgeFed returns the deserialization + // method for the "ForgeFedTracksTicketsForProperty" non-functional + // property in the vocabulary "ForgeFed" + DeserializeTracksTicketsForPropertyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTracksTicketsForProperty, error) // DeserializeTypePropertyJSONLD returns the deserialization method for // the "JSONLDTypeProperty" non-functional property in the vocabulary // "JSONLD" diff --git a/streams/impl/activitystreams/type_leave/gen_type_activitystreams_leave.go b/streams/impl/activitystreams/type_leave/gen_type_activitystreams_leave.go index e50f885..bbcbb93 100644 --- a/streams/impl/activitystreams/type_leave/gen_type_activitystreams_leave.go +++ b/streams/impl/activitystreams/type_leave/gen_type_activitystreams_leave.go @@ -73,7 +73,10 @@ type ActivityStreamsLeave struct { ActivityStreamsSummary vocab.ActivityStreamsSummaryProperty ActivityStreamsTag vocab.ActivityStreamsTagProperty ActivityStreamsTarget vocab.ActivityStreamsTargetProperty + ForgeFedTeam vocab.ForgeFedTeamProperty + ForgeFedTicketsTrackedBy vocab.ForgeFedTicketsTrackedByProperty ActivityStreamsTo vocab.ActivityStreamsToProperty + ForgeFedTracksTicketsFor vocab.ForgeFedTracksTicketsForProperty JSONLDType vocab.JSONLDTypeProperty ActivityStreamsUpdated vocab.ActivityStreamsUpdatedProperty ActivityStreamsUrl vocab.ActivityStreamsUrlProperty @@ -300,11 +303,26 @@ func DeserializeLeave(m map[string]interface{}, aliasMap map[string]string) (*Ac } else if p != nil { this.ActivityStreamsTarget = p } + if p, err := mgr.DeserializeTeamPropertyForgeFed()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ForgeFedTeam = p + } + if p, err := mgr.DeserializeTicketsTrackedByPropertyForgeFed()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ForgeFedTicketsTrackedBy = p + } if p, err := mgr.DeserializeToPropertyActivityStreams()(m, aliasMap); err != nil { return nil, err } else if p != nil { this.ActivityStreamsTo = p } + if p, err := mgr.DeserializeTracksTicketsForPropertyForgeFed()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ForgeFedTracksTicketsFor = p + } if p, err := mgr.DeserializeTypePropertyJSONLD()(m, aliasMap); err != nil { return nil, err } else if p != nil { @@ -399,8 +417,14 @@ func DeserializeLeave(m map[string]interface{}, aliasMap map[string]string) (*Ac continue } else if k == "target" { continue + } else if k == "team" { + continue + } else if k == "ticketsTrackedBy" { + continue } else if k == "to" { continue + } else if k == "tracksTicketsFor" { + continue } else if k == "type" { continue } else if k == "updated" { @@ -670,6 +694,23 @@ func (this ActivityStreamsLeave) GetActivityStreamsUrl() vocab.ActivityStreamsUr return this.ActivityStreamsUrl } +// GetForgeFedTeam returns the "team" property if it exists, and nil otherwise. +func (this ActivityStreamsLeave) GetForgeFedTeam() vocab.ForgeFedTeamProperty { + return this.ForgeFedTeam +} + +// GetForgeFedTicketsTrackedBy returns the "ticketsTrackedBy" property if it +// exists, and nil otherwise. +func (this ActivityStreamsLeave) GetForgeFedTicketsTrackedBy() vocab.ForgeFedTicketsTrackedByProperty { + return this.ForgeFedTicketsTrackedBy +} + +// GetForgeFedTracksTicketsFor returns the "tracksTicketsFor" property if it +// exists, and nil otherwise. +func (this ActivityStreamsLeave) GetForgeFedTracksTicketsFor() vocab.ForgeFedTracksTicketsForProperty { + return this.ForgeFedTracksTicketsFor +} + // GetJSONLDId returns the "id" property if it exists, and nil otherwise. func (this ActivityStreamsLeave) GetJSONLDId() vocab.JSONLDIdProperty { return this.JSONLDId @@ -739,7 +780,10 @@ func (this ActivityStreamsLeave) JSONLDContext() map[string]string { m = this.helperJSONLDContext(this.ActivityStreamsSummary, m) m = this.helperJSONLDContext(this.ActivityStreamsTag, m) m = this.helperJSONLDContext(this.ActivityStreamsTarget, m) + m = this.helperJSONLDContext(this.ForgeFedTeam, m) + m = this.helperJSONLDContext(this.ForgeFedTicketsTrackedBy, m) m = this.helperJSONLDContext(this.ActivityStreamsTo, m) + m = this.helperJSONLDContext(this.ForgeFedTracksTicketsFor, m) m = this.helperJSONLDContext(this.JSONLDType, m) m = this.helperJSONLDContext(this.ActivityStreamsUpdated, m) m = this.helperJSONLDContext(this.ActivityStreamsUrl, m) @@ -1227,6 +1271,34 @@ func (this ActivityStreamsLeave) LessThan(o vocab.ActivityStreamsLeave) bool { // Anything else is greater than nil return false } // Else: Both are nil + // Compare property "team" + if lhs, rhs := this.ForgeFedTeam, o.GetForgeFedTeam(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "ticketsTrackedBy" + if lhs, rhs := this.ForgeFedTicketsTrackedBy, o.GetForgeFedTicketsTrackedBy(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil // Compare property "to" if lhs, rhs := this.ActivityStreamsTo, o.GetActivityStreamsTo(); lhs != nil && rhs != nil { if lhs.LessThan(rhs) { @@ -1241,6 +1313,20 @@ func (this ActivityStreamsLeave) LessThan(o vocab.ActivityStreamsLeave) bool { // Anything else is greater than nil return false } // Else: Both are nil + // Compare property "tracksTicketsFor" + if lhs, rhs := this.ForgeFedTracksTicketsFor, o.GetForgeFedTracksTicketsFor(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil // Compare property "type" if lhs, rhs := this.JSONLDType, o.GetJSONLDType(); lhs != nil && rhs != nil { if lhs.LessThan(rhs) { @@ -1578,6 +1664,22 @@ func (this ActivityStreamsLeave) Serialize() (map[string]interface{}, error) { m[this.ActivityStreamsTarget.Name()] = i } } + // Maybe serialize property "team" + if this.ForgeFedTeam != nil { + if i, err := this.ForgeFedTeam.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ForgeFedTeam.Name()] = i + } + } + // Maybe serialize property "ticketsTrackedBy" + if this.ForgeFedTicketsTrackedBy != nil { + if i, err := this.ForgeFedTicketsTrackedBy.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ForgeFedTicketsTrackedBy.Name()] = i + } + } // Maybe serialize property "to" if this.ActivityStreamsTo != nil { if i, err := this.ActivityStreamsTo.Serialize(); err != nil { @@ -1586,6 +1688,14 @@ func (this ActivityStreamsLeave) Serialize() (map[string]interface{}, error) { m[this.ActivityStreamsTo.Name()] = i } } + // Maybe serialize property "tracksTicketsFor" + if this.ForgeFedTracksTicketsFor != nil { + if i, err := this.ForgeFedTracksTicketsFor.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ForgeFedTracksTicketsFor.Name()] = i + } + } // Maybe serialize property "type" if this.JSONLDType != nil { if i, err := this.JSONLDType.Serialize(); err != nil { @@ -1804,6 +1914,21 @@ func (this *ActivityStreamsLeave) SetActivityStreamsUrl(i vocab.ActivityStreamsU this.ActivityStreamsUrl = i } +// SetForgeFedTeam sets the "team" property. +func (this *ActivityStreamsLeave) SetForgeFedTeam(i vocab.ForgeFedTeamProperty) { + this.ForgeFedTeam = i +} + +// SetForgeFedTicketsTrackedBy sets the "ticketsTrackedBy" property. +func (this *ActivityStreamsLeave) SetForgeFedTicketsTrackedBy(i vocab.ForgeFedTicketsTrackedByProperty) { + this.ForgeFedTicketsTrackedBy = i +} + +// SetForgeFedTracksTicketsFor sets the "tracksTicketsFor" property. +func (this *ActivityStreamsLeave) SetForgeFedTracksTicketsFor(i vocab.ForgeFedTracksTicketsForProperty) { + this.ForgeFedTracksTicketsFor = i +} + // SetJSONLDId sets the "id" property. func (this *ActivityStreamsLeave) SetJSONLDId(i vocab.JSONLDIdProperty) { this.JSONLDId = i diff --git a/streams/impl/activitystreams/type_like/gen_pkg.go b/streams/impl/activitystreams/type_like/gen_pkg.go index 226eb7b..2a3a990 100644 --- a/streams/impl/activitystreams/type_like/gen_pkg.go +++ b/streams/impl/activitystreams/type_like/gen_pkg.go @@ -148,10 +148,22 @@ type privateManager interface { // method for the "ActivityStreamsTargetProperty" non-functional // property in the vocabulary "ActivityStreams" DeserializeTargetPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTargetProperty, error) + // DeserializeTeamPropertyForgeFed returns the deserialization method for + // the "ForgeFedTeamProperty" non-functional property in the + // vocabulary "ForgeFed" + DeserializeTeamPropertyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTeamProperty, error) + // DeserializeTicketsTrackedByPropertyForgeFed returns the deserialization + // method for the "ForgeFedTicketsTrackedByProperty" non-functional + // property in the vocabulary "ForgeFed" + DeserializeTicketsTrackedByPropertyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTicketsTrackedByProperty, error) // DeserializeToPropertyActivityStreams returns the deserialization method // for the "ActivityStreamsToProperty" non-functional property in the // vocabulary "ActivityStreams" DeserializeToPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsToProperty, error) + // DeserializeTracksTicketsForPropertyForgeFed returns the deserialization + // method for the "ForgeFedTracksTicketsForProperty" non-functional + // property in the vocabulary "ForgeFed" + DeserializeTracksTicketsForPropertyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTracksTicketsForProperty, error) // DeserializeTypePropertyJSONLD returns the deserialization method for // the "JSONLDTypeProperty" non-functional property in the vocabulary // "JSONLD" diff --git a/streams/impl/activitystreams/type_like/gen_type_activitystreams_like.go b/streams/impl/activitystreams/type_like/gen_type_activitystreams_like.go index a00c9c2..c78004d 100644 --- a/streams/impl/activitystreams/type_like/gen_type_activitystreams_like.go +++ b/streams/impl/activitystreams/type_like/gen_type_activitystreams_like.go @@ -56,7 +56,10 @@ type ActivityStreamsLike struct { ActivityStreamsSummary vocab.ActivityStreamsSummaryProperty ActivityStreamsTag vocab.ActivityStreamsTagProperty ActivityStreamsTarget vocab.ActivityStreamsTargetProperty + ForgeFedTeam vocab.ForgeFedTeamProperty + ForgeFedTicketsTrackedBy vocab.ForgeFedTicketsTrackedByProperty ActivityStreamsTo vocab.ActivityStreamsToProperty + ForgeFedTracksTicketsFor vocab.ForgeFedTracksTicketsForProperty JSONLDType vocab.JSONLDTypeProperty ActivityStreamsUpdated vocab.ActivityStreamsUpdatedProperty ActivityStreamsUrl vocab.ActivityStreamsUrlProperty @@ -283,11 +286,26 @@ func DeserializeLike(m map[string]interface{}, aliasMap map[string]string) (*Act } else if p != nil { this.ActivityStreamsTarget = p } + if p, err := mgr.DeserializeTeamPropertyForgeFed()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ForgeFedTeam = p + } + if p, err := mgr.DeserializeTicketsTrackedByPropertyForgeFed()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ForgeFedTicketsTrackedBy = p + } if p, err := mgr.DeserializeToPropertyActivityStreams()(m, aliasMap); err != nil { return nil, err } else if p != nil { this.ActivityStreamsTo = p } + if p, err := mgr.DeserializeTracksTicketsForPropertyForgeFed()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ForgeFedTracksTicketsFor = p + } if p, err := mgr.DeserializeTypePropertyJSONLD()(m, aliasMap); err != nil { return nil, err } else if p != nil { @@ -382,8 +400,14 @@ func DeserializeLike(m map[string]interface{}, aliasMap map[string]string) (*Act continue } else if k == "target" { continue + } else if k == "team" { + continue + } else if k == "ticketsTrackedBy" { + continue } else if k == "to" { continue + } else if k == "tracksTicketsFor" { + continue } else if k == "type" { continue } else if k == "updated" { @@ -653,6 +677,23 @@ func (this ActivityStreamsLike) GetActivityStreamsUrl() vocab.ActivityStreamsUrl return this.ActivityStreamsUrl } +// GetForgeFedTeam returns the "team" property if it exists, and nil otherwise. +func (this ActivityStreamsLike) GetForgeFedTeam() vocab.ForgeFedTeamProperty { + return this.ForgeFedTeam +} + +// GetForgeFedTicketsTrackedBy returns the "ticketsTrackedBy" property if it +// exists, and nil otherwise. +func (this ActivityStreamsLike) GetForgeFedTicketsTrackedBy() vocab.ForgeFedTicketsTrackedByProperty { + return this.ForgeFedTicketsTrackedBy +} + +// GetForgeFedTracksTicketsFor returns the "tracksTicketsFor" property if it +// exists, and nil otherwise. +func (this ActivityStreamsLike) GetForgeFedTracksTicketsFor() vocab.ForgeFedTracksTicketsForProperty { + return this.ForgeFedTracksTicketsFor +} + // GetJSONLDId returns the "id" property if it exists, and nil otherwise. func (this ActivityStreamsLike) GetJSONLDId() vocab.JSONLDIdProperty { return this.JSONLDId @@ -722,7 +763,10 @@ func (this ActivityStreamsLike) JSONLDContext() map[string]string { m = this.helperJSONLDContext(this.ActivityStreamsSummary, m) m = this.helperJSONLDContext(this.ActivityStreamsTag, m) m = this.helperJSONLDContext(this.ActivityStreamsTarget, m) + m = this.helperJSONLDContext(this.ForgeFedTeam, m) + m = this.helperJSONLDContext(this.ForgeFedTicketsTrackedBy, m) m = this.helperJSONLDContext(this.ActivityStreamsTo, m) + m = this.helperJSONLDContext(this.ForgeFedTracksTicketsFor, m) m = this.helperJSONLDContext(this.JSONLDType, m) m = this.helperJSONLDContext(this.ActivityStreamsUpdated, m) m = this.helperJSONLDContext(this.ActivityStreamsUrl, m) @@ -1210,6 +1254,34 @@ func (this ActivityStreamsLike) LessThan(o vocab.ActivityStreamsLike) bool { // Anything else is greater than nil return false } // Else: Both are nil + // Compare property "team" + if lhs, rhs := this.ForgeFedTeam, o.GetForgeFedTeam(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "ticketsTrackedBy" + if lhs, rhs := this.ForgeFedTicketsTrackedBy, o.GetForgeFedTicketsTrackedBy(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil // Compare property "to" if lhs, rhs := this.ActivityStreamsTo, o.GetActivityStreamsTo(); lhs != nil && rhs != nil { if lhs.LessThan(rhs) { @@ -1224,6 +1296,20 @@ func (this ActivityStreamsLike) LessThan(o vocab.ActivityStreamsLike) bool { // Anything else is greater than nil return false } // Else: Both are nil + // Compare property "tracksTicketsFor" + if lhs, rhs := this.ForgeFedTracksTicketsFor, o.GetForgeFedTracksTicketsFor(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil // Compare property "type" if lhs, rhs := this.JSONLDType, o.GetJSONLDType(); lhs != nil && rhs != nil { if lhs.LessThan(rhs) { @@ -1561,6 +1647,22 @@ func (this ActivityStreamsLike) Serialize() (map[string]interface{}, error) { m[this.ActivityStreamsTarget.Name()] = i } } + // Maybe serialize property "team" + if this.ForgeFedTeam != nil { + if i, err := this.ForgeFedTeam.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ForgeFedTeam.Name()] = i + } + } + // Maybe serialize property "ticketsTrackedBy" + if this.ForgeFedTicketsTrackedBy != nil { + if i, err := this.ForgeFedTicketsTrackedBy.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ForgeFedTicketsTrackedBy.Name()] = i + } + } // Maybe serialize property "to" if this.ActivityStreamsTo != nil { if i, err := this.ActivityStreamsTo.Serialize(); err != nil { @@ -1569,6 +1671,14 @@ func (this ActivityStreamsLike) Serialize() (map[string]interface{}, error) { m[this.ActivityStreamsTo.Name()] = i } } + // Maybe serialize property "tracksTicketsFor" + if this.ForgeFedTracksTicketsFor != nil { + if i, err := this.ForgeFedTracksTicketsFor.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ForgeFedTracksTicketsFor.Name()] = i + } + } // Maybe serialize property "type" if this.JSONLDType != nil { if i, err := this.JSONLDType.Serialize(); err != nil { @@ -1787,6 +1897,21 @@ func (this *ActivityStreamsLike) SetActivityStreamsUrl(i vocab.ActivityStreamsUr this.ActivityStreamsUrl = i } +// SetForgeFedTeam sets the "team" property. +func (this *ActivityStreamsLike) SetForgeFedTeam(i vocab.ForgeFedTeamProperty) { + this.ForgeFedTeam = i +} + +// SetForgeFedTicketsTrackedBy sets the "ticketsTrackedBy" property. +func (this *ActivityStreamsLike) SetForgeFedTicketsTrackedBy(i vocab.ForgeFedTicketsTrackedByProperty) { + this.ForgeFedTicketsTrackedBy = i +} + +// SetForgeFedTracksTicketsFor sets the "tracksTicketsFor" property. +func (this *ActivityStreamsLike) SetForgeFedTracksTicketsFor(i vocab.ForgeFedTracksTicketsForProperty) { + this.ForgeFedTracksTicketsFor = i +} + // SetJSONLDId sets the "id" property. func (this *ActivityStreamsLike) SetJSONLDId(i vocab.JSONLDIdProperty) { this.JSONLDId = i diff --git a/streams/impl/activitystreams/type_link/gen_type_activitystreams_link.go b/streams/impl/activitystreams/type_link/gen_type_activitystreams_link.go index dc5e2ba..ffb6912 100644 --- a/streams/impl/activitystreams/type_link/gen_type_activitystreams_link.go +++ b/streams/impl/activitystreams/type_link/gen_type_activitystreams_link.go @@ -199,7 +199,7 @@ func IsOrExtendsLink(other vocab.Type) bool { // LinkIsDisjointWith returns true if the other provided type is disjoint with the // Link type. func LinkIsDisjointWith(other vocab.Type) bool { - disjointWith := []string{"Accept", "Activity", "Add", "Announce", "Application", "Arrive", "Article", "Audio", "Block", "Collection", "CollectionPage", "Create", "Delete", "Dislike", "Document", "Emoji", "Event", "Flag", "Follow", "Group", "IdentityProof", "Ignore", "Image", "IntransitiveActivity", "Invite", "Join", "Leave", "Like", "Listen", "Move", "Note", "Object", "Offer", "OrderedCollection", "OrderedCollectionPage", "OrderedCollectionPage", "Organization", "Page", "Person", "Place", "Profile", "Question", "Read", "Reject", "Relationship", "Remove", "Service", "TentativeAccept", "TentativeReject", "Tombstone", "Travel", "Undo", "Update", "Video", "View"} + disjointWith := []string{"Accept", "Activity", "Add", "Announce", "Application", "Arrive", "Article", "Audio", "Block", "Branch", "Collection", "CollectionPage", "Commit", "Create", "Delete", "Dislike", "Document", "Emoji", "Event", "Flag", "Follow", "Group", "IdentityProof", "Ignore", "Image", "IntransitiveActivity", "Invite", "Join", "Leave", "Like", "Listen", "Move", "Note", "Object", "Offer", "OrderedCollection", "OrderedCollectionPage", "OrderedCollectionPage", "Organization", "Page", "Person", "Place", "Profile", "Push", "Question", "Read", "Reject", "Relationship", "Remove", "Repository", "Service", "TentativeAccept", "TentativeReject", "Ticket", "TicketDependency", "Tombstone", "Travel", "Undo", "Update", "Video", "View"} for _, disjoint := range disjointWith { if disjoint == other.GetTypeName() { return true diff --git a/streams/impl/activitystreams/type_listen/gen_pkg.go b/streams/impl/activitystreams/type_listen/gen_pkg.go index 93c68c8..567b1cc 100644 --- a/streams/impl/activitystreams/type_listen/gen_pkg.go +++ b/streams/impl/activitystreams/type_listen/gen_pkg.go @@ -148,10 +148,22 @@ type privateManager interface { // method for the "ActivityStreamsTargetProperty" non-functional // property in the vocabulary "ActivityStreams" DeserializeTargetPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTargetProperty, error) + // DeserializeTeamPropertyForgeFed returns the deserialization method for + // the "ForgeFedTeamProperty" non-functional property in the + // vocabulary "ForgeFed" + DeserializeTeamPropertyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTeamProperty, error) + // DeserializeTicketsTrackedByPropertyForgeFed returns the deserialization + // method for the "ForgeFedTicketsTrackedByProperty" non-functional + // property in the vocabulary "ForgeFed" + DeserializeTicketsTrackedByPropertyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTicketsTrackedByProperty, error) // DeserializeToPropertyActivityStreams returns the deserialization method // for the "ActivityStreamsToProperty" non-functional property in the // vocabulary "ActivityStreams" DeserializeToPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsToProperty, error) + // DeserializeTracksTicketsForPropertyForgeFed returns the deserialization + // method for the "ForgeFedTracksTicketsForProperty" non-functional + // property in the vocabulary "ForgeFed" + DeserializeTracksTicketsForPropertyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTracksTicketsForProperty, error) // DeserializeTypePropertyJSONLD returns the deserialization method for // the "JSONLDTypeProperty" non-functional property in the vocabulary // "JSONLD" diff --git a/streams/impl/activitystreams/type_listen/gen_type_activitystreams_listen.go b/streams/impl/activitystreams/type_listen/gen_type_activitystreams_listen.go index 6decc5c..ed69b21 100644 --- a/streams/impl/activitystreams/type_listen/gen_type_activitystreams_listen.go +++ b/streams/impl/activitystreams/type_listen/gen_type_activitystreams_listen.go @@ -55,7 +55,10 @@ type ActivityStreamsListen struct { ActivityStreamsSummary vocab.ActivityStreamsSummaryProperty ActivityStreamsTag vocab.ActivityStreamsTagProperty ActivityStreamsTarget vocab.ActivityStreamsTargetProperty + ForgeFedTeam vocab.ForgeFedTeamProperty + ForgeFedTicketsTrackedBy vocab.ForgeFedTicketsTrackedByProperty ActivityStreamsTo vocab.ActivityStreamsToProperty + ForgeFedTracksTicketsFor vocab.ForgeFedTracksTicketsForProperty JSONLDType vocab.JSONLDTypeProperty ActivityStreamsUpdated vocab.ActivityStreamsUpdatedProperty ActivityStreamsUrl vocab.ActivityStreamsUrlProperty @@ -282,11 +285,26 @@ func DeserializeListen(m map[string]interface{}, aliasMap map[string]string) (*A } else if p != nil { this.ActivityStreamsTarget = p } + if p, err := mgr.DeserializeTeamPropertyForgeFed()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ForgeFedTeam = p + } + if p, err := mgr.DeserializeTicketsTrackedByPropertyForgeFed()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ForgeFedTicketsTrackedBy = p + } if p, err := mgr.DeserializeToPropertyActivityStreams()(m, aliasMap); err != nil { return nil, err } else if p != nil { this.ActivityStreamsTo = p } + if p, err := mgr.DeserializeTracksTicketsForPropertyForgeFed()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ForgeFedTracksTicketsFor = p + } if p, err := mgr.DeserializeTypePropertyJSONLD()(m, aliasMap); err != nil { return nil, err } else if p != nil { @@ -381,8 +399,14 @@ func DeserializeListen(m map[string]interface{}, aliasMap map[string]string) (*A continue } else if k == "target" { continue + } else if k == "team" { + continue + } else if k == "ticketsTrackedBy" { + continue } else if k == "to" { continue + } else if k == "tracksTicketsFor" { + continue } else if k == "type" { continue } else if k == "updated" { @@ -652,6 +676,23 @@ func (this ActivityStreamsListen) GetActivityStreamsUrl() vocab.ActivityStreamsU return this.ActivityStreamsUrl } +// GetForgeFedTeam returns the "team" property if it exists, and nil otherwise. +func (this ActivityStreamsListen) GetForgeFedTeam() vocab.ForgeFedTeamProperty { + return this.ForgeFedTeam +} + +// GetForgeFedTicketsTrackedBy returns the "ticketsTrackedBy" property if it +// exists, and nil otherwise. +func (this ActivityStreamsListen) GetForgeFedTicketsTrackedBy() vocab.ForgeFedTicketsTrackedByProperty { + return this.ForgeFedTicketsTrackedBy +} + +// GetForgeFedTracksTicketsFor returns the "tracksTicketsFor" property if it +// exists, and nil otherwise. +func (this ActivityStreamsListen) GetForgeFedTracksTicketsFor() vocab.ForgeFedTracksTicketsForProperty { + return this.ForgeFedTracksTicketsFor +} + // GetJSONLDId returns the "id" property if it exists, and nil otherwise. func (this ActivityStreamsListen) GetJSONLDId() vocab.JSONLDIdProperty { return this.JSONLDId @@ -721,7 +762,10 @@ func (this ActivityStreamsListen) JSONLDContext() map[string]string { m = this.helperJSONLDContext(this.ActivityStreamsSummary, m) m = this.helperJSONLDContext(this.ActivityStreamsTag, m) m = this.helperJSONLDContext(this.ActivityStreamsTarget, m) + m = this.helperJSONLDContext(this.ForgeFedTeam, m) + m = this.helperJSONLDContext(this.ForgeFedTicketsTrackedBy, m) m = this.helperJSONLDContext(this.ActivityStreamsTo, m) + m = this.helperJSONLDContext(this.ForgeFedTracksTicketsFor, m) m = this.helperJSONLDContext(this.JSONLDType, m) m = this.helperJSONLDContext(this.ActivityStreamsUpdated, m) m = this.helperJSONLDContext(this.ActivityStreamsUrl, m) @@ -1209,6 +1253,34 @@ func (this ActivityStreamsListen) LessThan(o vocab.ActivityStreamsListen) bool { // Anything else is greater than nil return false } // Else: Both are nil + // Compare property "team" + if lhs, rhs := this.ForgeFedTeam, o.GetForgeFedTeam(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "ticketsTrackedBy" + if lhs, rhs := this.ForgeFedTicketsTrackedBy, o.GetForgeFedTicketsTrackedBy(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil // Compare property "to" if lhs, rhs := this.ActivityStreamsTo, o.GetActivityStreamsTo(); lhs != nil && rhs != nil { if lhs.LessThan(rhs) { @@ -1223,6 +1295,20 @@ func (this ActivityStreamsListen) LessThan(o vocab.ActivityStreamsListen) bool { // Anything else is greater than nil return false } // Else: Both are nil + // Compare property "tracksTicketsFor" + if lhs, rhs := this.ForgeFedTracksTicketsFor, o.GetForgeFedTracksTicketsFor(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil // Compare property "type" if lhs, rhs := this.JSONLDType, o.GetJSONLDType(); lhs != nil && rhs != nil { if lhs.LessThan(rhs) { @@ -1560,6 +1646,22 @@ func (this ActivityStreamsListen) Serialize() (map[string]interface{}, error) { m[this.ActivityStreamsTarget.Name()] = i } } + // Maybe serialize property "team" + if this.ForgeFedTeam != nil { + if i, err := this.ForgeFedTeam.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ForgeFedTeam.Name()] = i + } + } + // Maybe serialize property "ticketsTrackedBy" + if this.ForgeFedTicketsTrackedBy != nil { + if i, err := this.ForgeFedTicketsTrackedBy.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ForgeFedTicketsTrackedBy.Name()] = i + } + } // Maybe serialize property "to" if this.ActivityStreamsTo != nil { if i, err := this.ActivityStreamsTo.Serialize(); err != nil { @@ -1568,6 +1670,14 @@ func (this ActivityStreamsListen) Serialize() (map[string]interface{}, error) { m[this.ActivityStreamsTo.Name()] = i } } + // Maybe serialize property "tracksTicketsFor" + if this.ForgeFedTracksTicketsFor != nil { + if i, err := this.ForgeFedTracksTicketsFor.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ForgeFedTracksTicketsFor.Name()] = i + } + } // Maybe serialize property "type" if this.JSONLDType != nil { if i, err := this.JSONLDType.Serialize(); err != nil { @@ -1786,6 +1896,21 @@ func (this *ActivityStreamsListen) SetActivityStreamsUrl(i vocab.ActivityStreams this.ActivityStreamsUrl = i } +// SetForgeFedTeam sets the "team" property. +func (this *ActivityStreamsListen) SetForgeFedTeam(i vocab.ForgeFedTeamProperty) { + this.ForgeFedTeam = i +} + +// SetForgeFedTicketsTrackedBy sets the "ticketsTrackedBy" property. +func (this *ActivityStreamsListen) SetForgeFedTicketsTrackedBy(i vocab.ForgeFedTicketsTrackedByProperty) { + this.ForgeFedTicketsTrackedBy = i +} + +// SetForgeFedTracksTicketsFor sets the "tracksTicketsFor" property. +func (this *ActivityStreamsListen) SetForgeFedTracksTicketsFor(i vocab.ForgeFedTracksTicketsForProperty) { + this.ForgeFedTracksTicketsFor = i +} + // SetJSONLDId sets the "id" property. func (this *ActivityStreamsListen) SetJSONLDId(i vocab.JSONLDIdProperty) { this.JSONLDId = i diff --git a/streams/impl/activitystreams/type_mention/gen_type_activitystreams_mention.go b/streams/impl/activitystreams/type_mention/gen_type_activitystreams_mention.go index 47218be..80ff63b 100644 --- a/streams/impl/activitystreams/type_mention/gen_type_activitystreams_mention.go +++ b/streams/impl/activitystreams/type_mention/gen_type_activitystreams_mention.go @@ -197,7 +197,7 @@ func IsOrExtendsMention(other vocab.Type) bool { // MentionIsDisjointWith returns true if the other provided type is disjoint with // the Mention type. func MentionIsDisjointWith(other vocab.Type) bool { - disjointWith := []string{"Accept", "Activity", "Add", "Announce", "Application", "Arrive", "Article", "Audio", "Block", "Collection", "CollectionPage", "Create", "Delete", "Dislike", "Document", "Emoji", "Event", "Flag", "Follow", "Group", "IdentityProof", "Ignore", "Image", "IntransitiveActivity", "Invite", "Join", "Leave", "Like", "Listen", "Move", "Note", "Object", "Offer", "OrderedCollection", "OrderedCollectionPage", "OrderedCollectionPage", "Organization", "Page", "Person", "Place", "Profile", "Question", "Read", "Reject", "Relationship", "Remove", "Service", "TentativeAccept", "TentativeReject", "Tombstone", "Travel", "Undo", "Update", "Video", "View"} + disjointWith := []string{"Accept", "Activity", "Add", "Announce", "Application", "Arrive", "Article", "Audio", "Block", "Branch", "Collection", "CollectionPage", "Commit", "Create", "Delete", "Dislike", "Document", "Emoji", "Event", "Flag", "Follow", "Group", "IdentityProof", "Ignore", "Image", "IntransitiveActivity", "Invite", "Join", "Leave", "Like", "Listen", "Move", "Note", "Object", "Offer", "OrderedCollection", "OrderedCollectionPage", "OrderedCollectionPage", "Organization", "Page", "Person", "Place", "Profile", "Push", "Question", "Read", "Reject", "Relationship", "Remove", "Repository", "Service", "TentativeAccept", "TentativeReject", "Ticket", "TicketDependency", "Tombstone", "Travel", "Undo", "Update", "Video", "View"} for _, disjoint := range disjointWith { if disjoint == other.GetTypeName() { return true diff --git a/streams/impl/activitystreams/type_move/gen_pkg.go b/streams/impl/activitystreams/type_move/gen_pkg.go index cfc112d..6873913 100644 --- a/streams/impl/activitystreams/type_move/gen_pkg.go +++ b/streams/impl/activitystreams/type_move/gen_pkg.go @@ -148,10 +148,22 @@ type privateManager interface { // method for the "ActivityStreamsTargetProperty" non-functional // property in the vocabulary "ActivityStreams" DeserializeTargetPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTargetProperty, error) + // DeserializeTeamPropertyForgeFed returns the deserialization method for + // the "ForgeFedTeamProperty" non-functional property in the + // vocabulary "ForgeFed" + DeserializeTeamPropertyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTeamProperty, error) + // DeserializeTicketsTrackedByPropertyForgeFed returns the deserialization + // method for the "ForgeFedTicketsTrackedByProperty" non-functional + // property in the vocabulary "ForgeFed" + DeserializeTicketsTrackedByPropertyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTicketsTrackedByProperty, error) // DeserializeToPropertyActivityStreams returns the deserialization method // for the "ActivityStreamsToProperty" non-functional property in the // vocabulary "ActivityStreams" DeserializeToPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsToProperty, error) + // DeserializeTracksTicketsForPropertyForgeFed returns the deserialization + // method for the "ForgeFedTracksTicketsForProperty" non-functional + // property in the vocabulary "ForgeFed" + DeserializeTracksTicketsForPropertyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTracksTicketsForProperty, error) // DeserializeTypePropertyJSONLD returns the deserialization method for // the "JSONLDTypeProperty" non-functional property in the vocabulary // "JSONLD" diff --git a/streams/impl/activitystreams/type_move/gen_type_activitystreams_move.go b/streams/impl/activitystreams/type_move/gen_type_activitystreams_move.go index 7cf782b..8072b87 100644 --- a/streams/impl/activitystreams/type_move/gen_type_activitystreams_move.go +++ b/streams/impl/activitystreams/type_move/gen_type_activitystreams_move.go @@ -64,7 +64,10 @@ type ActivityStreamsMove struct { ActivityStreamsSummary vocab.ActivityStreamsSummaryProperty ActivityStreamsTag vocab.ActivityStreamsTagProperty ActivityStreamsTarget vocab.ActivityStreamsTargetProperty + ForgeFedTeam vocab.ForgeFedTeamProperty + ForgeFedTicketsTrackedBy vocab.ForgeFedTicketsTrackedByProperty ActivityStreamsTo vocab.ActivityStreamsToProperty + ForgeFedTracksTicketsFor vocab.ForgeFedTracksTicketsForProperty JSONLDType vocab.JSONLDTypeProperty ActivityStreamsUpdated vocab.ActivityStreamsUpdatedProperty ActivityStreamsUrl vocab.ActivityStreamsUrlProperty @@ -291,11 +294,26 @@ func DeserializeMove(m map[string]interface{}, aliasMap map[string]string) (*Act } else if p != nil { this.ActivityStreamsTarget = p } + if p, err := mgr.DeserializeTeamPropertyForgeFed()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ForgeFedTeam = p + } + if p, err := mgr.DeserializeTicketsTrackedByPropertyForgeFed()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ForgeFedTicketsTrackedBy = p + } if p, err := mgr.DeserializeToPropertyActivityStreams()(m, aliasMap); err != nil { return nil, err } else if p != nil { this.ActivityStreamsTo = p } + if p, err := mgr.DeserializeTracksTicketsForPropertyForgeFed()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ForgeFedTracksTicketsFor = p + } if p, err := mgr.DeserializeTypePropertyJSONLD()(m, aliasMap); err != nil { return nil, err } else if p != nil { @@ -390,8 +408,14 @@ func DeserializeMove(m map[string]interface{}, aliasMap map[string]string) (*Act continue } else if k == "target" { continue + } else if k == "team" { + continue + } else if k == "ticketsTrackedBy" { + continue } else if k == "to" { continue + } else if k == "tracksTicketsFor" { + continue } else if k == "type" { continue } else if k == "updated" { @@ -661,6 +685,23 @@ func (this ActivityStreamsMove) GetActivityStreamsUrl() vocab.ActivityStreamsUrl return this.ActivityStreamsUrl } +// GetForgeFedTeam returns the "team" property if it exists, and nil otherwise. +func (this ActivityStreamsMove) GetForgeFedTeam() vocab.ForgeFedTeamProperty { + return this.ForgeFedTeam +} + +// GetForgeFedTicketsTrackedBy returns the "ticketsTrackedBy" property if it +// exists, and nil otherwise. +func (this ActivityStreamsMove) GetForgeFedTicketsTrackedBy() vocab.ForgeFedTicketsTrackedByProperty { + return this.ForgeFedTicketsTrackedBy +} + +// GetForgeFedTracksTicketsFor returns the "tracksTicketsFor" property if it +// exists, and nil otherwise. +func (this ActivityStreamsMove) GetForgeFedTracksTicketsFor() vocab.ForgeFedTracksTicketsForProperty { + return this.ForgeFedTracksTicketsFor +} + // GetJSONLDId returns the "id" property if it exists, and nil otherwise. func (this ActivityStreamsMove) GetJSONLDId() vocab.JSONLDIdProperty { return this.JSONLDId @@ -730,7 +771,10 @@ func (this ActivityStreamsMove) JSONLDContext() map[string]string { m = this.helperJSONLDContext(this.ActivityStreamsSummary, m) m = this.helperJSONLDContext(this.ActivityStreamsTag, m) m = this.helperJSONLDContext(this.ActivityStreamsTarget, m) + m = this.helperJSONLDContext(this.ForgeFedTeam, m) + m = this.helperJSONLDContext(this.ForgeFedTicketsTrackedBy, m) m = this.helperJSONLDContext(this.ActivityStreamsTo, m) + m = this.helperJSONLDContext(this.ForgeFedTracksTicketsFor, m) m = this.helperJSONLDContext(this.JSONLDType, m) m = this.helperJSONLDContext(this.ActivityStreamsUpdated, m) m = this.helperJSONLDContext(this.ActivityStreamsUrl, m) @@ -1218,6 +1262,34 @@ func (this ActivityStreamsMove) LessThan(o vocab.ActivityStreamsMove) bool { // Anything else is greater than nil return false } // Else: Both are nil + // Compare property "team" + if lhs, rhs := this.ForgeFedTeam, o.GetForgeFedTeam(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "ticketsTrackedBy" + if lhs, rhs := this.ForgeFedTicketsTrackedBy, o.GetForgeFedTicketsTrackedBy(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil // Compare property "to" if lhs, rhs := this.ActivityStreamsTo, o.GetActivityStreamsTo(); lhs != nil && rhs != nil { if lhs.LessThan(rhs) { @@ -1232,6 +1304,20 @@ func (this ActivityStreamsMove) LessThan(o vocab.ActivityStreamsMove) bool { // Anything else is greater than nil return false } // Else: Both are nil + // Compare property "tracksTicketsFor" + if lhs, rhs := this.ForgeFedTracksTicketsFor, o.GetForgeFedTracksTicketsFor(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil // Compare property "type" if lhs, rhs := this.JSONLDType, o.GetJSONLDType(); lhs != nil && rhs != nil { if lhs.LessThan(rhs) { @@ -1569,6 +1655,22 @@ func (this ActivityStreamsMove) Serialize() (map[string]interface{}, error) { m[this.ActivityStreamsTarget.Name()] = i } } + // Maybe serialize property "team" + if this.ForgeFedTeam != nil { + if i, err := this.ForgeFedTeam.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ForgeFedTeam.Name()] = i + } + } + // Maybe serialize property "ticketsTrackedBy" + if this.ForgeFedTicketsTrackedBy != nil { + if i, err := this.ForgeFedTicketsTrackedBy.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ForgeFedTicketsTrackedBy.Name()] = i + } + } // Maybe serialize property "to" if this.ActivityStreamsTo != nil { if i, err := this.ActivityStreamsTo.Serialize(); err != nil { @@ -1577,6 +1679,14 @@ func (this ActivityStreamsMove) Serialize() (map[string]interface{}, error) { m[this.ActivityStreamsTo.Name()] = i } } + // Maybe serialize property "tracksTicketsFor" + if this.ForgeFedTracksTicketsFor != nil { + if i, err := this.ForgeFedTracksTicketsFor.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ForgeFedTracksTicketsFor.Name()] = i + } + } // Maybe serialize property "type" if this.JSONLDType != nil { if i, err := this.JSONLDType.Serialize(); err != nil { @@ -1795,6 +1905,21 @@ func (this *ActivityStreamsMove) SetActivityStreamsUrl(i vocab.ActivityStreamsUr this.ActivityStreamsUrl = i } +// SetForgeFedTeam sets the "team" property. +func (this *ActivityStreamsMove) SetForgeFedTeam(i vocab.ForgeFedTeamProperty) { + this.ForgeFedTeam = i +} + +// SetForgeFedTicketsTrackedBy sets the "ticketsTrackedBy" property. +func (this *ActivityStreamsMove) SetForgeFedTicketsTrackedBy(i vocab.ForgeFedTicketsTrackedByProperty) { + this.ForgeFedTicketsTrackedBy = i +} + +// SetForgeFedTracksTicketsFor sets the "tracksTicketsFor" property. +func (this *ActivityStreamsMove) SetForgeFedTracksTicketsFor(i vocab.ForgeFedTracksTicketsForProperty) { + this.ForgeFedTracksTicketsFor = i +} + // SetJSONLDId sets the "id" property. func (this *ActivityStreamsMove) SetJSONLDId(i vocab.JSONLDIdProperty) { this.JSONLDId = i diff --git a/streams/impl/activitystreams/type_note/gen_pkg.go b/streams/impl/activitystreams/type_note/gen_pkg.go index f34bb58..3ccfdd6 100644 --- a/streams/impl/activitystreams/type_note/gen_pkg.go +++ b/streams/impl/activitystreams/type_note/gen_pkg.go @@ -128,10 +128,22 @@ type privateManager interface { // method for the "ActivityStreamsTagProperty" non-functional property // in the vocabulary "ActivityStreams" DeserializeTagPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTagProperty, error) + // DeserializeTeamPropertyForgeFed returns the deserialization method for + // the "ForgeFedTeamProperty" non-functional property in the + // vocabulary "ForgeFed" + DeserializeTeamPropertyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTeamProperty, error) + // DeserializeTicketsTrackedByPropertyForgeFed returns the deserialization + // method for the "ForgeFedTicketsTrackedByProperty" non-functional + // property in the vocabulary "ForgeFed" + DeserializeTicketsTrackedByPropertyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTicketsTrackedByProperty, error) // DeserializeToPropertyActivityStreams returns the deserialization method // for the "ActivityStreamsToProperty" non-functional property in the // vocabulary "ActivityStreams" DeserializeToPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsToProperty, error) + // DeserializeTracksTicketsForPropertyForgeFed returns the deserialization + // method for the "ForgeFedTracksTicketsForProperty" non-functional + // property in the vocabulary "ForgeFed" + DeserializeTracksTicketsForPropertyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTracksTicketsForProperty, error) // DeserializeTypePropertyJSONLD returns the deserialization method for // the "JSONLDTypeProperty" non-functional property in the vocabulary // "JSONLD" diff --git a/streams/impl/activitystreams/type_note/gen_type_activitystreams_note.go b/streams/impl/activitystreams/type_note/gen_type_activitystreams_note.go index 95e8780..075960d 100644 --- a/streams/impl/activitystreams/type_note/gen_type_activitystreams_note.go +++ b/streams/impl/activitystreams/type_note/gen_type_activitystreams_note.go @@ -47,7 +47,10 @@ type ActivityStreamsNote struct { ActivityStreamsStartTime vocab.ActivityStreamsStartTimeProperty ActivityStreamsSummary vocab.ActivityStreamsSummaryProperty ActivityStreamsTag vocab.ActivityStreamsTagProperty + ForgeFedTeam vocab.ForgeFedTeamProperty + ForgeFedTicketsTrackedBy vocab.ForgeFedTicketsTrackedByProperty ActivityStreamsTo vocab.ActivityStreamsToProperty + ForgeFedTracksTicketsFor vocab.ForgeFedTracksTicketsForProperty JSONLDType vocab.JSONLDTypeProperty ActivityStreamsUpdated vocab.ActivityStreamsUpdatedProperty ActivityStreamsUrl vocab.ActivityStreamsUrlProperty @@ -249,11 +252,26 @@ func DeserializeNote(m map[string]interface{}, aliasMap map[string]string) (*Act } else if p != nil { this.ActivityStreamsTag = p } + if p, err := mgr.DeserializeTeamPropertyForgeFed()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ForgeFedTeam = p + } + if p, err := mgr.DeserializeTicketsTrackedByPropertyForgeFed()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ForgeFedTicketsTrackedBy = p + } if p, err := mgr.DeserializeToPropertyActivityStreams()(m, aliasMap); err != nil { return nil, err } else if p != nil { this.ActivityStreamsTo = p } + if p, err := mgr.DeserializeTracksTicketsForPropertyForgeFed()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ForgeFedTracksTicketsFor = p + } if p, err := mgr.DeserializeTypePropertyJSONLD()(m, aliasMap); err != nil { return nil, err } else if p != nil { @@ -338,8 +356,14 @@ func DeserializeNote(m map[string]interface{}, aliasMap map[string]string) (*Act continue } else if k == "tag" { continue + } else if k == "team" { + continue + } else if k == "ticketsTrackedBy" { + continue } else if k == "to" { continue + } else if k == "tracksTicketsFor" { + continue } else if k == "type" { continue } else if k == "updated" { @@ -579,6 +603,23 @@ func (this ActivityStreamsNote) GetActivityStreamsUrl() vocab.ActivityStreamsUrl return this.ActivityStreamsUrl } +// GetForgeFedTeam returns the "team" property if it exists, and nil otherwise. +func (this ActivityStreamsNote) GetForgeFedTeam() vocab.ForgeFedTeamProperty { + return this.ForgeFedTeam +} + +// GetForgeFedTicketsTrackedBy returns the "ticketsTrackedBy" property if it +// exists, and nil otherwise. +func (this ActivityStreamsNote) GetForgeFedTicketsTrackedBy() vocab.ForgeFedTicketsTrackedByProperty { + return this.ForgeFedTicketsTrackedBy +} + +// GetForgeFedTracksTicketsFor returns the "tracksTicketsFor" property if it +// exists, and nil otherwise. +func (this ActivityStreamsNote) GetForgeFedTracksTicketsFor() vocab.ForgeFedTracksTicketsForProperty { + return this.ForgeFedTracksTicketsFor +} + // GetJSONLDId returns the "id" property if it exists, and nil otherwise. func (this ActivityStreamsNote) GetJSONLDId() vocab.JSONLDIdProperty { return this.JSONLDId @@ -643,7 +684,10 @@ func (this ActivityStreamsNote) JSONLDContext() map[string]string { m = this.helperJSONLDContext(this.ActivityStreamsStartTime, m) m = this.helperJSONLDContext(this.ActivityStreamsSummary, m) m = this.helperJSONLDContext(this.ActivityStreamsTag, m) + m = this.helperJSONLDContext(this.ForgeFedTeam, m) + m = this.helperJSONLDContext(this.ForgeFedTicketsTrackedBy, m) m = this.helperJSONLDContext(this.ActivityStreamsTo, m) + m = this.helperJSONLDContext(this.ForgeFedTracksTicketsFor, m) m = this.helperJSONLDContext(this.JSONLDType, m) m = this.helperJSONLDContext(this.ActivityStreamsUpdated, m) m = this.helperJSONLDContext(this.ActivityStreamsUrl, m) @@ -1061,6 +1105,34 @@ func (this ActivityStreamsNote) LessThan(o vocab.ActivityStreamsNote) bool { // Anything else is greater than nil return false } // Else: Both are nil + // Compare property "team" + if lhs, rhs := this.ForgeFedTeam, o.GetForgeFedTeam(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "ticketsTrackedBy" + if lhs, rhs := this.ForgeFedTicketsTrackedBy, o.GetForgeFedTicketsTrackedBy(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil // Compare property "to" if lhs, rhs := this.ActivityStreamsTo, o.GetActivityStreamsTo(); lhs != nil && rhs != nil { if lhs.LessThan(rhs) { @@ -1075,6 +1147,20 @@ func (this ActivityStreamsNote) LessThan(o vocab.ActivityStreamsNote) bool { // Anything else is greater than nil return false } // Else: Both are nil + // Compare property "tracksTicketsFor" + if lhs, rhs := this.ForgeFedTracksTicketsFor, o.GetForgeFedTracksTicketsFor(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil // Compare property "type" if lhs, rhs := this.JSONLDType, o.GetJSONLDType(); lhs != nil && rhs != nil { if lhs.LessThan(rhs) { @@ -1372,6 +1458,22 @@ func (this ActivityStreamsNote) Serialize() (map[string]interface{}, error) { m[this.ActivityStreamsTag.Name()] = i } } + // Maybe serialize property "team" + if this.ForgeFedTeam != nil { + if i, err := this.ForgeFedTeam.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ForgeFedTeam.Name()] = i + } + } + // Maybe serialize property "ticketsTrackedBy" + if this.ForgeFedTicketsTrackedBy != nil { + if i, err := this.ForgeFedTicketsTrackedBy.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ForgeFedTicketsTrackedBy.Name()] = i + } + } // Maybe serialize property "to" if this.ActivityStreamsTo != nil { if i, err := this.ActivityStreamsTo.Serialize(); err != nil { @@ -1380,6 +1482,14 @@ func (this ActivityStreamsNote) Serialize() (map[string]interface{}, error) { m[this.ActivityStreamsTo.Name()] = i } } + // Maybe serialize property "tracksTicketsFor" + if this.ForgeFedTracksTicketsFor != nil { + if i, err := this.ForgeFedTracksTicketsFor.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ForgeFedTracksTicketsFor.Name()] = i + } + } // Maybe serialize property "type" if this.JSONLDType != nil { if i, err := this.JSONLDType.Serialize(); err != nil { @@ -1573,6 +1683,21 @@ func (this *ActivityStreamsNote) SetActivityStreamsUrl(i vocab.ActivityStreamsUr this.ActivityStreamsUrl = i } +// SetForgeFedTeam sets the "team" property. +func (this *ActivityStreamsNote) SetForgeFedTeam(i vocab.ForgeFedTeamProperty) { + this.ForgeFedTeam = i +} + +// SetForgeFedTicketsTrackedBy sets the "ticketsTrackedBy" property. +func (this *ActivityStreamsNote) SetForgeFedTicketsTrackedBy(i vocab.ForgeFedTicketsTrackedByProperty) { + this.ForgeFedTicketsTrackedBy = i +} + +// SetForgeFedTracksTicketsFor sets the "tracksTicketsFor" property. +func (this *ActivityStreamsNote) SetForgeFedTracksTicketsFor(i vocab.ForgeFedTracksTicketsForProperty) { + this.ForgeFedTracksTicketsFor = i +} + // SetJSONLDId sets the "id" property. func (this *ActivityStreamsNote) SetJSONLDId(i vocab.JSONLDIdProperty) { this.JSONLDId = i diff --git a/streams/impl/activitystreams/type_object/gen_pkg.go b/streams/impl/activitystreams/type_object/gen_pkg.go index 95a1bb9..da2a6e4 100644 --- a/streams/impl/activitystreams/type_object/gen_pkg.go +++ b/streams/impl/activitystreams/type_object/gen_pkg.go @@ -128,10 +128,22 @@ type privateManager interface { // method for the "ActivityStreamsTagProperty" non-functional property // in the vocabulary "ActivityStreams" DeserializeTagPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTagProperty, error) + // DeserializeTeamPropertyForgeFed returns the deserialization method for + // the "ForgeFedTeamProperty" non-functional property in the + // vocabulary "ForgeFed" + DeserializeTeamPropertyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTeamProperty, error) + // DeserializeTicketsTrackedByPropertyForgeFed returns the deserialization + // method for the "ForgeFedTicketsTrackedByProperty" non-functional + // property in the vocabulary "ForgeFed" + DeserializeTicketsTrackedByPropertyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTicketsTrackedByProperty, error) // DeserializeToPropertyActivityStreams returns the deserialization method // for the "ActivityStreamsToProperty" non-functional property in the // vocabulary "ActivityStreams" DeserializeToPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsToProperty, error) + // DeserializeTracksTicketsForPropertyForgeFed returns the deserialization + // method for the "ForgeFedTracksTicketsForProperty" non-functional + // property in the vocabulary "ForgeFed" + DeserializeTracksTicketsForPropertyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTracksTicketsForProperty, error) // DeserializeTypePropertyJSONLD returns the deserialization method for // the "JSONLDTypeProperty" non-functional property in the vocabulary // "JSONLD" diff --git a/streams/impl/activitystreams/type_object/gen_type_activitystreams_object.go b/streams/impl/activitystreams/type_object/gen_type_activitystreams_object.go index effb0d5..ee08156 100644 --- a/streams/impl/activitystreams/type_object/gen_type_activitystreams_object.go +++ b/streams/impl/activitystreams/type_object/gen_type_activitystreams_object.go @@ -49,7 +49,10 @@ type ActivityStreamsObject struct { ActivityStreamsStartTime vocab.ActivityStreamsStartTimeProperty ActivityStreamsSummary vocab.ActivityStreamsSummaryProperty ActivityStreamsTag vocab.ActivityStreamsTagProperty + ForgeFedTeam vocab.ForgeFedTeamProperty + ForgeFedTicketsTrackedBy vocab.ForgeFedTicketsTrackedByProperty ActivityStreamsTo vocab.ActivityStreamsToProperty + ForgeFedTracksTicketsFor vocab.ForgeFedTracksTicketsForProperty JSONLDType vocab.JSONLDTypeProperty ActivityStreamsUpdated vocab.ActivityStreamsUpdatedProperty ActivityStreamsUrl vocab.ActivityStreamsUrlProperty @@ -246,11 +249,26 @@ func DeserializeObject(m map[string]interface{}, aliasMap map[string]string) (*A } else if p != nil { this.ActivityStreamsTag = p } + if p, err := mgr.DeserializeTeamPropertyForgeFed()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ForgeFedTeam = p + } + if p, err := mgr.DeserializeTicketsTrackedByPropertyForgeFed()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ForgeFedTicketsTrackedBy = p + } if p, err := mgr.DeserializeToPropertyActivityStreams()(m, aliasMap); err != nil { return nil, err } else if p != nil { this.ActivityStreamsTo = p } + if p, err := mgr.DeserializeTracksTicketsForPropertyForgeFed()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ForgeFedTracksTicketsFor = p + } if p, err := mgr.DeserializeTypePropertyJSONLD()(m, aliasMap); err != nil { return nil, err } else if p != nil { @@ -335,8 +353,14 @@ func DeserializeObject(m map[string]interface{}, aliasMap map[string]string) (*A continue } else if k == "tag" { continue + } else if k == "team" { + continue + } else if k == "ticketsTrackedBy" { + continue } else if k == "to" { continue + } else if k == "tracksTicketsFor" { + continue } else if k == "type" { continue } else if k == "updated" { @@ -388,7 +412,7 @@ func ObjectIsDisjointWith(other vocab.Type) bool { // Object type. Note that it returns false if the types are the same; see the // "IsOrExtendsObject" variant instead. func ObjectIsExtendedBy(other vocab.Type) bool { - extensions := []string{"Accept", "Activity", "Add", "Announce", "Application", "Arrive", "Article", "Audio", "Block", "Collection", "CollectionPage", "Create", "Delete", "Dislike", "Document", "Emoji", "Event", "Flag", "Follow", "Group", "IdentityProof", "Ignore", "Image", "IntransitiveActivity", "Invite", "Join", "Leave", "Like", "Listen", "Move", "Note", "Offer", "OrderedCollection", "OrderedCollectionPage", "OrderedCollectionPage", "Organization", "Page", "Person", "Place", "Profile", "Question", "Read", "Reject", "Relationship", "Remove", "Service", "TentativeAccept", "TentativeReject", "Tombstone", "Travel", "Undo", "Update", "Video", "View"} + extensions := []string{"Accept", "Activity", "Add", "Announce", "Application", "Arrive", "Article", "Audio", "Block", "Branch", "Collection", "CollectionPage", "Commit", "Create", "Delete", "Dislike", "Document", "Emoji", "Event", "Flag", "Follow", "Group", "IdentityProof", "Ignore", "Image", "IntransitiveActivity", "Invite", "Join", "Leave", "Like", "Listen", "Move", "Note", "Offer", "OrderedCollection", "OrderedCollectionPage", "OrderedCollectionPage", "Organization", "Page", "Person", "Place", "Profile", "Push", "Question", "Read", "Reject", "Relationship", "Remove", "Repository", "Service", "TentativeAccept", "TentativeReject", "Ticket", "TicketDependency", "Tombstone", "Travel", "Undo", "Update", "Video", "View"} for _, ext := range extensions { if ext == other.GetTypeName() { return true @@ -581,6 +605,23 @@ func (this ActivityStreamsObject) GetActivityStreamsUrl() vocab.ActivityStreamsU return this.ActivityStreamsUrl } +// GetForgeFedTeam returns the "team" property if it exists, and nil otherwise. +func (this ActivityStreamsObject) GetForgeFedTeam() vocab.ForgeFedTeamProperty { + return this.ForgeFedTeam +} + +// GetForgeFedTicketsTrackedBy returns the "ticketsTrackedBy" property if it +// exists, and nil otherwise. +func (this ActivityStreamsObject) GetForgeFedTicketsTrackedBy() vocab.ForgeFedTicketsTrackedByProperty { + return this.ForgeFedTicketsTrackedBy +} + +// GetForgeFedTracksTicketsFor returns the "tracksTicketsFor" property if it +// exists, and nil otherwise. +func (this ActivityStreamsObject) GetForgeFedTracksTicketsFor() vocab.ForgeFedTracksTicketsForProperty { + return this.ForgeFedTracksTicketsFor +} + // GetJSONLDId returns the "id" property if it exists, and nil otherwise. func (this ActivityStreamsObject) GetJSONLDId() vocab.JSONLDIdProperty { return this.JSONLDId @@ -645,7 +686,10 @@ func (this ActivityStreamsObject) JSONLDContext() map[string]string { m = this.helperJSONLDContext(this.ActivityStreamsStartTime, m) m = this.helperJSONLDContext(this.ActivityStreamsSummary, m) m = this.helperJSONLDContext(this.ActivityStreamsTag, m) + m = this.helperJSONLDContext(this.ForgeFedTeam, m) + m = this.helperJSONLDContext(this.ForgeFedTicketsTrackedBy, m) m = this.helperJSONLDContext(this.ActivityStreamsTo, m) + m = this.helperJSONLDContext(this.ForgeFedTracksTicketsFor, m) m = this.helperJSONLDContext(this.JSONLDType, m) m = this.helperJSONLDContext(this.ActivityStreamsUpdated, m) m = this.helperJSONLDContext(this.ActivityStreamsUrl, m) @@ -1063,6 +1107,34 @@ func (this ActivityStreamsObject) LessThan(o vocab.ActivityStreamsObject) bool { // Anything else is greater than nil return false } // Else: Both are nil + // Compare property "team" + if lhs, rhs := this.ForgeFedTeam, o.GetForgeFedTeam(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "ticketsTrackedBy" + if lhs, rhs := this.ForgeFedTicketsTrackedBy, o.GetForgeFedTicketsTrackedBy(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil // Compare property "to" if lhs, rhs := this.ActivityStreamsTo, o.GetActivityStreamsTo(); lhs != nil && rhs != nil { if lhs.LessThan(rhs) { @@ -1077,6 +1149,20 @@ func (this ActivityStreamsObject) LessThan(o vocab.ActivityStreamsObject) bool { // Anything else is greater than nil return false } // Else: Both are nil + // Compare property "tracksTicketsFor" + if lhs, rhs := this.ForgeFedTracksTicketsFor, o.GetForgeFedTracksTicketsFor(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil // Compare property "type" if lhs, rhs := this.JSONLDType, o.GetJSONLDType(); lhs != nil && rhs != nil { if lhs.LessThan(rhs) { @@ -1374,6 +1460,22 @@ func (this ActivityStreamsObject) Serialize() (map[string]interface{}, error) { m[this.ActivityStreamsTag.Name()] = i } } + // Maybe serialize property "team" + if this.ForgeFedTeam != nil { + if i, err := this.ForgeFedTeam.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ForgeFedTeam.Name()] = i + } + } + // Maybe serialize property "ticketsTrackedBy" + if this.ForgeFedTicketsTrackedBy != nil { + if i, err := this.ForgeFedTicketsTrackedBy.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ForgeFedTicketsTrackedBy.Name()] = i + } + } // Maybe serialize property "to" if this.ActivityStreamsTo != nil { if i, err := this.ActivityStreamsTo.Serialize(); err != nil { @@ -1382,6 +1484,14 @@ func (this ActivityStreamsObject) Serialize() (map[string]interface{}, error) { m[this.ActivityStreamsTo.Name()] = i } } + // Maybe serialize property "tracksTicketsFor" + if this.ForgeFedTracksTicketsFor != nil { + if i, err := this.ForgeFedTracksTicketsFor.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ForgeFedTracksTicketsFor.Name()] = i + } + } // Maybe serialize property "type" if this.JSONLDType != nil { if i, err := this.JSONLDType.Serialize(); err != nil { @@ -1575,6 +1685,21 @@ func (this *ActivityStreamsObject) SetActivityStreamsUrl(i vocab.ActivityStreams this.ActivityStreamsUrl = i } +// SetForgeFedTeam sets the "team" property. +func (this *ActivityStreamsObject) SetForgeFedTeam(i vocab.ForgeFedTeamProperty) { + this.ForgeFedTeam = i +} + +// SetForgeFedTicketsTrackedBy sets the "ticketsTrackedBy" property. +func (this *ActivityStreamsObject) SetForgeFedTicketsTrackedBy(i vocab.ForgeFedTicketsTrackedByProperty) { + this.ForgeFedTicketsTrackedBy = i +} + +// SetForgeFedTracksTicketsFor sets the "tracksTicketsFor" property. +func (this *ActivityStreamsObject) SetForgeFedTracksTicketsFor(i vocab.ForgeFedTracksTicketsForProperty) { + this.ForgeFedTracksTicketsFor = i +} + // SetJSONLDId sets the "id" property. func (this *ActivityStreamsObject) SetJSONLDId(i vocab.JSONLDIdProperty) { this.JSONLDId = i diff --git a/streams/impl/activitystreams/type_offer/gen_pkg.go b/streams/impl/activitystreams/type_offer/gen_pkg.go index 091ff70..79fda80 100644 --- a/streams/impl/activitystreams/type_offer/gen_pkg.go +++ b/streams/impl/activitystreams/type_offer/gen_pkg.go @@ -148,10 +148,22 @@ type privateManager interface { // method for the "ActivityStreamsTargetProperty" non-functional // property in the vocabulary "ActivityStreams" DeserializeTargetPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTargetProperty, error) + // DeserializeTeamPropertyForgeFed returns the deserialization method for + // the "ForgeFedTeamProperty" non-functional property in the + // vocabulary "ForgeFed" + DeserializeTeamPropertyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTeamProperty, error) + // DeserializeTicketsTrackedByPropertyForgeFed returns the deserialization + // method for the "ForgeFedTicketsTrackedByProperty" non-functional + // property in the vocabulary "ForgeFed" + DeserializeTicketsTrackedByPropertyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTicketsTrackedByProperty, error) // DeserializeToPropertyActivityStreams returns the deserialization method // for the "ActivityStreamsToProperty" non-functional property in the // vocabulary "ActivityStreams" DeserializeToPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsToProperty, error) + // DeserializeTracksTicketsForPropertyForgeFed returns the deserialization + // method for the "ForgeFedTracksTicketsForProperty" non-functional + // property in the vocabulary "ForgeFed" + DeserializeTracksTicketsForPropertyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTracksTicketsForProperty, error) // DeserializeTypePropertyJSONLD returns the deserialization method for // the "JSONLDTypeProperty" non-functional property in the vocabulary // "JSONLD" diff --git a/streams/impl/activitystreams/type_offer/gen_type_activitystreams_offer.go b/streams/impl/activitystreams/type_offer/gen_type_activitystreams_offer.go index 47d82c4..a04977b 100644 --- a/streams/impl/activitystreams/type_offer/gen_type_activitystreams_offer.go +++ b/streams/impl/activitystreams/type_offer/gen_type_activitystreams_offer.go @@ -63,7 +63,10 @@ type ActivityStreamsOffer struct { ActivityStreamsSummary vocab.ActivityStreamsSummaryProperty ActivityStreamsTag vocab.ActivityStreamsTagProperty ActivityStreamsTarget vocab.ActivityStreamsTargetProperty + ForgeFedTeam vocab.ForgeFedTeamProperty + ForgeFedTicketsTrackedBy vocab.ForgeFedTicketsTrackedByProperty ActivityStreamsTo vocab.ActivityStreamsToProperty + ForgeFedTracksTicketsFor vocab.ForgeFedTracksTicketsForProperty JSONLDType vocab.JSONLDTypeProperty ActivityStreamsUpdated vocab.ActivityStreamsUpdatedProperty ActivityStreamsUrl vocab.ActivityStreamsUrlProperty @@ -290,11 +293,26 @@ func DeserializeOffer(m map[string]interface{}, aliasMap map[string]string) (*Ac } else if p != nil { this.ActivityStreamsTarget = p } + if p, err := mgr.DeserializeTeamPropertyForgeFed()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ForgeFedTeam = p + } + if p, err := mgr.DeserializeTicketsTrackedByPropertyForgeFed()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ForgeFedTicketsTrackedBy = p + } if p, err := mgr.DeserializeToPropertyActivityStreams()(m, aliasMap); err != nil { return nil, err } else if p != nil { this.ActivityStreamsTo = p } + if p, err := mgr.DeserializeTracksTicketsForPropertyForgeFed()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ForgeFedTracksTicketsFor = p + } if p, err := mgr.DeserializeTypePropertyJSONLD()(m, aliasMap); err != nil { return nil, err } else if p != nil { @@ -389,8 +407,14 @@ func DeserializeOffer(m map[string]interface{}, aliasMap map[string]string) (*Ac continue } else if k == "target" { continue + } else if k == "team" { + continue + } else if k == "ticketsTrackedBy" { + continue } else if k == "to" { continue + } else if k == "tracksTicketsFor" { + continue } else if k == "type" { continue } else if k == "updated" { @@ -665,6 +689,23 @@ func (this ActivityStreamsOffer) GetActivityStreamsUrl() vocab.ActivityStreamsUr return this.ActivityStreamsUrl } +// GetForgeFedTeam returns the "team" property if it exists, and nil otherwise. +func (this ActivityStreamsOffer) GetForgeFedTeam() vocab.ForgeFedTeamProperty { + return this.ForgeFedTeam +} + +// GetForgeFedTicketsTrackedBy returns the "ticketsTrackedBy" property if it +// exists, and nil otherwise. +func (this ActivityStreamsOffer) GetForgeFedTicketsTrackedBy() vocab.ForgeFedTicketsTrackedByProperty { + return this.ForgeFedTicketsTrackedBy +} + +// GetForgeFedTracksTicketsFor returns the "tracksTicketsFor" property if it +// exists, and nil otherwise. +func (this ActivityStreamsOffer) GetForgeFedTracksTicketsFor() vocab.ForgeFedTracksTicketsForProperty { + return this.ForgeFedTracksTicketsFor +} + // GetJSONLDId returns the "id" property if it exists, and nil otherwise. func (this ActivityStreamsOffer) GetJSONLDId() vocab.JSONLDIdProperty { return this.JSONLDId @@ -734,7 +775,10 @@ func (this ActivityStreamsOffer) JSONLDContext() map[string]string { m = this.helperJSONLDContext(this.ActivityStreamsSummary, m) m = this.helperJSONLDContext(this.ActivityStreamsTag, m) m = this.helperJSONLDContext(this.ActivityStreamsTarget, m) + m = this.helperJSONLDContext(this.ForgeFedTeam, m) + m = this.helperJSONLDContext(this.ForgeFedTicketsTrackedBy, m) m = this.helperJSONLDContext(this.ActivityStreamsTo, m) + m = this.helperJSONLDContext(this.ForgeFedTracksTicketsFor, m) m = this.helperJSONLDContext(this.JSONLDType, m) m = this.helperJSONLDContext(this.ActivityStreamsUpdated, m) m = this.helperJSONLDContext(this.ActivityStreamsUrl, m) @@ -1222,6 +1266,34 @@ func (this ActivityStreamsOffer) LessThan(o vocab.ActivityStreamsOffer) bool { // Anything else is greater than nil return false } // Else: Both are nil + // Compare property "team" + if lhs, rhs := this.ForgeFedTeam, o.GetForgeFedTeam(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "ticketsTrackedBy" + if lhs, rhs := this.ForgeFedTicketsTrackedBy, o.GetForgeFedTicketsTrackedBy(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil // Compare property "to" if lhs, rhs := this.ActivityStreamsTo, o.GetActivityStreamsTo(); lhs != nil && rhs != nil { if lhs.LessThan(rhs) { @@ -1236,6 +1308,20 @@ func (this ActivityStreamsOffer) LessThan(o vocab.ActivityStreamsOffer) bool { // Anything else is greater than nil return false } // Else: Both are nil + // Compare property "tracksTicketsFor" + if lhs, rhs := this.ForgeFedTracksTicketsFor, o.GetForgeFedTracksTicketsFor(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil // Compare property "type" if lhs, rhs := this.JSONLDType, o.GetJSONLDType(); lhs != nil && rhs != nil { if lhs.LessThan(rhs) { @@ -1573,6 +1659,22 @@ func (this ActivityStreamsOffer) Serialize() (map[string]interface{}, error) { m[this.ActivityStreamsTarget.Name()] = i } } + // Maybe serialize property "team" + if this.ForgeFedTeam != nil { + if i, err := this.ForgeFedTeam.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ForgeFedTeam.Name()] = i + } + } + // Maybe serialize property "ticketsTrackedBy" + if this.ForgeFedTicketsTrackedBy != nil { + if i, err := this.ForgeFedTicketsTrackedBy.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ForgeFedTicketsTrackedBy.Name()] = i + } + } // Maybe serialize property "to" if this.ActivityStreamsTo != nil { if i, err := this.ActivityStreamsTo.Serialize(); err != nil { @@ -1581,6 +1683,14 @@ func (this ActivityStreamsOffer) Serialize() (map[string]interface{}, error) { m[this.ActivityStreamsTo.Name()] = i } } + // Maybe serialize property "tracksTicketsFor" + if this.ForgeFedTracksTicketsFor != nil { + if i, err := this.ForgeFedTracksTicketsFor.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ForgeFedTracksTicketsFor.Name()] = i + } + } // Maybe serialize property "type" if this.JSONLDType != nil { if i, err := this.JSONLDType.Serialize(); err != nil { @@ -1799,6 +1909,21 @@ func (this *ActivityStreamsOffer) SetActivityStreamsUrl(i vocab.ActivityStreamsU this.ActivityStreamsUrl = i } +// SetForgeFedTeam sets the "team" property. +func (this *ActivityStreamsOffer) SetForgeFedTeam(i vocab.ForgeFedTeamProperty) { + this.ForgeFedTeam = i +} + +// SetForgeFedTicketsTrackedBy sets the "ticketsTrackedBy" property. +func (this *ActivityStreamsOffer) SetForgeFedTicketsTrackedBy(i vocab.ForgeFedTicketsTrackedByProperty) { + this.ForgeFedTicketsTrackedBy = i +} + +// SetForgeFedTracksTicketsFor sets the "tracksTicketsFor" property. +func (this *ActivityStreamsOffer) SetForgeFedTracksTicketsFor(i vocab.ForgeFedTracksTicketsForProperty) { + this.ForgeFedTracksTicketsFor = i +} + // SetJSONLDId sets the "id" property. func (this *ActivityStreamsOffer) SetJSONLDId(i vocab.JSONLDIdProperty) { this.JSONLDId = i diff --git a/streams/impl/activitystreams/type_orderedcollection/gen_pkg.go b/streams/impl/activitystreams/type_orderedcollection/gen_pkg.go index 9e4914b..3c51afc 100644 --- a/streams/impl/activitystreams/type_orderedcollection/gen_pkg.go +++ b/streams/impl/activitystreams/type_orderedcollection/gen_pkg.go @@ -56,6 +56,10 @@ type privateManager interface { // method for the "ActivityStreamsDurationProperty" non-functional // property in the vocabulary "ActivityStreams" DeserializeDurationPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsDurationProperty, error) + // DeserializeEarlyItemsPropertyForgeFed returns the deserialization + // method for the "ForgeFedEarlyItemsProperty" non-functional property + // in the vocabulary "ForgeFed" + DeserializeEarlyItemsPropertyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedEarlyItemsProperty, error) // DeserializeEndTimePropertyActivityStreams returns the deserialization // method for the "ActivityStreamsEndTimeProperty" non-functional // property in the vocabulary "ActivityStreams" @@ -145,6 +149,14 @@ type privateManager interface { // method for the "ActivityStreamsTagProperty" non-functional property // in the vocabulary "ActivityStreams" DeserializeTagPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTagProperty, error) + // DeserializeTeamPropertyForgeFed returns the deserialization method for + // the "ForgeFedTeamProperty" non-functional property in the + // vocabulary "ForgeFed" + DeserializeTeamPropertyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTeamProperty, error) + // DeserializeTicketsTrackedByPropertyForgeFed returns the deserialization + // method for the "ForgeFedTicketsTrackedByProperty" non-functional + // property in the vocabulary "ForgeFed" + DeserializeTicketsTrackedByPropertyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTicketsTrackedByProperty, error) // DeserializeToPropertyActivityStreams returns the deserialization method // for the "ActivityStreamsToProperty" non-functional property in the // vocabulary "ActivityStreams" @@ -153,6 +165,10 @@ type privateManager interface { // deserialization method for the "ActivityStreamsTotalItemsProperty" // non-functional property in the vocabulary "ActivityStreams" DeserializeTotalItemsPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTotalItemsProperty, error) + // DeserializeTracksTicketsForPropertyForgeFed returns the deserialization + // method for the "ForgeFedTracksTicketsForProperty" non-functional + // property in the vocabulary "ForgeFed" + DeserializeTracksTicketsForPropertyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTracksTicketsForProperty, error) // DeserializeTypePropertyJSONLD returns the deserialization method for // the "JSONLDTypeProperty" non-functional property in the vocabulary // "JSONLD" diff --git a/streams/impl/activitystreams/type_orderedcollection/gen_type_activitystreams_orderedcollection.go b/streams/impl/activitystreams/type_orderedcollection/gen_type_activitystreams_orderedcollection.go index 4e86eb8..ecc738e 100644 --- a/streams/impl/activitystreams/type_orderedcollection/gen_type_activitystreams_orderedcollection.go +++ b/streams/impl/activitystreams/type_orderedcollection/gen_type_activitystreams_orderedcollection.go @@ -39,6 +39,7 @@ type ActivityStreamsOrderedCollection struct { ActivityStreamsContext vocab.ActivityStreamsContextProperty ActivityStreamsCurrent vocab.ActivityStreamsCurrentProperty ActivityStreamsDuration vocab.ActivityStreamsDurationProperty + ForgeFedEarlyItems vocab.ForgeFedEarlyItemsProperty ActivityStreamsEndTime vocab.ActivityStreamsEndTimeProperty ActivityStreamsFirst vocab.ActivityStreamsFirstProperty ActivityStreamsGenerator vocab.ActivityStreamsGeneratorProperty @@ -61,8 +62,11 @@ type ActivityStreamsOrderedCollection struct { ActivityStreamsStartTime vocab.ActivityStreamsStartTimeProperty ActivityStreamsSummary vocab.ActivityStreamsSummaryProperty ActivityStreamsTag vocab.ActivityStreamsTagProperty + ForgeFedTeam vocab.ForgeFedTeamProperty + ForgeFedTicketsTrackedBy vocab.ForgeFedTicketsTrackedByProperty ActivityStreamsTo vocab.ActivityStreamsToProperty ActivityStreamsTotalItems vocab.ActivityStreamsTotalItemsProperty + ForgeFedTracksTicketsFor vocab.ForgeFedTracksTicketsForProperty JSONLDType vocab.JSONLDTypeProperty ActivityStreamsUpdated vocab.ActivityStreamsUpdatedProperty ActivityStreamsUrl vocab.ActivityStreamsUrlProperty @@ -174,6 +178,11 @@ func DeserializeOrderedCollection(m map[string]interface{}, aliasMap map[string] } else if p != nil { this.ActivityStreamsDuration = p } + if p, err := mgr.DeserializeEarlyItemsPropertyForgeFed()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ForgeFedEarlyItems = p + } if p, err := mgr.DeserializeEndTimePropertyActivityStreams()(m, aliasMap); err != nil { return nil, err } else if p != nil { @@ -284,6 +293,16 @@ func DeserializeOrderedCollection(m map[string]interface{}, aliasMap map[string] } else if p != nil { this.ActivityStreamsTag = p } + if p, err := mgr.DeserializeTeamPropertyForgeFed()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ForgeFedTeam = p + } + if p, err := mgr.DeserializeTicketsTrackedByPropertyForgeFed()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ForgeFedTicketsTrackedBy = p + } if p, err := mgr.DeserializeToPropertyActivityStreams()(m, aliasMap); err != nil { return nil, err } else if p != nil { @@ -294,6 +313,11 @@ func DeserializeOrderedCollection(m map[string]interface{}, aliasMap map[string] } else if p != nil { this.ActivityStreamsTotalItems = p } + if p, err := mgr.DeserializeTracksTicketsForPropertyForgeFed()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ForgeFedTracksTicketsFor = p + } if p, err := mgr.DeserializeTypePropertyJSONLD()(m, aliasMap); err != nil { return nil, err } else if p != nil { @@ -338,6 +362,8 @@ func DeserializeOrderedCollection(m map[string]interface{}, aliasMap map[string] continue } else if k == "duration" { continue + } else if k == "earlyItems" { + continue } else if k == "endTime" { continue } else if k == "first" { @@ -386,10 +412,16 @@ func DeserializeOrderedCollection(m map[string]interface{}, aliasMap map[string] continue } else if k == "tag" { continue + } else if k == "team" { + continue + } else if k == "ticketsTrackedBy" { + continue } else if k == "to" { continue } else if k == "totalItems" { continue + } else if k == "tracksTicketsFor" { + continue } else if k == "type" { continue } else if k == "updated" { @@ -664,6 +696,29 @@ func (this ActivityStreamsOrderedCollection) GetActivityStreamsUrl() vocab.Activ return this.ActivityStreamsUrl } +// GetForgeFedEarlyItems returns the "earlyItems" property if it exists, and nil +// otherwise. +func (this ActivityStreamsOrderedCollection) GetForgeFedEarlyItems() vocab.ForgeFedEarlyItemsProperty { + return this.ForgeFedEarlyItems +} + +// GetForgeFedTeam returns the "team" property if it exists, and nil otherwise. +func (this ActivityStreamsOrderedCollection) GetForgeFedTeam() vocab.ForgeFedTeamProperty { + return this.ForgeFedTeam +} + +// GetForgeFedTicketsTrackedBy returns the "ticketsTrackedBy" property if it +// exists, and nil otherwise. +func (this ActivityStreamsOrderedCollection) GetForgeFedTicketsTrackedBy() vocab.ForgeFedTicketsTrackedByProperty { + return this.ForgeFedTicketsTrackedBy +} + +// GetForgeFedTracksTicketsFor returns the "tracksTicketsFor" property if it +// exists, and nil otherwise. +func (this ActivityStreamsOrderedCollection) GetForgeFedTracksTicketsFor() vocab.ForgeFedTracksTicketsForProperty { + return this.ForgeFedTracksTicketsFor +} + // GetJSONLDId returns the "id" property if it exists, and nil otherwise. func (this ActivityStreamsOrderedCollection) GetJSONLDId() vocab.JSONLDIdProperty { return this.JSONLDId @@ -711,6 +766,7 @@ func (this ActivityStreamsOrderedCollection) JSONLDContext() map[string]string { m = this.helperJSONLDContext(this.ActivityStreamsContext, m) m = this.helperJSONLDContext(this.ActivityStreamsCurrent, m) m = this.helperJSONLDContext(this.ActivityStreamsDuration, m) + m = this.helperJSONLDContext(this.ForgeFedEarlyItems, m) m = this.helperJSONLDContext(this.ActivityStreamsEndTime, m) m = this.helperJSONLDContext(this.ActivityStreamsFirst, m) m = this.helperJSONLDContext(this.ActivityStreamsGenerator, m) @@ -733,8 +789,11 @@ func (this ActivityStreamsOrderedCollection) JSONLDContext() map[string]string { m = this.helperJSONLDContext(this.ActivityStreamsStartTime, m) m = this.helperJSONLDContext(this.ActivityStreamsSummary, m) m = this.helperJSONLDContext(this.ActivityStreamsTag, m) + m = this.helperJSONLDContext(this.ForgeFedTeam, m) + m = this.helperJSONLDContext(this.ForgeFedTicketsTrackedBy, m) m = this.helperJSONLDContext(this.ActivityStreamsTo, m) m = this.helperJSONLDContext(this.ActivityStreamsTotalItems, m) + m = this.helperJSONLDContext(this.ForgeFedTracksTicketsFor, m) m = this.helperJSONLDContext(this.JSONLDType, m) m = this.helperJSONLDContext(this.ActivityStreamsUpdated, m) m = this.helperJSONLDContext(this.ActivityStreamsUrl, m) @@ -900,6 +959,20 @@ func (this ActivityStreamsOrderedCollection) LessThan(o vocab.ActivityStreamsOrd // Anything else is greater than nil return false } // Else: Both are nil + // Compare property "earlyItems" + if lhs, rhs := this.ForgeFedEarlyItems, o.GetForgeFedEarlyItems(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil // Compare property "endTime" if lhs, rhs := this.ActivityStreamsEndTime, o.GetActivityStreamsEndTime(); lhs != nil && rhs != nil { if lhs.LessThan(rhs) { @@ -1208,6 +1281,34 @@ func (this ActivityStreamsOrderedCollection) LessThan(o vocab.ActivityStreamsOrd // Anything else is greater than nil return false } // Else: Both are nil + // Compare property "team" + if lhs, rhs := this.ForgeFedTeam, o.GetForgeFedTeam(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "ticketsTrackedBy" + if lhs, rhs := this.ForgeFedTicketsTrackedBy, o.GetForgeFedTicketsTrackedBy(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil // Compare property "to" if lhs, rhs := this.ActivityStreamsTo, o.GetActivityStreamsTo(); lhs != nil && rhs != nil { if lhs.LessThan(rhs) { @@ -1236,6 +1337,20 @@ func (this ActivityStreamsOrderedCollection) LessThan(o vocab.ActivityStreamsOrd // Anything else is greater than nil return false } // Else: Both are nil + // Compare property "tracksTicketsFor" + if lhs, rhs := this.ForgeFedTracksTicketsFor, o.GetForgeFedTracksTicketsFor(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil // Compare property "type" if lhs, rhs := this.JSONLDType, o.GetJSONLDType(); lhs != nil && rhs != nil { if lhs.LessThan(rhs) { @@ -1389,6 +1504,14 @@ func (this ActivityStreamsOrderedCollection) Serialize() (map[string]interface{} m[this.ActivityStreamsDuration.Name()] = i } } + // Maybe serialize property "earlyItems" + if this.ForgeFedEarlyItems != nil { + if i, err := this.ForgeFedEarlyItems.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ForgeFedEarlyItems.Name()] = i + } + } // Maybe serialize property "endTime" if this.ActivityStreamsEndTime != nil { if i, err := this.ActivityStreamsEndTime.Serialize(); err != nil { @@ -1565,6 +1688,22 @@ func (this ActivityStreamsOrderedCollection) Serialize() (map[string]interface{} m[this.ActivityStreamsTag.Name()] = i } } + // Maybe serialize property "team" + if this.ForgeFedTeam != nil { + if i, err := this.ForgeFedTeam.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ForgeFedTeam.Name()] = i + } + } + // Maybe serialize property "ticketsTrackedBy" + if this.ForgeFedTicketsTrackedBy != nil { + if i, err := this.ForgeFedTicketsTrackedBy.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ForgeFedTicketsTrackedBy.Name()] = i + } + } // Maybe serialize property "to" if this.ActivityStreamsTo != nil { if i, err := this.ActivityStreamsTo.Serialize(); err != nil { @@ -1581,6 +1720,14 @@ func (this ActivityStreamsOrderedCollection) Serialize() (map[string]interface{} m[this.ActivityStreamsTotalItems.Name()] = i } } + // Maybe serialize property "tracksTicketsFor" + if this.ForgeFedTracksTicketsFor != nil { + if i, err := this.ForgeFedTracksTicketsFor.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ForgeFedTracksTicketsFor.Name()] = i + } + } // Maybe serialize property "type" if this.JSONLDType != nil { if i, err := this.JSONLDType.Serialize(); err != nil { @@ -1799,6 +1946,26 @@ func (this *ActivityStreamsOrderedCollection) SetActivityStreamsUrl(i vocab.Acti this.ActivityStreamsUrl = i } +// SetForgeFedEarlyItems sets the "earlyItems" property. +func (this *ActivityStreamsOrderedCollection) SetForgeFedEarlyItems(i vocab.ForgeFedEarlyItemsProperty) { + this.ForgeFedEarlyItems = i +} + +// SetForgeFedTeam sets the "team" property. +func (this *ActivityStreamsOrderedCollection) SetForgeFedTeam(i vocab.ForgeFedTeamProperty) { + this.ForgeFedTeam = i +} + +// SetForgeFedTicketsTrackedBy sets the "ticketsTrackedBy" property. +func (this *ActivityStreamsOrderedCollection) SetForgeFedTicketsTrackedBy(i vocab.ForgeFedTicketsTrackedByProperty) { + this.ForgeFedTicketsTrackedBy = i +} + +// SetForgeFedTracksTicketsFor sets the "tracksTicketsFor" property. +func (this *ActivityStreamsOrderedCollection) SetForgeFedTracksTicketsFor(i vocab.ForgeFedTracksTicketsForProperty) { + this.ForgeFedTracksTicketsFor = i +} + // SetJSONLDId sets the "id" property. func (this *ActivityStreamsOrderedCollection) SetJSONLDId(i vocab.JSONLDIdProperty) { this.JSONLDId = i diff --git a/streams/impl/activitystreams/type_orderedcollectionpage/gen_pkg.go b/streams/impl/activitystreams/type_orderedcollectionpage/gen_pkg.go index b9f9892..1ad7d83 100644 --- a/streams/impl/activitystreams/type_orderedcollectionpage/gen_pkg.go +++ b/streams/impl/activitystreams/type_orderedcollectionpage/gen_pkg.go @@ -56,6 +56,10 @@ type privateManager interface { // method for the "ActivityStreamsDurationProperty" non-functional // property in the vocabulary "ActivityStreams" DeserializeDurationPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsDurationProperty, error) + // DeserializeEarlyItemsPropertyForgeFed returns the deserialization + // method for the "ForgeFedEarlyItemsProperty" non-functional property + // in the vocabulary "ForgeFed" + DeserializeEarlyItemsPropertyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedEarlyItemsProperty, error) // DeserializeEndTimePropertyActivityStreams returns the deserialization // method for the "ActivityStreamsEndTimeProperty" non-functional // property in the vocabulary "ActivityStreams" @@ -161,6 +165,14 @@ type privateManager interface { // method for the "ActivityStreamsTagProperty" non-functional property // in the vocabulary "ActivityStreams" DeserializeTagPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTagProperty, error) + // DeserializeTeamPropertyForgeFed returns the deserialization method for + // the "ForgeFedTeamProperty" non-functional property in the + // vocabulary "ForgeFed" + DeserializeTeamPropertyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTeamProperty, error) + // DeserializeTicketsTrackedByPropertyForgeFed returns the deserialization + // method for the "ForgeFedTicketsTrackedByProperty" non-functional + // property in the vocabulary "ForgeFed" + DeserializeTicketsTrackedByPropertyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTicketsTrackedByProperty, error) // DeserializeToPropertyActivityStreams returns the deserialization method // for the "ActivityStreamsToProperty" non-functional property in the // vocabulary "ActivityStreams" @@ -169,6 +181,10 @@ type privateManager interface { // deserialization method for the "ActivityStreamsTotalItemsProperty" // non-functional property in the vocabulary "ActivityStreams" DeserializeTotalItemsPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTotalItemsProperty, error) + // DeserializeTracksTicketsForPropertyForgeFed returns the deserialization + // method for the "ForgeFedTracksTicketsForProperty" non-functional + // property in the vocabulary "ForgeFed" + DeserializeTracksTicketsForPropertyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTracksTicketsForProperty, error) // DeserializeTypePropertyJSONLD returns the deserialization method for // the "JSONLDTypeProperty" non-functional property in the vocabulary // "JSONLD" diff --git a/streams/impl/activitystreams/type_orderedcollectionpage/gen_type_activitystreams_orderedcollectionpage.go b/streams/impl/activitystreams/type_orderedcollectionpage/gen_type_activitystreams_orderedcollectionpage.go index d1a8f43..97c589c 100644 --- a/streams/impl/activitystreams/type_orderedcollectionpage/gen_type_activitystreams_orderedcollectionpage.go +++ b/streams/impl/activitystreams/type_orderedcollectionpage/gen_type_activitystreams_orderedcollectionpage.go @@ -41,6 +41,7 @@ type ActivityStreamsOrderedCollectionPage struct { ActivityStreamsContext vocab.ActivityStreamsContextProperty ActivityStreamsCurrent vocab.ActivityStreamsCurrentProperty ActivityStreamsDuration vocab.ActivityStreamsDurationProperty + ForgeFedEarlyItems vocab.ForgeFedEarlyItemsProperty ActivityStreamsEndTime vocab.ActivityStreamsEndTimeProperty ActivityStreamsFirst vocab.ActivityStreamsFirstProperty ActivityStreamsGenerator vocab.ActivityStreamsGeneratorProperty @@ -67,8 +68,11 @@ type ActivityStreamsOrderedCollectionPage struct { ActivityStreamsStartTime vocab.ActivityStreamsStartTimeProperty ActivityStreamsSummary vocab.ActivityStreamsSummaryProperty ActivityStreamsTag vocab.ActivityStreamsTagProperty + ForgeFedTeam vocab.ForgeFedTeamProperty + ForgeFedTicketsTrackedBy vocab.ForgeFedTicketsTrackedByProperty ActivityStreamsTo vocab.ActivityStreamsToProperty ActivityStreamsTotalItems vocab.ActivityStreamsTotalItemsProperty + ForgeFedTracksTicketsFor vocab.ForgeFedTracksTicketsForProperty JSONLDType vocab.JSONLDTypeProperty ActivityStreamsUpdated vocab.ActivityStreamsUpdatedProperty ActivityStreamsUrl vocab.ActivityStreamsUrlProperty @@ -180,6 +184,11 @@ func DeserializeOrderedCollectionPage(m map[string]interface{}, aliasMap map[str } else if p != nil { this.ActivityStreamsDuration = p } + if p, err := mgr.DeserializeEarlyItemsPropertyForgeFed()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ForgeFedEarlyItems = p + } if p, err := mgr.DeserializeEndTimePropertyActivityStreams()(m, aliasMap); err != nil { return nil, err } else if p != nil { @@ -310,6 +319,16 @@ func DeserializeOrderedCollectionPage(m map[string]interface{}, aliasMap map[str } else if p != nil { this.ActivityStreamsTag = p } + if p, err := mgr.DeserializeTeamPropertyForgeFed()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ForgeFedTeam = p + } + if p, err := mgr.DeserializeTicketsTrackedByPropertyForgeFed()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ForgeFedTicketsTrackedBy = p + } if p, err := mgr.DeserializeToPropertyActivityStreams()(m, aliasMap); err != nil { return nil, err } else if p != nil { @@ -320,6 +339,11 @@ func DeserializeOrderedCollectionPage(m map[string]interface{}, aliasMap map[str } else if p != nil { this.ActivityStreamsTotalItems = p } + if p, err := mgr.DeserializeTracksTicketsForPropertyForgeFed()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ForgeFedTracksTicketsFor = p + } if p, err := mgr.DeserializeTypePropertyJSONLD()(m, aliasMap); err != nil { return nil, err } else if p != nil { @@ -364,6 +388,8 @@ func DeserializeOrderedCollectionPage(m map[string]interface{}, aliasMap map[str continue } else if k == "duration" { continue + } else if k == "earlyItems" { + continue } else if k == "endTime" { continue } else if k == "first" { @@ -420,10 +446,16 @@ func DeserializeOrderedCollectionPage(m map[string]interface{}, aliasMap map[str continue } else if k == "tag" { continue + } else if k == "team" { + continue + } else if k == "ticketsTrackedBy" { + continue } else if k == "to" { continue } else if k == "totalItems" { continue + } else if k == "tracksTicketsFor" { + continue } else if k == "type" { continue } else if k == "updated" { @@ -718,6 +750,29 @@ func (this ActivityStreamsOrderedCollectionPage) GetActivityStreamsUrl() vocab.A return this.ActivityStreamsUrl } +// GetForgeFedEarlyItems returns the "earlyItems" property if it exists, and nil +// otherwise. +func (this ActivityStreamsOrderedCollectionPage) GetForgeFedEarlyItems() vocab.ForgeFedEarlyItemsProperty { + return this.ForgeFedEarlyItems +} + +// GetForgeFedTeam returns the "team" property if it exists, and nil otherwise. +func (this ActivityStreamsOrderedCollectionPage) GetForgeFedTeam() vocab.ForgeFedTeamProperty { + return this.ForgeFedTeam +} + +// GetForgeFedTicketsTrackedBy returns the "ticketsTrackedBy" property if it +// exists, and nil otherwise. +func (this ActivityStreamsOrderedCollectionPage) GetForgeFedTicketsTrackedBy() vocab.ForgeFedTicketsTrackedByProperty { + return this.ForgeFedTicketsTrackedBy +} + +// GetForgeFedTracksTicketsFor returns the "tracksTicketsFor" property if it +// exists, and nil otherwise. +func (this ActivityStreamsOrderedCollectionPage) GetForgeFedTracksTicketsFor() vocab.ForgeFedTracksTicketsForProperty { + return this.ForgeFedTracksTicketsFor +} + // GetJSONLDId returns the "id" property if it exists, and nil otherwise. func (this ActivityStreamsOrderedCollectionPage) GetJSONLDId() vocab.JSONLDIdProperty { return this.JSONLDId @@ -766,6 +821,7 @@ func (this ActivityStreamsOrderedCollectionPage) JSONLDContext() map[string]stri m = this.helperJSONLDContext(this.ActivityStreamsContext, m) m = this.helperJSONLDContext(this.ActivityStreamsCurrent, m) m = this.helperJSONLDContext(this.ActivityStreamsDuration, m) + m = this.helperJSONLDContext(this.ForgeFedEarlyItems, m) m = this.helperJSONLDContext(this.ActivityStreamsEndTime, m) m = this.helperJSONLDContext(this.ActivityStreamsFirst, m) m = this.helperJSONLDContext(this.ActivityStreamsGenerator, m) @@ -792,8 +848,11 @@ func (this ActivityStreamsOrderedCollectionPage) JSONLDContext() map[string]stri m = this.helperJSONLDContext(this.ActivityStreamsStartTime, m) m = this.helperJSONLDContext(this.ActivityStreamsSummary, m) m = this.helperJSONLDContext(this.ActivityStreamsTag, m) + m = this.helperJSONLDContext(this.ForgeFedTeam, m) + m = this.helperJSONLDContext(this.ForgeFedTicketsTrackedBy, m) m = this.helperJSONLDContext(this.ActivityStreamsTo, m) m = this.helperJSONLDContext(this.ActivityStreamsTotalItems, m) + m = this.helperJSONLDContext(this.ForgeFedTracksTicketsFor, m) m = this.helperJSONLDContext(this.JSONLDType, m) m = this.helperJSONLDContext(this.ActivityStreamsUpdated, m) m = this.helperJSONLDContext(this.ActivityStreamsUrl, m) @@ -959,6 +1018,20 @@ func (this ActivityStreamsOrderedCollectionPage) LessThan(o vocab.ActivityStream // Anything else is greater than nil return false } // Else: Both are nil + // Compare property "earlyItems" + if lhs, rhs := this.ForgeFedEarlyItems, o.GetForgeFedEarlyItems(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil // Compare property "endTime" if lhs, rhs := this.ActivityStreamsEndTime, o.GetActivityStreamsEndTime(); lhs != nil && rhs != nil { if lhs.LessThan(rhs) { @@ -1323,6 +1396,34 @@ func (this ActivityStreamsOrderedCollectionPage) LessThan(o vocab.ActivityStream // Anything else is greater than nil return false } // Else: Both are nil + // Compare property "team" + if lhs, rhs := this.ForgeFedTeam, o.GetForgeFedTeam(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "ticketsTrackedBy" + if lhs, rhs := this.ForgeFedTicketsTrackedBy, o.GetForgeFedTicketsTrackedBy(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil // Compare property "to" if lhs, rhs := this.ActivityStreamsTo, o.GetActivityStreamsTo(); lhs != nil && rhs != nil { if lhs.LessThan(rhs) { @@ -1351,6 +1452,20 @@ func (this ActivityStreamsOrderedCollectionPage) LessThan(o vocab.ActivityStream // Anything else is greater than nil return false } // Else: Both are nil + // Compare property "tracksTicketsFor" + if lhs, rhs := this.ForgeFedTracksTicketsFor, o.GetForgeFedTracksTicketsFor(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil // Compare property "type" if lhs, rhs := this.JSONLDType, o.GetJSONLDType(); lhs != nil && rhs != nil { if lhs.LessThan(rhs) { @@ -1504,6 +1619,14 @@ func (this ActivityStreamsOrderedCollectionPage) Serialize() (map[string]interfa m[this.ActivityStreamsDuration.Name()] = i } } + // Maybe serialize property "earlyItems" + if this.ForgeFedEarlyItems != nil { + if i, err := this.ForgeFedEarlyItems.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ForgeFedEarlyItems.Name()] = i + } + } // Maybe serialize property "endTime" if this.ActivityStreamsEndTime != nil { if i, err := this.ActivityStreamsEndTime.Serialize(); err != nil { @@ -1712,6 +1835,22 @@ func (this ActivityStreamsOrderedCollectionPage) Serialize() (map[string]interfa m[this.ActivityStreamsTag.Name()] = i } } + // Maybe serialize property "team" + if this.ForgeFedTeam != nil { + if i, err := this.ForgeFedTeam.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ForgeFedTeam.Name()] = i + } + } + // Maybe serialize property "ticketsTrackedBy" + if this.ForgeFedTicketsTrackedBy != nil { + if i, err := this.ForgeFedTicketsTrackedBy.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ForgeFedTicketsTrackedBy.Name()] = i + } + } // Maybe serialize property "to" if this.ActivityStreamsTo != nil { if i, err := this.ActivityStreamsTo.Serialize(); err != nil { @@ -1728,6 +1867,14 @@ func (this ActivityStreamsOrderedCollectionPage) Serialize() (map[string]interfa m[this.ActivityStreamsTotalItems.Name()] = i } } + // Maybe serialize property "tracksTicketsFor" + if this.ForgeFedTracksTicketsFor != nil { + if i, err := this.ForgeFedTracksTicketsFor.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ForgeFedTracksTicketsFor.Name()] = i + } + } // Maybe serialize property "type" if this.JSONLDType != nil { if i, err := this.JSONLDType.Serialize(); err != nil { @@ -1966,6 +2113,26 @@ func (this *ActivityStreamsOrderedCollectionPage) SetActivityStreamsUrl(i vocab. this.ActivityStreamsUrl = i } +// SetForgeFedEarlyItems sets the "earlyItems" property. +func (this *ActivityStreamsOrderedCollectionPage) SetForgeFedEarlyItems(i vocab.ForgeFedEarlyItemsProperty) { + this.ForgeFedEarlyItems = i +} + +// SetForgeFedTeam sets the "team" property. +func (this *ActivityStreamsOrderedCollectionPage) SetForgeFedTeam(i vocab.ForgeFedTeamProperty) { + this.ForgeFedTeam = i +} + +// SetForgeFedTicketsTrackedBy sets the "ticketsTrackedBy" property. +func (this *ActivityStreamsOrderedCollectionPage) SetForgeFedTicketsTrackedBy(i vocab.ForgeFedTicketsTrackedByProperty) { + this.ForgeFedTicketsTrackedBy = i +} + +// SetForgeFedTracksTicketsFor sets the "tracksTicketsFor" property. +func (this *ActivityStreamsOrderedCollectionPage) SetForgeFedTracksTicketsFor(i vocab.ForgeFedTracksTicketsForProperty) { + this.ForgeFedTracksTicketsFor = i +} + // SetJSONLDId sets the "id" property. func (this *ActivityStreamsOrderedCollectionPage) SetJSONLDId(i vocab.JSONLDIdProperty) { this.JSONLDId = i diff --git a/streams/impl/activitystreams/type_organization/gen_pkg.go b/streams/impl/activitystreams/type_organization/gen_pkg.go index 2426ce4..b6b0535 100644 --- a/streams/impl/activitystreams/type_organization/gen_pkg.go +++ b/streams/impl/activitystreams/type_organization/gen_pkg.go @@ -169,10 +169,22 @@ type privateManager interface { // method for the "ActivityStreamsTagProperty" non-functional property // in the vocabulary "ActivityStreams" DeserializeTagPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTagProperty, error) + // DeserializeTeamPropertyForgeFed returns the deserialization method for + // the "ForgeFedTeamProperty" non-functional property in the + // vocabulary "ForgeFed" + DeserializeTeamPropertyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTeamProperty, error) + // DeserializeTicketsTrackedByPropertyForgeFed returns the deserialization + // method for the "ForgeFedTicketsTrackedByProperty" non-functional + // property in the vocabulary "ForgeFed" + DeserializeTicketsTrackedByPropertyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTicketsTrackedByProperty, error) // DeserializeToPropertyActivityStreams returns the deserialization method // for the "ActivityStreamsToProperty" non-functional property in the // vocabulary "ActivityStreams" DeserializeToPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsToProperty, error) + // DeserializeTracksTicketsForPropertyForgeFed returns the deserialization + // method for the "ForgeFedTracksTicketsForProperty" non-functional + // property in the vocabulary "ForgeFed" + DeserializeTracksTicketsForPropertyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTracksTicketsForProperty, error) // DeserializeTypePropertyJSONLD returns the deserialization method for // the "JSONLDTypeProperty" non-functional property in the vocabulary // "JSONLD" diff --git a/streams/impl/activitystreams/type_organization/gen_type_activitystreams_organization.go b/streams/impl/activitystreams/type_organization/gen_type_activitystreams_organization.go index 9343d73..e7f4736 100644 --- a/streams/impl/activitystreams/type_organization/gen_type_activitystreams_organization.go +++ b/streams/impl/activitystreams/type_organization/gen_type_activitystreams_organization.go @@ -55,7 +55,10 @@ type ActivityStreamsOrganization struct { ActivityStreamsStreams vocab.ActivityStreamsStreamsProperty ActivityStreamsSummary vocab.ActivityStreamsSummaryProperty ActivityStreamsTag vocab.ActivityStreamsTagProperty + ForgeFedTeam vocab.ForgeFedTeamProperty + ForgeFedTicketsTrackedBy vocab.ForgeFedTicketsTrackedByProperty ActivityStreamsTo vocab.ActivityStreamsToProperty + ForgeFedTracksTicketsFor vocab.ForgeFedTracksTicketsForProperty JSONLDType vocab.JSONLDTypeProperty ActivityStreamsUpdated vocab.ActivityStreamsUpdatedProperty ActivityStreamsUrl vocab.ActivityStreamsUrlProperty @@ -307,11 +310,26 @@ func DeserializeOrganization(m map[string]interface{}, aliasMap map[string]strin } else if p != nil { this.ActivityStreamsTag = p } + if p, err := mgr.DeserializeTeamPropertyForgeFed()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ForgeFedTeam = p + } + if p, err := mgr.DeserializeTicketsTrackedByPropertyForgeFed()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ForgeFedTicketsTrackedBy = p + } if p, err := mgr.DeserializeToPropertyActivityStreams()(m, aliasMap); err != nil { return nil, err } else if p != nil { this.ActivityStreamsTo = p } + if p, err := mgr.DeserializeTracksTicketsForPropertyForgeFed()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ForgeFedTracksTicketsFor = p + } if p, err := mgr.DeserializeTypePropertyJSONLD()(m, aliasMap); err != nil { return nil, err } else if p != nil { @@ -418,8 +436,14 @@ func DeserializeOrganization(m map[string]interface{}, aliasMap map[string]strin continue } else if k == "tag" { continue + } else if k == "team" { + continue + } else if k == "ticketsTrackedBy" { + continue } else if k == "to" { continue + } else if k == "tracksTicketsFor" { + continue } else if k == "type" { continue } else if k == "updated" { @@ -701,6 +725,23 @@ func (this ActivityStreamsOrganization) GetActivityStreamsUrl() vocab.ActivitySt return this.ActivityStreamsUrl } +// GetForgeFedTeam returns the "team" property if it exists, and nil otherwise. +func (this ActivityStreamsOrganization) GetForgeFedTeam() vocab.ForgeFedTeamProperty { + return this.ForgeFedTeam +} + +// GetForgeFedTicketsTrackedBy returns the "ticketsTrackedBy" property if it +// exists, and nil otherwise. +func (this ActivityStreamsOrganization) GetForgeFedTicketsTrackedBy() vocab.ForgeFedTicketsTrackedByProperty { + return this.ForgeFedTicketsTrackedBy +} + +// GetForgeFedTracksTicketsFor returns the "tracksTicketsFor" property if it +// exists, and nil otherwise. +func (this ActivityStreamsOrganization) GetForgeFedTracksTicketsFor() vocab.ForgeFedTracksTicketsForProperty { + return this.ForgeFedTracksTicketsFor +} + // GetJSONLDId returns the "id" property if it exists, and nil otherwise. func (this ActivityStreamsOrganization) GetJSONLDId() vocab.JSONLDIdProperty { return this.JSONLDId @@ -792,7 +833,10 @@ func (this ActivityStreamsOrganization) JSONLDContext() map[string]string { m = this.helperJSONLDContext(this.ActivityStreamsStreams, m) m = this.helperJSONLDContext(this.ActivityStreamsSummary, m) m = this.helperJSONLDContext(this.ActivityStreamsTag, m) + m = this.helperJSONLDContext(this.ForgeFedTeam, m) + m = this.helperJSONLDContext(this.ForgeFedTicketsTrackedBy, m) m = this.helperJSONLDContext(this.ActivityStreamsTo, m) + m = this.helperJSONLDContext(this.ForgeFedTracksTicketsFor, m) m = this.helperJSONLDContext(this.JSONLDType, m) m = this.helperJSONLDContext(this.ActivityStreamsUpdated, m) m = this.helperJSONLDContext(this.ActivityStreamsUrl, m) @@ -1350,6 +1394,34 @@ func (this ActivityStreamsOrganization) LessThan(o vocab.ActivityStreamsOrganiza // Anything else is greater than nil return false } // Else: Both are nil + // Compare property "team" + if lhs, rhs := this.ForgeFedTeam, o.GetForgeFedTeam(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "ticketsTrackedBy" + if lhs, rhs := this.ForgeFedTicketsTrackedBy, o.GetForgeFedTicketsTrackedBy(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil // Compare property "to" if lhs, rhs := this.ActivityStreamsTo, o.GetActivityStreamsTo(); lhs != nil && rhs != nil { if lhs.LessThan(rhs) { @@ -1364,6 +1436,20 @@ func (this ActivityStreamsOrganization) LessThan(o vocab.ActivityStreamsOrganiza // Anything else is greater than nil return false } // Else: Both are nil + // Compare property "tracksTicketsFor" + if lhs, rhs := this.ForgeFedTracksTicketsFor, o.GetForgeFedTracksTicketsFor(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil // Compare property "type" if lhs, rhs := this.JSONLDType, o.GetJSONLDType(); lhs != nil && rhs != nil { if lhs.LessThan(rhs) { @@ -1741,6 +1827,22 @@ func (this ActivityStreamsOrganization) Serialize() (map[string]interface{}, err m[this.ActivityStreamsTag.Name()] = i } } + // Maybe serialize property "team" + if this.ForgeFedTeam != nil { + if i, err := this.ForgeFedTeam.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ForgeFedTeam.Name()] = i + } + } + // Maybe serialize property "ticketsTrackedBy" + if this.ForgeFedTicketsTrackedBy != nil { + if i, err := this.ForgeFedTicketsTrackedBy.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ForgeFedTicketsTrackedBy.Name()] = i + } + } // Maybe serialize property "to" if this.ActivityStreamsTo != nil { if i, err := this.ActivityStreamsTo.Serialize(); err != nil { @@ -1749,6 +1851,14 @@ func (this ActivityStreamsOrganization) Serialize() (map[string]interface{}, err m[this.ActivityStreamsTo.Name()] = i } } + // Maybe serialize property "tracksTicketsFor" + if this.ForgeFedTracksTicketsFor != nil { + if i, err := this.ForgeFedTracksTicketsFor.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ForgeFedTracksTicketsFor.Name()] = i + } + } // Maybe serialize property "type" if this.JSONLDType != nil { if i, err := this.JSONLDType.Serialize(); err != nil { @@ -1977,6 +2087,21 @@ func (this *ActivityStreamsOrganization) SetActivityStreamsUrl(i vocab.ActivityS this.ActivityStreamsUrl = i } +// SetForgeFedTeam sets the "team" property. +func (this *ActivityStreamsOrganization) SetForgeFedTeam(i vocab.ForgeFedTeamProperty) { + this.ForgeFedTeam = i +} + +// SetForgeFedTicketsTrackedBy sets the "ticketsTrackedBy" property. +func (this *ActivityStreamsOrganization) SetForgeFedTicketsTrackedBy(i vocab.ForgeFedTicketsTrackedByProperty) { + this.ForgeFedTicketsTrackedBy = i +} + +// SetForgeFedTracksTicketsFor sets the "tracksTicketsFor" property. +func (this *ActivityStreamsOrganization) SetForgeFedTracksTicketsFor(i vocab.ForgeFedTracksTicketsForProperty) { + this.ForgeFedTracksTicketsFor = i +} + // SetJSONLDId sets the "id" property. func (this *ActivityStreamsOrganization) SetJSONLDId(i vocab.JSONLDIdProperty) { this.JSONLDId = i diff --git a/streams/impl/activitystreams/type_page/gen_pkg.go b/streams/impl/activitystreams/type_page/gen_pkg.go index bd5e877..c0941bb 100644 --- a/streams/impl/activitystreams/type_page/gen_pkg.go +++ b/streams/impl/activitystreams/type_page/gen_pkg.go @@ -132,10 +132,22 @@ type privateManager interface { // method for the "ActivityStreamsTagProperty" non-functional property // in the vocabulary "ActivityStreams" DeserializeTagPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTagProperty, error) + // DeserializeTeamPropertyForgeFed returns the deserialization method for + // the "ForgeFedTeamProperty" non-functional property in the + // vocabulary "ForgeFed" + DeserializeTeamPropertyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTeamProperty, error) + // DeserializeTicketsTrackedByPropertyForgeFed returns the deserialization + // method for the "ForgeFedTicketsTrackedByProperty" non-functional + // property in the vocabulary "ForgeFed" + DeserializeTicketsTrackedByPropertyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTicketsTrackedByProperty, error) // DeserializeToPropertyActivityStreams returns the deserialization method // for the "ActivityStreamsToProperty" non-functional property in the // vocabulary "ActivityStreams" DeserializeToPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsToProperty, error) + // DeserializeTracksTicketsForPropertyForgeFed returns the deserialization + // method for the "ForgeFedTracksTicketsForProperty" non-functional + // property in the vocabulary "ForgeFed" + DeserializeTracksTicketsForPropertyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTracksTicketsForProperty, error) // DeserializeTypePropertyJSONLD returns the deserialization method for // the "JSONLDTypeProperty" non-functional property in the vocabulary // "JSONLD" diff --git a/streams/impl/activitystreams/type_page/gen_type_activitystreams_page.go b/streams/impl/activitystreams/type_page/gen_type_activitystreams_page.go index d9cdfd7..55fdfd5 100644 --- a/streams/impl/activitystreams/type_page/gen_type_activitystreams_page.go +++ b/streams/impl/activitystreams/type_page/gen_type_activitystreams_page.go @@ -47,7 +47,10 @@ type ActivityStreamsPage struct { ActivityStreamsStartTime vocab.ActivityStreamsStartTimeProperty ActivityStreamsSummary vocab.ActivityStreamsSummaryProperty ActivityStreamsTag vocab.ActivityStreamsTagProperty + ForgeFedTeam vocab.ForgeFedTeamProperty + ForgeFedTicketsTrackedBy vocab.ForgeFedTicketsTrackedByProperty ActivityStreamsTo vocab.ActivityStreamsToProperty + ForgeFedTracksTicketsFor vocab.ForgeFedTracksTicketsForProperty JSONLDType vocab.JSONLDTypeProperty ActivityStreamsUpdated vocab.ActivityStreamsUpdatedProperty ActivityStreamsUrl vocab.ActivityStreamsUrlProperty @@ -254,11 +257,26 @@ func DeserializePage(m map[string]interface{}, aliasMap map[string]string) (*Act } else if p != nil { this.ActivityStreamsTag = p } + if p, err := mgr.DeserializeTeamPropertyForgeFed()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ForgeFedTeam = p + } + if p, err := mgr.DeserializeTicketsTrackedByPropertyForgeFed()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ForgeFedTicketsTrackedBy = p + } if p, err := mgr.DeserializeToPropertyActivityStreams()(m, aliasMap); err != nil { return nil, err } else if p != nil { this.ActivityStreamsTo = p } + if p, err := mgr.DeserializeTracksTicketsForPropertyForgeFed()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ForgeFedTracksTicketsFor = p + } if p, err := mgr.DeserializeTypePropertyJSONLD()(m, aliasMap); err != nil { return nil, err } else if p != nil { @@ -345,8 +363,14 @@ func DeserializePage(m map[string]interface{}, aliasMap map[string]string) (*Act continue } else if k == "tag" { continue + } else if k == "team" { + continue + } else if k == "ticketsTrackedBy" { + continue } else if k == "to" { continue + } else if k == "tracksTicketsFor" { + continue } else if k == "type" { continue } else if k == "updated" { @@ -586,6 +610,23 @@ func (this ActivityStreamsPage) GetActivityStreamsUrl() vocab.ActivityStreamsUrl return this.ActivityStreamsUrl } +// GetForgeFedTeam returns the "team" property if it exists, and nil otherwise. +func (this ActivityStreamsPage) GetForgeFedTeam() vocab.ForgeFedTeamProperty { + return this.ForgeFedTeam +} + +// GetForgeFedTicketsTrackedBy returns the "ticketsTrackedBy" property if it +// exists, and nil otherwise. +func (this ActivityStreamsPage) GetForgeFedTicketsTrackedBy() vocab.ForgeFedTicketsTrackedByProperty { + return this.ForgeFedTicketsTrackedBy +} + +// GetForgeFedTracksTicketsFor returns the "tracksTicketsFor" property if it +// exists, and nil otherwise. +func (this ActivityStreamsPage) GetForgeFedTracksTicketsFor() vocab.ForgeFedTracksTicketsForProperty { + return this.ForgeFedTracksTicketsFor +} + // GetJSONLDId returns the "id" property if it exists, and nil otherwise. func (this ActivityStreamsPage) GetJSONLDId() vocab.JSONLDIdProperty { return this.JSONLDId @@ -656,7 +697,10 @@ func (this ActivityStreamsPage) JSONLDContext() map[string]string { m = this.helperJSONLDContext(this.ActivityStreamsStartTime, m) m = this.helperJSONLDContext(this.ActivityStreamsSummary, m) m = this.helperJSONLDContext(this.ActivityStreamsTag, m) + m = this.helperJSONLDContext(this.ForgeFedTeam, m) + m = this.helperJSONLDContext(this.ForgeFedTicketsTrackedBy, m) m = this.helperJSONLDContext(this.ActivityStreamsTo, m) + m = this.helperJSONLDContext(this.ForgeFedTracksTicketsFor, m) m = this.helperJSONLDContext(this.JSONLDType, m) m = this.helperJSONLDContext(this.ActivityStreamsUpdated, m) m = this.helperJSONLDContext(this.ActivityStreamsUrl, m) @@ -1088,6 +1132,34 @@ func (this ActivityStreamsPage) LessThan(o vocab.ActivityStreamsPage) bool { // Anything else is greater than nil return false } // Else: Both are nil + // Compare property "team" + if lhs, rhs := this.ForgeFedTeam, o.GetForgeFedTeam(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "ticketsTrackedBy" + if lhs, rhs := this.ForgeFedTicketsTrackedBy, o.GetForgeFedTicketsTrackedBy(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil // Compare property "to" if lhs, rhs := this.ActivityStreamsTo, o.GetActivityStreamsTo(); lhs != nil && rhs != nil { if lhs.LessThan(rhs) { @@ -1102,6 +1174,20 @@ func (this ActivityStreamsPage) LessThan(o vocab.ActivityStreamsPage) bool { // Anything else is greater than nil return false } // Else: Both are nil + // Compare property "tracksTicketsFor" + if lhs, rhs := this.ForgeFedTracksTicketsFor, o.GetForgeFedTracksTicketsFor(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil // Compare property "type" if lhs, rhs := this.JSONLDType, o.GetJSONLDType(); lhs != nil && rhs != nil { if lhs.LessThan(rhs) { @@ -1407,6 +1493,22 @@ func (this ActivityStreamsPage) Serialize() (map[string]interface{}, error) { m[this.ActivityStreamsTag.Name()] = i } } + // Maybe serialize property "team" + if this.ForgeFedTeam != nil { + if i, err := this.ForgeFedTeam.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ForgeFedTeam.Name()] = i + } + } + // Maybe serialize property "ticketsTrackedBy" + if this.ForgeFedTicketsTrackedBy != nil { + if i, err := this.ForgeFedTicketsTrackedBy.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ForgeFedTicketsTrackedBy.Name()] = i + } + } // Maybe serialize property "to" if this.ActivityStreamsTo != nil { if i, err := this.ActivityStreamsTo.Serialize(); err != nil { @@ -1415,6 +1517,14 @@ func (this ActivityStreamsPage) Serialize() (map[string]interface{}, error) { m[this.ActivityStreamsTo.Name()] = i } } + // Maybe serialize property "tracksTicketsFor" + if this.ForgeFedTracksTicketsFor != nil { + if i, err := this.ForgeFedTracksTicketsFor.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ForgeFedTracksTicketsFor.Name()] = i + } + } // Maybe serialize property "type" if this.JSONLDType != nil { if i, err := this.JSONLDType.Serialize(); err != nil { @@ -1608,6 +1718,21 @@ func (this *ActivityStreamsPage) SetActivityStreamsUrl(i vocab.ActivityStreamsUr this.ActivityStreamsUrl = i } +// SetForgeFedTeam sets the "team" property. +func (this *ActivityStreamsPage) SetForgeFedTeam(i vocab.ForgeFedTeamProperty) { + this.ForgeFedTeam = i +} + +// SetForgeFedTicketsTrackedBy sets the "ticketsTrackedBy" property. +func (this *ActivityStreamsPage) SetForgeFedTicketsTrackedBy(i vocab.ForgeFedTicketsTrackedByProperty) { + this.ForgeFedTicketsTrackedBy = i +} + +// SetForgeFedTracksTicketsFor sets the "tracksTicketsFor" property. +func (this *ActivityStreamsPage) SetForgeFedTracksTicketsFor(i vocab.ForgeFedTracksTicketsForProperty) { + this.ForgeFedTracksTicketsFor = i +} + // SetJSONLDId sets the "id" property. func (this *ActivityStreamsPage) SetJSONLDId(i vocab.JSONLDIdProperty) { this.JSONLDId = i diff --git a/streams/impl/activitystreams/type_person/gen_pkg.go b/streams/impl/activitystreams/type_person/gen_pkg.go index 7f2596c..aacc73b 100644 --- a/streams/impl/activitystreams/type_person/gen_pkg.go +++ b/streams/impl/activitystreams/type_person/gen_pkg.go @@ -169,10 +169,22 @@ type privateManager interface { // method for the "ActivityStreamsTagProperty" non-functional property // in the vocabulary "ActivityStreams" DeserializeTagPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTagProperty, error) + // DeserializeTeamPropertyForgeFed returns the deserialization method for + // the "ForgeFedTeamProperty" non-functional property in the + // vocabulary "ForgeFed" + DeserializeTeamPropertyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTeamProperty, error) + // DeserializeTicketsTrackedByPropertyForgeFed returns the deserialization + // method for the "ForgeFedTicketsTrackedByProperty" non-functional + // property in the vocabulary "ForgeFed" + DeserializeTicketsTrackedByPropertyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTicketsTrackedByProperty, error) // DeserializeToPropertyActivityStreams returns the deserialization method // for the "ActivityStreamsToProperty" non-functional property in the // vocabulary "ActivityStreams" DeserializeToPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsToProperty, error) + // DeserializeTracksTicketsForPropertyForgeFed returns the deserialization + // method for the "ForgeFedTracksTicketsForProperty" non-functional + // property in the vocabulary "ForgeFed" + DeserializeTracksTicketsForPropertyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTracksTicketsForProperty, error) // DeserializeTypePropertyJSONLD returns the deserialization method for // the "JSONLDTypeProperty" non-functional property in the vocabulary // "JSONLD" diff --git a/streams/impl/activitystreams/type_person/gen_type_activitystreams_person.go b/streams/impl/activitystreams/type_person/gen_type_activitystreams_person.go index 233625c..5ccb9ac 100644 --- a/streams/impl/activitystreams/type_person/gen_type_activitystreams_person.go +++ b/streams/impl/activitystreams/type_person/gen_type_activitystreams_person.go @@ -55,7 +55,10 @@ type ActivityStreamsPerson struct { ActivityStreamsStreams vocab.ActivityStreamsStreamsProperty ActivityStreamsSummary vocab.ActivityStreamsSummaryProperty ActivityStreamsTag vocab.ActivityStreamsTagProperty + ForgeFedTeam vocab.ForgeFedTeamProperty + ForgeFedTicketsTrackedBy vocab.ForgeFedTicketsTrackedByProperty ActivityStreamsTo vocab.ActivityStreamsToProperty + ForgeFedTracksTicketsFor vocab.ForgeFedTracksTicketsForProperty JSONLDType vocab.JSONLDTypeProperty ActivityStreamsUpdated vocab.ActivityStreamsUpdatedProperty ActivityStreamsUrl vocab.ActivityStreamsUrlProperty @@ -307,11 +310,26 @@ func DeserializePerson(m map[string]interface{}, aliasMap map[string]string) (*A } else if p != nil { this.ActivityStreamsTag = p } + if p, err := mgr.DeserializeTeamPropertyForgeFed()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ForgeFedTeam = p + } + if p, err := mgr.DeserializeTicketsTrackedByPropertyForgeFed()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ForgeFedTicketsTrackedBy = p + } if p, err := mgr.DeserializeToPropertyActivityStreams()(m, aliasMap); err != nil { return nil, err } else if p != nil { this.ActivityStreamsTo = p } + if p, err := mgr.DeserializeTracksTicketsForPropertyForgeFed()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ForgeFedTracksTicketsFor = p + } if p, err := mgr.DeserializeTypePropertyJSONLD()(m, aliasMap); err != nil { return nil, err } else if p != nil { @@ -418,8 +436,14 @@ func DeserializePerson(m map[string]interface{}, aliasMap map[string]string) (*A continue } else if k == "tag" { continue + } else if k == "team" { + continue + } else if k == "ticketsTrackedBy" { + continue } else if k == "to" { continue + } else if k == "tracksTicketsFor" { + continue } else if k == "type" { continue } else if k == "updated" { @@ -701,6 +725,23 @@ func (this ActivityStreamsPerson) GetActivityStreamsUrl() vocab.ActivityStreamsU return this.ActivityStreamsUrl } +// GetForgeFedTeam returns the "team" property if it exists, and nil otherwise. +func (this ActivityStreamsPerson) GetForgeFedTeam() vocab.ForgeFedTeamProperty { + return this.ForgeFedTeam +} + +// GetForgeFedTicketsTrackedBy returns the "ticketsTrackedBy" property if it +// exists, and nil otherwise. +func (this ActivityStreamsPerson) GetForgeFedTicketsTrackedBy() vocab.ForgeFedTicketsTrackedByProperty { + return this.ForgeFedTicketsTrackedBy +} + +// GetForgeFedTracksTicketsFor returns the "tracksTicketsFor" property if it +// exists, and nil otherwise. +func (this ActivityStreamsPerson) GetForgeFedTracksTicketsFor() vocab.ForgeFedTracksTicketsForProperty { + return this.ForgeFedTracksTicketsFor +} + // GetJSONLDId returns the "id" property if it exists, and nil otherwise. func (this ActivityStreamsPerson) GetJSONLDId() vocab.JSONLDIdProperty { return this.JSONLDId @@ -792,7 +833,10 @@ func (this ActivityStreamsPerson) JSONLDContext() map[string]string { m = this.helperJSONLDContext(this.ActivityStreamsStreams, m) m = this.helperJSONLDContext(this.ActivityStreamsSummary, m) m = this.helperJSONLDContext(this.ActivityStreamsTag, m) + m = this.helperJSONLDContext(this.ForgeFedTeam, m) + m = this.helperJSONLDContext(this.ForgeFedTicketsTrackedBy, m) m = this.helperJSONLDContext(this.ActivityStreamsTo, m) + m = this.helperJSONLDContext(this.ForgeFedTracksTicketsFor, m) m = this.helperJSONLDContext(this.JSONLDType, m) m = this.helperJSONLDContext(this.ActivityStreamsUpdated, m) m = this.helperJSONLDContext(this.ActivityStreamsUrl, m) @@ -1350,6 +1394,34 @@ func (this ActivityStreamsPerson) LessThan(o vocab.ActivityStreamsPerson) bool { // Anything else is greater than nil return false } // Else: Both are nil + // Compare property "team" + if lhs, rhs := this.ForgeFedTeam, o.GetForgeFedTeam(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "ticketsTrackedBy" + if lhs, rhs := this.ForgeFedTicketsTrackedBy, o.GetForgeFedTicketsTrackedBy(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil // Compare property "to" if lhs, rhs := this.ActivityStreamsTo, o.GetActivityStreamsTo(); lhs != nil && rhs != nil { if lhs.LessThan(rhs) { @@ -1364,6 +1436,20 @@ func (this ActivityStreamsPerson) LessThan(o vocab.ActivityStreamsPerson) bool { // Anything else is greater than nil return false } // Else: Both are nil + // Compare property "tracksTicketsFor" + if lhs, rhs := this.ForgeFedTracksTicketsFor, o.GetForgeFedTracksTicketsFor(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil // Compare property "type" if lhs, rhs := this.JSONLDType, o.GetJSONLDType(); lhs != nil && rhs != nil { if lhs.LessThan(rhs) { @@ -1741,6 +1827,22 @@ func (this ActivityStreamsPerson) Serialize() (map[string]interface{}, error) { m[this.ActivityStreamsTag.Name()] = i } } + // Maybe serialize property "team" + if this.ForgeFedTeam != nil { + if i, err := this.ForgeFedTeam.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ForgeFedTeam.Name()] = i + } + } + // Maybe serialize property "ticketsTrackedBy" + if this.ForgeFedTicketsTrackedBy != nil { + if i, err := this.ForgeFedTicketsTrackedBy.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ForgeFedTicketsTrackedBy.Name()] = i + } + } // Maybe serialize property "to" if this.ActivityStreamsTo != nil { if i, err := this.ActivityStreamsTo.Serialize(); err != nil { @@ -1749,6 +1851,14 @@ func (this ActivityStreamsPerson) Serialize() (map[string]interface{}, error) { m[this.ActivityStreamsTo.Name()] = i } } + // Maybe serialize property "tracksTicketsFor" + if this.ForgeFedTracksTicketsFor != nil { + if i, err := this.ForgeFedTracksTicketsFor.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ForgeFedTracksTicketsFor.Name()] = i + } + } // Maybe serialize property "type" if this.JSONLDType != nil { if i, err := this.JSONLDType.Serialize(); err != nil { @@ -1977,6 +2087,21 @@ func (this *ActivityStreamsPerson) SetActivityStreamsUrl(i vocab.ActivityStreams this.ActivityStreamsUrl = i } +// SetForgeFedTeam sets the "team" property. +func (this *ActivityStreamsPerson) SetForgeFedTeam(i vocab.ForgeFedTeamProperty) { + this.ForgeFedTeam = i +} + +// SetForgeFedTicketsTrackedBy sets the "ticketsTrackedBy" property. +func (this *ActivityStreamsPerson) SetForgeFedTicketsTrackedBy(i vocab.ForgeFedTicketsTrackedByProperty) { + this.ForgeFedTicketsTrackedBy = i +} + +// SetForgeFedTracksTicketsFor sets the "tracksTicketsFor" property. +func (this *ActivityStreamsPerson) SetForgeFedTracksTicketsFor(i vocab.ForgeFedTracksTicketsForProperty) { + this.ForgeFedTracksTicketsFor = i +} + // SetJSONLDId sets the "id" property. func (this *ActivityStreamsPerson) SetJSONLDId(i vocab.JSONLDIdProperty) { this.JSONLDId = i diff --git a/streams/impl/activitystreams/type_place/gen_pkg.go b/streams/impl/activitystreams/type_place/gen_pkg.go index c70626d..d8a52e2 100644 --- a/streams/impl/activitystreams/type_place/gen_pkg.go +++ b/streams/impl/activitystreams/type_place/gen_pkg.go @@ -144,10 +144,22 @@ type privateManager interface { // method for the "ActivityStreamsTagProperty" non-functional property // in the vocabulary "ActivityStreams" DeserializeTagPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTagProperty, error) + // DeserializeTeamPropertyForgeFed returns the deserialization method for + // the "ForgeFedTeamProperty" non-functional property in the + // vocabulary "ForgeFed" + DeserializeTeamPropertyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTeamProperty, error) + // DeserializeTicketsTrackedByPropertyForgeFed returns the deserialization + // method for the "ForgeFedTicketsTrackedByProperty" non-functional + // property in the vocabulary "ForgeFed" + DeserializeTicketsTrackedByPropertyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTicketsTrackedByProperty, error) // DeserializeToPropertyActivityStreams returns the deserialization method // for the "ActivityStreamsToProperty" non-functional property in the // vocabulary "ActivityStreams" DeserializeToPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsToProperty, error) + // DeserializeTracksTicketsForPropertyForgeFed returns the deserialization + // method for the "ForgeFedTracksTicketsForProperty" non-functional + // property in the vocabulary "ForgeFed" + DeserializeTracksTicketsForPropertyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTracksTicketsForProperty, error) // DeserializeTypePropertyJSONLD returns the deserialization method for // the "JSONLDTypeProperty" non-functional property in the vocabulary // "JSONLD" diff --git a/streams/impl/activitystreams/type_place/gen_type_activitystreams_place.go b/streams/impl/activitystreams/type_place/gen_type_activitystreams_place.go index eb5e9be..6097eef 100644 --- a/streams/impl/activitystreams/type_place/gen_type_activitystreams_place.go +++ b/streams/impl/activitystreams/type_place/gen_type_activitystreams_place.go @@ -60,7 +60,10 @@ type ActivityStreamsPlace struct { ActivityStreamsStartTime vocab.ActivityStreamsStartTimeProperty ActivityStreamsSummary vocab.ActivityStreamsSummaryProperty ActivityStreamsTag vocab.ActivityStreamsTagProperty + ForgeFedTeam vocab.ForgeFedTeamProperty + ForgeFedTicketsTrackedBy vocab.ForgeFedTicketsTrackedByProperty ActivityStreamsTo vocab.ActivityStreamsToProperty + ForgeFedTracksTicketsFor vocab.ForgeFedTracksTicketsForProperty JSONLDType vocab.JSONLDTypeProperty ActivityStreamsUnits vocab.ActivityStreamsUnitsProperty ActivityStreamsUpdated vocab.ActivityStreamsUpdatedProperty @@ -283,11 +286,26 @@ func DeserializePlace(m map[string]interface{}, aliasMap map[string]string) (*Ac } else if p != nil { this.ActivityStreamsTag = p } + if p, err := mgr.DeserializeTeamPropertyForgeFed()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ForgeFedTeam = p + } + if p, err := mgr.DeserializeTicketsTrackedByPropertyForgeFed()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ForgeFedTicketsTrackedBy = p + } if p, err := mgr.DeserializeToPropertyActivityStreams()(m, aliasMap); err != nil { return nil, err } else if p != nil { this.ActivityStreamsTo = p } + if p, err := mgr.DeserializeTracksTicketsForPropertyForgeFed()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ForgeFedTracksTicketsFor = p + } if p, err := mgr.DeserializeTypePropertyJSONLD()(m, aliasMap); err != nil { return nil, err } else if p != nil { @@ -385,8 +403,14 @@ func DeserializePlace(m map[string]interface{}, aliasMap map[string]string) (*Ac continue } else if k == "tag" { continue + } else if k == "team" { + continue + } else if k == "ticketsTrackedBy" { + continue } else if k == "to" { continue + } else if k == "tracksTicketsFor" { + continue } else if k == "type" { continue } else if k == "units" { @@ -658,6 +682,23 @@ func (this ActivityStreamsPlace) GetActivityStreamsUrl() vocab.ActivityStreamsUr return this.ActivityStreamsUrl } +// GetForgeFedTeam returns the "team" property if it exists, and nil otherwise. +func (this ActivityStreamsPlace) GetForgeFedTeam() vocab.ForgeFedTeamProperty { + return this.ForgeFedTeam +} + +// GetForgeFedTicketsTrackedBy returns the "ticketsTrackedBy" property if it +// exists, and nil otherwise. +func (this ActivityStreamsPlace) GetForgeFedTicketsTrackedBy() vocab.ForgeFedTicketsTrackedByProperty { + return this.ForgeFedTicketsTrackedBy +} + +// GetForgeFedTracksTicketsFor returns the "tracksTicketsFor" property if it +// exists, and nil otherwise. +func (this ActivityStreamsPlace) GetForgeFedTracksTicketsFor() vocab.ForgeFedTracksTicketsForProperty { + return this.ForgeFedTracksTicketsFor +} + // GetJSONLDId returns the "id" property if it exists, and nil otherwise. func (this ActivityStreamsPlace) GetJSONLDId() vocab.JSONLDIdProperty { return this.JSONLDId @@ -726,7 +767,10 @@ func (this ActivityStreamsPlace) JSONLDContext() map[string]string { m = this.helperJSONLDContext(this.ActivityStreamsStartTime, m) m = this.helperJSONLDContext(this.ActivityStreamsSummary, m) m = this.helperJSONLDContext(this.ActivityStreamsTag, m) + m = this.helperJSONLDContext(this.ForgeFedTeam, m) + m = this.helperJSONLDContext(this.ForgeFedTicketsTrackedBy, m) m = this.helperJSONLDContext(this.ActivityStreamsTo, m) + m = this.helperJSONLDContext(this.ForgeFedTracksTicketsFor, m) m = this.helperJSONLDContext(this.JSONLDType, m) m = this.helperJSONLDContext(this.ActivityStreamsUnits, m) m = this.helperJSONLDContext(this.ActivityStreamsUpdated, m) @@ -1201,6 +1245,34 @@ func (this ActivityStreamsPlace) LessThan(o vocab.ActivityStreamsPlace) bool { // Anything else is greater than nil return false } // Else: Both are nil + // Compare property "team" + if lhs, rhs := this.ForgeFedTeam, o.GetForgeFedTeam(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "ticketsTrackedBy" + if lhs, rhs := this.ForgeFedTicketsTrackedBy, o.GetForgeFedTicketsTrackedBy(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil // Compare property "to" if lhs, rhs := this.ActivityStreamsTo, o.GetActivityStreamsTo(); lhs != nil && rhs != nil { if lhs.LessThan(rhs) { @@ -1215,6 +1287,20 @@ func (this ActivityStreamsPlace) LessThan(o vocab.ActivityStreamsPlace) bool { // Anything else is greater than nil return false } // Else: Both are nil + // Compare property "tracksTicketsFor" + if lhs, rhs := this.ForgeFedTracksTicketsFor, o.GetForgeFedTracksTicketsFor(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil // Compare property "type" if lhs, rhs := this.JSONLDType, o.GetJSONLDType(); lhs != nil && rhs != nil { if lhs.LessThan(rhs) { @@ -1558,6 +1644,22 @@ func (this ActivityStreamsPlace) Serialize() (map[string]interface{}, error) { m[this.ActivityStreamsTag.Name()] = i } } + // Maybe serialize property "team" + if this.ForgeFedTeam != nil { + if i, err := this.ForgeFedTeam.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ForgeFedTeam.Name()] = i + } + } + // Maybe serialize property "ticketsTrackedBy" + if this.ForgeFedTicketsTrackedBy != nil { + if i, err := this.ForgeFedTicketsTrackedBy.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ForgeFedTicketsTrackedBy.Name()] = i + } + } // Maybe serialize property "to" if this.ActivityStreamsTo != nil { if i, err := this.ActivityStreamsTo.Serialize(); err != nil { @@ -1566,6 +1668,14 @@ func (this ActivityStreamsPlace) Serialize() (map[string]interface{}, error) { m[this.ActivityStreamsTo.Name()] = i } } + // Maybe serialize property "tracksTicketsFor" + if this.ForgeFedTracksTicketsFor != nil { + if i, err := this.ForgeFedTracksTicketsFor.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ForgeFedTracksTicketsFor.Name()] = i + } + } // Maybe serialize property "type" if this.JSONLDType != nil { if i, err := this.JSONLDType.Serialize(); err != nil { @@ -1792,6 +1902,21 @@ func (this *ActivityStreamsPlace) SetActivityStreamsUrl(i vocab.ActivityStreamsU this.ActivityStreamsUrl = i } +// SetForgeFedTeam sets the "team" property. +func (this *ActivityStreamsPlace) SetForgeFedTeam(i vocab.ForgeFedTeamProperty) { + this.ForgeFedTeam = i +} + +// SetForgeFedTicketsTrackedBy sets the "ticketsTrackedBy" property. +func (this *ActivityStreamsPlace) SetForgeFedTicketsTrackedBy(i vocab.ForgeFedTicketsTrackedByProperty) { + this.ForgeFedTicketsTrackedBy = i +} + +// SetForgeFedTracksTicketsFor sets the "tracksTicketsFor" property. +func (this *ActivityStreamsPlace) SetForgeFedTracksTicketsFor(i vocab.ForgeFedTracksTicketsForProperty) { + this.ForgeFedTracksTicketsFor = i +} + // SetJSONLDId sets the "id" property. func (this *ActivityStreamsPlace) SetJSONLDId(i vocab.JSONLDIdProperty) { this.JSONLDId = i diff --git a/streams/impl/activitystreams/type_profile/gen_pkg.go b/streams/impl/activitystreams/type_profile/gen_pkg.go index 39e9b36..10d39ec 100644 --- a/streams/impl/activitystreams/type_profile/gen_pkg.go +++ b/streams/impl/activitystreams/type_profile/gen_pkg.go @@ -132,10 +132,22 @@ type privateManager interface { // method for the "ActivityStreamsTagProperty" non-functional property // in the vocabulary "ActivityStreams" DeserializeTagPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTagProperty, error) + // DeserializeTeamPropertyForgeFed returns the deserialization method for + // the "ForgeFedTeamProperty" non-functional property in the + // vocabulary "ForgeFed" + DeserializeTeamPropertyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTeamProperty, error) + // DeserializeTicketsTrackedByPropertyForgeFed returns the deserialization + // method for the "ForgeFedTicketsTrackedByProperty" non-functional + // property in the vocabulary "ForgeFed" + DeserializeTicketsTrackedByPropertyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTicketsTrackedByProperty, error) // DeserializeToPropertyActivityStreams returns the deserialization method // for the "ActivityStreamsToProperty" non-functional property in the // vocabulary "ActivityStreams" DeserializeToPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsToProperty, error) + // DeserializeTracksTicketsForPropertyForgeFed returns the deserialization + // method for the "ForgeFedTracksTicketsForProperty" non-functional + // property in the vocabulary "ForgeFed" + DeserializeTracksTicketsForPropertyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTracksTicketsForProperty, error) // DeserializeTypePropertyJSONLD returns the deserialization method for // the "JSONLDTypeProperty" non-functional property in the vocabulary // "JSONLD" diff --git a/streams/impl/activitystreams/type_profile/gen_type_activitystreams_profile.go b/streams/impl/activitystreams/type_profile/gen_type_activitystreams_profile.go index a09e2b2..e97304b 100644 --- a/streams/impl/activitystreams/type_profile/gen_type_activitystreams_profile.go +++ b/streams/impl/activitystreams/type_profile/gen_type_activitystreams_profile.go @@ -52,7 +52,10 @@ type ActivityStreamsProfile struct { ActivityStreamsStartTime vocab.ActivityStreamsStartTimeProperty ActivityStreamsSummary vocab.ActivityStreamsSummaryProperty ActivityStreamsTag vocab.ActivityStreamsTagProperty + ForgeFedTeam vocab.ForgeFedTeamProperty + ForgeFedTicketsTrackedBy vocab.ForgeFedTicketsTrackedByProperty ActivityStreamsTo vocab.ActivityStreamsToProperty + ForgeFedTracksTicketsFor vocab.ForgeFedTracksTicketsForProperty JSONLDType vocab.JSONLDTypeProperty ActivityStreamsUpdated vocab.ActivityStreamsUpdatedProperty ActivityStreamsUrl vocab.ActivityStreamsUrlProperty @@ -259,11 +262,26 @@ func DeserializeProfile(m map[string]interface{}, aliasMap map[string]string) (* } else if p != nil { this.ActivityStreamsTag = p } + if p, err := mgr.DeserializeTeamPropertyForgeFed()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ForgeFedTeam = p + } + if p, err := mgr.DeserializeTicketsTrackedByPropertyForgeFed()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ForgeFedTicketsTrackedBy = p + } if p, err := mgr.DeserializeToPropertyActivityStreams()(m, aliasMap); err != nil { return nil, err } else if p != nil { this.ActivityStreamsTo = p } + if p, err := mgr.DeserializeTracksTicketsForPropertyForgeFed()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ForgeFedTracksTicketsFor = p + } if p, err := mgr.DeserializeTypePropertyJSONLD()(m, aliasMap); err != nil { return nil, err } else if p != nil { @@ -350,8 +368,14 @@ func DeserializeProfile(m map[string]interface{}, aliasMap map[string]string) (* continue } else if k == "tag" { continue + } else if k == "team" { + continue + } else if k == "ticketsTrackedBy" { + continue } else if k == "to" { continue + } else if k == "tracksTicketsFor" { + continue } else if k == "type" { continue } else if k == "updated" { @@ -597,6 +621,23 @@ func (this ActivityStreamsProfile) GetActivityStreamsUrl() vocab.ActivityStreams return this.ActivityStreamsUrl } +// GetForgeFedTeam returns the "team" property if it exists, and nil otherwise. +func (this ActivityStreamsProfile) GetForgeFedTeam() vocab.ForgeFedTeamProperty { + return this.ForgeFedTeam +} + +// GetForgeFedTicketsTrackedBy returns the "ticketsTrackedBy" property if it +// exists, and nil otherwise. +func (this ActivityStreamsProfile) GetForgeFedTicketsTrackedBy() vocab.ForgeFedTicketsTrackedByProperty { + return this.ForgeFedTicketsTrackedBy +} + +// GetForgeFedTracksTicketsFor returns the "tracksTicketsFor" property if it +// exists, and nil otherwise. +func (this ActivityStreamsProfile) GetForgeFedTracksTicketsFor() vocab.ForgeFedTracksTicketsForProperty { + return this.ForgeFedTracksTicketsFor +} + // GetJSONLDId returns the "id" property if it exists, and nil otherwise. func (this ActivityStreamsProfile) GetJSONLDId() vocab.JSONLDIdProperty { return this.JSONLDId @@ -662,7 +703,10 @@ func (this ActivityStreamsProfile) JSONLDContext() map[string]string { m = this.helperJSONLDContext(this.ActivityStreamsStartTime, m) m = this.helperJSONLDContext(this.ActivityStreamsSummary, m) m = this.helperJSONLDContext(this.ActivityStreamsTag, m) + m = this.helperJSONLDContext(this.ForgeFedTeam, m) + m = this.helperJSONLDContext(this.ForgeFedTicketsTrackedBy, m) m = this.helperJSONLDContext(this.ActivityStreamsTo, m) + m = this.helperJSONLDContext(this.ForgeFedTracksTicketsFor, m) m = this.helperJSONLDContext(this.JSONLDType, m) m = this.helperJSONLDContext(this.ActivityStreamsUpdated, m) m = this.helperJSONLDContext(this.ActivityStreamsUrl, m) @@ -1094,6 +1138,34 @@ func (this ActivityStreamsProfile) LessThan(o vocab.ActivityStreamsProfile) bool // Anything else is greater than nil return false } // Else: Both are nil + // Compare property "team" + if lhs, rhs := this.ForgeFedTeam, o.GetForgeFedTeam(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "ticketsTrackedBy" + if lhs, rhs := this.ForgeFedTicketsTrackedBy, o.GetForgeFedTicketsTrackedBy(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil // Compare property "to" if lhs, rhs := this.ActivityStreamsTo, o.GetActivityStreamsTo(); lhs != nil && rhs != nil { if lhs.LessThan(rhs) { @@ -1108,6 +1180,20 @@ func (this ActivityStreamsProfile) LessThan(o vocab.ActivityStreamsProfile) bool // Anything else is greater than nil return false } // Else: Both are nil + // Compare property "tracksTicketsFor" + if lhs, rhs := this.ForgeFedTracksTicketsFor, o.GetForgeFedTracksTicketsFor(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil // Compare property "type" if lhs, rhs := this.JSONLDType, o.GetJSONLDType(); lhs != nil && rhs != nil { if lhs.LessThan(rhs) { @@ -1413,6 +1499,22 @@ func (this ActivityStreamsProfile) Serialize() (map[string]interface{}, error) { m[this.ActivityStreamsTag.Name()] = i } } + // Maybe serialize property "team" + if this.ForgeFedTeam != nil { + if i, err := this.ForgeFedTeam.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ForgeFedTeam.Name()] = i + } + } + // Maybe serialize property "ticketsTrackedBy" + if this.ForgeFedTicketsTrackedBy != nil { + if i, err := this.ForgeFedTicketsTrackedBy.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ForgeFedTicketsTrackedBy.Name()] = i + } + } // Maybe serialize property "to" if this.ActivityStreamsTo != nil { if i, err := this.ActivityStreamsTo.Serialize(); err != nil { @@ -1421,6 +1523,14 @@ func (this ActivityStreamsProfile) Serialize() (map[string]interface{}, error) { m[this.ActivityStreamsTo.Name()] = i } } + // Maybe serialize property "tracksTicketsFor" + if this.ForgeFedTracksTicketsFor != nil { + if i, err := this.ForgeFedTracksTicketsFor.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ForgeFedTracksTicketsFor.Name()] = i + } + } // Maybe serialize property "type" if this.JSONLDType != nil { if i, err := this.JSONLDType.Serialize(); err != nil { @@ -1619,6 +1729,21 @@ func (this *ActivityStreamsProfile) SetActivityStreamsUrl(i vocab.ActivityStream this.ActivityStreamsUrl = i } +// SetForgeFedTeam sets the "team" property. +func (this *ActivityStreamsProfile) SetForgeFedTeam(i vocab.ForgeFedTeamProperty) { + this.ForgeFedTeam = i +} + +// SetForgeFedTicketsTrackedBy sets the "ticketsTrackedBy" property. +func (this *ActivityStreamsProfile) SetForgeFedTicketsTrackedBy(i vocab.ForgeFedTicketsTrackedByProperty) { + this.ForgeFedTicketsTrackedBy = i +} + +// SetForgeFedTracksTicketsFor sets the "tracksTicketsFor" property. +func (this *ActivityStreamsProfile) SetForgeFedTracksTicketsFor(i vocab.ForgeFedTracksTicketsForProperty) { + this.ForgeFedTracksTicketsFor = i +} + // SetJSONLDId sets the "id" property. func (this *ActivityStreamsProfile) SetJSONLDId(i vocab.JSONLDIdProperty) { this.JSONLDId = i diff --git a/streams/impl/activitystreams/type_question/gen_pkg.go b/streams/impl/activitystreams/type_question/gen_pkg.go index 8169fa4..ba6d5c8 100644 --- a/streams/impl/activitystreams/type_question/gen_pkg.go +++ b/streams/impl/activitystreams/type_question/gen_pkg.go @@ -156,10 +156,22 @@ type privateManager interface { // method for the "ActivityStreamsTargetProperty" non-functional // property in the vocabulary "ActivityStreams" DeserializeTargetPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTargetProperty, error) + // DeserializeTeamPropertyForgeFed returns the deserialization method for + // the "ForgeFedTeamProperty" non-functional property in the + // vocabulary "ForgeFed" + DeserializeTeamPropertyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTeamProperty, error) + // DeserializeTicketsTrackedByPropertyForgeFed returns the deserialization + // method for the "ForgeFedTicketsTrackedByProperty" non-functional + // property in the vocabulary "ForgeFed" + DeserializeTicketsTrackedByPropertyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTicketsTrackedByProperty, error) // DeserializeToPropertyActivityStreams returns the deserialization method // for the "ActivityStreamsToProperty" non-functional property in the // vocabulary "ActivityStreams" DeserializeToPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsToProperty, error) + // DeserializeTracksTicketsForPropertyForgeFed returns the deserialization + // method for the "ForgeFedTracksTicketsForProperty" non-functional + // property in the vocabulary "ForgeFed" + DeserializeTracksTicketsForPropertyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTracksTicketsForProperty, error) // DeserializeTypePropertyJSONLD returns the deserialization method for // the "JSONLDTypeProperty" non-functional property in the vocabulary // "JSONLD" diff --git a/streams/impl/activitystreams/type_question/gen_type_activitystreams_question.go b/streams/impl/activitystreams/type_question/gen_type_activitystreams_question.go index 001120d..ce697f0 100644 --- a/streams/impl/activitystreams/type_question/gen_type_activitystreams_question.go +++ b/streams/impl/activitystreams/type_question/gen_type_activitystreams_question.go @@ -74,7 +74,10 @@ type ActivityStreamsQuestion struct { ActivityStreamsSummary vocab.ActivityStreamsSummaryProperty ActivityStreamsTag vocab.ActivityStreamsTagProperty ActivityStreamsTarget vocab.ActivityStreamsTargetProperty + ForgeFedTeam vocab.ForgeFedTeamProperty + ForgeFedTicketsTrackedBy vocab.ForgeFedTicketsTrackedByProperty ActivityStreamsTo vocab.ActivityStreamsToProperty + ForgeFedTracksTicketsFor vocab.ForgeFedTracksTicketsForProperty JSONLDType vocab.JSONLDTypeProperty ActivityStreamsUpdated vocab.ActivityStreamsUpdatedProperty ActivityStreamsUrl vocab.ActivityStreamsUrlProperty @@ -312,11 +315,26 @@ func DeserializeQuestion(m map[string]interface{}, aliasMap map[string]string) ( } else if p != nil { this.ActivityStreamsTarget = p } + if p, err := mgr.DeserializeTeamPropertyForgeFed()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ForgeFedTeam = p + } + if p, err := mgr.DeserializeTicketsTrackedByPropertyForgeFed()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ForgeFedTicketsTrackedBy = p + } if p, err := mgr.DeserializeToPropertyActivityStreams()(m, aliasMap); err != nil { return nil, err } else if p != nil { this.ActivityStreamsTo = p } + if p, err := mgr.DeserializeTracksTicketsForPropertyForgeFed()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ForgeFedTracksTicketsFor = p + } if p, err := mgr.DeserializeTypePropertyJSONLD()(m, aliasMap); err != nil { return nil, err } else if p != nil { @@ -420,8 +438,14 @@ func DeserializeQuestion(m map[string]interface{}, aliasMap map[string]string) ( continue } else if k == "target" { continue + } else if k == "team" { + continue + } else if k == "ticketsTrackedBy" { + continue } else if k == "to" { continue + } else if k == "tracksTicketsFor" { + continue } else if k == "type" { continue } else if k == "updated" { @@ -705,6 +729,23 @@ func (this ActivityStreamsQuestion) GetActivityStreamsUrl() vocab.ActivityStream return this.ActivityStreamsUrl } +// GetForgeFedTeam returns the "team" property if it exists, and nil otherwise. +func (this ActivityStreamsQuestion) GetForgeFedTeam() vocab.ForgeFedTeamProperty { + return this.ForgeFedTeam +} + +// GetForgeFedTicketsTrackedBy returns the "ticketsTrackedBy" property if it +// exists, and nil otherwise. +func (this ActivityStreamsQuestion) GetForgeFedTicketsTrackedBy() vocab.ForgeFedTicketsTrackedByProperty { + return this.ForgeFedTicketsTrackedBy +} + +// GetForgeFedTracksTicketsFor returns the "tracksTicketsFor" property if it +// exists, and nil otherwise. +func (this ActivityStreamsQuestion) GetForgeFedTracksTicketsFor() vocab.ForgeFedTracksTicketsForProperty { + return this.ForgeFedTracksTicketsFor +} + // GetJSONLDId returns the "id" property if it exists, and nil otherwise. func (this ActivityStreamsQuestion) GetJSONLDId() vocab.JSONLDIdProperty { return this.JSONLDId @@ -782,7 +823,10 @@ func (this ActivityStreamsQuestion) JSONLDContext() map[string]string { m = this.helperJSONLDContext(this.ActivityStreamsSummary, m) m = this.helperJSONLDContext(this.ActivityStreamsTag, m) m = this.helperJSONLDContext(this.ActivityStreamsTarget, m) + m = this.helperJSONLDContext(this.ForgeFedTeam, m) + m = this.helperJSONLDContext(this.ForgeFedTicketsTrackedBy, m) m = this.helperJSONLDContext(this.ActivityStreamsTo, m) + m = this.helperJSONLDContext(this.ForgeFedTracksTicketsFor, m) m = this.helperJSONLDContext(this.JSONLDType, m) m = this.helperJSONLDContext(this.ActivityStreamsUpdated, m) m = this.helperJSONLDContext(this.ActivityStreamsUrl, m) @@ -1299,6 +1343,34 @@ func (this ActivityStreamsQuestion) LessThan(o vocab.ActivityStreamsQuestion) bo // Anything else is greater than nil return false } // Else: Both are nil + // Compare property "team" + if lhs, rhs := this.ForgeFedTeam, o.GetForgeFedTeam(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "ticketsTrackedBy" + if lhs, rhs := this.ForgeFedTicketsTrackedBy, o.GetForgeFedTicketsTrackedBy(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil // Compare property "to" if lhs, rhs := this.ActivityStreamsTo, o.GetActivityStreamsTo(); lhs != nil && rhs != nil { if lhs.LessThan(rhs) { @@ -1313,6 +1385,20 @@ func (this ActivityStreamsQuestion) LessThan(o vocab.ActivityStreamsQuestion) bo // Anything else is greater than nil return false } // Else: Both are nil + // Compare property "tracksTicketsFor" + if lhs, rhs := this.ForgeFedTracksTicketsFor, o.GetForgeFedTracksTicketsFor(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil // Compare property "type" if lhs, rhs := this.JSONLDType, o.GetJSONLDType(); lhs != nil && rhs != nil { if lhs.LessThan(rhs) { @@ -1680,6 +1766,22 @@ func (this ActivityStreamsQuestion) Serialize() (map[string]interface{}, error) m[this.ActivityStreamsTarget.Name()] = i } } + // Maybe serialize property "team" + if this.ForgeFedTeam != nil { + if i, err := this.ForgeFedTeam.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ForgeFedTeam.Name()] = i + } + } + // Maybe serialize property "ticketsTrackedBy" + if this.ForgeFedTicketsTrackedBy != nil { + if i, err := this.ForgeFedTicketsTrackedBy.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ForgeFedTicketsTrackedBy.Name()] = i + } + } // Maybe serialize property "to" if this.ActivityStreamsTo != nil { if i, err := this.ActivityStreamsTo.Serialize(); err != nil { @@ -1688,6 +1790,14 @@ func (this ActivityStreamsQuestion) Serialize() (map[string]interface{}, error) m[this.ActivityStreamsTo.Name()] = i } } + // Maybe serialize property "tracksTicketsFor" + if this.ForgeFedTracksTicketsFor != nil { + if i, err := this.ForgeFedTracksTicketsFor.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ForgeFedTracksTicketsFor.Name()] = i + } + } // Maybe serialize property "type" if this.JSONLDType != nil { if i, err := this.JSONLDType.Serialize(); err != nil { @@ -1924,6 +2034,21 @@ func (this *ActivityStreamsQuestion) SetActivityStreamsUrl(i vocab.ActivityStrea this.ActivityStreamsUrl = i } +// SetForgeFedTeam sets the "team" property. +func (this *ActivityStreamsQuestion) SetForgeFedTeam(i vocab.ForgeFedTeamProperty) { + this.ForgeFedTeam = i +} + +// SetForgeFedTicketsTrackedBy sets the "ticketsTrackedBy" property. +func (this *ActivityStreamsQuestion) SetForgeFedTicketsTrackedBy(i vocab.ForgeFedTicketsTrackedByProperty) { + this.ForgeFedTicketsTrackedBy = i +} + +// SetForgeFedTracksTicketsFor sets the "tracksTicketsFor" property. +func (this *ActivityStreamsQuestion) SetForgeFedTracksTicketsFor(i vocab.ForgeFedTracksTicketsForProperty) { + this.ForgeFedTracksTicketsFor = i +} + // SetJSONLDId sets the "id" property. func (this *ActivityStreamsQuestion) SetJSONLDId(i vocab.JSONLDIdProperty) { this.JSONLDId = i diff --git a/streams/impl/activitystreams/type_read/gen_pkg.go b/streams/impl/activitystreams/type_read/gen_pkg.go index 08bbf5f..d40fcee 100644 --- a/streams/impl/activitystreams/type_read/gen_pkg.go +++ b/streams/impl/activitystreams/type_read/gen_pkg.go @@ -148,10 +148,22 @@ type privateManager interface { // method for the "ActivityStreamsTargetProperty" non-functional // property in the vocabulary "ActivityStreams" DeserializeTargetPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTargetProperty, error) + // DeserializeTeamPropertyForgeFed returns the deserialization method for + // the "ForgeFedTeamProperty" non-functional property in the + // vocabulary "ForgeFed" + DeserializeTeamPropertyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTeamProperty, error) + // DeserializeTicketsTrackedByPropertyForgeFed returns the deserialization + // method for the "ForgeFedTicketsTrackedByProperty" non-functional + // property in the vocabulary "ForgeFed" + DeserializeTicketsTrackedByPropertyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTicketsTrackedByProperty, error) // DeserializeToPropertyActivityStreams returns the deserialization method // for the "ActivityStreamsToProperty" non-functional property in the // vocabulary "ActivityStreams" DeserializeToPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsToProperty, error) + // DeserializeTracksTicketsForPropertyForgeFed returns the deserialization + // method for the "ForgeFedTracksTicketsForProperty" non-functional + // property in the vocabulary "ForgeFed" + DeserializeTracksTicketsForPropertyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTracksTicketsForProperty, error) // DeserializeTypePropertyJSONLD returns the deserialization method for // the "JSONLDTypeProperty" non-functional property in the vocabulary // "JSONLD" diff --git a/streams/impl/activitystreams/type_read/gen_type_activitystreams_read.go b/streams/impl/activitystreams/type_read/gen_type_activitystreams_read.go index 2d642c1..1798c11 100644 --- a/streams/impl/activitystreams/type_read/gen_type_activitystreams_read.go +++ b/streams/impl/activitystreams/type_read/gen_type_activitystreams_read.go @@ -55,7 +55,10 @@ type ActivityStreamsRead struct { ActivityStreamsSummary vocab.ActivityStreamsSummaryProperty ActivityStreamsTag vocab.ActivityStreamsTagProperty ActivityStreamsTarget vocab.ActivityStreamsTargetProperty + ForgeFedTeam vocab.ForgeFedTeamProperty + ForgeFedTicketsTrackedBy vocab.ForgeFedTicketsTrackedByProperty ActivityStreamsTo vocab.ActivityStreamsToProperty + ForgeFedTracksTicketsFor vocab.ForgeFedTracksTicketsForProperty JSONLDType vocab.JSONLDTypeProperty ActivityStreamsUpdated vocab.ActivityStreamsUpdatedProperty ActivityStreamsUrl vocab.ActivityStreamsUrlProperty @@ -282,11 +285,26 @@ func DeserializeRead(m map[string]interface{}, aliasMap map[string]string) (*Act } else if p != nil { this.ActivityStreamsTarget = p } + if p, err := mgr.DeserializeTeamPropertyForgeFed()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ForgeFedTeam = p + } + if p, err := mgr.DeserializeTicketsTrackedByPropertyForgeFed()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ForgeFedTicketsTrackedBy = p + } if p, err := mgr.DeserializeToPropertyActivityStreams()(m, aliasMap); err != nil { return nil, err } else if p != nil { this.ActivityStreamsTo = p } + if p, err := mgr.DeserializeTracksTicketsForPropertyForgeFed()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ForgeFedTracksTicketsFor = p + } if p, err := mgr.DeserializeTypePropertyJSONLD()(m, aliasMap); err != nil { return nil, err } else if p != nil { @@ -381,8 +399,14 @@ func DeserializeRead(m map[string]interface{}, aliasMap map[string]string) (*Act continue } else if k == "target" { continue + } else if k == "team" { + continue + } else if k == "ticketsTrackedBy" { + continue } else if k == "to" { continue + } else if k == "tracksTicketsFor" { + continue } else if k == "type" { continue } else if k == "updated" { @@ -652,6 +676,23 @@ func (this ActivityStreamsRead) GetActivityStreamsUrl() vocab.ActivityStreamsUrl return this.ActivityStreamsUrl } +// GetForgeFedTeam returns the "team" property if it exists, and nil otherwise. +func (this ActivityStreamsRead) GetForgeFedTeam() vocab.ForgeFedTeamProperty { + return this.ForgeFedTeam +} + +// GetForgeFedTicketsTrackedBy returns the "ticketsTrackedBy" property if it +// exists, and nil otherwise. +func (this ActivityStreamsRead) GetForgeFedTicketsTrackedBy() vocab.ForgeFedTicketsTrackedByProperty { + return this.ForgeFedTicketsTrackedBy +} + +// GetForgeFedTracksTicketsFor returns the "tracksTicketsFor" property if it +// exists, and nil otherwise. +func (this ActivityStreamsRead) GetForgeFedTracksTicketsFor() vocab.ForgeFedTracksTicketsForProperty { + return this.ForgeFedTracksTicketsFor +} + // GetJSONLDId returns the "id" property if it exists, and nil otherwise. func (this ActivityStreamsRead) GetJSONLDId() vocab.JSONLDIdProperty { return this.JSONLDId @@ -721,7 +762,10 @@ func (this ActivityStreamsRead) JSONLDContext() map[string]string { m = this.helperJSONLDContext(this.ActivityStreamsSummary, m) m = this.helperJSONLDContext(this.ActivityStreamsTag, m) m = this.helperJSONLDContext(this.ActivityStreamsTarget, m) + m = this.helperJSONLDContext(this.ForgeFedTeam, m) + m = this.helperJSONLDContext(this.ForgeFedTicketsTrackedBy, m) m = this.helperJSONLDContext(this.ActivityStreamsTo, m) + m = this.helperJSONLDContext(this.ForgeFedTracksTicketsFor, m) m = this.helperJSONLDContext(this.JSONLDType, m) m = this.helperJSONLDContext(this.ActivityStreamsUpdated, m) m = this.helperJSONLDContext(this.ActivityStreamsUrl, m) @@ -1209,6 +1253,34 @@ func (this ActivityStreamsRead) LessThan(o vocab.ActivityStreamsRead) bool { // Anything else is greater than nil return false } // Else: Both are nil + // Compare property "team" + if lhs, rhs := this.ForgeFedTeam, o.GetForgeFedTeam(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "ticketsTrackedBy" + if lhs, rhs := this.ForgeFedTicketsTrackedBy, o.GetForgeFedTicketsTrackedBy(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil // Compare property "to" if lhs, rhs := this.ActivityStreamsTo, o.GetActivityStreamsTo(); lhs != nil && rhs != nil { if lhs.LessThan(rhs) { @@ -1223,6 +1295,20 @@ func (this ActivityStreamsRead) LessThan(o vocab.ActivityStreamsRead) bool { // Anything else is greater than nil return false } // Else: Both are nil + // Compare property "tracksTicketsFor" + if lhs, rhs := this.ForgeFedTracksTicketsFor, o.GetForgeFedTracksTicketsFor(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil // Compare property "type" if lhs, rhs := this.JSONLDType, o.GetJSONLDType(); lhs != nil && rhs != nil { if lhs.LessThan(rhs) { @@ -1560,6 +1646,22 @@ func (this ActivityStreamsRead) Serialize() (map[string]interface{}, error) { m[this.ActivityStreamsTarget.Name()] = i } } + // Maybe serialize property "team" + if this.ForgeFedTeam != nil { + if i, err := this.ForgeFedTeam.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ForgeFedTeam.Name()] = i + } + } + // Maybe serialize property "ticketsTrackedBy" + if this.ForgeFedTicketsTrackedBy != nil { + if i, err := this.ForgeFedTicketsTrackedBy.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ForgeFedTicketsTrackedBy.Name()] = i + } + } // Maybe serialize property "to" if this.ActivityStreamsTo != nil { if i, err := this.ActivityStreamsTo.Serialize(); err != nil { @@ -1568,6 +1670,14 @@ func (this ActivityStreamsRead) Serialize() (map[string]interface{}, error) { m[this.ActivityStreamsTo.Name()] = i } } + // Maybe serialize property "tracksTicketsFor" + if this.ForgeFedTracksTicketsFor != nil { + if i, err := this.ForgeFedTracksTicketsFor.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ForgeFedTracksTicketsFor.Name()] = i + } + } // Maybe serialize property "type" if this.JSONLDType != nil { if i, err := this.JSONLDType.Serialize(); err != nil { @@ -1786,6 +1896,21 @@ func (this *ActivityStreamsRead) SetActivityStreamsUrl(i vocab.ActivityStreamsUr this.ActivityStreamsUrl = i } +// SetForgeFedTeam sets the "team" property. +func (this *ActivityStreamsRead) SetForgeFedTeam(i vocab.ForgeFedTeamProperty) { + this.ForgeFedTeam = i +} + +// SetForgeFedTicketsTrackedBy sets the "ticketsTrackedBy" property. +func (this *ActivityStreamsRead) SetForgeFedTicketsTrackedBy(i vocab.ForgeFedTicketsTrackedByProperty) { + this.ForgeFedTicketsTrackedBy = i +} + +// SetForgeFedTracksTicketsFor sets the "tracksTicketsFor" property. +func (this *ActivityStreamsRead) SetForgeFedTracksTicketsFor(i vocab.ForgeFedTracksTicketsForProperty) { + this.ForgeFedTracksTicketsFor = i +} + // SetJSONLDId sets the "id" property. func (this *ActivityStreamsRead) SetJSONLDId(i vocab.JSONLDIdProperty) { this.JSONLDId = i diff --git a/streams/impl/activitystreams/type_reject/gen_pkg.go b/streams/impl/activitystreams/type_reject/gen_pkg.go index 65a3ffa..ac028f0 100644 --- a/streams/impl/activitystreams/type_reject/gen_pkg.go +++ b/streams/impl/activitystreams/type_reject/gen_pkg.go @@ -148,10 +148,22 @@ type privateManager interface { // method for the "ActivityStreamsTargetProperty" non-functional // property in the vocabulary "ActivityStreams" DeserializeTargetPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTargetProperty, error) + // DeserializeTeamPropertyForgeFed returns the deserialization method for + // the "ForgeFedTeamProperty" non-functional property in the + // vocabulary "ForgeFed" + DeserializeTeamPropertyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTeamProperty, error) + // DeserializeTicketsTrackedByPropertyForgeFed returns the deserialization + // method for the "ForgeFedTicketsTrackedByProperty" non-functional + // property in the vocabulary "ForgeFed" + DeserializeTicketsTrackedByPropertyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTicketsTrackedByProperty, error) // DeserializeToPropertyActivityStreams returns the deserialization method // for the "ActivityStreamsToProperty" non-functional property in the // vocabulary "ActivityStreams" DeserializeToPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsToProperty, error) + // DeserializeTracksTicketsForPropertyForgeFed returns the deserialization + // method for the "ForgeFedTracksTicketsForProperty" non-functional + // property in the vocabulary "ForgeFed" + DeserializeTracksTicketsForPropertyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTracksTicketsForProperty, error) // DeserializeTypePropertyJSONLD returns the deserialization method for // the "JSONLDTypeProperty" non-functional property in the vocabulary // "JSONLD" diff --git a/streams/impl/activitystreams/type_reject/gen_type_activitystreams_reject.go b/streams/impl/activitystreams/type_reject/gen_type_activitystreams_reject.go index 6399634..6e91d0a 100644 --- a/streams/impl/activitystreams/type_reject/gen_type_activitystreams_reject.go +++ b/streams/impl/activitystreams/type_reject/gen_type_activitystreams_reject.go @@ -63,7 +63,10 @@ type ActivityStreamsReject struct { ActivityStreamsSummary vocab.ActivityStreamsSummaryProperty ActivityStreamsTag vocab.ActivityStreamsTagProperty ActivityStreamsTarget vocab.ActivityStreamsTargetProperty + ForgeFedTeam vocab.ForgeFedTeamProperty + ForgeFedTicketsTrackedBy vocab.ForgeFedTicketsTrackedByProperty ActivityStreamsTo vocab.ActivityStreamsToProperty + ForgeFedTracksTicketsFor vocab.ForgeFedTracksTicketsForProperty JSONLDType vocab.JSONLDTypeProperty ActivityStreamsUpdated vocab.ActivityStreamsUpdatedProperty ActivityStreamsUrl vocab.ActivityStreamsUrlProperty @@ -290,11 +293,26 @@ func DeserializeReject(m map[string]interface{}, aliasMap map[string]string) (*A } else if p != nil { this.ActivityStreamsTarget = p } + if p, err := mgr.DeserializeTeamPropertyForgeFed()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ForgeFedTeam = p + } + if p, err := mgr.DeserializeTicketsTrackedByPropertyForgeFed()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ForgeFedTicketsTrackedBy = p + } if p, err := mgr.DeserializeToPropertyActivityStreams()(m, aliasMap); err != nil { return nil, err } else if p != nil { this.ActivityStreamsTo = p } + if p, err := mgr.DeserializeTracksTicketsForPropertyForgeFed()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ForgeFedTracksTicketsFor = p + } if p, err := mgr.DeserializeTypePropertyJSONLD()(m, aliasMap); err != nil { return nil, err } else if p != nil { @@ -389,8 +407,14 @@ func DeserializeReject(m map[string]interface{}, aliasMap map[string]string) (*A continue } else if k == "target" { continue + } else if k == "team" { + continue + } else if k == "ticketsTrackedBy" { + continue } else if k == "to" { continue + } else if k == "tracksTicketsFor" { + continue } else if k == "type" { continue } else if k == "updated" { @@ -665,6 +689,23 @@ func (this ActivityStreamsReject) GetActivityStreamsUrl() vocab.ActivityStreamsU return this.ActivityStreamsUrl } +// GetForgeFedTeam returns the "team" property if it exists, and nil otherwise. +func (this ActivityStreamsReject) GetForgeFedTeam() vocab.ForgeFedTeamProperty { + return this.ForgeFedTeam +} + +// GetForgeFedTicketsTrackedBy returns the "ticketsTrackedBy" property if it +// exists, and nil otherwise. +func (this ActivityStreamsReject) GetForgeFedTicketsTrackedBy() vocab.ForgeFedTicketsTrackedByProperty { + return this.ForgeFedTicketsTrackedBy +} + +// GetForgeFedTracksTicketsFor returns the "tracksTicketsFor" property if it +// exists, and nil otherwise. +func (this ActivityStreamsReject) GetForgeFedTracksTicketsFor() vocab.ForgeFedTracksTicketsForProperty { + return this.ForgeFedTracksTicketsFor +} + // GetJSONLDId returns the "id" property if it exists, and nil otherwise. func (this ActivityStreamsReject) GetJSONLDId() vocab.JSONLDIdProperty { return this.JSONLDId @@ -734,7 +775,10 @@ func (this ActivityStreamsReject) JSONLDContext() map[string]string { m = this.helperJSONLDContext(this.ActivityStreamsSummary, m) m = this.helperJSONLDContext(this.ActivityStreamsTag, m) m = this.helperJSONLDContext(this.ActivityStreamsTarget, m) + m = this.helperJSONLDContext(this.ForgeFedTeam, m) + m = this.helperJSONLDContext(this.ForgeFedTicketsTrackedBy, m) m = this.helperJSONLDContext(this.ActivityStreamsTo, m) + m = this.helperJSONLDContext(this.ForgeFedTracksTicketsFor, m) m = this.helperJSONLDContext(this.JSONLDType, m) m = this.helperJSONLDContext(this.ActivityStreamsUpdated, m) m = this.helperJSONLDContext(this.ActivityStreamsUrl, m) @@ -1222,6 +1266,34 @@ func (this ActivityStreamsReject) LessThan(o vocab.ActivityStreamsReject) bool { // Anything else is greater than nil return false } // Else: Both are nil + // Compare property "team" + if lhs, rhs := this.ForgeFedTeam, o.GetForgeFedTeam(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "ticketsTrackedBy" + if lhs, rhs := this.ForgeFedTicketsTrackedBy, o.GetForgeFedTicketsTrackedBy(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil // Compare property "to" if lhs, rhs := this.ActivityStreamsTo, o.GetActivityStreamsTo(); lhs != nil && rhs != nil { if lhs.LessThan(rhs) { @@ -1236,6 +1308,20 @@ func (this ActivityStreamsReject) LessThan(o vocab.ActivityStreamsReject) bool { // Anything else is greater than nil return false } // Else: Both are nil + // Compare property "tracksTicketsFor" + if lhs, rhs := this.ForgeFedTracksTicketsFor, o.GetForgeFedTracksTicketsFor(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil // Compare property "type" if lhs, rhs := this.JSONLDType, o.GetJSONLDType(); lhs != nil && rhs != nil { if lhs.LessThan(rhs) { @@ -1573,6 +1659,22 @@ func (this ActivityStreamsReject) Serialize() (map[string]interface{}, error) { m[this.ActivityStreamsTarget.Name()] = i } } + // Maybe serialize property "team" + if this.ForgeFedTeam != nil { + if i, err := this.ForgeFedTeam.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ForgeFedTeam.Name()] = i + } + } + // Maybe serialize property "ticketsTrackedBy" + if this.ForgeFedTicketsTrackedBy != nil { + if i, err := this.ForgeFedTicketsTrackedBy.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ForgeFedTicketsTrackedBy.Name()] = i + } + } // Maybe serialize property "to" if this.ActivityStreamsTo != nil { if i, err := this.ActivityStreamsTo.Serialize(); err != nil { @@ -1581,6 +1683,14 @@ func (this ActivityStreamsReject) Serialize() (map[string]interface{}, error) { m[this.ActivityStreamsTo.Name()] = i } } + // Maybe serialize property "tracksTicketsFor" + if this.ForgeFedTracksTicketsFor != nil { + if i, err := this.ForgeFedTracksTicketsFor.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ForgeFedTracksTicketsFor.Name()] = i + } + } // Maybe serialize property "type" if this.JSONLDType != nil { if i, err := this.JSONLDType.Serialize(); err != nil { @@ -1799,6 +1909,21 @@ func (this *ActivityStreamsReject) SetActivityStreamsUrl(i vocab.ActivityStreams this.ActivityStreamsUrl = i } +// SetForgeFedTeam sets the "team" property. +func (this *ActivityStreamsReject) SetForgeFedTeam(i vocab.ForgeFedTeamProperty) { + this.ForgeFedTeam = i +} + +// SetForgeFedTicketsTrackedBy sets the "ticketsTrackedBy" property. +func (this *ActivityStreamsReject) SetForgeFedTicketsTrackedBy(i vocab.ForgeFedTicketsTrackedByProperty) { + this.ForgeFedTicketsTrackedBy = i +} + +// SetForgeFedTracksTicketsFor sets the "tracksTicketsFor" property. +func (this *ActivityStreamsReject) SetForgeFedTracksTicketsFor(i vocab.ForgeFedTracksTicketsForProperty) { + this.ForgeFedTracksTicketsFor = i +} + // SetJSONLDId sets the "id" property. func (this *ActivityStreamsReject) SetJSONLDId(i vocab.JSONLDIdProperty) { this.JSONLDId = i diff --git a/streams/impl/activitystreams/type_relationship/gen_pkg.go b/streams/impl/activitystreams/type_relationship/gen_pkg.go index 98cf129..de79ecc 100644 --- a/streams/impl/activitystreams/type_relationship/gen_pkg.go +++ b/streams/impl/activitystreams/type_relationship/gen_pkg.go @@ -137,10 +137,22 @@ type privateManager interface { // method for the "ActivityStreamsTagProperty" non-functional property // in the vocabulary "ActivityStreams" DeserializeTagPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTagProperty, error) + // DeserializeTeamPropertyForgeFed returns the deserialization method for + // the "ForgeFedTeamProperty" non-functional property in the + // vocabulary "ForgeFed" + DeserializeTeamPropertyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTeamProperty, error) + // DeserializeTicketsTrackedByPropertyForgeFed returns the deserialization + // method for the "ForgeFedTicketsTrackedByProperty" non-functional + // property in the vocabulary "ForgeFed" + DeserializeTicketsTrackedByPropertyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTicketsTrackedByProperty, error) // DeserializeToPropertyActivityStreams returns the deserialization method // for the "ActivityStreamsToProperty" non-functional property in the // vocabulary "ActivityStreams" DeserializeToPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsToProperty, error) + // DeserializeTracksTicketsForPropertyForgeFed returns the deserialization + // method for the "ForgeFedTracksTicketsForProperty" non-functional + // property in the vocabulary "ForgeFed" + DeserializeTracksTicketsForPropertyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTracksTicketsForProperty, error) // DeserializeTypePropertyJSONLD returns the deserialization method for // the "JSONLDTypeProperty" non-functional property in the vocabulary // "JSONLD" diff --git a/streams/impl/activitystreams/type_relationship/gen_type_activitystreams_relationship.go b/streams/impl/activitystreams/type_relationship/gen_type_activitystreams_relationship.go index 9c5ee0e..b706967 100644 --- a/streams/impl/activitystreams/type_relationship/gen_type_activitystreams_relationship.go +++ b/streams/impl/activitystreams/type_relationship/gen_type_activitystreams_relationship.go @@ -58,7 +58,10 @@ type ActivityStreamsRelationship struct { ActivityStreamsSubject vocab.ActivityStreamsSubjectProperty ActivityStreamsSummary vocab.ActivityStreamsSummaryProperty ActivityStreamsTag vocab.ActivityStreamsTagProperty + ForgeFedTeam vocab.ForgeFedTeamProperty + ForgeFedTicketsTrackedBy vocab.ForgeFedTicketsTrackedByProperty ActivityStreamsTo vocab.ActivityStreamsToProperty + ForgeFedTracksTicketsFor vocab.ForgeFedTracksTicketsForProperty JSONLDType vocab.JSONLDTypeProperty ActivityStreamsUpdated vocab.ActivityStreamsUpdatedProperty ActivityStreamsUrl vocab.ActivityStreamsUrlProperty @@ -270,11 +273,26 @@ func DeserializeRelationship(m map[string]interface{}, aliasMap map[string]strin } else if p != nil { this.ActivityStreamsTag = p } + if p, err := mgr.DeserializeTeamPropertyForgeFed()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ForgeFedTeam = p + } + if p, err := mgr.DeserializeTicketsTrackedByPropertyForgeFed()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ForgeFedTicketsTrackedBy = p + } if p, err := mgr.DeserializeToPropertyActivityStreams()(m, aliasMap); err != nil { return nil, err } else if p != nil { this.ActivityStreamsTo = p } + if p, err := mgr.DeserializeTracksTicketsForPropertyForgeFed()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ForgeFedTracksTicketsFor = p + } if p, err := mgr.DeserializeTypePropertyJSONLD()(m, aliasMap); err != nil { return nil, err } else if p != nil { @@ -363,8 +381,14 @@ func DeserializeRelationship(m map[string]interface{}, aliasMap map[string]strin continue } else if k == "tag" { continue + } else if k == "team" { + continue + } else if k == "ticketsTrackedBy" { + continue } else if k == "to" { continue + } else if k == "tracksTicketsFor" { + continue } else if k == "type" { continue } else if k == "updated" { @@ -416,7 +440,12 @@ func RelationshipIsDisjointWith(other vocab.Type) bool { // the Relationship type. Note that it returns false if the types are the // same; see the "IsOrExtendsRelationship" variant instead. func RelationshipIsExtendedBy(other vocab.Type) bool { - // Shortcut implementation: is not extended by anything. + extensions := []string{"TicketDependency"} + for _, ext := range extensions { + if ext == other.GetTypeName() { + return true + } + } return false } @@ -616,6 +645,23 @@ func (this ActivityStreamsRelationship) GetActivityStreamsUrl() vocab.ActivitySt return this.ActivityStreamsUrl } +// GetForgeFedTeam returns the "team" property if it exists, and nil otherwise. +func (this ActivityStreamsRelationship) GetForgeFedTeam() vocab.ForgeFedTeamProperty { + return this.ForgeFedTeam +} + +// GetForgeFedTicketsTrackedBy returns the "ticketsTrackedBy" property if it +// exists, and nil otherwise. +func (this ActivityStreamsRelationship) GetForgeFedTicketsTrackedBy() vocab.ForgeFedTicketsTrackedByProperty { + return this.ForgeFedTicketsTrackedBy +} + +// GetForgeFedTracksTicketsFor returns the "tracksTicketsFor" property if it +// exists, and nil otherwise. +func (this ActivityStreamsRelationship) GetForgeFedTracksTicketsFor() vocab.ForgeFedTracksTicketsForProperty { + return this.ForgeFedTracksTicketsFor +} + // GetJSONLDId returns the "id" property if it exists, and nil otherwise. func (this ActivityStreamsRelationship) GetJSONLDId() vocab.JSONLDIdProperty { return this.JSONLDId @@ -682,7 +728,10 @@ func (this ActivityStreamsRelationship) JSONLDContext() map[string]string { m = this.helperJSONLDContext(this.ActivityStreamsSubject, m) m = this.helperJSONLDContext(this.ActivityStreamsSummary, m) m = this.helperJSONLDContext(this.ActivityStreamsTag, m) + m = this.helperJSONLDContext(this.ForgeFedTeam, m) + m = this.helperJSONLDContext(this.ForgeFedTicketsTrackedBy, m) m = this.helperJSONLDContext(this.ActivityStreamsTo, m) + m = this.helperJSONLDContext(this.ForgeFedTracksTicketsFor, m) m = this.helperJSONLDContext(this.JSONLDType, m) m = this.helperJSONLDContext(this.ActivityStreamsUpdated, m) m = this.helperJSONLDContext(this.ActivityStreamsUrl, m) @@ -1128,6 +1177,34 @@ func (this ActivityStreamsRelationship) LessThan(o vocab.ActivityStreamsRelation // Anything else is greater than nil return false } // Else: Both are nil + // Compare property "team" + if lhs, rhs := this.ForgeFedTeam, o.GetForgeFedTeam(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "ticketsTrackedBy" + if lhs, rhs := this.ForgeFedTicketsTrackedBy, o.GetForgeFedTicketsTrackedBy(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil // Compare property "to" if lhs, rhs := this.ActivityStreamsTo, o.GetActivityStreamsTo(); lhs != nil && rhs != nil { if lhs.LessThan(rhs) { @@ -1142,6 +1219,20 @@ func (this ActivityStreamsRelationship) LessThan(o vocab.ActivityStreamsRelation // Anything else is greater than nil return false } // Else: Both are nil + // Compare property "tracksTicketsFor" + if lhs, rhs := this.ForgeFedTracksTicketsFor, o.GetForgeFedTracksTicketsFor(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil // Compare property "type" if lhs, rhs := this.JSONLDType, o.GetJSONLDType(); lhs != nil && rhs != nil { if lhs.LessThan(rhs) { @@ -1455,6 +1546,22 @@ func (this ActivityStreamsRelationship) Serialize() (map[string]interface{}, err m[this.ActivityStreamsTag.Name()] = i } } + // Maybe serialize property "team" + if this.ForgeFedTeam != nil { + if i, err := this.ForgeFedTeam.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ForgeFedTeam.Name()] = i + } + } + // Maybe serialize property "ticketsTrackedBy" + if this.ForgeFedTicketsTrackedBy != nil { + if i, err := this.ForgeFedTicketsTrackedBy.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ForgeFedTicketsTrackedBy.Name()] = i + } + } // Maybe serialize property "to" if this.ActivityStreamsTo != nil { if i, err := this.ActivityStreamsTo.Serialize(); err != nil { @@ -1463,6 +1570,14 @@ func (this ActivityStreamsRelationship) Serialize() (map[string]interface{}, err m[this.ActivityStreamsTo.Name()] = i } } + // Maybe serialize property "tracksTicketsFor" + if this.ForgeFedTracksTicketsFor != nil { + if i, err := this.ForgeFedTracksTicketsFor.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ForgeFedTracksTicketsFor.Name()] = i + } + } // Maybe serialize property "type" if this.JSONLDType != nil { if i, err := this.JSONLDType.Serialize(); err != nil { @@ -1666,6 +1781,21 @@ func (this *ActivityStreamsRelationship) SetActivityStreamsUrl(i vocab.ActivityS this.ActivityStreamsUrl = i } +// SetForgeFedTeam sets the "team" property. +func (this *ActivityStreamsRelationship) SetForgeFedTeam(i vocab.ForgeFedTeamProperty) { + this.ForgeFedTeam = i +} + +// SetForgeFedTicketsTrackedBy sets the "ticketsTrackedBy" property. +func (this *ActivityStreamsRelationship) SetForgeFedTicketsTrackedBy(i vocab.ForgeFedTicketsTrackedByProperty) { + this.ForgeFedTicketsTrackedBy = i +} + +// SetForgeFedTracksTicketsFor sets the "tracksTicketsFor" property. +func (this *ActivityStreamsRelationship) SetForgeFedTracksTicketsFor(i vocab.ForgeFedTracksTicketsForProperty) { + this.ForgeFedTracksTicketsFor = i +} + // SetJSONLDId sets the "id" property. func (this *ActivityStreamsRelationship) SetJSONLDId(i vocab.JSONLDIdProperty) { this.JSONLDId = i diff --git a/streams/impl/activitystreams/type_remove/gen_pkg.go b/streams/impl/activitystreams/type_remove/gen_pkg.go index 5d8e1ad..db9bfc6 100644 --- a/streams/impl/activitystreams/type_remove/gen_pkg.go +++ b/streams/impl/activitystreams/type_remove/gen_pkg.go @@ -148,10 +148,22 @@ type privateManager interface { // method for the "ActivityStreamsTargetProperty" non-functional // property in the vocabulary "ActivityStreams" DeserializeTargetPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTargetProperty, error) + // DeserializeTeamPropertyForgeFed returns the deserialization method for + // the "ForgeFedTeamProperty" non-functional property in the + // vocabulary "ForgeFed" + DeserializeTeamPropertyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTeamProperty, error) + // DeserializeTicketsTrackedByPropertyForgeFed returns the deserialization + // method for the "ForgeFedTicketsTrackedByProperty" non-functional + // property in the vocabulary "ForgeFed" + DeserializeTicketsTrackedByPropertyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTicketsTrackedByProperty, error) // DeserializeToPropertyActivityStreams returns the deserialization method // for the "ActivityStreamsToProperty" non-functional property in the // vocabulary "ActivityStreams" DeserializeToPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsToProperty, error) + // DeserializeTracksTicketsForPropertyForgeFed returns the deserialization + // method for the "ForgeFedTracksTicketsForProperty" non-functional + // property in the vocabulary "ForgeFed" + DeserializeTracksTicketsForPropertyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTracksTicketsForProperty, error) // DeserializeTypePropertyJSONLD returns the deserialization method for // the "JSONLDTypeProperty" non-functional property in the vocabulary // "JSONLD" diff --git a/streams/impl/activitystreams/type_remove/gen_type_activitystreams_remove.go b/streams/impl/activitystreams/type_remove/gen_type_activitystreams_remove.go index 4adba35..cb97333 100644 --- a/streams/impl/activitystreams/type_remove/gen_type_activitystreams_remove.go +++ b/streams/impl/activitystreams/type_remove/gen_type_activitystreams_remove.go @@ -78,7 +78,10 @@ type ActivityStreamsRemove struct { ActivityStreamsSummary vocab.ActivityStreamsSummaryProperty ActivityStreamsTag vocab.ActivityStreamsTagProperty ActivityStreamsTarget vocab.ActivityStreamsTargetProperty + ForgeFedTeam vocab.ForgeFedTeamProperty + ForgeFedTicketsTrackedBy vocab.ForgeFedTicketsTrackedByProperty ActivityStreamsTo vocab.ActivityStreamsToProperty + ForgeFedTracksTicketsFor vocab.ForgeFedTracksTicketsForProperty JSONLDType vocab.JSONLDTypeProperty ActivityStreamsUpdated vocab.ActivityStreamsUpdatedProperty ActivityStreamsUrl vocab.ActivityStreamsUrlProperty @@ -305,11 +308,26 @@ func DeserializeRemove(m map[string]interface{}, aliasMap map[string]string) (*A } else if p != nil { this.ActivityStreamsTarget = p } + if p, err := mgr.DeserializeTeamPropertyForgeFed()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ForgeFedTeam = p + } + if p, err := mgr.DeserializeTicketsTrackedByPropertyForgeFed()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ForgeFedTicketsTrackedBy = p + } if p, err := mgr.DeserializeToPropertyActivityStreams()(m, aliasMap); err != nil { return nil, err } else if p != nil { this.ActivityStreamsTo = p } + if p, err := mgr.DeserializeTracksTicketsForPropertyForgeFed()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ForgeFedTracksTicketsFor = p + } if p, err := mgr.DeserializeTypePropertyJSONLD()(m, aliasMap); err != nil { return nil, err } else if p != nil { @@ -404,8 +422,14 @@ func DeserializeRemove(m map[string]interface{}, aliasMap map[string]string) (*A continue } else if k == "target" { continue + } else if k == "team" { + continue + } else if k == "ticketsTrackedBy" { + continue } else if k == "to" { continue + } else if k == "tracksTicketsFor" { + continue } else if k == "type" { continue } else if k == "updated" { @@ -675,6 +699,23 @@ func (this ActivityStreamsRemove) GetActivityStreamsUrl() vocab.ActivityStreamsU return this.ActivityStreamsUrl } +// GetForgeFedTeam returns the "team" property if it exists, and nil otherwise. +func (this ActivityStreamsRemove) GetForgeFedTeam() vocab.ForgeFedTeamProperty { + return this.ForgeFedTeam +} + +// GetForgeFedTicketsTrackedBy returns the "ticketsTrackedBy" property if it +// exists, and nil otherwise. +func (this ActivityStreamsRemove) GetForgeFedTicketsTrackedBy() vocab.ForgeFedTicketsTrackedByProperty { + return this.ForgeFedTicketsTrackedBy +} + +// GetForgeFedTracksTicketsFor returns the "tracksTicketsFor" property if it +// exists, and nil otherwise. +func (this ActivityStreamsRemove) GetForgeFedTracksTicketsFor() vocab.ForgeFedTracksTicketsForProperty { + return this.ForgeFedTracksTicketsFor +} + // GetJSONLDId returns the "id" property if it exists, and nil otherwise. func (this ActivityStreamsRemove) GetJSONLDId() vocab.JSONLDIdProperty { return this.JSONLDId @@ -744,7 +785,10 @@ func (this ActivityStreamsRemove) JSONLDContext() map[string]string { m = this.helperJSONLDContext(this.ActivityStreamsSummary, m) m = this.helperJSONLDContext(this.ActivityStreamsTag, m) m = this.helperJSONLDContext(this.ActivityStreamsTarget, m) + m = this.helperJSONLDContext(this.ForgeFedTeam, m) + m = this.helperJSONLDContext(this.ForgeFedTicketsTrackedBy, m) m = this.helperJSONLDContext(this.ActivityStreamsTo, m) + m = this.helperJSONLDContext(this.ForgeFedTracksTicketsFor, m) m = this.helperJSONLDContext(this.JSONLDType, m) m = this.helperJSONLDContext(this.ActivityStreamsUpdated, m) m = this.helperJSONLDContext(this.ActivityStreamsUrl, m) @@ -1232,6 +1276,34 @@ func (this ActivityStreamsRemove) LessThan(o vocab.ActivityStreamsRemove) bool { // Anything else is greater than nil return false } // Else: Both are nil + // Compare property "team" + if lhs, rhs := this.ForgeFedTeam, o.GetForgeFedTeam(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "ticketsTrackedBy" + if lhs, rhs := this.ForgeFedTicketsTrackedBy, o.GetForgeFedTicketsTrackedBy(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil // Compare property "to" if lhs, rhs := this.ActivityStreamsTo, o.GetActivityStreamsTo(); lhs != nil && rhs != nil { if lhs.LessThan(rhs) { @@ -1246,6 +1318,20 @@ func (this ActivityStreamsRemove) LessThan(o vocab.ActivityStreamsRemove) bool { // Anything else is greater than nil return false } // Else: Both are nil + // Compare property "tracksTicketsFor" + if lhs, rhs := this.ForgeFedTracksTicketsFor, o.GetForgeFedTracksTicketsFor(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil // Compare property "type" if lhs, rhs := this.JSONLDType, o.GetJSONLDType(); lhs != nil && rhs != nil { if lhs.LessThan(rhs) { @@ -1583,6 +1669,22 @@ func (this ActivityStreamsRemove) Serialize() (map[string]interface{}, error) { m[this.ActivityStreamsTarget.Name()] = i } } + // Maybe serialize property "team" + if this.ForgeFedTeam != nil { + if i, err := this.ForgeFedTeam.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ForgeFedTeam.Name()] = i + } + } + // Maybe serialize property "ticketsTrackedBy" + if this.ForgeFedTicketsTrackedBy != nil { + if i, err := this.ForgeFedTicketsTrackedBy.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ForgeFedTicketsTrackedBy.Name()] = i + } + } // Maybe serialize property "to" if this.ActivityStreamsTo != nil { if i, err := this.ActivityStreamsTo.Serialize(); err != nil { @@ -1591,6 +1693,14 @@ func (this ActivityStreamsRemove) Serialize() (map[string]interface{}, error) { m[this.ActivityStreamsTo.Name()] = i } } + // Maybe serialize property "tracksTicketsFor" + if this.ForgeFedTracksTicketsFor != nil { + if i, err := this.ForgeFedTracksTicketsFor.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ForgeFedTracksTicketsFor.Name()] = i + } + } // Maybe serialize property "type" if this.JSONLDType != nil { if i, err := this.JSONLDType.Serialize(); err != nil { @@ -1809,6 +1919,21 @@ func (this *ActivityStreamsRemove) SetActivityStreamsUrl(i vocab.ActivityStreams this.ActivityStreamsUrl = i } +// SetForgeFedTeam sets the "team" property. +func (this *ActivityStreamsRemove) SetForgeFedTeam(i vocab.ForgeFedTeamProperty) { + this.ForgeFedTeam = i +} + +// SetForgeFedTicketsTrackedBy sets the "ticketsTrackedBy" property. +func (this *ActivityStreamsRemove) SetForgeFedTicketsTrackedBy(i vocab.ForgeFedTicketsTrackedByProperty) { + this.ForgeFedTicketsTrackedBy = i +} + +// SetForgeFedTracksTicketsFor sets the "tracksTicketsFor" property. +func (this *ActivityStreamsRemove) SetForgeFedTracksTicketsFor(i vocab.ForgeFedTracksTicketsForProperty) { + this.ForgeFedTracksTicketsFor = i +} + // SetJSONLDId sets the "id" property. func (this *ActivityStreamsRemove) SetJSONLDId(i vocab.JSONLDIdProperty) { this.JSONLDId = i diff --git a/streams/impl/activitystreams/type_service/gen_pkg.go b/streams/impl/activitystreams/type_service/gen_pkg.go index 14ab1da..a8c5f4d 100644 --- a/streams/impl/activitystreams/type_service/gen_pkg.go +++ b/streams/impl/activitystreams/type_service/gen_pkg.go @@ -169,10 +169,22 @@ type privateManager interface { // method for the "ActivityStreamsTagProperty" non-functional property // in the vocabulary "ActivityStreams" DeserializeTagPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTagProperty, error) + // DeserializeTeamPropertyForgeFed returns the deserialization method for + // the "ForgeFedTeamProperty" non-functional property in the + // vocabulary "ForgeFed" + DeserializeTeamPropertyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTeamProperty, error) + // DeserializeTicketsTrackedByPropertyForgeFed returns the deserialization + // method for the "ForgeFedTicketsTrackedByProperty" non-functional + // property in the vocabulary "ForgeFed" + DeserializeTicketsTrackedByPropertyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTicketsTrackedByProperty, error) // DeserializeToPropertyActivityStreams returns the deserialization method // for the "ActivityStreamsToProperty" non-functional property in the // vocabulary "ActivityStreams" DeserializeToPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsToProperty, error) + // DeserializeTracksTicketsForPropertyForgeFed returns the deserialization + // method for the "ForgeFedTracksTicketsForProperty" non-functional + // property in the vocabulary "ForgeFed" + DeserializeTracksTicketsForPropertyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTracksTicketsForProperty, error) // DeserializeTypePropertyJSONLD returns the deserialization method for // the "JSONLDTypeProperty" non-functional property in the vocabulary // "JSONLD" diff --git a/streams/impl/activitystreams/type_service/gen_type_activitystreams_service.go b/streams/impl/activitystreams/type_service/gen_type_activitystreams_service.go index 232d997..b4a26be 100644 --- a/streams/impl/activitystreams/type_service/gen_type_activitystreams_service.go +++ b/streams/impl/activitystreams/type_service/gen_type_activitystreams_service.go @@ -55,7 +55,10 @@ type ActivityStreamsService struct { ActivityStreamsStreams vocab.ActivityStreamsStreamsProperty ActivityStreamsSummary vocab.ActivityStreamsSummaryProperty ActivityStreamsTag vocab.ActivityStreamsTagProperty + ForgeFedTeam vocab.ForgeFedTeamProperty + ForgeFedTicketsTrackedBy vocab.ForgeFedTicketsTrackedByProperty ActivityStreamsTo vocab.ActivityStreamsToProperty + ForgeFedTracksTicketsFor vocab.ForgeFedTracksTicketsForProperty JSONLDType vocab.JSONLDTypeProperty ActivityStreamsUpdated vocab.ActivityStreamsUpdatedProperty ActivityStreamsUrl vocab.ActivityStreamsUrlProperty @@ -307,11 +310,26 @@ func DeserializeService(m map[string]interface{}, aliasMap map[string]string) (* } else if p != nil { this.ActivityStreamsTag = p } + if p, err := mgr.DeserializeTeamPropertyForgeFed()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ForgeFedTeam = p + } + if p, err := mgr.DeserializeTicketsTrackedByPropertyForgeFed()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ForgeFedTicketsTrackedBy = p + } if p, err := mgr.DeserializeToPropertyActivityStreams()(m, aliasMap); err != nil { return nil, err } else if p != nil { this.ActivityStreamsTo = p } + if p, err := mgr.DeserializeTracksTicketsForPropertyForgeFed()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ForgeFedTracksTicketsFor = p + } if p, err := mgr.DeserializeTypePropertyJSONLD()(m, aliasMap); err != nil { return nil, err } else if p != nil { @@ -418,8 +436,14 @@ func DeserializeService(m map[string]interface{}, aliasMap map[string]string) (* continue } else if k == "tag" { continue + } else if k == "team" { + continue + } else if k == "ticketsTrackedBy" { + continue } else if k == "to" { continue + } else if k == "tracksTicketsFor" { + continue } else if k == "type" { continue } else if k == "updated" { @@ -701,6 +725,23 @@ func (this ActivityStreamsService) GetActivityStreamsUrl() vocab.ActivityStreams return this.ActivityStreamsUrl } +// GetForgeFedTeam returns the "team" property if it exists, and nil otherwise. +func (this ActivityStreamsService) GetForgeFedTeam() vocab.ForgeFedTeamProperty { + return this.ForgeFedTeam +} + +// GetForgeFedTicketsTrackedBy returns the "ticketsTrackedBy" property if it +// exists, and nil otherwise. +func (this ActivityStreamsService) GetForgeFedTicketsTrackedBy() vocab.ForgeFedTicketsTrackedByProperty { + return this.ForgeFedTicketsTrackedBy +} + +// GetForgeFedTracksTicketsFor returns the "tracksTicketsFor" property if it +// exists, and nil otherwise. +func (this ActivityStreamsService) GetForgeFedTracksTicketsFor() vocab.ForgeFedTracksTicketsForProperty { + return this.ForgeFedTracksTicketsFor +} + // GetJSONLDId returns the "id" property if it exists, and nil otherwise. func (this ActivityStreamsService) GetJSONLDId() vocab.JSONLDIdProperty { return this.JSONLDId @@ -792,7 +833,10 @@ func (this ActivityStreamsService) JSONLDContext() map[string]string { m = this.helperJSONLDContext(this.ActivityStreamsStreams, m) m = this.helperJSONLDContext(this.ActivityStreamsSummary, m) m = this.helperJSONLDContext(this.ActivityStreamsTag, m) + m = this.helperJSONLDContext(this.ForgeFedTeam, m) + m = this.helperJSONLDContext(this.ForgeFedTicketsTrackedBy, m) m = this.helperJSONLDContext(this.ActivityStreamsTo, m) + m = this.helperJSONLDContext(this.ForgeFedTracksTicketsFor, m) m = this.helperJSONLDContext(this.JSONLDType, m) m = this.helperJSONLDContext(this.ActivityStreamsUpdated, m) m = this.helperJSONLDContext(this.ActivityStreamsUrl, m) @@ -1350,6 +1394,34 @@ func (this ActivityStreamsService) LessThan(o vocab.ActivityStreamsService) bool // Anything else is greater than nil return false } // Else: Both are nil + // Compare property "team" + if lhs, rhs := this.ForgeFedTeam, o.GetForgeFedTeam(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "ticketsTrackedBy" + if lhs, rhs := this.ForgeFedTicketsTrackedBy, o.GetForgeFedTicketsTrackedBy(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil // Compare property "to" if lhs, rhs := this.ActivityStreamsTo, o.GetActivityStreamsTo(); lhs != nil && rhs != nil { if lhs.LessThan(rhs) { @@ -1364,6 +1436,20 @@ func (this ActivityStreamsService) LessThan(o vocab.ActivityStreamsService) bool // Anything else is greater than nil return false } // Else: Both are nil + // Compare property "tracksTicketsFor" + if lhs, rhs := this.ForgeFedTracksTicketsFor, o.GetForgeFedTracksTicketsFor(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil // Compare property "type" if lhs, rhs := this.JSONLDType, o.GetJSONLDType(); lhs != nil && rhs != nil { if lhs.LessThan(rhs) { @@ -1741,6 +1827,22 @@ func (this ActivityStreamsService) Serialize() (map[string]interface{}, error) { m[this.ActivityStreamsTag.Name()] = i } } + // Maybe serialize property "team" + if this.ForgeFedTeam != nil { + if i, err := this.ForgeFedTeam.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ForgeFedTeam.Name()] = i + } + } + // Maybe serialize property "ticketsTrackedBy" + if this.ForgeFedTicketsTrackedBy != nil { + if i, err := this.ForgeFedTicketsTrackedBy.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ForgeFedTicketsTrackedBy.Name()] = i + } + } // Maybe serialize property "to" if this.ActivityStreamsTo != nil { if i, err := this.ActivityStreamsTo.Serialize(); err != nil { @@ -1749,6 +1851,14 @@ func (this ActivityStreamsService) Serialize() (map[string]interface{}, error) { m[this.ActivityStreamsTo.Name()] = i } } + // Maybe serialize property "tracksTicketsFor" + if this.ForgeFedTracksTicketsFor != nil { + if i, err := this.ForgeFedTracksTicketsFor.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ForgeFedTracksTicketsFor.Name()] = i + } + } // Maybe serialize property "type" if this.JSONLDType != nil { if i, err := this.JSONLDType.Serialize(); err != nil { @@ -1977,6 +2087,21 @@ func (this *ActivityStreamsService) SetActivityStreamsUrl(i vocab.ActivityStream this.ActivityStreamsUrl = i } +// SetForgeFedTeam sets the "team" property. +func (this *ActivityStreamsService) SetForgeFedTeam(i vocab.ForgeFedTeamProperty) { + this.ForgeFedTeam = i +} + +// SetForgeFedTicketsTrackedBy sets the "ticketsTrackedBy" property. +func (this *ActivityStreamsService) SetForgeFedTicketsTrackedBy(i vocab.ForgeFedTicketsTrackedByProperty) { + this.ForgeFedTicketsTrackedBy = i +} + +// SetForgeFedTracksTicketsFor sets the "tracksTicketsFor" property. +func (this *ActivityStreamsService) SetForgeFedTracksTicketsFor(i vocab.ForgeFedTracksTicketsForProperty) { + this.ForgeFedTracksTicketsFor = i +} + // SetJSONLDId sets the "id" property. func (this *ActivityStreamsService) SetJSONLDId(i vocab.JSONLDIdProperty) { this.JSONLDId = i diff --git a/streams/impl/activitystreams/type_tentativeaccept/gen_pkg.go b/streams/impl/activitystreams/type_tentativeaccept/gen_pkg.go index 5998c9b..546e28c 100644 --- a/streams/impl/activitystreams/type_tentativeaccept/gen_pkg.go +++ b/streams/impl/activitystreams/type_tentativeaccept/gen_pkg.go @@ -148,10 +148,22 @@ type privateManager interface { // method for the "ActivityStreamsTargetProperty" non-functional // property in the vocabulary "ActivityStreams" DeserializeTargetPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTargetProperty, error) + // DeserializeTeamPropertyForgeFed returns the deserialization method for + // the "ForgeFedTeamProperty" non-functional property in the + // vocabulary "ForgeFed" + DeserializeTeamPropertyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTeamProperty, error) + // DeserializeTicketsTrackedByPropertyForgeFed returns the deserialization + // method for the "ForgeFedTicketsTrackedByProperty" non-functional + // property in the vocabulary "ForgeFed" + DeserializeTicketsTrackedByPropertyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTicketsTrackedByProperty, error) // DeserializeToPropertyActivityStreams returns the deserialization method // for the "ActivityStreamsToProperty" non-functional property in the // vocabulary "ActivityStreams" DeserializeToPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsToProperty, error) + // DeserializeTracksTicketsForPropertyForgeFed returns the deserialization + // method for the "ForgeFedTracksTicketsForProperty" non-functional + // property in the vocabulary "ForgeFed" + DeserializeTracksTicketsForPropertyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTracksTicketsForProperty, error) // DeserializeTypePropertyJSONLD returns the deserialization method for // the "JSONLDTypeProperty" non-functional property in the vocabulary // "JSONLD" diff --git a/streams/impl/activitystreams/type_tentativeaccept/gen_type_activitystreams_tentativeaccept.go b/streams/impl/activitystreams/type_tentativeaccept/gen_type_activitystreams_tentativeaccept.go index a2c09b3..8836a40 100644 --- a/streams/impl/activitystreams/type_tentativeaccept/gen_type_activitystreams_tentativeaccept.go +++ b/streams/impl/activitystreams/type_tentativeaccept/gen_type_activitystreams_tentativeaccept.go @@ -62,7 +62,10 @@ type ActivityStreamsTentativeAccept struct { ActivityStreamsSummary vocab.ActivityStreamsSummaryProperty ActivityStreamsTag vocab.ActivityStreamsTagProperty ActivityStreamsTarget vocab.ActivityStreamsTargetProperty + ForgeFedTeam vocab.ForgeFedTeamProperty + ForgeFedTicketsTrackedBy vocab.ForgeFedTicketsTrackedByProperty ActivityStreamsTo vocab.ActivityStreamsToProperty + ForgeFedTracksTicketsFor vocab.ForgeFedTracksTicketsForProperty JSONLDType vocab.JSONLDTypeProperty ActivityStreamsUpdated vocab.ActivityStreamsUpdatedProperty ActivityStreamsUrl vocab.ActivityStreamsUrlProperty @@ -289,11 +292,26 @@ func DeserializeTentativeAccept(m map[string]interface{}, aliasMap map[string]st } else if p != nil { this.ActivityStreamsTarget = p } + if p, err := mgr.DeserializeTeamPropertyForgeFed()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ForgeFedTeam = p + } + if p, err := mgr.DeserializeTicketsTrackedByPropertyForgeFed()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ForgeFedTicketsTrackedBy = p + } if p, err := mgr.DeserializeToPropertyActivityStreams()(m, aliasMap); err != nil { return nil, err } else if p != nil { this.ActivityStreamsTo = p } + if p, err := mgr.DeserializeTracksTicketsForPropertyForgeFed()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ForgeFedTracksTicketsFor = p + } if p, err := mgr.DeserializeTypePropertyJSONLD()(m, aliasMap); err != nil { return nil, err } else if p != nil { @@ -388,8 +406,14 @@ func DeserializeTentativeAccept(m map[string]interface{}, aliasMap map[string]st continue } else if k == "target" { continue + } else if k == "team" { + continue + } else if k == "ticketsTrackedBy" { + continue } else if k == "to" { continue + } else if k == "tracksTicketsFor" { + continue } else if k == "type" { continue } else if k == "updated" { @@ -659,6 +683,23 @@ func (this ActivityStreamsTentativeAccept) GetActivityStreamsUrl() vocab.Activit return this.ActivityStreamsUrl } +// GetForgeFedTeam returns the "team" property if it exists, and nil otherwise. +func (this ActivityStreamsTentativeAccept) GetForgeFedTeam() vocab.ForgeFedTeamProperty { + return this.ForgeFedTeam +} + +// GetForgeFedTicketsTrackedBy returns the "ticketsTrackedBy" property if it +// exists, and nil otherwise. +func (this ActivityStreamsTentativeAccept) GetForgeFedTicketsTrackedBy() vocab.ForgeFedTicketsTrackedByProperty { + return this.ForgeFedTicketsTrackedBy +} + +// GetForgeFedTracksTicketsFor returns the "tracksTicketsFor" property if it +// exists, and nil otherwise. +func (this ActivityStreamsTentativeAccept) GetForgeFedTracksTicketsFor() vocab.ForgeFedTracksTicketsForProperty { + return this.ForgeFedTracksTicketsFor +} + // GetJSONLDId returns the "id" property if it exists, and nil otherwise. func (this ActivityStreamsTentativeAccept) GetJSONLDId() vocab.JSONLDIdProperty { return this.JSONLDId @@ -729,7 +770,10 @@ func (this ActivityStreamsTentativeAccept) JSONLDContext() map[string]string { m = this.helperJSONLDContext(this.ActivityStreamsSummary, m) m = this.helperJSONLDContext(this.ActivityStreamsTag, m) m = this.helperJSONLDContext(this.ActivityStreamsTarget, m) + m = this.helperJSONLDContext(this.ForgeFedTeam, m) + m = this.helperJSONLDContext(this.ForgeFedTicketsTrackedBy, m) m = this.helperJSONLDContext(this.ActivityStreamsTo, m) + m = this.helperJSONLDContext(this.ForgeFedTracksTicketsFor, m) m = this.helperJSONLDContext(this.JSONLDType, m) m = this.helperJSONLDContext(this.ActivityStreamsUpdated, m) m = this.helperJSONLDContext(this.ActivityStreamsUrl, m) @@ -1217,6 +1261,34 @@ func (this ActivityStreamsTentativeAccept) LessThan(o vocab.ActivityStreamsTenta // Anything else is greater than nil return false } // Else: Both are nil + // Compare property "team" + if lhs, rhs := this.ForgeFedTeam, o.GetForgeFedTeam(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "ticketsTrackedBy" + if lhs, rhs := this.ForgeFedTicketsTrackedBy, o.GetForgeFedTicketsTrackedBy(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil // Compare property "to" if lhs, rhs := this.ActivityStreamsTo, o.GetActivityStreamsTo(); lhs != nil && rhs != nil { if lhs.LessThan(rhs) { @@ -1231,6 +1303,20 @@ func (this ActivityStreamsTentativeAccept) LessThan(o vocab.ActivityStreamsTenta // Anything else is greater than nil return false } // Else: Both are nil + // Compare property "tracksTicketsFor" + if lhs, rhs := this.ForgeFedTracksTicketsFor, o.GetForgeFedTracksTicketsFor(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil // Compare property "type" if lhs, rhs := this.JSONLDType, o.GetJSONLDType(); lhs != nil && rhs != nil { if lhs.LessThan(rhs) { @@ -1568,6 +1654,22 @@ func (this ActivityStreamsTentativeAccept) Serialize() (map[string]interface{}, m[this.ActivityStreamsTarget.Name()] = i } } + // Maybe serialize property "team" + if this.ForgeFedTeam != nil { + if i, err := this.ForgeFedTeam.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ForgeFedTeam.Name()] = i + } + } + // Maybe serialize property "ticketsTrackedBy" + if this.ForgeFedTicketsTrackedBy != nil { + if i, err := this.ForgeFedTicketsTrackedBy.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ForgeFedTicketsTrackedBy.Name()] = i + } + } // Maybe serialize property "to" if this.ActivityStreamsTo != nil { if i, err := this.ActivityStreamsTo.Serialize(); err != nil { @@ -1576,6 +1678,14 @@ func (this ActivityStreamsTentativeAccept) Serialize() (map[string]interface{}, m[this.ActivityStreamsTo.Name()] = i } } + // Maybe serialize property "tracksTicketsFor" + if this.ForgeFedTracksTicketsFor != nil { + if i, err := this.ForgeFedTracksTicketsFor.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ForgeFedTracksTicketsFor.Name()] = i + } + } // Maybe serialize property "type" if this.JSONLDType != nil { if i, err := this.JSONLDType.Serialize(); err != nil { @@ -1794,6 +1904,21 @@ func (this *ActivityStreamsTentativeAccept) SetActivityStreamsUrl(i vocab.Activi this.ActivityStreamsUrl = i } +// SetForgeFedTeam sets the "team" property. +func (this *ActivityStreamsTentativeAccept) SetForgeFedTeam(i vocab.ForgeFedTeamProperty) { + this.ForgeFedTeam = i +} + +// SetForgeFedTicketsTrackedBy sets the "ticketsTrackedBy" property. +func (this *ActivityStreamsTentativeAccept) SetForgeFedTicketsTrackedBy(i vocab.ForgeFedTicketsTrackedByProperty) { + this.ForgeFedTicketsTrackedBy = i +} + +// SetForgeFedTracksTicketsFor sets the "tracksTicketsFor" property. +func (this *ActivityStreamsTentativeAccept) SetForgeFedTracksTicketsFor(i vocab.ForgeFedTracksTicketsForProperty) { + this.ForgeFedTracksTicketsFor = i +} + // SetJSONLDId sets the "id" property. func (this *ActivityStreamsTentativeAccept) SetJSONLDId(i vocab.JSONLDIdProperty) { this.JSONLDId = i diff --git a/streams/impl/activitystreams/type_tentativereject/gen_pkg.go b/streams/impl/activitystreams/type_tentativereject/gen_pkg.go index c72470a..4a194a7 100644 --- a/streams/impl/activitystreams/type_tentativereject/gen_pkg.go +++ b/streams/impl/activitystreams/type_tentativereject/gen_pkg.go @@ -148,10 +148,22 @@ type privateManager interface { // method for the "ActivityStreamsTargetProperty" non-functional // property in the vocabulary "ActivityStreams" DeserializeTargetPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTargetProperty, error) + // DeserializeTeamPropertyForgeFed returns the deserialization method for + // the "ForgeFedTeamProperty" non-functional property in the + // vocabulary "ForgeFed" + DeserializeTeamPropertyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTeamProperty, error) + // DeserializeTicketsTrackedByPropertyForgeFed returns the deserialization + // method for the "ForgeFedTicketsTrackedByProperty" non-functional + // property in the vocabulary "ForgeFed" + DeserializeTicketsTrackedByPropertyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTicketsTrackedByProperty, error) // DeserializeToPropertyActivityStreams returns the deserialization method // for the "ActivityStreamsToProperty" non-functional property in the // vocabulary "ActivityStreams" DeserializeToPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsToProperty, error) + // DeserializeTracksTicketsForPropertyForgeFed returns the deserialization + // method for the "ForgeFedTracksTicketsForProperty" non-functional + // property in the vocabulary "ForgeFed" + DeserializeTracksTicketsForPropertyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTracksTicketsForProperty, error) // DeserializeTypePropertyJSONLD returns the deserialization method for // the "JSONLDTypeProperty" non-functional property in the vocabulary // "JSONLD" diff --git a/streams/impl/activitystreams/type_tentativereject/gen_type_activitystreams_tentativereject.go b/streams/impl/activitystreams/type_tentativereject/gen_type_activitystreams_tentativereject.go index 023d8d5..a1abc0b 100644 --- a/streams/impl/activitystreams/type_tentativereject/gen_type_activitystreams_tentativereject.go +++ b/streams/impl/activitystreams/type_tentativereject/gen_type_activitystreams_tentativereject.go @@ -62,7 +62,10 @@ type ActivityStreamsTentativeReject struct { ActivityStreamsSummary vocab.ActivityStreamsSummaryProperty ActivityStreamsTag vocab.ActivityStreamsTagProperty ActivityStreamsTarget vocab.ActivityStreamsTargetProperty + ForgeFedTeam vocab.ForgeFedTeamProperty + ForgeFedTicketsTrackedBy vocab.ForgeFedTicketsTrackedByProperty ActivityStreamsTo vocab.ActivityStreamsToProperty + ForgeFedTracksTicketsFor vocab.ForgeFedTracksTicketsForProperty JSONLDType vocab.JSONLDTypeProperty ActivityStreamsUpdated vocab.ActivityStreamsUpdatedProperty ActivityStreamsUrl vocab.ActivityStreamsUrlProperty @@ -289,11 +292,26 @@ func DeserializeTentativeReject(m map[string]interface{}, aliasMap map[string]st } else if p != nil { this.ActivityStreamsTarget = p } + if p, err := mgr.DeserializeTeamPropertyForgeFed()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ForgeFedTeam = p + } + if p, err := mgr.DeserializeTicketsTrackedByPropertyForgeFed()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ForgeFedTicketsTrackedBy = p + } if p, err := mgr.DeserializeToPropertyActivityStreams()(m, aliasMap); err != nil { return nil, err } else if p != nil { this.ActivityStreamsTo = p } + if p, err := mgr.DeserializeTracksTicketsForPropertyForgeFed()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ForgeFedTracksTicketsFor = p + } if p, err := mgr.DeserializeTypePropertyJSONLD()(m, aliasMap); err != nil { return nil, err } else if p != nil { @@ -388,8 +406,14 @@ func DeserializeTentativeReject(m map[string]interface{}, aliasMap map[string]st continue } else if k == "target" { continue + } else if k == "team" { + continue + } else if k == "ticketsTrackedBy" { + continue } else if k == "to" { continue + } else if k == "tracksTicketsFor" { + continue } else if k == "type" { continue } else if k == "updated" { @@ -659,6 +683,23 @@ func (this ActivityStreamsTentativeReject) GetActivityStreamsUrl() vocab.Activit return this.ActivityStreamsUrl } +// GetForgeFedTeam returns the "team" property if it exists, and nil otherwise. +func (this ActivityStreamsTentativeReject) GetForgeFedTeam() vocab.ForgeFedTeamProperty { + return this.ForgeFedTeam +} + +// GetForgeFedTicketsTrackedBy returns the "ticketsTrackedBy" property if it +// exists, and nil otherwise. +func (this ActivityStreamsTentativeReject) GetForgeFedTicketsTrackedBy() vocab.ForgeFedTicketsTrackedByProperty { + return this.ForgeFedTicketsTrackedBy +} + +// GetForgeFedTracksTicketsFor returns the "tracksTicketsFor" property if it +// exists, and nil otherwise. +func (this ActivityStreamsTentativeReject) GetForgeFedTracksTicketsFor() vocab.ForgeFedTracksTicketsForProperty { + return this.ForgeFedTracksTicketsFor +} + // GetJSONLDId returns the "id" property if it exists, and nil otherwise. func (this ActivityStreamsTentativeReject) GetJSONLDId() vocab.JSONLDIdProperty { return this.JSONLDId @@ -729,7 +770,10 @@ func (this ActivityStreamsTentativeReject) JSONLDContext() map[string]string { m = this.helperJSONLDContext(this.ActivityStreamsSummary, m) m = this.helperJSONLDContext(this.ActivityStreamsTag, m) m = this.helperJSONLDContext(this.ActivityStreamsTarget, m) + m = this.helperJSONLDContext(this.ForgeFedTeam, m) + m = this.helperJSONLDContext(this.ForgeFedTicketsTrackedBy, m) m = this.helperJSONLDContext(this.ActivityStreamsTo, m) + m = this.helperJSONLDContext(this.ForgeFedTracksTicketsFor, m) m = this.helperJSONLDContext(this.JSONLDType, m) m = this.helperJSONLDContext(this.ActivityStreamsUpdated, m) m = this.helperJSONLDContext(this.ActivityStreamsUrl, m) @@ -1217,6 +1261,34 @@ func (this ActivityStreamsTentativeReject) LessThan(o vocab.ActivityStreamsTenta // Anything else is greater than nil return false } // Else: Both are nil + // Compare property "team" + if lhs, rhs := this.ForgeFedTeam, o.GetForgeFedTeam(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "ticketsTrackedBy" + if lhs, rhs := this.ForgeFedTicketsTrackedBy, o.GetForgeFedTicketsTrackedBy(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil // Compare property "to" if lhs, rhs := this.ActivityStreamsTo, o.GetActivityStreamsTo(); lhs != nil && rhs != nil { if lhs.LessThan(rhs) { @@ -1231,6 +1303,20 @@ func (this ActivityStreamsTentativeReject) LessThan(o vocab.ActivityStreamsTenta // Anything else is greater than nil return false } // Else: Both are nil + // Compare property "tracksTicketsFor" + if lhs, rhs := this.ForgeFedTracksTicketsFor, o.GetForgeFedTracksTicketsFor(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil // Compare property "type" if lhs, rhs := this.JSONLDType, o.GetJSONLDType(); lhs != nil && rhs != nil { if lhs.LessThan(rhs) { @@ -1568,6 +1654,22 @@ func (this ActivityStreamsTentativeReject) Serialize() (map[string]interface{}, m[this.ActivityStreamsTarget.Name()] = i } } + // Maybe serialize property "team" + if this.ForgeFedTeam != nil { + if i, err := this.ForgeFedTeam.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ForgeFedTeam.Name()] = i + } + } + // Maybe serialize property "ticketsTrackedBy" + if this.ForgeFedTicketsTrackedBy != nil { + if i, err := this.ForgeFedTicketsTrackedBy.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ForgeFedTicketsTrackedBy.Name()] = i + } + } // Maybe serialize property "to" if this.ActivityStreamsTo != nil { if i, err := this.ActivityStreamsTo.Serialize(); err != nil { @@ -1576,6 +1678,14 @@ func (this ActivityStreamsTentativeReject) Serialize() (map[string]interface{}, m[this.ActivityStreamsTo.Name()] = i } } + // Maybe serialize property "tracksTicketsFor" + if this.ForgeFedTracksTicketsFor != nil { + if i, err := this.ForgeFedTracksTicketsFor.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ForgeFedTracksTicketsFor.Name()] = i + } + } // Maybe serialize property "type" if this.JSONLDType != nil { if i, err := this.JSONLDType.Serialize(); err != nil { @@ -1794,6 +1904,21 @@ func (this *ActivityStreamsTentativeReject) SetActivityStreamsUrl(i vocab.Activi this.ActivityStreamsUrl = i } +// SetForgeFedTeam sets the "team" property. +func (this *ActivityStreamsTentativeReject) SetForgeFedTeam(i vocab.ForgeFedTeamProperty) { + this.ForgeFedTeam = i +} + +// SetForgeFedTicketsTrackedBy sets the "ticketsTrackedBy" property. +func (this *ActivityStreamsTentativeReject) SetForgeFedTicketsTrackedBy(i vocab.ForgeFedTicketsTrackedByProperty) { + this.ForgeFedTicketsTrackedBy = i +} + +// SetForgeFedTracksTicketsFor sets the "tracksTicketsFor" property. +func (this *ActivityStreamsTentativeReject) SetForgeFedTracksTicketsFor(i vocab.ForgeFedTracksTicketsForProperty) { + this.ForgeFedTracksTicketsFor = i +} + // SetJSONLDId sets the "id" property. func (this *ActivityStreamsTentativeReject) SetJSONLDId(i vocab.JSONLDIdProperty) { this.JSONLDId = i diff --git a/streams/impl/activitystreams/type_tombstone/gen_pkg.go b/streams/impl/activitystreams/type_tombstone/gen_pkg.go index 3c6f606..1b0eb53 100644 --- a/streams/impl/activitystreams/type_tombstone/gen_pkg.go +++ b/streams/impl/activitystreams/type_tombstone/gen_pkg.go @@ -136,10 +136,22 @@ type privateManager interface { // method for the "ActivityStreamsTagProperty" non-functional property // in the vocabulary "ActivityStreams" DeserializeTagPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTagProperty, error) + // DeserializeTeamPropertyForgeFed returns the deserialization method for + // the "ForgeFedTeamProperty" non-functional property in the + // vocabulary "ForgeFed" + DeserializeTeamPropertyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTeamProperty, error) + // DeserializeTicketsTrackedByPropertyForgeFed returns the deserialization + // method for the "ForgeFedTicketsTrackedByProperty" non-functional + // property in the vocabulary "ForgeFed" + DeserializeTicketsTrackedByPropertyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTicketsTrackedByProperty, error) // DeserializeToPropertyActivityStreams returns the deserialization method // for the "ActivityStreamsToProperty" non-functional property in the // vocabulary "ActivityStreams" DeserializeToPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsToProperty, error) + // DeserializeTracksTicketsForPropertyForgeFed returns the deserialization + // method for the "ForgeFedTracksTicketsForProperty" non-functional + // property in the vocabulary "ForgeFed" + DeserializeTracksTicketsForPropertyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTracksTicketsForProperty, error) // DeserializeTypePropertyJSONLD returns the deserialization method for // the "JSONLDTypeProperty" non-functional property in the vocabulary // "JSONLD" diff --git a/streams/impl/activitystreams/type_tombstone/gen_type_activitystreams_tombstone.go b/streams/impl/activitystreams/type_tombstone/gen_type_activitystreams_tombstone.go index 353dc52..c561b4b 100644 --- a/streams/impl/activitystreams/type_tombstone/gen_type_activitystreams_tombstone.go +++ b/streams/impl/activitystreams/type_tombstone/gen_type_activitystreams_tombstone.go @@ -66,7 +66,10 @@ type ActivityStreamsTombstone struct { ActivityStreamsStartTime vocab.ActivityStreamsStartTimeProperty ActivityStreamsSummary vocab.ActivityStreamsSummaryProperty ActivityStreamsTag vocab.ActivityStreamsTagProperty + ForgeFedTeam vocab.ForgeFedTeamProperty + ForgeFedTicketsTrackedBy vocab.ForgeFedTicketsTrackedByProperty ActivityStreamsTo vocab.ActivityStreamsToProperty + ForgeFedTracksTicketsFor vocab.ForgeFedTracksTicketsForProperty JSONLDType vocab.JSONLDTypeProperty ActivityStreamsUpdated vocab.ActivityStreamsUpdatedProperty ActivityStreamsUrl vocab.ActivityStreamsUrlProperty @@ -278,11 +281,26 @@ func DeserializeTombstone(m map[string]interface{}, aliasMap map[string]string) } else if p != nil { this.ActivityStreamsTag = p } + if p, err := mgr.DeserializeTeamPropertyForgeFed()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ForgeFedTeam = p + } + if p, err := mgr.DeserializeTicketsTrackedByPropertyForgeFed()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ForgeFedTicketsTrackedBy = p + } if p, err := mgr.DeserializeToPropertyActivityStreams()(m, aliasMap); err != nil { return nil, err } else if p != nil { this.ActivityStreamsTo = p } + if p, err := mgr.DeserializeTracksTicketsForPropertyForgeFed()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ForgeFedTracksTicketsFor = p + } if p, err := mgr.DeserializeTypePropertyJSONLD()(m, aliasMap); err != nil { return nil, err } else if p != nil { @@ -371,8 +389,14 @@ func DeserializeTombstone(m map[string]interface{}, aliasMap map[string]string) continue } else if k == "tag" { continue + } else if k == "team" { + continue + } else if k == "ticketsTrackedBy" { + continue } else if k == "to" { continue + } else if k == "tracksTicketsFor" { + continue } else if k == "type" { continue } else if k == "updated" { @@ -624,6 +648,23 @@ func (this ActivityStreamsTombstone) GetActivityStreamsUrl() vocab.ActivityStrea return this.ActivityStreamsUrl } +// GetForgeFedTeam returns the "team" property if it exists, and nil otherwise. +func (this ActivityStreamsTombstone) GetForgeFedTeam() vocab.ForgeFedTeamProperty { + return this.ForgeFedTeam +} + +// GetForgeFedTicketsTrackedBy returns the "ticketsTrackedBy" property if it +// exists, and nil otherwise. +func (this ActivityStreamsTombstone) GetForgeFedTicketsTrackedBy() vocab.ForgeFedTicketsTrackedByProperty { + return this.ForgeFedTicketsTrackedBy +} + +// GetForgeFedTracksTicketsFor returns the "tracksTicketsFor" property if it +// exists, and nil otherwise. +func (this ActivityStreamsTombstone) GetForgeFedTracksTicketsFor() vocab.ForgeFedTracksTicketsForProperty { + return this.ForgeFedTracksTicketsFor +} + // GetJSONLDId returns the "id" property if it exists, and nil otherwise. func (this ActivityStreamsTombstone) GetJSONLDId() vocab.JSONLDIdProperty { return this.JSONLDId @@ -690,7 +731,10 @@ func (this ActivityStreamsTombstone) JSONLDContext() map[string]string { m = this.helperJSONLDContext(this.ActivityStreamsStartTime, m) m = this.helperJSONLDContext(this.ActivityStreamsSummary, m) m = this.helperJSONLDContext(this.ActivityStreamsTag, m) + m = this.helperJSONLDContext(this.ForgeFedTeam, m) + m = this.helperJSONLDContext(this.ForgeFedTicketsTrackedBy, m) m = this.helperJSONLDContext(this.ActivityStreamsTo, m) + m = this.helperJSONLDContext(this.ForgeFedTracksTicketsFor, m) m = this.helperJSONLDContext(this.JSONLDType, m) m = this.helperJSONLDContext(this.ActivityStreamsUpdated, m) m = this.helperJSONLDContext(this.ActivityStreamsUrl, m) @@ -1136,6 +1180,34 @@ func (this ActivityStreamsTombstone) LessThan(o vocab.ActivityStreamsTombstone) // Anything else is greater than nil return false } // Else: Both are nil + // Compare property "team" + if lhs, rhs := this.ForgeFedTeam, o.GetForgeFedTeam(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "ticketsTrackedBy" + if lhs, rhs := this.ForgeFedTicketsTrackedBy, o.GetForgeFedTicketsTrackedBy(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil // Compare property "to" if lhs, rhs := this.ActivityStreamsTo, o.GetActivityStreamsTo(); lhs != nil && rhs != nil { if lhs.LessThan(rhs) { @@ -1150,6 +1222,20 @@ func (this ActivityStreamsTombstone) LessThan(o vocab.ActivityStreamsTombstone) // Anything else is greater than nil return false } // Else: Both are nil + // Compare property "tracksTicketsFor" + if lhs, rhs := this.ForgeFedTracksTicketsFor, o.GetForgeFedTracksTicketsFor(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil // Compare property "type" if lhs, rhs := this.JSONLDType, o.GetJSONLDType(); lhs != nil && rhs != nil { if lhs.LessThan(rhs) { @@ -1463,6 +1549,22 @@ func (this ActivityStreamsTombstone) Serialize() (map[string]interface{}, error) m[this.ActivityStreamsTag.Name()] = i } } + // Maybe serialize property "team" + if this.ForgeFedTeam != nil { + if i, err := this.ForgeFedTeam.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ForgeFedTeam.Name()] = i + } + } + // Maybe serialize property "ticketsTrackedBy" + if this.ForgeFedTicketsTrackedBy != nil { + if i, err := this.ForgeFedTicketsTrackedBy.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ForgeFedTicketsTrackedBy.Name()] = i + } + } // Maybe serialize property "to" if this.ActivityStreamsTo != nil { if i, err := this.ActivityStreamsTo.Serialize(); err != nil { @@ -1471,6 +1573,14 @@ func (this ActivityStreamsTombstone) Serialize() (map[string]interface{}, error) m[this.ActivityStreamsTo.Name()] = i } } + // Maybe serialize property "tracksTicketsFor" + if this.ForgeFedTracksTicketsFor != nil { + if i, err := this.ForgeFedTracksTicketsFor.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ForgeFedTracksTicketsFor.Name()] = i + } + } // Maybe serialize property "type" if this.JSONLDType != nil { if i, err := this.JSONLDType.Serialize(); err != nil { @@ -1674,6 +1784,21 @@ func (this *ActivityStreamsTombstone) SetActivityStreamsUrl(i vocab.ActivityStre this.ActivityStreamsUrl = i } +// SetForgeFedTeam sets the "team" property. +func (this *ActivityStreamsTombstone) SetForgeFedTeam(i vocab.ForgeFedTeamProperty) { + this.ForgeFedTeam = i +} + +// SetForgeFedTicketsTrackedBy sets the "ticketsTrackedBy" property. +func (this *ActivityStreamsTombstone) SetForgeFedTicketsTrackedBy(i vocab.ForgeFedTicketsTrackedByProperty) { + this.ForgeFedTicketsTrackedBy = i +} + +// SetForgeFedTracksTicketsFor sets the "tracksTicketsFor" property. +func (this *ActivityStreamsTombstone) SetForgeFedTracksTicketsFor(i vocab.ForgeFedTracksTicketsForProperty) { + this.ForgeFedTracksTicketsFor = i +} + // SetJSONLDId sets the "id" property. func (this *ActivityStreamsTombstone) SetJSONLDId(i vocab.JSONLDIdProperty) { this.JSONLDId = i diff --git a/streams/impl/activitystreams/type_travel/gen_pkg.go b/streams/impl/activitystreams/type_travel/gen_pkg.go index e9750b2..cae76f2 100644 --- a/streams/impl/activitystreams/type_travel/gen_pkg.go +++ b/streams/impl/activitystreams/type_travel/gen_pkg.go @@ -144,10 +144,22 @@ type privateManager interface { // method for the "ActivityStreamsTargetProperty" non-functional // property in the vocabulary "ActivityStreams" DeserializeTargetPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTargetProperty, error) + // DeserializeTeamPropertyForgeFed returns the deserialization method for + // the "ForgeFedTeamProperty" non-functional property in the + // vocabulary "ForgeFed" + DeserializeTeamPropertyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTeamProperty, error) + // DeserializeTicketsTrackedByPropertyForgeFed returns the deserialization + // method for the "ForgeFedTicketsTrackedByProperty" non-functional + // property in the vocabulary "ForgeFed" + DeserializeTicketsTrackedByPropertyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTicketsTrackedByProperty, error) // DeserializeToPropertyActivityStreams returns the deserialization method // for the "ActivityStreamsToProperty" non-functional property in the // vocabulary "ActivityStreams" DeserializeToPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsToProperty, error) + // DeserializeTracksTicketsForPropertyForgeFed returns the deserialization + // method for the "ForgeFedTracksTicketsForProperty" non-functional + // property in the vocabulary "ForgeFed" + DeserializeTracksTicketsForPropertyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTracksTicketsForProperty, error) // DeserializeTypePropertyJSONLD returns the deserialization method for // the "JSONLDTypeProperty" non-functional property in the vocabulary // "JSONLD" diff --git a/streams/impl/activitystreams/type_travel/gen_type_activitystreams_travel.go b/streams/impl/activitystreams/type_travel/gen_type_activitystreams_travel.go index 6de7f5c..691cb3e 100644 --- a/streams/impl/activitystreams/type_travel/gen_type_activitystreams_travel.go +++ b/streams/impl/activitystreams/type_travel/gen_type_activitystreams_travel.go @@ -63,7 +63,10 @@ type ActivityStreamsTravel struct { ActivityStreamsSummary vocab.ActivityStreamsSummaryProperty ActivityStreamsTag vocab.ActivityStreamsTagProperty ActivityStreamsTarget vocab.ActivityStreamsTargetProperty + ForgeFedTeam vocab.ForgeFedTeamProperty + ForgeFedTicketsTrackedBy vocab.ForgeFedTicketsTrackedByProperty ActivityStreamsTo vocab.ActivityStreamsToProperty + ForgeFedTracksTicketsFor vocab.ForgeFedTracksTicketsForProperty JSONLDType vocab.JSONLDTypeProperty ActivityStreamsUpdated vocab.ActivityStreamsUpdatedProperty ActivityStreamsUrl vocab.ActivityStreamsUrlProperty @@ -285,11 +288,26 @@ func DeserializeTravel(m map[string]interface{}, aliasMap map[string]string) (*A } else if p != nil { this.ActivityStreamsTarget = p } + if p, err := mgr.DeserializeTeamPropertyForgeFed()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ForgeFedTeam = p + } + if p, err := mgr.DeserializeTicketsTrackedByPropertyForgeFed()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ForgeFedTicketsTrackedBy = p + } if p, err := mgr.DeserializeToPropertyActivityStreams()(m, aliasMap); err != nil { return nil, err } else if p != nil { this.ActivityStreamsTo = p } + if p, err := mgr.DeserializeTracksTicketsForPropertyForgeFed()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ForgeFedTracksTicketsFor = p + } if p, err := mgr.DeserializeTypePropertyJSONLD()(m, aliasMap); err != nil { return nil, err } else if p != nil { @@ -382,8 +400,14 @@ func DeserializeTravel(m map[string]interface{}, aliasMap map[string]string) (*A continue } else if k == "target" { continue + } else if k == "team" { + continue + } else if k == "ticketsTrackedBy" { + continue } else if k == "to" { continue + } else if k == "tracksTicketsFor" { + continue } else if k == "type" { continue } else if k == "updated" { @@ -647,6 +671,23 @@ func (this ActivityStreamsTravel) GetActivityStreamsUrl() vocab.ActivityStreamsU return this.ActivityStreamsUrl } +// GetForgeFedTeam returns the "team" property if it exists, and nil otherwise. +func (this ActivityStreamsTravel) GetForgeFedTeam() vocab.ForgeFedTeamProperty { + return this.ForgeFedTeam +} + +// GetForgeFedTicketsTrackedBy returns the "ticketsTrackedBy" property if it +// exists, and nil otherwise. +func (this ActivityStreamsTravel) GetForgeFedTicketsTrackedBy() vocab.ForgeFedTicketsTrackedByProperty { + return this.ForgeFedTicketsTrackedBy +} + +// GetForgeFedTracksTicketsFor returns the "tracksTicketsFor" property if it +// exists, and nil otherwise. +func (this ActivityStreamsTravel) GetForgeFedTracksTicketsFor() vocab.ForgeFedTracksTicketsForProperty { + return this.ForgeFedTracksTicketsFor +} + // GetJSONLDId returns the "id" property if it exists, and nil otherwise. func (this ActivityStreamsTravel) GetJSONLDId() vocab.JSONLDIdProperty { return this.JSONLDId @@ -715,7 +756,10 @@ func (this ActivityStreamsTravel) JSONLDContext() map[string]string { m = this.helperJSONLDContext(this.ActivityStreamsSummary, m) m = this.helperJSONLDContext(this.ActivityStreamsTag, m) m = this.helperJSONLDContext(this.ActivityStreamsTarget, m) + m = this.helperJSONLDContext(this.ForgeFedTeam, m) + m = this.helperJSONLDContext(this.ForgeFedTicketsTrackedBy, m) m = this.helperJSONLDContext(this.ActivityStreamsTo, m) + m = this.helperJSONLDContext(this.ForgeFedTracksTicketsFor, m) m = this.helperJSONLDContext(this.JSONLDType, m) m = this.helperJSONLDContext(this.ActivityStreamsUpdated, m) m = this.helperJSONLDContext(this.ActivityStreamsUrl, m) @@ -1189,6 +1233,34 @@ func (this ActivityStreamsTravel) LessThan(o vocab.ActivityStreamsTravel) bool { // Anything else is greater than nil return false } // Else: Both are nil + // Compare property "team" + if lhs, rhs := this.ForgeFedTeam, o.GetForgeFedTeam(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "ticketsTrackedBy" + if lhs, rhs := this.ForgeFedTicketsTrackedBy, o.GetForgeFedTicketsTrackedBy(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil // Compare property "to" if lhs, rhs := this.ActivityStreamsTo, o.GetActivityStreamsTo(); lhs != nil && rhs != nil { if lhs.LessThan(rhs) { @@ -1203,6 +1275,20 @@ func (this ActivityStreamsTravel) LessThan(o vocab.ActivityStreamsTravel) bool { // Anything else is greater than nil return false } // Else: Both are nil + // Compare property "tracksTicketsFor" + if lhs, rhs := this.ForgeFedTracksTicketsFor, o.GetForgeFedTracksTicketsFor(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil // Compare property "type" if lhs, rhs := this.JSONLDType, o.GetJSONLDType(); lhs != nil && rhs != nil { if lhs.LessThan(rhs) { @@ -1532,6 +1618,22 @@ func (this ActivityStreamsTravel) Serialize() (map[string]interface{}, error) { m[this.ActivityStreamsTarget.Name()] = i } } + // Maybe serialize property "team" + if this.ForgeFedTeam != nil { + if i, err := this.ForgeFedTeam.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ForgeFedTeam.Name()] = i + } + } + // Maybe serialize property "ticketsTrackedBy" + if this.ForgeFedTicketsTrackedBy != nil { + if i, err := this.ForgeFedTicketsTrackedBy.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ForgeFedTicketsTrackedBy.Name()] = i + } + } // Maybe serialize property "to" if this.ActivityStreamsTo != nil { if i, err := this.ActivityStreamsTo.Serialize(); err != nil { @@ -1540,6 +1642,14 @@ func (this ActivityStreamsTravel) Serialize() (map[string]interface{}, error) { m[this.ActivityStreamsTo.Name()] = i } } + // Maybe serialize property "tracksTicketsFor" + if this.ForgeFedTracksTicketsFor != nil { + if i, err := this.ForgeFedTracksTicketsFor.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ForgeFedTracksTicketsFor.Name()] = i + } + } // Maybe serialize property "type" if this.JSONLDType != nil { if i, err := this.JSONLDType.Serialize(); err != nil { @@ -1753,6 +1863,21 @@ func (this *ActivityStreamsTravel) SetActivityStreamsUrl(i vocab.ActivityStreams this.ActivityStreamsUrl = i } +// SetForgeFedTeam sets the "team" property. +func (this *ActivityStreamsTravel) SetForgeFedTeam(i vocab.ForgeFedTeamProperty) { + this.ForgeFedTeam = i +} + +// SetForgeFedTicketsTrackedBy sets the "ticketsTrackedBy" property. +func (this *ActivityStreamsTravel) SetForgeFedTicketsTrackedBy(i vocab.ForgeFedTicketsTrackedByProperty) { + this.ForgeFedTicketsTrackedBy = i +} + +// SetForgeFedTracksTicketsFor sets the "tracksTicketsFor" property. +func (this *ActivityStreamsTravel) SetForgeFedTracksTicketsFor(i vocab.ForgeFedTracksTicketsForProperty) { + this.ForgeFedTracksTicketsFor = i +} + // SetJSONLDId sets the "id" property. func (this *ActivityStreamsTravel) SetJSONLDId(i vocab.JSONLDIdProperty) { this.JSONLDId = i diff --git a/streams/impl/activitystreams/type_undo/gen_pkg.go b/streams/impl/activitystreams/type_undo/gen_pkg.go index 5d4f7c1..8b57d9d 100644 --- a/streams/impl/activitystreams/type_undo/gen_pkg.go +++ b/streams/impl/activitystreams/type_undo/gen_pkg.go @@ -148,10 +148,22 @@ type privateManager interface { // method for the "ActivityStreamsTargetProperty" non-functional // property in the vocabulary "ActivityStreams" DeserializeTargetPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTargetProperty, error) + // DeserializeTeamPropertyForgeFed returns the deserialization method for + // the "ForgeFedTeamProperty" non-functional property in the + // vocabulary "ForgeFed" + DeserializeTeamPropertyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTeamProperty, error) + // DeserializeTicketsTrackedByPropertyForgeFed returns the deserialization + // method for the "ForgeFedTicketsTrackedByProperty" non-functional + // property in the vocabulary "ForgeFed" + DeserializeTicketsTrackedByPropertyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTicketsTrackedByProperty, error) // DeserializeToPropertyActivityStreams returns the deserialization method // for the "ActivityStreamsToProperty" non-functional property in the // vocabulary "ActivityStreams" DeserializeToPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsToProperty, error) + // DeserializeTracksTicketsForPropertyForgeFed returns the deserialization + // method for the "ForgeFedTracksTicketsForProperty" non-functional + // property in the vocabulary "ForgeFed" + DeserializeTracksTicketsForPropertyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTracksTicketsForProperty, error) // DeserializeTypePropertyJSONLD returns the deserialization method for // the "JSONLDTypeProperty" non-functional property in the vocabulary // "JSONLD" diff --git a/streams/impl/activitystreams/type_undo/gen_type_activitystreams_undo.go b/streams/impl/activitystreams/type_undo/gen_type_activitystreams_undo.go index f807286..72d6423 100644 --- a/streams/impl/activitystreams/type_undo/gen_type_activitystreams_undo.go +++ b/streams/impl/activitystreams/type_undo/gen_type_activitystreams_undo.go @@ -61,7 +61,10 @@ type ActivityStreamsUndo struct { ActivityStreamsSummary vocab.ActivityStreamsSummaryProperty ActivityStreamsTag vocab.ActivityStreamsTagProperty ActivityStreamsTarget vocab.ActivityStreamsTargetProperty + ForgeFedTeam vocab.ForgeFedTeamProperty + ForgeFedTicketsTrackedBy vocab.ForgeFedTicketsTrackedByProperty ActivityStreamsTo vocab.ActivityStreamsToProperty + ForgeFedTracksTicketsFor vocab.ForgeFedTracksTicketsForProperty JSONLDType vocab.JSONLDTypeProperty ActivityStreamsUpdated vocab.ActivityStreamsUpdatedProperty ActivityStreamsUrl vocab.ActivityStreamsUrlProperty @@ -288,11 +291,26 @@ func DeserializeUndo(m map[string]interface{}, aliasMap map[string]string) (*Act } else if p != nil { this.ActivityStreamsTarget = p } + if p, err := mgr.DeserializeTeamPropertyForgeFed()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ForgeFedTeam = p + } + if p, err := mgr.DeserializeTicketsTrackedByPropertyForgeFed()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ForgeFedTicketsTrackedBy = p + } if p, err := mgr.DeserializeToPropertyActivityStreams()(m, aliasMap); err != nil { return nil, err } else if p != nil { this.ActivityStreamsTo = p } + if p, err := mgr.DeserializeTracksTicketsForPropertyForgeFed()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ForgeFedTracksTicketsFor = p + } if p, err := mgr.DeserializeTypePropertyJSONLD()(m, aliasMap); err != nil { return nil, err } else if p != nil { @@ -387,8 +405,14 @@ func DeserializeUndo(m map[string]interface{}, aliasMap map[string]string) (*Act continue } else if k == "target" { continue + } else if k == "team" { + continue + } else if k == "ticketsTrackedBy" { + continue } else if k == "to" { continue + } else if k == "tracksTicketsFor" { + continue } else if k == "type" { continue } else if k == "updated" { @@ -658,6 +682,23 @@ func (this ActivityStreamsUndo) GetActivityStreamsUrl() vocab.ActivityStreamsUrl return this.ActivityStreamsUrl } +// GetForgeFedTeam returns the "team" property if it exists, and nil otherwise. +func (this ActivityStreamsUndo) GetForgeFedTeam() vocab.ForgeFedTeamProperty { + return this.ForgeFedTeam +} + +// GetForgeFedTicketsTrackedBy returns the "ticketsTrackedBy" property if it +// exists, and nil otherwise. +func (this ActivityStreamsUndo) GetForgeFedTicketsTrackedBy() vocab.ForgeFedTicketsTrackedByProperty { + return this.ForgeFedTicketsTrackedBy +} + +// GetForgeFedTracksTicketsFor returns the "tracksTicketsFor" property if it +// exists, and nil otherwise. +func (this ActivityStreamsUndo) GetForgeFedTracksTicketsFor() vocab.ForgeFedTracksTicketsForProperty { + return this.ForgeFedTracksTicketsFor +} + // GetJSONLDId returns the "id" property if it exists, and nil otherwise. func (this ActivityStreamsUndo) GetJSONLDId() vocab.JSONLDIdProperty { return this.JSONLDId @@ -727,7 +768,10 @@ func (this ActivityStreamsUndo) JSONLDContext() map[string]string { m = this.helperJSONLDContext(this.ActivityStreamsSummary, m) m = this.helperJSONLDContext(this.ActivityStreamsTag, m) m = this.helperJSONLDContext(this.ActivityStreamsTarget, m) + m = this.helperJSONLDContext(this.ForgeFedTeam, m) + m = this.helperJSONLDContext(this.ForgeFedTicketsTrackedBy, m) m = this.helperJSONLDContext(this.ActivityStreamsTo, m) + m = this.helperJSONLDContext(this.ForgeFedTracksTicketsFor, m) m = this.helperJSONLDContext(this.JSONLDType, m) m = this.helperJSONLDContext(this.ActivityStreamsUpdated, m) m = this.helperJSONLDContext(this.ActivityStreamsUrl, m) @@ -1215,6 +1259,34 @@ func (this ActivityStreamsUndo) LessThan(o vocab.ActivityStreamsUndo) bool { // Anything else is greater than nil return false } // Else: Both are nil + // Compare property "team" + if lhs, rhs := this.ForgeFedTeam, o.GetForgeFedTeam(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "ticketsTrackedBy" + if lhs, rhs := this.ForgeFedTicketsTrackedBy, o.GetForgeFedTicketsTrackedBy(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil // Compare property "to" if lhs, rhs := this.ActivityStreamsTo, o.GetActivityStreamsTo(); lhs != nil && rhs != nil { if lhs.LessThan(rhs) { @@ -1229,6 +1301,20 @@ func (this ActivityStreamsUndo) LessThan(o vocab.ActivityStreamsUndo) bool { // Anything else is greater than nil return false } // Else: Both are nil + // Compare property "tracksTicketsFor" + if lhs, rhs := this.ForgeFedTracksTicketsFor, o.GetForgeFedTracksTicketsFor(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil // Compare property "type" if lhs, rhs := this.JSONLDType, o.GetJSONLDType(); lhs != nil && rhs != nil { if lhs.LessThan(rhs) { @@ -1566,6 +1652,22 @@ func (this ActivityStreamsUndo) Serialize() (map[string]interface{}, error) { m[this.ActivityStreamsTarget.Name()] = i } } + // Maybe serialize property "team" + if this.ForgeFedTeam != nil { + if i, err := this.ForgeFedTeam.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ForgeFedTeam.Name()] = i + } + } + // Maybe serialize property "ticketsTrackedBy" + if this.ForgeFedTicketsTrackedBy != nil { + if i, err := this.ForgeFedTicketsTrackedBy.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ForgeFedTicketsTrackedBy.Name()] = i + } + } // Maybe serialize property "to" if this.ActivityStreamsTo != nil { if i, err := this.ActivityStreamsTo.Serialize(); err != nil { @@ -1574,6 +1676,14 @@ func (this ActivityStreamsUndo) Serialize() (map[string]interface{}, error) { m[this.ActivityStreamsTo.Name()] = i } } + // Maybe serialize property "tracksTicketsFor" + if this.ForgeFedTracksTicketsFor != nil { + if i, err := this.ForgeFedTracksTicketsFor.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ForgeFedTracksTicketsFor.Name()] = i + } + } // Maybe serialize property "type" if this.JSONLDType != nil { if i, err := this.JSONLDType.Serialize(); err != nil { @@ -1792,6 +1902,21 @@ func (this *ActivityStreamsUndo) SetActivityStreamsUrl(i vocab.ActivityStreamsUr this.ActivityStreamsUrl = i } +// SetForgeFedTeam sets the "team" property. +func (this *ActivityStreamsUndo) SetForgeFedTeam(i vocab.ForgeFedTeamProperty) { + this.ForgeFedTeam = i +} + +// SetForgeFedTicketsTrackedBy sets the "ticketsTrackedBy" property. +func (this *ActivityStreamsUndo) SetForgeFedTicketsTrackedBy(i vocab.ForgeFedTicketsTrackedByProperty) { + this.ForgeFedTicketsTrackedBy = i +} + +// SetForgeFedTracksTicketsFor sets the "tracksTicketsFor" property. +func (this *ActivityStreamsUndo) SetForgeFedTracksTicketsFor(i vocab.ForgeFedTracksTicketsForProperty) { + this.ForgeFedTracksTicketsFor = i +} + // SetJSONLDId sets the "id" property. func (this *ActivityStreamsUndo) SetJSONLDId(i vocab.JSONLDIdProperty) { this.JSONLDId = i diff --git a/streams/impl/activitystreams/type_update/gen_pkg.go b/streams/impl/activitystreams/type_update/gen_pkg.go index 769860a..1860bda 100644 --- a/streams/impl/activitystreams/type_update/gen_pkg.go +++ b/streams/impl/activitystreams/type_update/gen_pkg.go @@ -148,10 +148,22 @@ type privateManager interface { // method for the "ActivityStreamsTargetProperty" non-functional // property in the vocabulary "ActivityStreams" DeserializeTargetPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTargetProperty, error) + // DeserializeTeamPropertyForgeFed returns the deserialization method for + // the "ForgeFedTeamProperty" non-functional property in the + // vocabulary "ForgeFed" + DeserializeTeamPropertyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTeamProperty, error) + // DeserializeTicketsTrackedByPropertyForgeFed returns the deserialization + // method for the "ForgeFedTicketsTrackedByProperty" non-functional + // property in the vocabulary "ForgeFed" + DeserializeTicketsTrackedByPropertyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTicketsTrackedByProperty, error) // DeserializeToPropertyActivityStreams returns the deserialization method // for the "ActivityStreamsToProperty" non-functional property in the // vocabulary "ActivityStreams" DeserializeToPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsToProperty, error) + // DeserializeTracksTicketsForPropertyForgeFed returns the deserialization + // method for the "ForgeFedTracksTicketsForProperty" non-functional + // property in the vocabulary "ForgeFed" + DeserializeTracksTicketsForPropertyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTracksTicketsForProperty, error) // DeserializeTypePropertyJSONLD returns the deserialization method for // the "JSONLDTypeProperty" non-functional property in the vocabulary // "JSONLD" diff --git a/streams/impl/activitystreams/type_update/gen_type_activitystreams_update.go b/streams/impl/activitystreams/type_update/gen_type_activitystreams_update.go index 150729d..1854826 100644 --- a/streams/impl/activitystreams/type_update/gen_type_activitystreams_update.go +++ b/streams/impl/activitystreams/type_update/gen_type_activitystreams_update.go @@ -58,7 +58,10 @@ type ActivityStreamsUpdate struct { ActivityStreamsSummary vocab.ActivityStreamsSummaryProperty ActivityStreamsTag vocab.ActivityStreamsTagProperty ActivityStreamsTarget vocab.ActivityStreamsTargetProperty + ForgeFedTeam vocab.ForgeFedTeamProperty + ForgeFedTicketsTrackedBy vocab.ForgeFedTicketsTrackedByProperty ActivityStreamsTo vocab.ActivityStreamsToProperty + ForgeFedTracksTicketsFor vocab.ForgeFedTracksTicketsForProperty JSONLDType vocab.JSONLDTypeProperty ActivityStreamsUpdated vocab.ActivityStreamsUpdatedProperty ActivityStreamsUrl vocab.ActivityStreamsUrlProperty @@ -285,11 +288,26 @@ func DeserializeUpdate(m map[string]interface{}, aliasMap map[string]string) (*A } else if p != nil { this.ActivityStreamsTarget = p } + if p, err := mgr.DeserializeTeamPropertyForgeFed()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ForgeFedTeam = p + } + if p, err := mgr.DeserializeTicketsTrackedByPropertyForgeFed()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ForgeFedTicketsTrackedBy = p + } if p, err := mgr.DeserializeToPropertyActivityStreams()(m, aliasMap); err != nil { return nil, err } else if p != nil { this.ActivityStreamsTo = p } + if p, err := mgr.DeserializeTracksTicketsForPropertyForgeFed()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ForgeFedTracksTicketsFor = p + } if p, err := mgr.DeserializeTypePropertyJSONLD()(m, aliasMap); err != nil { return nil, err } else if p != nil { @@ -384,8 +402,14 @@ func DeserializeUpdate(m map[string]interface{}, aliasMap map[string]string) (*A continue } else if k == "target" { continue + } else if k == "team" { + continue + } else if k == "ticketsTrackedBy" { + continue } else if k == "to" { continue + } else if k == "tracksTicketsFor" { + continue } else if k == "type" { continue } else if k == "updated" { @@ -655,6 +679,23 @@ func (this ActivityStreamsUpdate) GetActivityStreamsUrl() vocab.ActivityStreamsU return this.ActivityStreamsUrl } +// GetForgeFedTeam returns the "team" property if it exists, and nil otherwise. +func (this ActivityStreamsUpdate) GetForgeFedTeam() vocab.ForgeFedTeamProperty { + return this.ForgeFedTeam +} + +// GetForgeFedTicketsTrackedBy returns the "ticketsTrackedBy" property if it +// exists, and nil otherwise. +func (this ActivityStreamsUpdate) GetForgeFedTicketsTrackedBy() vocab.ForgeFedTicketsTrackedByProperty { + return this.ForgeFedTicketsTrackedBy +} + +// GetForgeFedTracksTicketsFor returns the "tracksTicketsFor" property if it +// exists, and nil otherwise. +func (this ActivityStreamsUpdate) GetForgeFedTracksTicketsFor() vocab.ForgeFedTracksTicketsForProperty { + return this.ForgeFedTracksTicketsFor +} + // GetJSONLDId returns the "id" property if it exists, and nil otherwise. func (this ActivityStreamsUpdate) GetJSONLDId() vocab.JSONLDIdProperty { return this.JSONLDId @@ -724,7 +765,10 @@ func (this ActivityStreamsUpdate) JSONLDContext() map[string]string { m = this.helperJSONLDContext(this.ActivityStreamsSummary, m) m = this.helperJSONLDContext(this.ActivityStreamsTag, m) m = this.helperJSONLDContext(this.ActivityStreamsTarget, m) + m = this.helperJSONLDContext(this.ForgeFedTeam, m) + m = this.helperJSONLDContext(this.ForgeFedTicketsTrackedBy, m) m = this.helperJSONLDContext(this.ActivityStreamsTo, m) + m = this.helperJSONLDContext(this.ForgeFedTracksTicketsFor, m) m = this.helperJSONLDContext(this.JSONLDType, m) m = this.helperJSONLDContext(this.ActivityStreamsUpdated, m) m = this.helperJSONLDContext(this.ActivityStreamsUrl, m) @@ -1212,6 +1256,34 @@ func (this ActivityStreamsUpdate) LessThan(o vocab.ActivityStreamsUpdate) bool { // Anything else is greater than nil return false } // Else: Both are nil + // Compare property "team" + if lhs, rhs := this.ForgeFedTeam, o.GetForgeFedTeam(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "ticketsTrackedBy" + if lhs, rhs := this.ForgeFedTicketsTrackedBy, o.GetForgeFedTicketsTrackedBy(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil // Compare property "to" if lhs, rhs := this.ActivityStreamsTo, o.GetActivityStreamsTo(); lhs != nil && rhs != nil { if lhs.LessThan(rhs) { @@ -1226,6 +1298,20 @@ func (this ActivityStreamsUpdate) LessThan(o vocab.ActivityStreamsUpdate) bool { // Anything else is greater than nil return false } // Else: Both are nil + // Compare property "tracksTicketsFor" + if lhs, rhs := this.ForgeFedTracksTicketsFor, o.GetForgeFedTracksTicketsFor(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil // Compare property "type" if lhs, rhs := this.JSONLDType, o.GetJSONLDType(); lhs != nil && rhs != nil { if lhs.LessThan(rhs) { @@ -1563,6 +1649,22 @@ func (this ActivityStreamsUpdate) Serialize() (map[string]interface{}, error) { m[this.ActivityStreamsTarget.Name()] = i } } + // Maybe serialize property "team" + if this.ForgeFedTeam != nil { + if i, err := this.ForgeFedTeam.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ForgeFedTeam.Name()] = i + } + } + // Maybe serialize property "ticketsTrackedBy" + if this.ForgeFedTicketsTrackedBy != nil { + if i, err := this.ForgeFedTicketsTrackedBy.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ForgeFedTicketsTrackedBy.Name()] = i + } + } // Maybe serialize property "to" if this.ActivityStreamsTo != nil { if i, err := this.ActivityStreamsTo.Serialize(); err != nil { @@ -1571,6 +1673,14 @@ func (this ActivityStreamsUpdate) Serialize() (map[string]interface{}, error) { m[this.ActivityStreamsTo.Name()] = i } } + // Maybe serialize property "tracksTicketsFor" + if this.ForgeFedTracksTicketsFor != nil { + if i, err := this.ForgeFedTracksTicketsFor.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ForgeFedTracksTicketsFor.Name()] = i + } + } // Maybe serialize property "type" if this.JSONLDType != nil { if i, err := this.JSONLDType.Serialize(); err != nil { @@ -1789,6 +1899,21 @@ func (this *ActivityStreamsUpdate) SetActivityStreamsUrl(i vocab.ActivityStreams this.ActivityStreamsUrl = i } +// SetForgeFedTeam sets the "team" property. +func (this *ActivityStreamsUpdate) SetForgeFedTeam(i vocab.ForgeFedTeamProperty) { + this.ForgeFedTeam = i +} + +// SetForgeFedTicketsTrackedBy sets the "ticketsTrackedBy" property. +func (this *ActivityStreamsUpdate) SetForgeFedTicketsTrackedBy(i vocab.ForgeFedTicketsTrackedByProperty) { + this.ForgeFedTicketsTrackedBy = i +} + +// SetForgeFedTracksTicketsFor sets the "tracksTicketsFor" property. +func (this *ActivityStreamsUpdate) SetForgeFedTracksTicketsFor(i vocab.ForgeFedTracksTicketsForProperty) { + this.ForgeFedTracksTicketsFor = i +} + // SetJSONLDId sets the "id" property. func (this *ActivityStreamsUpdate) SetJSONLDId(i vocab.JSONLDIdProperty) { this.JSONLDId = i diff --git a/streams/impl/activitystreams/type_video/gen_pkg.go b/streams/impl/activitystreams/type_video/gen_pkg.go index 42dce2a..ad26144 100644 --- a/streams/impl/activitystreams/type_video/gen_pkg.go +++ b/streams/impl/activitystreams/type_video/gen_pkg.go @@ -132,10 +132,22 @@ type privateManager interface { // method for the "ActivityStreamsTagProperty" non-functional property // in the vocabulary "ActivityStreams" DeserializeTagPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTagProperty, error) + // DeserializeTeamPropertyForgeFed returns the deserialization method for + // the "ForgeFedTeamProperty" non-functional property in the + // vocabulary "ForgeFed" + DeserializeTeamPropertyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTeamProperty, error) + // DeserializeTicketsTrackedByPropertyForgeFed returns the deserialization + // method for the "ForgeFedTicketsTrackedByProperty" non-functional + // property in the vocabulary "ForgeFed" + DeserializeTicketsTrackedByPropertyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTicketsTrackedByProperty, error) // DeserializeToPropertyActivityStreams returns the deserialization method // for the "ActivityStreamsToProperty" non-functional property in the // vocabulary "ActivityStreams" DeserializeToPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsToProperty, error) + // DeserializeTracksTicketsForPropertyForgeFed returns the deserialization + // method for the "ForgeFedTracksTicketsForProperty" non-functional + // property in the vocabulary "ForgeFed" + DeserializeTracksTicketsForPropertyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTracksTicketsForProperty, error) // DeserializeTypePropertyJSONLD returns the deserialization method for // the "JSONLDTypeProperty" non-functional property in the vocabulary // "JSONLD" diff --git a/streams/impl/activitystreams/type_video/gen_type_activitystreams_video.go b/streams/impl/activitystreams/type_video/gen_type_activitystreams_video.go index c903b34..b77dbd9 100644 --- a/streams/impl/activitystreams/type_video/gen_type_activitystreams_video.go +++ b/streams/impl/activitystreams/type_video/gen_type_activitystreams_video.go @@ -48,7 +48,10 @@ type ActivityStreamsVideo struct { ActivityStreamsStartTime vocab.ActivityStreamsStartTimeProperty ActivityStreamsSummary vocab.ActivityStreamsSummaryProperty ActivityStreamsTag vocab.ActivityStreamsTagProperty + ForgeFedTeam vocab.ForgeFedTeamProperty + ForgeFedTicketsTrackedBy vocab.ForgeFedTicketsTrackedByProperty ActivityStreamsTo vocab.ActivityStreamsToProperty + ForgeFedTracksTicketsFor vocab.ForgeFedTracksTicketsForProperty JSONLDType vocab.JSONLDTypeProperty ActivityStreamsUpdated vocab.ActivityStreamsUpdatedProperty ActivityStreamsUrl vocab.ActivityStreamsUrlProperty @@ -255,11 +258,26 @@ func DeserializeVideo(m map[string]interface{}, aliasMap map[string]string) (*Ac } else if p != nil { this.ActivityStreamsTag = p } + if p, err := mgr.DeserializeTeamPropertyForgeFed()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ForgeFedTeam = p + } + if p, err := mgr.DeserializeTicketsTrackedByPropertyForgeFed()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ForgeFedTicketsTrackedBy = p + } if p, err := mgr.DeserializeToPropertyActivityStreams()(m, aliasMap); err != nil { return nil, err } else if p != nil { this.ActivityStreamsTo = p } + if p, err := mgr.DeserializeTracksTicketsForPropertyForgeFed()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ForgeFedTracksTicketsFor = p + } if p, err := mgr.DeserializeTypePropertyJSONLD()(m, aliasMap); err != nil { return nil, err } else if p != nil { @@ -346,8 +364,14 @@ func DeserializeVideo(m map[string]interface{}, aliasMap map[string]string) (*Ac continue } else if k == "tag" { continue + } else if k == "team" { + continue + } else if k == "ticketsTrackedBy" { + continue } else if k == "to" { continue + } else if k == "tracksTicketsFor" { + continue } else if k == "type" { continue } else if k == "updated" { @@ -587,6 +611,23 @@ func (this ActivityStreamsVideo) GetActivityStreamsUrl() vocab.ActivityStreamsUr return this.ActivityStreamsUrl } +// GetForgeFedTeam returns the "team" property if it exists, and nil otherwise. +func (this ActivityStreamsVideo) GetForgeFedTeam() vocab.ForgeFedTeamProperty { + return this.ForgeFedTeam +} + +// GetForgeFedTicketsTrackedBy returns the "ticketsTrackedBy" property if it +// exists, and nil otherwise. +func (this ActivityStreamsVideo) GetForgeFedTicketsTrackedBy() vocab.ForgeFedTicketsTrackedByProperty { + return this.ForgeFedTicketsTrackedBy +} + +// GetForgeFedTracksTicketsFor returns the "tracksTicketsFor" property if it +// exists, and nil otherwise. +func (this ActivityStreamsVideo) GetForgeFedTracksTicketsFor() vocab.ForgeFedTracksTicketsForProperty { + return this.ForgeFedTracksTicketsFor +} + // GetJSONLDId returns the "id" property if it exists, and nil otherwise. func (this ActivityStreamsVideo) GetJSONLDId() vocab.JSONLDIdProperty { return this.JSONLDId @@ -657,7 +698,10 @@ func (this ActivityStreamsVideo) JSONLDContext() map[string]string { m = this.helperJSONLDContext(this.ActivityStreamsStartTime, m) m = this.helperJSONLDContext(this.ActivityStreamsSummary, m) m = this.helperJSONLDContext(this.ActivityStreamsTag, m) + m = this.helperJSONLDContext(this.ForgeFedTeam, m) + m = this.helperJSONLDContext(this.ForgeFedTicketsTrackedBy, m) m = this.helperJSONLDContext(this.ActivityStreamsTo, m) + m = this.helperJSONLDContext(this.ForgeFedTracksTicketsFor, m) m = this.helperJSONLDContext(this.JSONLDType, m) m = this.helperJSONLDContext(this.ActivityStreamsUpdated, m) m = this.helperJSONLDContext(this.ActivityStreamsUrl, m) @@ -1089,6 +1133,34 @@ func (this ActivityStreamsVideo) LessThan(o vocab.ActivityStreamsVideo) bool { // Anything else is greater than nil return false } // Else: Both are nil + // Compare property "team" + if lhs, rhs := this.ForgeFedTeam, o.GetForgeFedTeam(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "ticketsTrackedBy" + if lhs, rhs := this.ForgeFedTicketsTrackedBy, o.GetForgeFedTicketsTrackedBy(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil // Compare property "to" if lhs, rhs := this.ActivityStreamsTo, o.GetActivityStreamsTo(); lhs != nil && rhs != nil { if lhs.LessThan(rhs) { @@ -1103,6 +1175,20 @@ func (this ActivityStreamsVideo) LessThan(o vocab.ActivityStreamsVideo) bool { // Anything else is greater than nil return false } // Else: Both are nil + // Compare property "tracksTicketsFor" + if lhs, rhs := this.ForgeFedTracksTicketsFor, o.GetForgeFedTracksTicketsFor(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil // Compare property "type" if lhs, rhs := this.JSONLDType, o.GetJSONLDType(); lhs != nil && rhs != nil { if lhs.LessThan(rhs) { @@ -1408,6 +1494,22 @@ func (this ActivityStreamsVideo) Serialize() (map[string]interface{}, error) { m[this.ActivityStreamsTag.Name()] = i } } + // Maybe serialize property "team" + if this.ForgeFedTeam != nil { + if i, err := this.ForgeFedTeam.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ForgeFedTeam.Name()] = i + } + } + // Maybe serialize property "ticketsTrackedBy" + if this.ForgeFedTicketsTrackedBy != nil { + if i, err := this.ForgeFedTicketsTrackedBy.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ForgeFedTicketsTrackedBy.Name()] = i + } + } // Maybe serialize property "to" if this.ActivityStreamsTo != nil { if i, err := this.ActivityStreamsTo.Serialize(); err != nil { @@ -1416,6 +1518,14 @@ func (this ActivityStreamsVideo) Serialize() (map[string]interface{}, error) { m[this.ActivityStreamsTo.Name()] = i } } + // Maybe serialize property "tracksTicketsFor" + if this.ForgeFedTracksTicketsFor != nil { + if i, err := this.ForgeFedTracksTicketsFor.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ForgeFedTracksTicketsFor.Name()] = i + } + } // Maybe serialize property "type" if this.JSONLDType != nil { if i, err := this.JSONLDType.Serialize(); err != nil { @@ -1609,6 +1719,21 @@ func (this *ActivityStreamsVideo) SetActivityStreamsUrl(i vocab.ActivityStreamsU this.ActivityStreamsUrl = i } +// SetForgeFedTeam sets the "team" property. +func (this *ActivityStreamsVideo) SetForgeFedTeam(i vocab.ForgeFedTeamProperty) { + this.ForgeFedTeam = i +} + +// SetForgeFedTicketsTrackedBy sets the "ticketsTrackedBy" property. +func (this *ActivityStreamsVideo) SetForgeFedTicketsTrackedBy(i vocab.ForgeFedTicketsTrackedByProperty) { + this.ForgeFedTicketsTrackedBy = i +} + +// SetForgeFedTracksTicketsFor sets the "tracksTicketsFor" property. +func (this *ActivityStreamsVideo) SetForgeFedTracksTicketsFor(i vocab.ForgeFedTracksTicketsForProperty) { + this.ForgeFedTracksTicketsFor = i +} + // SetJSONLDId sets the "id" property. func (this *ActivityStreamsVideo) SetJSONLDId(i vocab.JSONLDIdProperty) { this.JSONLDId = i diff --git a/streams/impl/activitystreams/type_view/gen_pkg.go b/streams/impl/activitystreams/type_view/gen_pkg.go index 4daf2cf..8bc275b 100644 --- a/streams/impl/activitystreams/type_view/gen_pkg.go +++ b/streams/impl/activitystreams/type_view/gen_pkg.go @@ -148,10 +148,22 @@ type privateManager interface { // method for the "ActivityStreamsTargetProperty" non-functional // property in the vocabulary "ActivityStreams" DeserializeTargetPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTargetProperty, error) + // DeserializeTeamPropertyForgeFed returns the deserialization method for + // the "ForgeFedTeamProperty" non-functional property in the + // vocabulary "ForgeFed" + DeserializeTeamPropertyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTeamProperty, error) + // DeserializeTicketsTrackedByPropertyForgeFed returns the deserialization + // method for the "ForgeFedTicketsTrackedByProperty" non-functional + // property in the vocabulary "ForgeFed" + DeserializeTicketsTrackedByPropertyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTicketsTrackedByProperty, error) // DeserializeToPropertyActivityStreams returns the deserialization method // for the "ActivityStreamsToProperty" non-functional property in the // vocabulary "ActivityStreams" DeserializeToPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsToProperty, error) + // DeserializeTracksTicketsForPropertyForgeFed returns the deserialization + // method for the "ForgeFedTracksTicketsForProperty" non-functional + // property in the vocabulary "ForgeFed" + DeserializeTracksTicketsForPropertyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTracksTicketsForProperty, error) // DeserializeTypePropertyJSONLD returns the deserialization method for // the "JSONLDTypeProperty" non-functional property in the vocabulary // "JSONLD" diff --git a/streams/impl/activitystreams/type_view/gen_type_activitystreams_view.go b/streams/impl/activitystreams/type_view/gen_type_activitystreams_view.go index 347b87d..dd80dcc 100644 --- a/streams/impl/activitystreams/type_view/gen_type_activitystreams_view.go +++ b/streams/impl/activitystreams/type_view/gen_type_activitystreams_view.go @@ -58,7 +58,10 @@ type ActivityStreamsView struct { ActivityStreamsSummary vocab.ActivityStreamsSummaryProperty ActivityStreamsTag vocab.ActivityStreamsTagProperty ActivityStreamsTarget vocab.ActivityStreamsTargetProperty + ForgeFedTeam vocab.ForgeFedTeamProperty + ForgeFedTicketsTrackedBy vocab.ForgeFedTicketsTrackedByProperty ActivityStreamsTo vocab.ActivityStreamsToProperty + ForgeFedTracksTicketsFor vocab.ForgeFedTracksTicketsForProperty JSONLDType vocab.JSONLDTypeProperty ActivityStreamsUpdated vocab.ActivityStreamsUpdatedProperty ActivityStreamsUrl vocab.ActivityStreamsUrlProperty @@ -285,11 +288,26 @@ func DeserializeView(m map[string]interface{}, aliasMap map[string]string) (*Act } else if p != nil { this.ActivityStreamsTarget = p } + if p, err := mgr.DeserializeTeamPropertyForgeFed()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ForgeFedTeam = p + } + if p, err := mgr.DeserializeTicketsTrackedByPropertyForgeFed()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ForgeFedTicketsTrackedBy = p + } if p, err := mgr.DeserializeToPropertyActivityStreams()(m, aliasMap); err != nil { return nil, err } else if p != nil { this.ActivityStreamsTo = p } + if p, err := mgr.DeserializeTracksTicketsForPropertyForgeFed()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ForgeFedTracksTicketsFor = p + } if p, err := mgr.DeserializeTypePropertyJSONLD()(m, aliasMap); err != nil { return nil, err } else if p != nil { @@ -384,8 +402,14 @@ func DeserializeView(m map[string]interface{}, aliasMap map[string]string) (*Act continue } else if k == "target" { continue + } else if k == "team" { + continue + } else if k == "ticketsTrackedBy" { + continue } else if k == "to" { continue + } else if k == "tracksTicketsFor" { + continue } else if k == "type" { continue } else if k == "updated" { @@ -655,6 +679,23 @@ func (this ActivityStreamsView) GetActivityStreamsUrl() vocab.ActivityStreamsUrl return this.ActivityStreamsUrl } +// GetForgeFedTeam returns the "team" property if it exists, and nil otherwise. +func (this ActivityStreamsView) GetForgeFedTeam() vocab.ForgeFedTeamProperty { + return this.ForgeFedTeam +} + +// GetForgeFedTicketsTrackedBy returns the "ticketsTrackedBy" property if it +// exists, and nil otherwise. +func (this ActivityStreamsView) GetForgeFedTicketsTrackedBy() vocab.ForgeFedTicketsTrackedByProperty { + return this.ForgeFedTicketsTrackedBy +} + +// GetForgeFedTracksTicketsFor returns the "tracksTicketsFor" property if it +// exists, and nil otherwise. +func (this ActivityStreamsView) GetForgeFedTracksTicketsFor() vocab.ForgeFedTracksTicketsForProperty { + return this.ForgeFedTracksTicketsFor +} + // GetJSONLDId returns the "id" property if it exists, and nil otherwise. func (this ActivityStreamsView) GetJSONLDId() vocab.JSONLDIdProperty { return this.JSONLDId @@ -724,7 +765,10 @@ func (this ActivityStreamsView) JSONLDContext() map[string]string { m = this.helperJSONLDContext(this.ActivityStreamsSummary, m) m = this.helperJSONLDContext(this.ActivityStreamsTag, m) m = this.helperJSONLDContext(this.ActivityStreamsTarget, m) + m = this.helperJSONLDContext(this.ForgeFedTeam, m) + m = this.helperJSONLDContext(this.ForgeFedTicketsTrackedBy, m) m = this.helperJSONLDContext(this.ActivityStreamsTo, m) + m = this.helperJSONLDContext(this.ForgeFedTracksTicketsFor, m) m = this.helperJSONLDContext(this.JSONLDType, m) m = this.helperJSONLDContext(this.ActivityStreamsUpdated, m) m = this.helperJSONLDContext(this.ActivityStreamsUrl, m) @@ -1212,6 +1256,34 @@ func (this ActivityStreamsView) LessThan(o vocab.ActivityStreamsView) bool { // Anything else is greater than nil return false } // Else: Both are nil + // Compare property "team" + if lhs, rhs := this.ForgeFedTeam, o.GetForgeFedTeam(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "ticketsTrackedBy" + if lhs, rhs := this.ForgeFedTicketsTrackedBy, o.GetForgeFedTicketsTrackedBy(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil // Compare property "to" if lhs, rhs := this.ActivityStreamsTo, o.GetActivityStreamsTo(); lhs != nil && rhs != nil { if lhs.LessThan(rhs) { @@ -1226,6 +1298,20 @@ func (this ActivityStreamsView) LessThan(o vocab.ActivityStreamsView) bool { // Anything else is greater than nil return false } // Else: Both are nil + // Compare property "tracksTicketsFor" + if lhs, rhs := this.ForgeFedTracksTicketsFor, o.GetForgeFedTracksTicketsFor(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil // Compare property "type" if lhs, rhs := this.JSONLDType, o.GetJSONLDType(); lhs != nil && rhs != nil { if lhs.LessThan(rhs) { @@ -1563,6 +1649,22 @@ func (this ActivityStreamsView) Serialize() (map[string]interface{}, error) { m[this.ActivityStreamsTarget.Name()] = i } } + // Maybe serialize property "team" + if this.ForgeFedTeam != nil { + if i, err := this.ForgeFedTeam.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ForgeFedTeam.Name()] = i + } + } + // Maybe serialize property "ticketsTrackedBy" + if this.ForgeFedTicketsTrackedBy != nil { + if i, err := this.ForgeFedTicketsTrackedBy.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ForgeFedTicketsTrackedBy.Name()] = i + } + } // Maybe serialize property "to" if this.ActivityStreamsTo != nil { if i, err := this.ActivityStreamsTo.Serialize(); err != nil { @@ -1571,6 +1673,14 @@ func (this ActivityStreamsView) Serialize() (map[string]interface{}, error) { m[this.ActivityStreamsTo.Name()] = i } } + // Maybe serialize property "tracksTicketsFor" + if this.ForgeFedTracksTicketsFor != nil { + if i, err := this.ForgeFedTracksTicketsFor.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ForgeFedTracksTicketsFor.Name()] = i + } + } // Maybe serialize property "type" if this.JSONLDType != nil { if i, err := this.JSONLDType.Serialize(); err != nil { @@ -1789,6 +1899,21 @@ func (this *ActivityStreamsView) SetActivityStreamsUrl(i vocab.ActivityStreamsUr this.ActivityStreamsUrl = i } +// SetForgeFedTeam sets the "team" property. +func (this *ActivityStreamsView) SetForgeFedTeam(i vocab.ForgeFedTeamProperty) { + this.ForgeFedTeam = i +} + +// SetForgeFedTicketsTrackedBy sets the "ticketsTrackedBy" property. +func (this *ActivityStreamsView) SetForgeFedTicketsTrackedBy(i vocab.ForgeFedTicketsTrackedByProperty) { + this.ForgeFedTicketsTrackedBy = i +} + +// SetForgeFedTracksTicketsFor sets the "tracksTicketsFor" property. +func (this *ActivityStreamsView) SetForgeFedTracksTicketsFor(i vocab.ForgeFedTracksTicketsForProperty) { + this.ForgeFedTracksTicketsFor = i +} + // SetJSONLDId sets the "id" property. func (this *ActivityStreamsView) SetJSONLDId(i vocab.JSONLDIdProperty) { this.JSONLDId = i diff --git a/streams/impl/forgefed/property_assignedto/gen_doc.go b/streams/impl/forgefed/property_assignedto/gen_doc.go new file mode 100644 index 0000000..a7d3d36 --- /dev/null +++ b/streams/impl/forgefed/property_assignedto/gen_doc.go @@ -0,0 +1,17 @@ +// Code generated by astool. DO NOT EDIT. + +// Package propertyassignedto contains the implementation for the assignedTo +// property. All applications are strongly encouraged to use the interface +// instead of this concrete definition. The interfaces allow applications to +// consume only the types and properties needed and be independent of the +// go-fed implementation if another alternative implementation is created. +// This package is code-generated and subject to the same license as the +// go-fed tool used to generate it. +// +// This package is independent of other types' and properties' implementations +// by having a Manager injected into it to act as a factory for the concrete +// implementations. The implementations have been generated into their own +// separate subpackages for each vocabulary. +// +// Strongly consider using the interfaces instead of this package. +package propertyassignedto diff --git a/streams/impl/forgefed/property_assignedto/gen_pkg.go b/streams/impl/forgefed/property_assignedto/gen_pkg.go new file mode 100644 index 0000000..554417f --- /dev/null +++ b/streams/impl/forgefed/property_assignedto/gen_pkg.go @@ -0,0 +1,22 @@ +// Code generated by astool. DO NOT EDIT. + +package propertyassignedto + +import vocab "github.com/go-fed/activity/streams/vocab" + +var mgr privateManager + +// privateManager abstracts the code-generated manager that provides access to +// concrete implementations. +type privateManager interface { + // DeserializePersonActivityStreams returns the deserialization method for + // the "ActivityStreamsPerson" non-functional property in the + // vocabulary "ActivityStreams" + DeserializePersonActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsPerson, error) +} + +// SetManager sets the manager package-global variable. For internal use only, do +// not use as part of Application behavior. Must be called at golang init time. +func SetManager(m privateManager) { + mgr = m +} diff --git a/streams/impl/forgefed/property_assignedto/gen_property_forgefed_assignedTo.go b/streams/impl/forgefed/property_assignedto/gen_property_forgefed_assignedTo.go new file mode 100644 index 0000000..0c8a861 --- /dev/null +++ b/streams/impl/forgefed/property_assignedto/gen_property_forgefed_assignedTo.go @@ -0,0 +1,224 @@ +// Code generated by astool. DO NOT EDIT. + +package propertyassignedto + +import ( + "fmt" + vocab "github.com/go-fed/activity/streams/vocab" + "net/url" +) + +// ForgeFedAssignedToProperty is the functional property "assignedTo". It is +// permitted to be a single nilable value type. +type ForgeFedAssignedToProperty struct { + activitystreamsPersonMember vocab.ActivityStreamsPerson + unknown interface{} + iri *url.URL + alias string +} + +// DeserializeAssignedToProperty creates a "assignedTo" property from an interface +// representation that has been unmarshalled from a text or binary format. +func DeserializeAssignedToProperty(m map[string]interface{}, aliasMap map[string]string) (*ForgeFedAssignedToProperty, error) { + alias := "" + if a, ok := aliasMap["https://forgefed.peers.community/ns"]; ok { + alias = a + } + propName := "assignedTo" + if len(alias) > 0 { + // Use alias both to find the property, and set within the property. + propName = fmt.Sprintf("%s:%s", alias, "assignedTo") + } + i, ok := m[propName] + + if ok { + if s, ok := i.(string); ok { + u, err := url.Parse(s) + // If error exists, don't error out -- skip this and treat as unknown string ([]byte) at worst + // Also, if no scheme exists, don't treat it as a URL -- net/url is greedy + if err == nil && len(u.Scheme) > 0 { + this := &ForgeFedAssignedToProperty{ + alias: alias, + iri: u, + } + return this, nil + } + } + if m, ok := i.(map[string]interface{}); ok { + if v, err := mgr.DeserializePersonActivityStreams()(m, aliasMap); err == nil { + this := &ForgeFedAssignedToProperty{ + activitystreamsPersonMember: v, + alias: alias, + } + return this, nil + } + } + this := &ForgeFedAssignedToProperty{ + alias: alias, + unknown: i, + } + return this, nil + } + return nil, nil +} + +// NewForgeFedAssignedToProperty creates a new assignedTo property. +func NewForgeFedAssignedToProperty() *ForgeFedAssignedToProperty { + return &ForgeFedAssignedToProperty{alias: ""} +} + +// Clear ensures no value of this property is set. Calling IsActivityStreamsPerson +// afterwards will return false. +func (this *ForgeFedAssignedToProperty) Clear() { + this.unknown = nil + this.iri = nil + this.activitystreamsPersonMember = nil +} + +// Get returns the value of this property. When IsActivityStreamsPerson returns +// false, Get will return any arbitrary value. +func (this ForgeFedAssignedToProperty) Get() vocab.ActivityStreamsPerson { + return this.activitystreamsPersonMember +} + +// GetIRI returns the IRI of this property. When IsIRI returns false, GetIRI will +// return any arbitrary value. +func (this ForgeFedAssignedToProperty) GetIRI() *url.URL { + return this.iri +} + +// GetType returns the value in this property as a Type. Returns nil if the value +// is not an ActivityStreams type, such as an IRI or another value. +func (this ForgeFedAssignedToProperty) GetType() vocab.Type { + if this.IsActivityStreamsPerson() { + return this.Get() + } + + return nil +} + +// HasAny returns true if the value or IRI is set. +func (this ForgeFedAssignedToProperty) HasAny() bool { + return this.IsActivityStreamsPerson() || this.iri != nil +} + +// IsActivityStreamsPerson returns true if this property is set and not an IRI. +func (this ForgeFedAssignedToProperty) IsActivityStreamsPerson() bool { + return this.activitystreamsPersonMember != nil +} + +// IsIRI returns true if this property is an IRI. +func (this ForgeFedAssignedToProperty) IsIRI() bool { + return this.iri != nil +} + +// JSONLDContext returns the JSONLD URIs required in the context string for this +// property and the specific values that are set. The value in the map is the +// alias used to import the property's value or values. +func (this ForgeFedAssignedToProperty) JSONLDContext() map[string]string { + m := map[string]string{"https://forgefed.peers.community/ns": this.alias} + var child map[string]string + if this.IsActivityStreamsPerson() { + child = this.Get().JSONLDContext() + } + /* + Since the literal maps in this function are determined at + code-generation time, this loop should not overwrite an existing key with a + new value. + */ + for k, v := range child { + m[k] = v + } + return m +} + +// KindIndex computes an arbitrary value for indexing this kind of value. This is +// a leaky API detail only for folks looking to replace the go-fed +// implementation. Applications should not use this method. +func (this ForgeFedAssignedToProperty) KindIndex() int { + if this.IsActivityStreamsPerson() { + return 0 + } + if this.IsIRI() { + return -2 + } + return -1 +} + +// LessThan compares two instances of this property with an arbitrary but stable +// comparison. Applications should not use this because it is only meant to +// help alternative implementations to go-fed to be able to normalize +// nonfunctional properties. +func (this ForgeFedAssignedToProperty) LessThan(o vocab.ForgeFedAssignedToProperty) bool { + // LessThan comparison for if either or both are IRIs. + if this.IsIRI() && o.IsIRI() { + return this.iri.String() < o.GetIRI().String() + } else if this.IsIRI() { + // IRIs are always less than other values, none, or unknowns + return true + } else if o.IsIRI() { + // This other, none, or unknown value is always greater than IRIs + return false + } + // LessThan comparison for the single value or unknown value. + if !this.IsActivityStreamsPerson() && !o.IsActivityStreamsPerson() { + // Both are unknowns. + return false + } else if this.IsActivityStreamsPerson() && !o.IsActivityStreamsPerson() { + // Values are always greater than unknown values. + return false + } else if !this.IsActivityStreamsPerson() && o.IsActivityStreamsPerson() { + // Unknowns are always less than known values. + return true + } else { + // Actual comparison. + return this.Get().LessThan(o.Get()) + } +} + +// Name returns the name of this property: "assignedTo". +func (this ForgeFedAssignedToProperty) Name() string { + if len(this.alias) > 0 { + return this.alias + ":" + "assignedTo" + } else { + return "assignedTo" + } +} + +// Serialize converts this into an interface representation suitable for +// marshalling into a text or binary format. Applications should not need this +// function as most typical use cases serialize types instead of individual +// properties. It is exposed for alternatives to go-fed implementations to use. +func (this ForgeFedAssignedToProperty) Serialize() (interface{}, error) { + if this.IsActivityStreamsPerson() { + return this.Get().Serialize() + } else if this.IsIRI() { + return this.iri.String(), nil + } + return this.unknown, nil +} + +// Set sets the value of this property. Calling IsActivityStreamsPerson afterwards +// will return true. +func (this *ForgeFedAssignedToProperty) Set(v vocab.ActivityStreamsPerson) { + this.Clear() + this.activitystreamsPersonMember = v +} + +// SetIRI sets the value of this property. Calling IsIRI afterwards will return +// true. +func (this *ForgeFedAssignedToProperty) SetIRI(v *url.URL) { + this.Clear() + this.iri = v +} + +// SetType attempts to set the property for the arbitrary type. Returns an error +// if it is not a valid type to set on this property. +func (this *ForgeFedAssignedToProperty) SetType(t vocab.Type) error { + if v, ok := t.(vocab.ActivityStreamsPerson); ok { + this.Set(v) + return nil + } + + return fmt.Errorf("illegal type to set on assignedTo property: %T", t) +} diff --git a/streams/impl/forgefed/property_committed/gen_doc.go b/streams/impl/forgefed/property_committed/gen_doc.go new file mode 100644 index 0000000..316ae31 --- /dev/null +++ b/streams/impl/forgefed/property_committed/gen_doc.go @@ -0,0 +1,17 @@ +// Code generated by astool. DO NOT EDIT. + +// Package propertycommitted contains the implementation for the committed +// property. All applications are strongly encouraged to use the interface +// instead of this concrete definition. The interfaces allow applications to +// consume only the types and properties needed and be independent of the +// go-fed implementation if another alternative implementation is created. +// This package is code-generated and subject to the same license as the +// go-fed tool used to generate it. +// +// This package is independent of other types' and properties' implementations +// by having a Manager injected into it to act as a factory for the concrete +// implementations. The implementations have been generated into their own +// separate subpackages for each vocabulary. +// +// Strongly consider using the interfaces instead of this package. +package propertycommitted diff --git a/streams/impl/forgefed/property_committed/gen_pkg.go b/streams/impl/forgefed/property_committed/gen_pkg.go new file mode 100644 index 0000000..9aeea0f --- /dev/null +++ b/streams/impl/forgefed/property_committed/gen_pkg.go @@ -0,0 +1,15 @@ +// Code generated by astool. DO NOT EDIT. + +package propertycommitted + +var mgr privateManager + +// privateManager abstracts the code-generated manager that provides access to +// concrete implementations. +type privateManager interface{} + +// SetManager sets the manager package-global variable. For internal use only, do +// not use as part of Application behavior. Must be called at golang init time. +func SetManager(m privateManager) { + mgr = m +} diff --git a/streams/impl/forgefed/property_committed/gen_property_forgefed_committed.go b/streams/impl/forgefed/property_committed/gen_property_forgefed_committed.go new file mode 100644 index 0000000..c84eddf --- /dev/null +++ b/streams/impl/forgefed/property_committed/gen_property_forgefed_committed.go @@ -0,0 +1,204 @@ +// Code generated by astool. DO NOT EDIT. + +package propertycommitted + +import ( + "fmt" + datetime "github.com/go-fed/activity/streams/values/dateTime" + vocab "github.com/go-fed/activity/streams/vocab" + "net/url" + "time" +) + +// ForgeFedCommittedProperty is the functional property "committed". It is +// permitted to be a single default-valued value type. +type ForgeFedCommittedProperty struct { + xmlschemaDateTimeMember time.Time + hasDateTimeMember bool + unknown interface{} + iri *url.URL + alias string +} + +// DeserializeCommittedProperty creates a "committed" property from an interface +// representation that has been unmarshalled from a text or binary format. +func DeserializeCommittedProperty(m map[string]interface{}, aliasMap map[string]string) (*ForgeFedCommittedProperty, error) { + alias := "" + if a, ok := aliasMap["https://forgefed.peers.community/ns"]; ok { + alias = a + } + propName := "committed" + if len(alias) > 0 { + // Use alias both to find the property, and set within the property. + propName = fmt.Sprintf("%s:%s", alias, "committed") + } + i, ok := m[propName] + + if ok { + if s, ok := i.(string); ok { + u, err := url.Parse(s) + // If error exists, don't error out -- skip this and treat as unknown string ([]byte) at worst + // Also, if no scheme exists, don't treat it as a URL -- net/url is greedy + if err == nil && len(u.Scheme) > 0 { + this := &ForgeFedCommittedProperty{ + alias: alias, + iri: u, + } + return this, nil + } + } + if v, err := datetime.DeserializeDateTime(i); err == nil { + this := &ForgeFedCommittedProperty{ + alias: alias, + hasDateTimeMember: true, + xmlschemaDateTimeMember: v, + } + return this, nil + } + this := &ForgeFedCommittedProperty{ + alias: alias, + unknown: i, + } + return this, nil + } + return nil, nil +} + +// NewForgeFedCommittedProperty creates a new committed property. +func NewForgeFedCommittedProperty() *ForgeFedCommittedProperty { + return &ForgeFedCommittedProperty{alias: ""} +} + +// Clear ensures no value of this property is set. Calling IsXMLSchemaDateTime +// afterwards will return false. +func (this *ForgeFedCommittedProperty) Clear() { + this.unknown = nil + this.iri = nil + this.hasDateTimeMember = false +} + +// Get returns the value of this property. When IsXMLSchemaDateTime returns false, +// Get will return any arbitrary value. +func (this ForgeFedCommittedProperty) Get() time.Time { + return this.xmlschemaDateTimeMember +} + +// GetIRI returns the IRI of this property. When IsIRI returns false, GetIRI will +// return any arbitrary value. +func (this ForgeFedCommittedProperty) GetIRI() *url.URL { + return this.iri +} + +// HasAny returns true if the value or IRI is set. +func (this ForgeFedCommittedProperty) HasAny() bool { + return this.IsXMLSchemaDateTime() || this.iri != nil +} + +// IsIRI returns true if this property is an IRI. +func (this ForgeFedCommittedProperty) IsIRI() bool { + return this.iri != nil +} + +// IsXMLSchemaDateTime returns true if this property is set and not an IRI. +func (this ForgeFedCommittedProperty) IsXMLSchemaDateTime() bool { + return this.hasDateTimeMember +} + +// JSONLDContext returns the JSONLD URIs required in the context string for this +// property and the specific values that are set. The value in the map is the +// alias used to import the property's value or values. +func (this ForgeFedCommittedProperty) JSONLDContext() map[string]string { + m := map[string]string{"https://forgefed.peers.community/ns": this.alias} + var child map[string]string + + /* + Since the literal maps in this function are determined at + code-generation time, this loop should not overwrite an existing key with a + new value. + */ + for k, v := range child { + m[k] = v + } + return m +} + +// KindIndex computes an arbitrary value for indexing this kind of value. This is +// a leaky API detail only for folks looking to replace the go-fed +// implementation. Applications should not use this method. +func (this ForgeFedCommittedProperty) KindIndex() int { + if this.IsXMLSchemaDateTime() { + return 0 + } + if this.IsIRI() { + return -2 + } + return -1 +} + +// LessThan compares two instances of this property with an arbitrary but stable +// comparison. Applications should not use this because it is only meant to +// help alternative implementations to go-fed to be able to normalize +// nonfunctional properties. +func (this ForgeFedCommittedProperty) LessThan(o vocab.ForgeFedCommittedProperty) bool { + // LessThan comparison for if either or both are IRIs. + if this.IsIRI() && o.IsIRI() { + return this.iri.String() < o.GetIRI().String() + } else if this.IsIRI() { + // IRIs are always less than other values, none, or unknowns + return true + } else if o.IsIRI() { + // This other, none, or unknown value is always greater than IRIs + return false + } + // LessThan comparison for the single value or unknown value. + if !this.IsXMLSchemaDateTime() && !o.IsXMLSchemaDateTime() { + // Both are unknowns. + return false + } else if this.IsXMLSchemaDateTime() && !o.IsXMLSchemaDateTime() { + // Values are always greater than unknown values. + return false + } else if !this.IsXMLSchemaDateTime() && o.IsXMLSchemaDateTime() { + // Unknowns are always less than known values. + return true + } else { + // Actual comparison. + return datetime.LessDateTime(this.Get(), o.Get()) + } +} + +// Name returns the name of this property: "committed". +func (this ForgeFedCommittedProperty) Name() string { + if len(this.alias) > 0 { + return this.alias + ":" + "committed" + } else { + return "committed" + } +} + +// Serialize converts this into an interface representation suitable for +// marshalling into a text or binary format. Applications should not need this +// function as most typical use cases serialize types instead of individual +// properties. It is exposed for alternatives to go-fed implementations to use. +func (this ForgeFedCommittedProperty) Serialize() (interface{}, error) { + if this.IsXMLSchemaDateTime() { + return datetime.SerializeDateTime(this.Get()) + } else if this.IsIRI() { + return this.iri.String(), nil + } + return this.unknown, nil +} + +// Set sets the value of this property. Calling IsXMLSchemaDateTime afterwards +// will return true. +func (this *ForgeFedCommittedProperty) Set(v time.Time) { + this.Clear() + this.xmlschemaDateTimeMember = v + this.hasDateTimeMember = true +} + +// SetIRI sets the value of this property. Calling IsIRI afterwards will return +// true. +func (this *ForgeFedCommittedProperty) SetIRI(v *url.URL) { + this.Clear() + this.iri = v +} diff --git a/streams/impl/forgefed/property_committedby/gen_doc.go b/streams/impl/forgefed/property_committedby/gen_doc.go new file mode 100644 index 0000000..efbaf08 --- /dev/null +++ b/streams/impl/forgefed/property_committedby/gen_doc.go @@ -0,0 +1,17 @@ +// Code generated by astool. DO NOT EDIT. + +// Package propertycommittedby contains the implementation for the committedBy +// property. All applications are strongly encouraged to use the interface +// instead of this concrete definition. The interfaces allow applications to +// consume only the types and properties needed and be independent of the +// go-fed implementation if another alternative implementation is created. +// This package is code-generated and subject to the same license as the +// go-fed tool used to generate it. +// +// This package is independent of other types' and properties' implementations +// by having a Manager injected into it to act as a factory for the concrete +// implementations. The implementations have been generated into their own +// separate subpackages for each vocabulary. +// +// Strongly consider using the interfaces instead of this package. +package propertycommittedby diff --git a/streams/impl/forgefed/property_committedby/gen_pkg.go b/streams/impl/forgefed/property_committedby/gen_pkg.go new file mode 100644 index 0000000..5a978c5 --- /dev/null +++ b/streams/impl/forgefed/property_committedby/gen_pkg.go @@ -0,0 +1,257 @@ +// Code generated by astool. DO NOT EDIT. + +package propertycommittedby + +import vocab "github.com/go-fed/activity/streams/vocab" + +var mgr privateManager + +// privateManager abstracts the code-generated manager that provides access to +// concrete implementations. +type privateManager interface { + // DeserializeAcceptActivityStreams returns the deserialization method for + // the "ActivityStreamsAccept" non-functional property in the + // vocabulary "ActivityStreams" + DeserializeAcceptActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAccept, error) + // DeserializeActivityActivityStreams returns the deserialization method + // for the "ActivityStreamsActivity" non-functional property in the + // vocabulary "ActivityStreams" + DeserializeActivityActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsActivity, error) + // DeserializeAddActivityStreams returns the deserialization method for + // the "ActivityStreamsAdd" non-functional property in the vocabulary + // "ActivityStreams" + DeserializeAddActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAdd, error) + // DeserializeAnnounceActivityStreams returns the deserialization method + // for the "ActivityStreamsAnnounce" non-functional property in the + // vocabulary "ActivityStreams" + DeserializeAnnounceActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAnnounce, error) + // DeserializeApplicationActivityStreams returns the deserialization + // method for the "ActivityStreamsApplication" non-functional property + // in the vocabulary "ActivityStreams" + DeserializeApplicationActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsApplication, error) + // DeserializeArriveActivityStreams returns the deserialization method for + // the "ActivityStreamsArrive" non-functional property in the + // vocabulary "ActivityStreams" + DeserializeArriveActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsArrive, error) + // DeserializeArticleActivityStreams returns the deserialization method + // for the "ActivityStreamsArticle" non-functional property in the + // vocabulary "ActivityStreams" + DeserializeArticleActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsArticle, error) + // DeserializeAudioActivityStreams returns the deserialization method for + // the "ActivityStreamsAudio" non-functional property in the + // vocabulary "ActivityStreams" + DeserializeAudioActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAudio, error) + // DeserializeBlockActivityStreams returns the deserialization method for + // the "ActivityStreamsBlock" non-functional property in the + // vocabulary "ActivityStreams" + DeserializeBlockActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsBlock, error) + // DeserializeBranchForgeFed returns the deserialization method for the + // "ForgeFedBranch" non-functional property in the vocabulary + // "ForgeFed" + DeserializeBranchForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedBranch, error) + // DeserializeCollectionActivityStreams returns the deserialization method + // for the "ActivityStreamsCollection" non-functional property in the + // vocabulary "ActivityStreams" + DeserializeCollectionActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsCollection, error) + // DeserializeCollectionPageActivityStreams returns the deserialization + // method for the "ActivityStreamsCollectionPage" non-functional + // property in the vocabulary "ActivityStreams" + DeserializeCollectionPageActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsCollectionPage, error) + // DeserializeCommitForgeFed returns the deserialization method for the + // "ForgeFedCommit" non-functional property in the vocabulary + // "ForgeFed" + DeserializeCommitForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedCommit, error) + // DeserializeCreateActivityStreams returns the deserialization method for + // the "ActivityStreamsCreate" non-functional property in the + // vocabulary "ActivityStreams" + DeserializeCreateActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsCreate, error) + // DeserializeDeleteActivityStreams returns the deserialization method for + // the "ActivityStreamsDelete" non-functional property in the + // vocabulary "ActivityStreams" + DeserializeDeleteActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsDelete, error) + // DeserializeDislikeActivityStreams returns the deserialization method + // for the "ActivityStreamsDislike" non-functional property in the + // vocabulary "ActivityStreams" + DeserializeDislikeActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsDislike, error) + // DeserializeDocumentActivityStreams returns the deserialization method + // for the "ActivityStreamsDocument" non-functional property in the + // vocabulary "ActivityStreams" + DeserializeDocumentActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsDocument, error) + // DeserializeEmojiToot returns the deserialization method for the + // "TootEmoji" non-functional property in the vocabulary "Toot" + DeserializeEmojiToot() func(map[string]interface{}, map[string]string) (vocab.TootEmoji, error) + // DeserializeEventActivityStreams returns the deserialization method for + // the "ActivityStreamsEvent" non-functional property in the + // vocabulary "ActivityStreams" + DeserializeEventActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsEvent, error) + // DeserializeFlagActivityStreams returns the deserialization method for + // the "ActivityStreamsFlag" non-functional property in the vocabulary + // "ActivityStreams" + DeserializeFlagActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsFlag, error) + // DeserializeFollowActivityStreams returns the deserialization method for + // the "ActivityStreamsFollow" non-functional property in the + // vocabulary "ActivityStreams" + DeserializeFollowActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsFollow, error) + // DeserializeGroupActivityStreams returns the deserialization method for + // the "ActivityStreamsGroup" non-functional property in the + // vocabulary "ActivityStreams" + DeserializeGroupActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsGroup, error) + // DeserializeIdentityProofToot returns the deserialization method for the + // "TootIdentityProof" non-functional property in the vocabulary "Toot" + DeserializeIdentityProofToot() func(map[string]interface{}, map[string]string) (vocab.TootIdentityProof, error) + // DeserializeIgnoreActivityStreams returns the deserialization method for + // the "ActivityStreamsIgnore" non-functional property in the + // vocabulary "ActivityStreams" + DeserializeIgnoreActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsIgnore, error) + // DeserializeImageActivityStreams returns the deserialization method for + // the "ActivityStreamsImage" non-functional property in the + // vocabulary "ActivityStreams" + DeserializeImageActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsImage, error) + // DeserializeIntransitiveActivityActivityStreams returns the + // deserialization method for the + // "ActivityStreamsIntransitiveActivity" non-functional property in + // the vocabulary "ActivityStreams" + DeserializeIntransitiveActivityActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsIntransitiveActivity, error) + // DeserializeInviteActivityStreams returns the deserialization method for + // the "ActivityStreamsInvite" non-functional property in the + // vocabulary "ActivityStreams" + DeserializeInviteActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsInvite, error) + // DeserializeJoinActivityStreams returns the deserialization method for + // the "ActivityStreamsJoin" non-functional property in the vocabulary + // "ActivityStreams" + DeserializeJoinActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsJoin, error) + // DeserializeLeaveActivityStreams returns the deserialization method for + // the "ActivityStreamsLeave" non-functional property in the + // vocabulary "ActivityStreams" + DeserializeLeaveActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLeave, error) + // DeserializeLikeActivityStreams returns the deserialization method for + // the "ActivityStreamsLike" non-functional property in the vocabulary + // "ActivityStreams" + DeserializeLikeActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLike, error) + // DeserializeListenActivityStreams returns the deserialization method for + // the "ActivityStreamsListen" non-functional property in the + // vocabulary "ActivityStreams" + DeserializeListenActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsListen, error) + // DeserializeMoveActivityStreams returns the deserialization method for + // the "ActivityStreamsMove" non-functional property in the vocabulary + // "ActivityStreams" + DeserializeMoveActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsMove, error) + // DeserializeNoteActivityStreams returns the deserialization method for + // the "ActivityStreamsNote" non-functional property in the vocabulary + // "ActivityStreams" + DeserializeNoteActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsNote, error) + // DeserializeObjectActivityStreams returns the deserialization method for + // the "ActivityStreamsObject" non-functional property in the + // vocabulary "ActivityStreams" + DeserializeObjectActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsObject, error) + // DeserializeOfferActivityStreams returns the deserialization method for + // the "ActivityStreamsOffer" non-functional property in the + // vocabulary "ActivityStreams" + DeserializeOfferActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsOffer, error) + // DeserializeOrderedCollectionActivityStreams returns the deserialization + // method for the "ActivityStreamsOrderedCollection" non-functional + // property in the vocabulary "ActivityStreams" + DeserializeOrderedCollectionActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsOrderedCollection, error) + // DeserializeOrderedCollectionPageActivityStreams returns the + // deserialization method for the + // "ActivityStreamsOrderedCollectionPage" non-functional property in + // the vocabulary "ActivityStreams" + DeserializeOrderedCollectionPageActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsOrderedCollectionPage, error) + // DeserializeOrganizationActivityStreams returns the deserialization + // method for the "ActivityStreamsOrganization" non-functional + // property in the vocabulary "ActivityStreams" + DeserializeOrganizationActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsOrganization, error) + // DeserializePageActivityStreams returns the deserialization method for + // the "ActivityStreamsPage" non-functional property in the vocabulary + // "ActivityStreams" + DeserializePageActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsPage, error) + // DeserializePersonActivityStreams returns the deserialization method for + // the "ActivityStreamsPerson" non-functional property in the + // vocabulary "ActivityStreams" + DeserializePersonActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsPerson, error) + // DeserializePlaceActivityStreams returns the deserialization method for + // the "ActivityStreamsPlace" non-functional property in the + // vocabulary "ActivityStreams" + DeserializePlaceActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsPlace, error) + // DeserializeProfileActivityStreams returns the deserialization method + // for the "ActivityStreamsProfile" non-functional property in the + // vocabulary "ActivityStreams" + DeserializeProfileActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsProfile, error) + // DeserializePushForgeFed returns the deserialization method for the + // "ForgeFedPush" non-functional property in the vocabulary "ForgeFed" + DeserializePushForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedPush, error) + // DeserializeQuestionActivityStreams returns the deserialization method + // for the "ActivityStreamsQuestion" non-functional property in the + // vocabulary "ActivityStreams" + DeserializeQuestionActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsQuestion, error) + // DeserializeReadActivityStreams returns the deserialization method for + // the "ActivityStreamsRead" non-functional property in the vocabulary + // "ActivityStreams" + DeserializeReadActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsRead, error) + // DeserializeRejectActivityStreams returns the deserialization method for + // the "ActivityStreamsReject" non-functional property in the + // vocabulary "ActivityStreams" + DeserializeRejectActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsReject, error) + // DeserializeRelationshipActivityStreams returns the deserialization + // method for the "ActivityStreamsRelationship" non-functional + // property in the vocabulary "ActivityStreams" + DeserializeRelationshipActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsRelationship, error) + // DeserializeRemoveActivityStreams returns the deserialization method for + // the "ActivityStreamsRemove" non-functional property in the + // vocabulary "ActivityStreams" + DeserializeRemoveActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsRemove, error) + // DeserializeRepositoryForgeFed returns the deserialization method for + // the "ForgeFedRepository" non-functional property in the vocabulary + // "ForgeFed" + DeserializeRepositoryForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedRepository, error) + // DeserializeServiceActivityStreams returns the deserialization method + // for the "ActivityStreamsService" non-functional property in the + // vocabulary "ActivityStreams" + DeserializeServiceActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsService, error) + // DeserializeTentativeAcceptActivityStreams returns the deserialization + // method for the "ActivityStreamsTentativeAccept" non-functional + // property in the vocabulary "ActivityStreams" + DeserializeTentativeAcceptActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTentativeAccept, error) + // DeserializeTentativeRejectActivityStreams returns the deserialization + // method for the "ActivityStreamsTentativeReject" non-functional + // property in the vocabulary "ActivityStreams" + DeserializeTentativeRejectActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTentativeReject, error) + // DeserializeTicketDependencyForgeFed returns the deserialization method + // for the "ForgeFedTicketDependency" non-functional property in the + // vocabulary "ForgeFed" + DeserializeTicketDependencyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTicketDependency, error) + // DeserializeTicketForgeFed returns the deserialization method for the + // "ForgeFedTicket" non-functional property in the vocabulary + // "ForgeFed" + DeserializeTicketForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTicket, error) + // DeserializeTombstoneActivityStreams returns the deserialization method + // for the "ActivityStreamsTombstone" non-functional property in the + // vocabulary "ActivityStreams" + DeserializeTombstoneActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTombstone, error) + // DeserializeTravelActivityStreams returns the deserialization method for + // the "ActivityStreamsTravel" non-functional property in the + // vocabulary "ActivityStreams" + DeserializeTravelActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTravel, error) + // DeserializeUndoActivityStreams returns the deserialization method for + // the "ActivityStreamsUndo" non-functional property in the vocabulary + // "ActivityStreams" + DeserializeUndoActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsUndo, error) + // DeserializeUpdateActivityStreams returns the deserialization method for + // the "ActivityStreamsUpdate" non-functional property in the + // vocabulary "ActivityStreams" + DeserializeUpdateActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsUpdate, error) + // DeserializeVideoActivityStreams returns the deserialization method for + // the "ActivityStreamsVideo" non-functional property in the + // vocabulary "ActivityStreams" + DeserializeVideoActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsVideo, error) + // DeserializeViewActivityStreams returns the deserialization method for + // the "ActivityStreamsView" non-functional property in the vocabulary + // "ActivityStreams" + DeserializeViewActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsView, error) +} + +// SetManager sets the manager package-global variable. For internal use only, do +// not use as part of Application behavior. Must be called at golang init time. +func SetManager(m privateManager) { + mgr = m +} diff --git a/streams/impl/forgefed/property_committedby/gen_property_forgefed_committedBy.go b/streams/impl/forgefed/property_committedby/gen_property_forgefed_committedBy.go new file mode 100644 index 0000000..bb5c1ee --- /dev/null +++ b/streams/impl/forgefed/property_committedby/gen_property_forgefed_committedBy.go @@ -0,0 +1,2933 @@ +// Code generated by astool. DO NOT EDIT. + +package propertycommittedby + +import ( + "fmt" + vocab "github.com/go-fed/activity/streams/vocab" + "net/url" +) + +// ForgeFedCommittedByProperty is the functional property "committedBy". It is +// permitted to be one of multiple value types. At most, one type of value can +// be present, or none at all. Setting a value will clear the other types of +// values so that only one of the 'Is' methods will return true. It is +// possible to clear all values, so that this property is empty. +type ForgeFedCommittedByProperty struct { + activitystreamsObjectMember vocab.ActivityStreamsObject + activitystreamsAcceptMember vocab.ActivityStreamsAccept + activitystreamsActivityMember vocab.ActivityStreamsActivity + activitystreamsAddMember vocab.ActivityStreamsAdd + activitystreamsAnnounceMember vocab.ActivityStreamsAnnounce + activitystreamsApplicationMember vocab.ActivityStreamsApplication + activitystreamsArriveMember vocab.ActivityStreamsArrive + activitystreamsArticleMember vocab.ActivityStreamsArticle + activitystreamsAudioMember vocab.ActivityStreamsAudio + activitystreamsBlockMember vocab.ActivityStreamsBlock + forgefedBranchMember vocab.ForgeFedBranch + activitystreamsCollectionMember vocab.ActivityStreamsCollection + activitystreamsCollectionPageMember vocab.ActivityStreamsCollectionPage + forgefedCommitMember vocab.ForgeFedCommit + activitystreamsCreateMember vocab.ActivityStreamsCreate + activitystreamsDeleteMember vocab.ActivityStreamsDelete + activitystreamsDislikeMember vocab.ActivityStreamsDislike + activitystreamsDocumentMember vocab.ActivityStreamsDocument + tootEmojiMember vocab.TootEmoji + activitystreamsEventMember vocab.ActivityStreamsEvent + activitystreamsFlagMember vocab.ActivityStreamsFlag + activitystreamsFollowMember vocab.ActivityStreamsFollow + activitystreamsGroupMember vocab.ActivityStreamsGroup + tootIdentityProofMember vocab.TootIdentityProof + activitystreamsIgnoreMember vocab.ActivityStreamsIgnore + activitystreamsImageMember vocab.ActivityStreamsImage + activitystreamsIntransitiveActivityMember vocab.ActivityStreamsIntransitiveActivity + activitystreamsInviteMember vocab.ActivityStreamsInvite + activitystreamsJoinMember vocab.ActivityStreamsJoin + activitystreamsLeaveMember vocab.ActivityStreamsLeave + activitystreamsLikeMember vocab.ActivityStreamsLike + activitystreamsListenMember vocab.ActivityStreamsListen + activitystreamsMoveMember vocab.ActivityStreamsMove + activitystreamsNoteMember vocab.ActivityStreamsNote + activitystreamsOfferMember vocab.ActivityStreamsOffer + activitystreamsOrderedCollectionMember vocab.ActivityStreamsOrderedCollection + activitystreamsOrderedCollectionPageMember vocab.ActivityStreamsOrderedCollectionPage + activitystreamsOrganizationMember vocab.ActivityStreamsOrganization + activitystreamsPageMember vocab.ActivityStreamsPage + activitystreamsPersonMember vocab.ActivityStreamsPerson + activitystreamsPlaceMember vocab.ActivityStreamsPlace + activitystreamsProfileMember vocab.ActivityStreamsProfile + forgefedPushMember vocab.ForgeFedPush + activitystreamsQuestionMember vocab.ActivityStreamsQuestion + activitystreamsReadMember vocab.ActivityStreamsRead + activitystreamsRejectMember vocab.ActivityStreamsReject + activitystreamsRelationshipMember vocab.ActivityStreamsRelationship + activitystreamsRemoveMember vocab.ActivityStreamsRemove + forgefedRepositoryMember vocab.ForgeFedRepository + activitystreamsServiceMember vocab.ActivityStreamsService + activitystreamsTentativeAcceptMember vocab.ActivityStreamsTentativeAccept + activitystreamsTentativeRejectMember vocab.ActivityStreamsTentativeReject + forgefedTicketMember vocab.ForgeFedTicket + forgefedTicketDependencyMember vocab.ForgeFedTicketDependency + activitystreamsTombstoneMember vocab.ActivityStreamsTombstone + activitystreamsTravelMember vocab.ActivityStreamsTravel + activitystreamsUndoMember vocab.ActivityStreamsUndo + activitystreamsUpdateMember vocab.ActivityStreamsUpdate + activitystreamsVideoMember vocab.ActivityStreamsVideo + activitystreamsViewMember vocab.ActivityStreamsView + unknown interface{} + iri *url.URL + alias string +} + +// DeserializeCommittedByProperty creates a "committedBy" property from an +// interface representation that has been unmarshalled from a text or binary +// format. +func DeserializeCommittedByProperty(m map[string]interface{}, aliasMap map[string]string) (*ForgeFedCommittedByProperty, error) { + alias := "" + if a, ok := aliasMap["https://forgefed.peers.community/ns"]; ok { + alias = a + } + propName := "committedBy" + if len(alias) > 0 { + // Use alias both to find the property, and set within the property. + propName = fmt.Sprintf("%s:%s", alias, "committedBy") + } + i, ok := m[propName] + + if ok { + if s, ok := i.(string); ok { + u, err := url.Parse(s) + // If error exists, don't error out -- skip this and treat as unknown string ([]byte) at worst + // Also, if no scheme exists, don't treat it as a URL -- net/url is greedy + if err == nil && len(u.Scheme) > 0 { + this := &ForgeFedCommittedByProperty{ + alias: alias, + iri: u, + } + return this, nil + } + } + if m, ok := i.(map[string]interface{}); ok { + if v, err := mgr.DeserializeObjectActivityStreams()(m, aliasMap); err == nil { + this := &ForgeFedCommittedByProperty{ + activitystreamsObjectMember: v, + alias: alias, + } + return this, nil + } else if v, err := mgr.DeserializeAcceptActivityStreams()(m, aliasMap); err == nil { + this := &ForgeFedCommittedByProperty{ + activitystreamsAcceptMember: v, + alias: alias, + } + return this, nil + } else if v, err := mgr.DeserializeActivityActivityStreams()(m, aliasMap); err == nil { + this := &ForgeFedCommittedByProperty{ + activitystreamsActivityMember: v, + alias: alias, + } + return this, nil + } else if v, err := mgr.DeserializeAddActivityStreams()(m, aliasMap); err == nil { + this := &ForgeFedCommittedByProperty{ + activitystreamsAddMember: v, + alias: alias, + } + return this, nil + } else if v, err := mgr.DeserializeAnnounceActivityStreams()(m, aliasMap); err == nil { + this := &ForgeFedCommittedByProperty{ + activitystreamsAnnounceMember: v, + alias: alias, + } + return this, nil + } else if v, err := mgr.DeserializeApplicationActivityStreams()(m, aliasMap); err == nil { + this := &ForgeFedCommittedByProperty{ + activitystreamsApplicationMember: v, + alias: alias, + } + return this, nil + } else if v, err := mgr.DeserializeArriveActivityStreams()(m, aliasMap); err == nil { + this := &ForgeFedCommittedByProperty{ + activitystreamsArriveMember: v, + alias: alias, + } + return this, nil + } else if v, err := mgr.DeserializeArticleActivityStreams()(m, aliasMap); err == nil { + this := &ForgeFedCommittedByProperty{ + activitystreamsArticleMember: v, + alias: alias, + } + return this, nil + } else if v, err := mgr.DeserializeAudioActivityStreams()(m, aliasMap); err == nil { + this := &ForgeFedCommittedByProperty{ + activitystreamsAudioMember: v, + alias: alias, + } + return this, nil + } else if v, err := mgr.DeserializeBlockActivityStreams()(m, aliasMap); err == nil { + this := &ForgeFedCommittedByProperty{ + activitystreamsBlockMember: v, + alias: alias, + } + return this, nil + } else if v, err := mgr.DeserializeBranchForgeFed()(m, aliasMap); err == nil { + this := &ForgeFedCommittedByProperty{ + alias: alias, + forgefedBranchMember: v, + } + return this, nil + } else if v, err := mgr.DeserializeCollectionActivityStreams()(m, aliasMap); err == nil { + this := &ForgeFedCommittedByProperty{ + activitystreamsCollectionMember: v, + alias: alias, + } + return this, nil + } else if v, err := mgr.DeserializeCollectionPageActivityStreams()(m, aliasMap); err == nil { + this := &ForgeFedCommittedByProperty{ + activitystreamsCollectionPageMember: v, + alias: alias, + } + return this, nil + } else if v, err := mgr.DeserializeCommitForgeFed()(m, aliasMap); err == nil { + this := &ForgeFedCommittedByProperty{ + alias: alias, + forgefedCommitMember: v, + } + return this, nil + } else if v, err := mgr.DeserializeCreateActivityStreams()(m, aliasMap); err == nil { + this := &ForgeFedCommittedByProperty{ + activitystreamsCreateMember: v, + alias: alias, + } + return this, nil + } else if v, err := mgr.DeserializeDeleteActivityStreams()(m, aliasMap); err == nil { + this := &ForgeFedCommittedByProperty{ + activitystreamsDeleteMember: v, + alias: alias, + } + return this, nil + } else if v, err := mgr.DeserializeDislikeActivityStreams()(m, aliasMap); err == nil { + this := &ForgeFedCommittedByProperty{ + activitystreamsDislikeMember: v, + alias: alias, + } + return this, nil + } else if v, err := mgr.DeserializeDocumentActivityStreams()(m, aliasMap); err == nil { + this := &ForgeFedCommittedByProperty{ + activitystreamsDocumentMember: v, + alias: alias, + } + return this, nil + } else if v, err := mgr.DeserializeEmojiToot()(m, aliasMap); err == nil { + this := &ForgeFedCommittedByProperty{ + alias: alias, + tootEmojiMember: v, + } + return this, nil + } else if v, err := mgr.DeserializeEventActivityStreams()(m, aliasMap); err == nil { + this := &ForgeFedCommittedByProperty{ + activitystreamsEventMember: v, + alias: alias, + } + return this, nil + } else if v, err := mgr.DeserializeFlagActivityStreams()(m, aliasMap); err == nil { + this := &ForgeFedCommittedByProperty{ + activitystreamsFlagMember: v, + alias: alias, + } + return this, nil + } else if v, err := mgr.DeserializeFollowActivityStreams()(m, aliasMap); err == nil { + this := &ForgeFedCommittedByProperty{ + activitystreamsFollowMember: v, + alias: alias, + } + return this, nil + } else if v, err := mgr.DeserializeGroupActivityStreams()(m, aliasMap); err == nil { + this := &ForgeFedCommittedByProperty{ + activitystreamsGroupMember: v, + alias: alias, + } + return this, nil + } else if v, err := mgr.DeserializeIdentityProofToot()(m, aliasMap); err == nil { + this := &ForgeFedCommittedByProperty{ + alias: alias, + tootIdentityProofMember: v, + } + return this, nil + } else if v, err := mgr.DeserializeIgnoreActivityStreams()(m, aliasMap); err == nil { + this := &ForgeFedCommittedByProperty{ + activitystreamsIgnoreMember: v, + alias: alias, + } + return this, nil + } else if v, err := mgr.DeserializeImageActivityStreams()(m, aliasMap); err == nil { + this := &ForgeFedCommittedByProperty{ + activitystreamsImageMember: v, + alias: alias, + } + return this, nil + } else if v, err := mgr.DeserializeIntransitiveActivityActivityStreams()(m, aliasMap); err == nil { + this := &ForgeFedCommittedByProperty{ + activitystreamsIntransitiveActivityMember: v, + alias: alias, + } + return this, nil + } else if v, err := mgr.DeserializeInviteActivityStreams()(m, aliasMap); err == nil { + this := &ForgeFedCommittedByProperty{ + activitystreamsInviteMember: v, + alias: alias, + } + return this, nil + } else if v, err := mgr.DeserializeJoinActivityStreams()(m, aliasMap); err == nil { + this := &ForgeFedCommittedByProperty{ + activitystreamsJoinMember: v, + alias: alias, + } + return this, nil + } else if v, err := mgr.DeserializeLeaveActivityStreams()(m, aliasMap); err == nil { + this := &ForgeFedCommittedByProperty{ + activitystreamsLeaveMember: v, + alias: alias, + } + return this, nil + } else if v, err := mgr.DeserializeLikeActivityStreams()(m, aliasMap); err == nil { + this := &ForgeFedCommittedByProperty{ + activitystreamsLikeMember: v, + alias: alias, + } + return this, nil + } else if v, err := mgr.DeserializeListenActivityStreams()(m, aliasMap); err == nil { + this := &ForgeFedCommittedByProperty{ + activitystreamsListenMember: v, + alias: alias, + } + return this, nil + } else if v, err := mgr.DeserializeMoveActivityStreams()(m, aliasMap); err == nil { + this := &ForgeFedCommittedByProperty{ + activitystreamsMoveMember: v, + alias: alias, + } + return this, nil + } else if v, err := mgr.DeserializeNoteActivityStreams()(m, aliasMap); err == nil { + this := &ForgeFedCommittedByProperty{ + activitystreamsNoteMember: v, + alias: alias, + } + return this, nil + } else if v, err := mgr.DeserializeOfferActivityStreams()(m, aliasMap); err == nil { + this := &ForgeFedCommittedByProperty{ + activitystreamsOfferMember: v, + alias: alias, + } + return this, nil + } else if v, err := mgr.DeserializeOrderedCollectionActivityStreams()(m, aliasMap); err == nil { + this := &ForgeFedCommittedByProperty{ + activitystreamsOrderedCollectionMember: v, + alias: alias, + } + return this, nil + } else if v, err := mgr.DeserializeOrderedCollectionPageActivityStreams()(m, aliasMap); err == nil { + this := &ForgeFedCommittedByProperty{ + activitystreamsOrderedCollectionPageMember: v, + alias: alias, + } + return this, nil + } else if v, err := mgr.DeserializeOrganizationActivityStreams()(m, aliasMap); err == nil { + this := &ForgeFedCommittedByProperty{ + activitystreamsOrganizationMember: v, + alias: alias, + } + return this, nil + } else if v, err := mgr.DeserializePageActivityStreams()(m, aliasMap); err == nil { + this := &ForgeFedCommittedByProperty{ + activitystreamsPageMember: v, + alias: alias, + } + return this, nil + } else if v, err := mgr.DeserializePersonActivityStreams()(m, aliasMap); err == nil { + this := &ForgeFedCommittedByProperty{ + activitystreamsPersonMember: v, + alias: alias, + } + return this, nil + } else if v, err := mgr.DeserializePlaceActivityStreams()(m, aliasMap); err == nil { + this := &ForgeFedCommittedByProperty{ + activitystreamsPlaceMember: v, + alias: alias, + } + return this, nil + } else if v, err := mgr.DeserializeProfileActivityStreams()(m, aliasMap); err == nil { + this := &ForgeFedCommittedByProperty{ + activitystreamsProfileMember: v, + alias: alias, + } + return this, nil + } else if v, err := mgr.DeserializePushForgeFed()(m, aliasMap); err == nil { + this := &ForgeFedCommittedByProperty{ + alias: alias, + forgefedPushMember: v, + } + return this, nil + } else if v, err := mgr.DeserializeQuestionActivityStreams()(m, aliasMap); err == nil { + this := &ForgeFedCommittedByProperty{ + activitystreamsQuestionMember: v, + alias: alias, + } + return this, nil + } else if v, err := mgr.DeserializeReadActivityStreams()(m, aliasMap); err == nil { + this := &ForgeFedCommittedByProperty{ + activitystreamsReadMember: v, + alias: alias, + } + return this, nil + } else if v, err := mgr.DeserializeRejectActivityStreams()(m, aliasMap); err == nil { + this := &ForgeFedCommittedByProperty{ + activitystreamsRejectMember: v, + alias: alias, + } + return this, nil + } else if v, err := mgr.DeserializeRelationshipActivityStreams()(m, aliasMap); err == nil { + this := &ForgeFedCommittedByProperty{ + activitystreamsRelationshipMember: v, + alias: alias, + } + return this, nil + } else if v, err := mgr.DeserializeRemoveActivityStreams()(m, aliasMap); err == nil { + this := &ForgeFedCommittedByProperty{ + activitystreamsRemoveMember: v, + alias: alias, + } + return this, nil + } else if v, err := mgr.DeserializeRepositoryForgeFed()(m, aliasMap); err == nil { + this := &ForgeFedCommittedByProperty{ + alias: alias, + forgefedRepositoryMember: v, + } + return this, nil + } else if v, err := mgr.DeserializeServiceActivityStreams()(m, aliasMap); err == nil { + this := &ForgeFedCommittedByProperty{ + activitystreamsServiceMember: v, + alias: alias, + } + return this, nil + } else if v, err := mgr.DeserializeTentativeAcceptActivityStreams()(m, aliasMap); err == nil { + this := &ForgeFedCommittedByProperty{ + activitystreamsTentativeAcceptMember: v, + alias: alias, + } + return this, nil + } else if v, err := mgr.DeserializeTentativeRejectActivityStreams()(m, aliasMap); err == nil { + this := &ForgeFedCommittedByProperty{ + activitystreamsTentativeRejectMember: v, + alias: alias, + } + return this, nil + } else if v, err := mgr.DeserializeTicketForgeFed()(m, aliasMap); err == nil { + this := &ForgeFedCommittedByProperty{ + alias: alias, + forgefedTicketMember: v, + } + return this, nil + } else if v, err := mgr.DeserializeTicketDependencyForgeFed()(m, aliasMap); err == nil { + this := &ForgeFedCommittedByProperty{ + alias: alias, + forgefedTicketDependencyMember: v, + } + return this, nil + } else if v, err := mgr.DeserializeTombstoneActivityStreams()(m, aliasMap); err == nil { + this := &ForgeFedCommittedByProperty{ + activitystreamsTombstoneMember: v, + alias: alias, + } + return this, nil + } else if v, err := mgr.DeserializeTravelActivityStreams()(m, aliasMap); err == nil { + this := &ForgeFedCommittedByProperty{ + activitystreamsTravelMember: v, + alias: alias, + } + return this, nil + } else if v, err := mgr.DeserializeUndoActivityStreams()(m, aliasMap); err == nil { + this := &ForgeFedCommittedByProperty{ + activitystreamsUndoMember: v, + alias: alias, + } + return this, nil + } else if v, err := mgr.DeserializeUpdateActivityStreams()(m, aliasMap); err == nil { + this := &ForgeFedCommittedByProperty{ + activitystreamsUpdateMember: v, + alias: alias, + } + return this, nil + } else if v, err := mgr.DeserializeVideoActivityStreams()(m, aliasMap); err == nil { + this := &ForgeFedCommittedByProperty{ + activitystreamsVideoMember: v, + alias: alias, + } + return this, nil + } else if v, err := mgr.DeserializeViewActivityStreams()(m, aliasMap); err == nil { + this := &ForgeFedCommittedByProperty{ + activitystreamsViewMember: v, + alias: alias, + } + return this, nil + } + } + this := &ForgeFedCommittedByProperty{ + alias: alias, + unknown: i, + } + return this, nil + } + return nil, nil +} + +// NewForgeFedCommittedByProperty creates a new committedBy property. +func NewForgeFedCommittedByProperty() *ForgeFedCommittedByProperty { + return &ForgeFedCommittedByProperty{alias: ""} +} + +// Clear ensures no value of this property is set. Calling HasAny or any of the +// 'Is' methods afterwards will return false. +func (this *ForgeFedCommittedByProperty) Clear() { + this.activitystreamsObjectMember = nil + this.activitystreamsAcceptMember = nil + this.activitystreamsActivityMember = nil + this.activitystreamsAddMember = nil + this.activitystreamsAnnounceMember = nil + this.activitystreamsApplicationMember = nil + this.activitystreamsArriveMember = nil + this.activitystreamsArticleMember = nil + this.activitystreamsAudioMember = nil + this.activitystreamsBlockMember = nil + this.forgefedBranchMember = nil + this.activitystreamsCollectionMember = nil + this.activitystreamsCollectionPageMember = nil + this.forgefedCommitMember = nil + this.activitystreamsCreateMember = nil + this.activitystreamsDeleteMember = nil + this.activitystreamsDislikeMember = nil + this.activitystreamsDocumentMember = nil + this.tootEmojiMember = nil + this.activitystreamsEventMember = nil + this.activitystreamsFlagMember = nil + this.activitystreamsFollowMember = nil + this.activitystreamsGroupMember = nil + this.tootIdentityProofMember = nil + this.activitystreamsIgnoreMember = nil + this.activitystreamsImageMember = nil + this.activitystreamsIntransitiveActivityMember = nil + this.activitystreamsInviteMember = nil + this.activitystreamsJoinMember = nil + this.activitystreamsLeaveMember = nil + this.activitystreamsLikeMember = nil + this.activitystreamsListenMember = nil + this.activitystreamsMoveMember = nil + this.activitystreamsNoteMember = nil + this.activitystreamsOfferMember = nil + this.activitystreamsOrderedCollectionMember = nil + this.activitystreamsOrderedCollectionPageMember = nil + this.activitystreamsOrganizationMember = nil + this.activitystreamsPageMember = nil + this.activitystreamsPersonMember = nil + this.activitystreamsPlaceMember = nil + this.activitystreamsProfileMember = nil + this.forgefedPushMember = nil + this.activitystreamsQuestionMember = nil + this.activitystreamsReadMember = nil + this.activitystreamsRejectMember = nil + this.activitystreamsRelationshipMember = nil + this.activitystreamsRemoveMember = nil + this.forgefedRepositoryMember = nil + this.activitystreamsServiceMember = nil + this.activitystreamsTentativeAcceptMember = nil + this.activitystreamsTentativeRejectMember = nil + this.forgefedTicketMember = nil + this.forgefedTicketDependencyMember = nil + this.activitystreamsTombstoneMember = nil + this.activitystreamsTravelMember = nil + this.activitystreamsUndoMember = nil + this.activitystreamsUpdateMember = nil + this.activitystreamsVideoMember = nil + this.activitystreamsViewMember = nil + this.unknown = nil + this.iri = nil +} + +// GetActivityStreamsAccept returns the value of this property. When +// IsActivityStreamsAccept returns false, GetActivityStreamsAccept will return +// an arbitrary value. +func (this ForgeFedCommittedByProperty) GetActivityStreamsAccept() vocab.ActivityStreamsAccept { + return this.activitystreamsAcceptMember +} + +// GetActivityStreamsActivity returns the value of this property. When +// IsActivityStreamsActivity returns false, GetActivityStreamsActivity will +// return an arbitrary value. +func (this ForgeFedCommittedByProperty) GetActivityStreamsActivity() vocab.ActivityStreamsActivity { + return this.activitystreamsActivityMember +} + +// GetActivityStreamsAdd returns the value of this property. When +// IsActivityStreamsAdd returns false, GetActivityStreamsAdd will return an +// arbitrary value. +func (this ForgeFedCommittedByProperty) GetActivityStreamsAdd() vocab.ActivityStreamsAdd { + return this.activitystreamsAddMember +} + +// GetActivityStreamsAnnounce returns the value of this property. When +// IsActivityStreamsAnnounce returns false, GetActivityStreamsAnnounce will +// return an arbitrary value. +func (this ForgeFedCommittedByProperty) GetActivityStreamsAnnounce() vocab.ActivityStreamsAnnounce { + return this.activitystreamsAnnounceMember +} + +// GetActivityStreamsApplication returns the value of this property. When +// IsActivityStreamsApplication returns false, GetActivityStreamsApplication +// will return an arbitrary value. +func (this ForgeFedCommittedByProperty) GetActivityStreamsApplication() vocab.ActivityStreamsApplication { + return this.activitystreamsApplicationMember +} + +// GetActivityStreamsArrive returns the value of this property. When +// IsActivityStreamsArrive returns false, GetActivityStreamsArrive will return +// an arbitrary value. +func (this ForgeFedCommittedByProperty) GetActivityStreamsArrive() vocab.ActivityStreamsArrive { + return this.activitystreamsArriveMember +} + +// GetActivityStreamsArticle returns the value of this property. When +// IsActivityStreamsArticle returns false, GetActivityStreamsArticle will +// return an arbitrary value. +func (this ForgeFedCommittedByProperty) GetActivityStreamsArticle() vocab.ActivityStreamsArticle { + return this.activitystreamsArticleMember +} + +// GetActivityStreamsAudio returns the value of this property. When +// IsActivityStreamsAudio returns false, GetActivityStreamsAudio will return +// an arbitrary value. +func (this ForgeFedCommittedByProperty) GetActivityStreamsAudio() vocab.ActivityStreamsAudio { + return this.activitystreamsAudioMember +} + +// GetActivityStreamsBlock returns the value of this property. When +// IsActivityStreamsBlock returns false, GetActivityStreamsBlock will return +// an arbitrary value. +func (this ForgeFedCommittedByProperty) GetActivityStreamsBlock() vocab.ActivityStreamsBlock { + return this.activitystreamsBlockMember +} + +// GetActivityStreamsCollection returns the value of this property. When +// IsActivityStreamsCollection returns false, GetActivityStreamsCollection +// will return an arbitrary value. +func (this ForgeFedCommittedByProperty) GetActivityStreamsCollection() vocab.ActivityStreamsCollection { + return this.activitystreamsCollectionMember +} + +// GetActivityStreamsCollectionPage returns the value of this property. When +// IsActivityStreamsCollectionPage returns false, +// GetActivityStreamsCollectionPage will return an arbitrary value. +func (this ForgeFedCommittedByProperty) GetActivityStreamsCollectionPage() vocab.ActivityStreamsCollectionPage { + return this.activitystreamsCollectionPageMember +} + +// GetActivityStreamsCreate returns the value of this property. When +// IsActivityStreamsCreate returns false, GetActivityStreamsCreate will return +// an arbitrary value. +func (this ForgeFedCommittedByProperty) GetActivityStreamsCreate() vocab.ActivityStreamsCreate { + return this.activitystreamsCreateMember +} + +// GetActivityStreamsDelete returns the value of this property. When +// IsActivityStreamsDelete returns false, GetActivityStreamsDelete will return +// an arbitrary value. +func (this ForgeFedCommittedByProperty) GetActivityStreamsDelete() vocab.ActivityStreamsDelete { + return this.activitystreamsDeleteMember +} + +// GetActivityStreamsDislike returns the value of this property. When +// IsActivityStreamsDislike returns false, GetActivityStreamsDislike will +// return an arbitrary value. +func (this ForgeFedCommittedByProperty) GetActivityStreamsDislike() vocab.ActivityStreamsDislike { + return this.activitystreamsDislikeMember +} + +// GetActivityStreamsDocument returns the value of this property. When +// IsActivityStreamsDocument returns false, GetActivityStreamsDocument will +// return an arbitrary value. +func (this ForgeFedCommittedByProperty) GetActivityStreamsDocument() vocab.ActivityStreamsDocument { + return this.activitystreamsDocumentMember +} + +// GetActivityStreamsEvent returns the value of this property. When +// IsActivityStreamsEvent returns false, GetActivityStreamsEvent will return +// an arbitrary value. +func (this ForgeFedCommittedByProperty) GetActivityStreamsEvent() vocab.ActivityStreamsEvent { + return this.activitystreamsEventMember +} + +// GetActivityStreamsFlag returns the value of this property. When +// IsActivityStreamsFlag returns false, GetActivityStreamsFlag will return an +// arbitrary value. +func (this ForgeFedCommittedByProperty) GetActivityStreamsFlag() vocab.ActivityStreamsFlag { + return this.activitystreamsFlagMember +} + +// GetActivityStreamsFollow returns the value of this property. When +// IsActivityStreamsFollow returns false, GetActivityStreamsFollow will return +// an arbitrary value. +func (this ForgeFedCommittedByProperty) GetActivityStreamsFollow() vocab.ActivityStreamsFollow { + return this.activitystreamsFollowMember +} + +// GetActivityStreamsGroup returns the value of this property. When +// IsActivityStreamsGroup returns false, GetActivityStreamsGroup will return +// an arbitrary value. +func (this ForgeFedCommittedByProperty) GetActivityStreamsGroup() vocab.ActivityStreamsGroup { + return this.activitystreamsGroupMember +} + +// GetActivityStreamsIgnore returns the value of this property. When +// IsActivityStreamsIgnore returns false, GetActivityStreamsIgnore will return +// an arbitrary value. +func (this ForgeFedCommittedByProperty) GetActivityStreamsIgnore() vocab.ActivityStreamsIgnore { + return this.activitystreamsIgnoreMember +} + +// GetActivityStreamsImage returns the value of this property. When +// IsActivityStreamsImage returns false, GetActivityStreamsImage will return +// an arbitrary value. +func (this ForgeFedCommittedByProperty) GetActivityStreamsImage() vocab.ActivityStreamsImage { + return this.activitystreamsImageMember +} + +// GetActivityStreamsIntransitiveActivity returns the value of this property. When +// IsActivityStreamsIntransitiveActivity returns false, +// GetActivityStreamsIntransitiveActivity will return an arbitrary value. +func (this ForgeFedCommittedByProperty) GetActivityStreamsIntransitiveActivity() vocab.ActivityStreamsIntransitiveActivity { + return this.activitystreamsIntransitiveActivityMember +} + +// GetActivityStreamsInvite returns the value of this property. When +// IsActivityStreamsInvite returns false, GetActivityStreamsInvite will return +// an arbitrary value. +func (this ForgeFedCommittedByProperty) GetActivityStreamsInvite() vocab.ActivityStreamsInvite { + return this.activitystreamsInviteMember +} + +// GetActivityStreamsJoin returns the value of this property. When +// IsActivityStreamsJoin returns false, GetActivityStreamsJoin will return an +// arbitrary value. +func (this ForgeFedCommittedByProperty) GetActivityStreamsJoin() vocab.ActivityStreamsJoin { + return this.activitystreamsJoinMember +} + +// GetActivityStreamsLeave returns the value of this property. When +// IsActivityStreamsLeave returns false, GetActivityStreamsLeave will return +// an arbitrary value. +func (this ForgeFedCommittedByProperty) GetActivityStreamsLeave() vocab.ActivityStreamsLeave { + return this.activitystreamsLeaveMember +} + +// GetActivityStreamsLike returns the value of this property. When +// IsActivityStreamsLike returns false, GetActivityStreamsLike will return an +// arbitrary value. +func (this ForgeFedCommittedByProperty) GetActivityStreamsLike() vocab.ActivityStreamsLike { + return this.activitystreamsLikeMember +} + +// GetActivityStreamsListen returns the value of this property. When +// IsActivityStreamsListen returns false, GetActivityStreamsListen will return +// an arbitrary value. +func (this ForgeFedCommittedByProperty) GetActivityStreamsListen() vocab.ActivityStreamsListen { + return this.activitystreamsListenMember +} + +// GetActivityStreamsMove returns the value of this property. When +// IsActivityStreamsMove returns false, GetActivityStreamsMove will return an +// arbitrary value. +func (this ForgeFedCommittedByProperty) GetActivityStreamsMove() vocab.ActivityStreamsMove { + return this.activitystreamsMoveMember +} + +// GetActivityStreamsNote returns the value of this property. When +// IsActivityStreamsNote returns false, GetActivityStreamsNote will return an +// arbitrary value. +func (this ForgeFedCommittedByProperty) GetActivityStreamsNote() vocab.ActivityStreamsNote { + return this.activitystreamsNoteMember +} + +// GetActivityStreamsObject returns the value of this property. When +// IsActivityStreamsObject returns false, GetActivityStreamsObject will return +// an arbitrary value. +func (this ForgeFedCommittedByProperty) GetActivityStreamsObject() vocab.ActivityStreamsObject { + return this.activitystreamsObjectMember +} + +// GetActivityStreamsOffer returns the value of this property. When +// IsActivityStreamsOffer returns false, GetActivityStreamsOffer will return +// an arbitrary value. +func (this ForgeFedCommittedByProperty) GetActivityStreamsOffer() vocab.ActivityStreamsOffer { + return this.activitystreamsOfferMember +} + +// GetActivityStreamsOrderedCollection returns the value of this property. When +// IsActivityStreamsOrderedCollection returns false, +// GetActivityStreamsOrderedCollection will return an arbitrary value. +func (this ForgeFedCommittedByProperty) GetActivityStreamsOrderedCollection() vocab.ActivityStreamsOrderedCollection { + return this.activitystreamsOrderedCollectionMember +} + +// GetActivityStreamsOrderedCollectionPage returns the value of this property. +// When IsActivityStreamsOrderedCollectionPage returns false, +// GetActivityStreamsOrderedCollectionPage will return an arbitrary value. +func (this ForgeFedCommittedByProperty) GetActivityStreamsOrderedCollectionPage() vocab.ActivityStreamsOrderedCollectionPage { + return this.activitystreamsOrderedCollectionPageMember +} + +// GetActivityStreamsOrganization returns the value of this property. When +// IsActivityStreamsOrganization returns false, GetActivityStreamsOrganization +// will return an arbitrary value. +func (this ForgeFedCommittedByProperty) GetActivityStreamsOrganization() vocab.ActivityStreamsOrganization { + return this.activitystreamsOrganizationMember +} + +// GetActivityStreamsPage returns the value of this property. When +// IsActivityStreamsPage returns false, GetActivityStreamsPage will return an +// arbitrary value. +func (this ForgeFedCommittedByProperty) GetActivityStreamsPage() vocab.ActivityStreamsPage { + return this.activitystreamsPageMember +} + +// GetActivityStreamsPerson returns the value of this property. When +// IsActivityStreamsPerson returns false, GetActivityStreamsPerson will return +// an arbitrary value. +func (this ForgeFedCommittedByProperty) GetActivityStreamsPerson() vocab.ActivityStreamsPerson { + return this.activitystreamsPersonMember +} + +// GetActivityStreamsPlace returns the value of this property. When +// IsActivityStreamsPlace returns false, GetActivityStreamsPlace will return +// an arbitrary value. +func (this ForgeFedCommittedByProperty) GetActivityStreamsPlace() vocab.ActivityStreamsPlace { + return this.activitystreamsPlaceMember +} + +// GetActivityStreamsProfile returns the value of this property. When +// IsActivityStreamsProfile returns false, GetActivityStreamsProfile will +// return an arbitrary value. +func (this ForgeFedCommittedByProperty) GetActivityStreamsProfile() vocab.ActivityStreamsProfile { + return this.activitystreamsProfileMember +} + +// GetActivityStreamsQuestion returns the value of this property. When +// IsActivityStreamsQuestion returns false, GetActivityStreamsQuestion will +// return an arbitrary value. +func (this ForgeFedCommittedByProperty) GetActivityStreamsQuestion() vocab.ActivityStreamsQuestion { + return this.activitystreamsQuestionMember +} + +// GetActivityStreamsRead returns the value of this property. When +// IsActivityStreamsRead returns false, GetActivityStreamsRead will return an +// arbitrary value. +func (this ForgeFedCommittedByProperty) GetActivityStreamsRead() vocab.ActivityStreamsRead { + return this.activitystreamsReadMember +} + +// GetActivityStreamsReject returns the value of this property. When +// IsActivityStreamsReject returns false, GetActivityStreamsReject will return +// an arbitrary value. +func (this ForgeFedCommittedByProperty) GetActivityStreamsReject() vocab.ActivityStreamsReject { + return this.activitystreamsRejectMember +} + +// GetActivityStreamsRelationship returns the value of this property. When +// IsActivityStreamsRelationship returns false, GetActivityStreamsRelationship +// will return an arbitrary value. +func (this ForgeFedCommittedByProperty) GetActivityStreamsRelationship() vocab.ActivityStreamsRelationship { + return this.activitystreamsRelationshipMember +} + +// GetActivityStreamsRemove returns the value of this property. When +// IsActivityStreamsRemove returns false, GetActivityStreamsRemove will return +// an arbitrary value. +func (this ForgeFedCommittedByProperty) GetActivityStreamsRemove() vocab.ActivityStreamsRemove { + return this.activitystreamsRemoveMember +} + +// GetActivityStreamsService returns the value of this property. When +// IsActivityStreamsService returns false, GetActivityStreamsService will +// return an arbitrary value. +func (this ForgeFedCommittedByProperty) GetActivityStreamsService() vocab.ActivityStreamsService { + return this.activitystreamsServiceMember +} + +// GetActivityStreamsTentativeAccept returns the value of this property. When +// IsActivityStreamsTentativeAccept returns false, +// GetActivityStreamsTentativeAccept will return an arbitrary value. +func (this ForgeFedCommittedByProperty) GetActivityStreamsTentativeAccept() vocab.ActivityStreamsTentativeAccept { + return this.activitystreamsTentativeAcceptMember +} + +// GetActivityStreamsTentativeReject returns the value of this property. When +// IsActivityStreamsTentativeReject returns false, +// GetActivityStreamsTentativeReject will return an arbitrary value. +func (this ForgeFedCommittedByProperty) GetActivityStreamsTentativeReject() vocab.ActivityStreamsTentativeReject { + return this.activitystreamsTentativeRejectMember +} + +// GetActivityStreamsTombstone returns the value of this property. When +// IsActivityStreamsTombstone returns false, GetActivityStreamsTombstone will +// return an arbitrary value. +func (this ForgeFedCommittedByProperty) GetActivityStreamsTombstone() vocab.ActivityStreamsTombstone { + return this.activitystreamsTombstoneMember +} + +// GetActivityStreamsTravel returns the value of this property. When +// IsActivityStreamsTravel returns false, GetActivityStreamsTravel will return +// an arbitrary value. +func (this ForgeFedCommittedByProperty) GetActivityStreamsTravel() vocab.ActivityStreamsTravel { + return this.activitystreamsTravelMember +} + +// GetActivityStreamsUndo returns the value of this property. When +// IsActivityStreamsUndo returns false, GetActivityStreamsUndo will return an +// arbitrary value. +func (this ForgeFedCommittedByProperty) GetActivityStreamsUndo() vocab.ActivityStreamsUndo { + return this.activitystreamsUndoMember +} + +// GetActivityStreamsUpdate returns the value of this property. When +// IsActivityStreamsUpdate returns false, GetActivityStreamsUpdate will return +// an arbitrary value. +func (this ForgeFedCommittedByProperty) GetActivityStreamsUpdate() vocab.ActivityStreamsUpdate { + return this.activitystreamsUpdateMember +} + +// GetActivityStreamsVideo returns the value of this property. When +// IsActivityStreamsVideo returns false, GetActivityStreamsVideo will return +// an arbitrary value. +func (this ForgeFedCommittedByProperty) GetActivityStreamsVideo() vocab.ActivityStreamsVideo { + return this.activitystreamsVideoMember +} + +// GetActivityStreamsView returns the value of this property. When +// IsActivityStreamsView returns false, GetActivityStreamsView will return an +// arbitrary value. +func (this ForgeFedCommittedByProperty) GetActivityStreamsView() vocab.ActivityStreamsView { + return this.activitystreamsViewMember +} + +// GetForgeFedBranch returns the value of this property. When IsForgeFedBranch +// returns false, GetForgeFedBranch will return an arbitrary value. +func (this ForgeFedCommittedByProperty) GetForgeFedBranch() vocab.ForgeFedBranch { + return this.forgefedBranchMember +} + +// GetForgeFedCommit returns the value of this property. When IsForgeFedCommit +// returns false, GetForgeFedCommit will return an arbitrary value. +func (this ForgeFedCommittedByProperty) GetForgeFedCommit() vocab.ForgeFedCommit { + return this.forgefedCommitMember +} + +// GetForgeFedPush returns the value of this property. When IsForgeFedPush returns +// false, GetForgeFedPush will return an arbitrary value. +func (this ForgeFedCommittedByProperty) GetForgeFedPush() vocab.ForgeFedPush { + return this.forgefedPushMember +} + +// GetForgeFedRepository returns the value of this property. When +// IsForgeFedRepository returns false, GetForgeFedRepository will return an +// arbitrary value. +func (this ForgeFedCommittedByProperty) GetForgeFedRepository() vocab.ForgeFedRepository { + return this.forgefedRepositoryMember +} + +// GetForgeFedTicket returns the value of this property. When IsForgeFedTicket +// returns false, GetForgeFedTicket will return an arbitrary value. +func (this ForgeFedCommittedByProperty) GetForgeFedTicket() vocab.ForgeFedTicket { + return this.forgefedTicketMember +} + +// GetForgeFedTicketDependency returns the value of this property. When +// IsForgeFedTicketDependency returns false, GetForgeFedTicketDependency will +// return an arbitrary value. +func (this ForgeFedCommittedByProperty) GetForgeFedTicketDependency() vocab.ForgeFedTicketDependency { + return this.forgefedTicketDependencyMember +} + +// GetIRI returns the IRI of this property. When IsIRI returns false, GetIRI will +// return an arbitrary value. +func (this ForgeFedCommittedByProperty) GetIRI() *url.URL { + return this.iri +} + +// GetTootEmoji returns the value of this property. When IsTootEmoji returns +// false, GetTootEmoji will return an arbitrary value. +func (this ForgeFedCommittedByProperty) GetTootEmoji() vocab.TootEmoji { + return this.tootEmojiMember +} + +// GetTootIdentityProof returns the value of this property. When +// IsTootIdentityProof returns false, GetTootIdentityProof will return an +// arbitrary value. +func (this ForgeFedCommittedByProperty) GetTootIdentityProof() vocab.TootIdentityProof { + return this.tootIdentityProofMember +} + +// GetType returns the value in this property as a Type. Returns nil if the value +// is not an ActivityStreams type, such as an IRI or another value. +func (this ForgeFedCommittedByProperty) GetType() vocab.Type { + if this.IsActivityStreamsObject() { + return this.GetActivityStreamsObject() + } + if this.IsActivityStreamsAccept() { + return this.GetActivityStreamsAccept() + } + if this.IsActivityStreamsActivity() { + return this.GetActivityStreamsActivity() + } + if this.IsActivityStreamsAdd() { + return this.GetActivityStreamsAdd() + } + if this.IsActivityStreamsAnnounce() { + return this.GetActivityStreamsAnnounce() + } + if this.IsActivityStreamsApplication() { + return this.GetActivityStreamsApplication() + } + if this.IsActivityStreamsArrive() { + return this.GetActivityStreamsArrive() + } + if this.IsActivityStreamsArticle() { + return this.GetActivityStreamsArticle() + } + if this.IsActivityStreamsAudio() { + return this.GetActivityStreamsAudio() + } + if this.IsActivityStreamsBlock() { + return this.GetActivityStreamsBlock() + } + if this.IsForgeFedBranch() { + return this.GetForgeFedBranch() + } + if this.IsActivityStreamsCollection() { + return this.GetActivityStreamsCollection() + } + if this.IsActivityStreamsCollectionPage() { + return this.GetActivityStreamsCollectionPage() + } + if this.IsForgeFedCommit() { + return this.GetForgeFedCommit() + } + if this.IsActivityStreamsCreate() { + return this.GetActivityStreamsCreate() + } + if this.IsActivityStreamsDelete() { + return this.GetActivityStreamsDelete() + } + if this.IsActivityStreamsDislike() { + return this.GetActivityStreamsDislike() + } + if this.IsActivityStreamsDocument() { + return this.GetActivityStreamsDocument() + } + if this.IsTootEmoji() { + return this.GetTootEmoji() + } + if this.IsActivityStreamsEvent() { + return this.GetActivityStreamsEvent() + } + if this.IsActivityStreamsFlag() { + return this.GetActivityStreamsFlag() + } + if this.IsActivityStreamsFollow() { + return this.GetActivityStreamsFollow() + } + if this.IsActivityStreamsGroup() { + return this.GetActivityStreamsGroup() + } + if this.IsTootIdentityProof() { + return this.GetTootIdentityProof() + } + if this.IsActivityStreamsIgnore() { + return this.GetActivityStreamsIgnore() + } + if this.IsActivityStreamsImage() { + return this.GetActivityStreamsImage() + } + if this.IsActivityStreamsIntransitiveActivity() { + return this.GetActivityStreamsIntransitiveActivity() + } + if this.IsActivityStreamsInvite() { + return this.GetActivityStreamsInvite() + } + if this.IsActivityStreamsJoin() { + return this.GetActivityStreamsJoin() + } + if this.IsActivityStreamsLeave() { + return this.GetActivityStreamsLeave() + } + if this.IsActivityStreamsLike() { + return this.GetActivityStreamsLike() + } + if this.IsActivityStreamsListen() { + return this.GetActivityStreamsListen() + } + if this.IsActivityStreamsMove() { + return this.GetActivityStreamsMove() + } + if this.IsActivityStreamsNote() { + return this.GetActivityStreamsNote() + } + if this.IsActivityStreamsOffer() { + return this.GetActivityStreamsOffer() + } + if this.IsActivityStreamsOrderedCollection() { + return this.GetActivityStreamsOrderedCollection() + } + if this.IsActivityStreamsOrderedCollectionPage() { + return this.GetActivityStreamsOrderedCollectionPage() + } + if this.IsActivityStreamsOrganization() { + return this.GetActivityStreamsOrganization() + } + if this.IsActivityStreamsPage() { + return this.GetActivityStreamsPage() + } + if this.IsActivityStreamsPerson() { + return this.GetActivityStreamsPerson() + } + if this.IsActivityStreamsPlace() { + return this.GetActivityStreamsPlace() + } + if this.IsActivityStreamsProfile() { + return this.GetActivityStreamsProfile() + } + if this.IsForgeFedPush() { + return this.GetForgeFedPush() + } + if this.IsActivityStreamsQuestion() { + return this.GetActivityStreamsQuestion() + } + if this.IsActivityStreamsRead() { + return this.GetActivityStreamsRead() + } + if this.IsActivityStreamsReject() { + return this.GetActivityStreamsReject() + } + if this.IsActivityStreamsRelationship() { + return this.GetActivityStreamsRelationship() + } + if this.IsActivityStreamsRemove() { + return this.GetActivityStreamsRemove() + } + if this.IsForgeFedRepository() { + return this.GetForgeFedRepository() + } + if this.IsActivityStreamsService() { + return this.GetActivityStreamsService() + } + if this.IsActivityStreamsTentativeAccept() { + return this.GetActivityStreamsTentativeAccept() + } + if this.IsActivityStreamsTentativeReject() { + return this.GetActivityStreamsTentativeReject() + } + if this.IsForgeFedTicket() { + return this.GetForgeFedTicket() + } + if this.IsForgeFedTicketDependency() { + return this.GetForgeFedTicketDependency() + } + if this.IsActivityStreamsTombstone() { + return this.GetActivityStreamsTombstone() + } + if this.IsActivityStreamsTravel() { + return this.GetActivityStreamsTravel() + } + if this.IsActivityStreamsUndo() { + return this.GetActivityStreamsUndo() + } + if this.IsActivityStreamsUpdate() { + return this.GetActivityStreamsUpdate() + } + if this.IsActivityStreamsVideo() { + return this.GetActivityStreamsVideo() + } + if this.IsActivityStreamsView() { + return this.GetActivityStreamsView() + } + + return nil +} + +// HasAny returns true if any of the different values is set. +func (this ForgeFedCommittedByProperty) HasAny() bool { + return this.IsActivityStreamsObject() || + this.IsActivityStreamsAccept() || + this.IsActivityStreamsActivity() || + this.IsActivityStreamsAdd() || + this.IsActivityStreamsAnnounce() || + this.IsActivityStreamsApplication() || + this.IsActivityStreamsArrive() || + this.IsActivityStreamsArticle() || + this.IsActivityStreamsAudio() || + this.IsActivityStreamsBlock() || + this.IsForgeFedBranch() || + this.IsActivityStreamsCollection() || + this.IsActivityStreamsCollectionPage() || + this.IsForgeFedCommit() || + this.IsActivityStreamsCreate() || + this.IsActivityStreamsDelete() || + this.IsActivityStreamsDislike() || + this.IsActivityStreamsDocument() || + this.IsTootEmoji() || + this.IsActivityStreamsEvent() || + this.IsActivityStreamsFlag() || + this.IsActivityStreamsFollow() || + this.IsActivityStreamsGroup() || + this.IsTootIdentityProof() || + this.IsActivityStreamsIgnore() || + this.IsActivityStreamsImage() || + this.IsActivityStreamsIntransitiveActivity() || + this.IsActivityStreamsInvite() || + this.IsActivityStreamsJoin() || + this.IsActivityStreamsLeave() || + this.IsActivityStreamsLike() || + this.IsActivityStreamsListen() || + this.IsActivityStreamsMove() || + this.IsActivityStreamsNote() || + this.IsActivityStreamsOffer() || + this.IsActivityStreamsOrderedCollection() || + this.IsActivityStreamsOrderedCollectionPage() || + this.IsActivityStreamsOrganization() || + this.IsActivityStreamsPage() || + this.IsActivityStreamsPerson() || + this.IsActivityStreamsPlace() || + this.IsActivityStreamsProfile() || + this.IsForgeFedPush() || + this.IsActivityStreamsQuestion() || + this.IsActivityStreamsRead() || + this.IsActivityStreamsReject() || + this.IsActivityStreamsRelationship() || + this.IsActivityStreamsRemove() || + this.IsForgeFedRepository() || + this.IsActivityStreamsService() || + this.IsActivityStreamsTentativeAccept() || + this.IsActivityStreamsTentativeReject() || + this.IsForgeFedTicket() || + this.IsForgeFedTicketDependency() || + this.IsActivityStreamsTombstone() || + this.IsActivityStreamsTravel() || + this.IsActivityStreamsUndo() || + this.IsActivityStreamsUpdate() || + this.IsActivityStreamsVideo() || + this.IsActivityStreamsView() || + this.iri != nil +} + +// IsActivityStreamsAccept returns true if this property has a type of "Accept". +// When true, use the GetActivityStreamsAccept and SetActivityStreamsAccept +// methods to access and set this property. +func (this ForgeFedCommittedByProperty) IsActivityStreamsAccept() bool { + return this.activitystreamsAcceptMember != nil +} + +// IsActivityStreamsActivity returns true if this property has a type of +// "Activity". When true, use the GetActivityStreamsActivity and +// SetActivityStreamsActivity methods to access and set this property. +func (this ForgeFedCommittedByProperty) IsActivityStreamsActivity() bool { + return this.activitystreamsActivityMember != nil +} + +// IsActivityStreamsAdd returns true if this property has a type of "Add". When +// true, use the GetActivityStreamsAdd and SetActivityStreamsAdd methods to +// access and set this property. +func (this ForgeFedCommittedByProperty) IsActivityStreamsAdd() bool { + return this.activitystreamsAddMember != nil +} + +// IsActivityStreamsAnnounce returns true if this property has a type of +// "Announce". When true, use the GetActivityStreamsAnnounce and +// SetActivityStreamsAnnounce methods to access and set this property. +func (this ForgeFedCommittedByProperty) IsActivityStreamsAnnounce() bool { + return this.activitystreamsAnnounceMember != nil +} + +// IsActivityStreamsApplication returns true if this property has a type of +// "Application". When true, use the GetActivityStreamsApplication and +// SetActivityStreamsApplication methods to access and set this property. +func (this ForgeFedCommittedByProperty) IsActivityStreamsApplication() bool { + return this.activitystreamsApplicationMember != nil +} + +// IsActivityStreamsArrive returns true if this property has a type of "Arrive". +// When true, use the GetActivityStreamsArrive and SetActivityStreamsArrive +// methods to access and set this property. +func (this ForgeFedCommittedByProperty) IsActivityStreamsArrive() bool { + return this.activitystreamsArriveMember != nil +} + +// IsActivityStreamsArticle returns true if this property has a type of "Article". +// When true, use the GetActivityStreamsArticle and SetActivityStreamsArticle +// methods to access and set this property. +func (this ForgeFedCommittedByProperty) IsActivityStreamsArticle() bool { + return this.activitystreamsArticleMember != nil +} + +// IsActivityStreamsAudio returns true if this property has a type of "Audio". +// When true, use the GetActivityStreamsAudio and SetActivityStreamsAudio +// methods to access and set this property. +func (this ForgeFedCommittedByProperty) IsActivityStreamsAudio() bool { + return this.activitystreamsAudioMember != nil +} + +// IsActivityStreamsBlock returns true if this property has a type of "Block". +// When true, use the GetActivityStreamsBlock and SetActivityStreamsBlock +// methods to access and set this property. +func (this ForgeFedCommittedByProperty) IsActivityStreamsBlock() bool { + return this.activitystreamsBlockMember != nil +} + +// IsActivityStreamsCollection returns true if this property has a type of +// "Collection". When true, use the GetActivityStreamsCollection and +// SetActivityStreamsCollection methods to access and set this property. +func (this ForgeFedCommittedByProperty) IsActivityStreamsCollection() bool { + return this.activitystreamsCollectionMember != nil +} + +// IsActivityStreamsCollectionPage returns true if this property has a type of +// "CollectionPage". When true, use the GetActivityStreamsCollectionPage and +// SetActivityStreamsCollectionPage methods to access and set this property. +func (this ForgeFedCommittedByProperty) IsActivityStreamsCollectionPage() bool { + return this.activitystreamsCollectionPageMember != nil +} + +// IsActivityStreamsCreate returns true if this property has a type of "Create". +// When true, use the GetActivityStreamsCreate and SetActivityStreamsCreate +// methods to access and set this property. +func (this ForgeFedCommittedByProperty) IsActivityStreamsCreate() bool { + return this.activitystreamsCreateMember != nil +} + +// IsActivityStreamsDelete returns true if this property has a type of "Delete". +// When true, use the GetActivityStreamsDelete and SetActivityStreamsDelete +// methods to access and set this property. +func (this ForgeFedCommittedByProperty) IsActivityStreamsDelete() bool { + return this.activitystreamsDeleteMember != nil +} + +// IsActivityStreamsDislike returns true if this property has a type of "Dislike". +// When true, use the GetActivityStreamsDislike and SetActivityStreamsDislike +// methods to access and set this property. +func (this ForgeFedCommittedByProperty) IsActivityStreamsDislike() bool { + return this.activitystreamsDislikeMember != nil +} + +// IsActivityStreamsDocument returns true if this property has a type of +// "Document". When true, use the GetActivityStreamsDocument and +// SetActivityStreamsDocument methods to access and set this property. +func (this ForgeFedCommittedByProperty) IsActivityStreamsDocument() bool { + return this.activitystreamsDocumentMember != nil +} + +// IsActivityStreamsEvent returns true if this property has a type of "Event". +// When true, use the GetActivityStreamsEvent and SetActivityStreamsEvent +// methods to access and set this property. +func (this ForgeFedCommittedByProperty) IsActivityStreamsEvent() bool { + return this.activitystreamsEventMember != nil +} + +// IsActivityStreamsFlag returns true if this property has a type of "Flag". When +// true, use the GetActivityStreamsFlag and SetActivityStreamsFlag methods to +// access and set this property. +func (this ForgeFedCommittedByProperty) IsActivityStreamsFlag() bool { + return this.activitystreamsFlagMember != nil +} + +// IsActivityStreamsFollow returns true if this property has a type of "Follow". +// When true, use the GetActivityStreamsFollow and SetActivityStreamsFollow +// methods to access and set this property. +func (this ForgeFedCommittedByProperty) IsActivityStreamsFollow() bool { + return this.activitystreamsFollowMember != nil +} + +// IsActivityStreamsGroup returns true if this property has a type of "Group". +// When true, use the GetActivityStreamsGroup and SetActivityStreamsGroup +// methods to access and set this property. +func (this ForgeFedCommittedByProperty) IsActivityStreamsGroup() bool { + return this.activitystreamsGroupMember != nil +} + +// IsActivityStreamsIgnore returns true if this property has a type of "Ignore". +// When true, use the GetActivityStreamsIgnore and SetActivityStreamsIgnore +// methods to access and set this property. +func (this ForgeFedCommittedByProperty) IsActivityStreamsIgnore() bool { + return this.activitystreamsIgnoreMember != nil +} + +// IsActivityStreamsImage returns true if this property has a type of "Image". +// When true, use the GetActivityStreamsImage and SetActivityStreamsImage +// methods to access and set this property. +func (this ForgeFedCommittedByProperty) IsActivityStreamsImage() bool { + return this.activitystreamsImageMember != nil +} + +// IsActivityStreamsIntransitiveActivity returns true if this property has a type +// of "IntransitiveActivity". When true, use the +// GetActivityStreamsIntransitiveActivity and +// SetActivityStreamsIntransitiveActivity methods to access and set this +// property. +func (this ForgeFedCommittedByProperty) IsActivityStreamsIntransitiveActivity() bool { + return this.activitystreamsIntransitiveActivityMember != nil +} + +// IsActivityStreamsInvite returns true if this property has a type of "Invite". +// When true, use the GetActivityStreamsInvite and SetActivityStreamsInvite +// methods to access and set this property. +func (this ForgeFedCommittedByProperty) IsActivityStreamsInvite() bool { + return this.activitystreamsInviteMember != nil +} + +// IsActivityStreamsJoin returns true if this property has a type of "Join". When +// true, use the GetActivityStreamsJoin and SetActivityStreamsJoin methods to +// access and set this property. +func (this ForgeFedCommittedByProperty) IsActivityStreamsJoin() bool { + return this.activitystreamsJoinMember != nil +} + +// IsActivityStreamsLeave returns true if this property has a type of "Leave". +// When true, use the GetActivityStreamsLeave and SetActivityStreamsLeave +// methods to access and set this property. +func (this ForgeFedCommittedByProperty) IsActivityStreamsLeave() bool { + return this.activitystreamsLeaveMember != nil +} + +// IsActivityStreamsLike returns true if this property has a type of "Like". When +// true, use the GetActivityStreamsLike and SetActivityStreamsLike methods to +// access and set this property. +func (this ForgeFedCommittedByProperty) IsActivityStreamsLike() bool { + return this.activitystreamsLikeMember != nil +} + +// IsActivityStreamsListen returns true if this property has a type of "Listen". +// When true, use the GetActivityStreamsListen and SetActivityStreamsListen +// methods to access and set this property. +func (this ForgeFedCommittedByProperty) IsActivityStreamsListen() bool { + return this.activitystreamsListenMember != nil +} + +// IsActivityStreamsMove returns true if this property has a type of "Move". When +// true, use the GetActivityStreamsMove and SetActivityStreamsMove methods to +// access and set this property. +func (this ForgeFedCommittedByProperty) IsActivityStreamsMove() bool { + return this.activitystreamsMoveMember != nil +} + +// IsActivityStreamsNote returns true if this property has a type of "Note". When +// true, use the GetActivityStreamsNote and SetActivityStreamsNote methods to +// access and set this property. +func (this ForgeFedCommittedByProperty) IsActivityStreamsNote() bool { + return this.activitystreamsNoteMember != nil +} + +// IsActivityStreamsObject returns true if this property has a type of "Object". +// When true, use the GetActivityStreamsObject and SetActivityStreamsObject +// methods to access and set this property. +func (this ForgeFedCommittedByProperty) IsActivityStreamsObject() bool { + return this.activitystreamsObjectMember != nil +} + +// IsActivityStreamsOffer returns true if this property has a type of "Offer". +// When true, use the GetActivityStreamsOffer and SetActivityStreamsOffer +// methods to access and set this property. +func (this ForgeFedCommittedByProperty) IsActivityStreamsOffer() bool { + return this.activitystreamsOfferMember != nil +} + +// IsActivityStreamsOrderedCollection returns true if this property has a type of +// "OrderedCollection". When true, use the GetActivityStreamsOrderedCollection +// and SetActivityStreamsOrderedCollection methods to access and set this +// property. +func (this ForgeFedCommittedByProperty) IsActivityStreamsOrderedCollection() bool { + return this.activitystreamsOrderedCollectionMember != nil +} + +// IsActivityStreamsOrderedCollectionPage returns true if this property has a type +// of "OrderedCollectionPage". When true, use the +// GetActivityStreamsOrderedCollectionPage and +// SetActivityStreamsOrderedCollectionPage methods to access and set this +// property. +func (this ForgeFedCommittedByProperty) IsActivityStreamsOrderedCollectionPage() bool { + return this.activitystreamsOrderedCollectionPageMember != nil +} + +// IsActivityStreamsOrganization returns true if this property has a type of +// "Organization". When true, use the GetActivityStreamsOrganization and +// SetActivityStreamsOrganization methods to access and set this property. +func (this ForgeFedCommittedByProperty) IsActivityStreamsOrganization() bool { + return this.activitystreamsOrganizationMember != nil +} + +// IsActivityStreamsPage returns true if this property has a type of "Page". When +// true, use the GetActivityStreamsPage and SetActivityStreamsPage methods to +// access and set this property. +func (this ForgeFedCommittedByProperty) IsActivityStreamsPage() bool { + return this.activitystreamsPageMember != nil +} + +// IsActivityStreamsPerson returns true if this property has a type of "Person". +// When true, use the GetActivityStreamsPerson and SetActivityStreamsPerson +// methods to access and set this property. +func (this ForgeFedCommittedByProperty) IsActivityStreamsPerson() bool { + return this.activitystreamsPersonMember != nil +} + +// IsActivityStreamsPlace returns true if this property has a type of "Place". +// When true, use the GetActivityStreamsPlace and SetActivityStreamsPlace +// methods to access and set this property. +func (this ForgeFedCommittedByProperty) IsActivityStreamsPlace() bool { + return this.activitystreamsPlaceMember != nil +} + +// IsActivityStreamsProfile returns true if this property has a type of "Profile". +// When true, use the GetActivityStreamsProfile and SetActivityStreamsProfile +// methods to access and set this property. +func (this ForgeFedCommittedByProperty) IsActivityStreamsProfile() bool { + return this.activitystreamsProfileMember != nil +} + +// IsActivityStreamsQuestion returns true if this property has a type of +// "Question". When true, use the GetActivityStreamsQuestion and +// SetActivityStreamsQuestion methods to access and set this property. +func (this ForgeFedCommittedByProperty) IsActivityStreamsQuestion() bool { + return this.activitystreamsQuestionMember != nil +} + +// IsActivityStreamsRead returns true if this property has a type of "Read". When +// true, use the GetActivityStreamsRead and SetActivityStreamsRead methods to +// access and set this property. +func (this ForgeFedCommittedByProperty) IsActivityStreamsRead() bool { + return this.activitystreamsReadMember != nil +} + +// IsActivityStreamsReject returns true if this property has a type of "Reject". +// When true, use the GetActivityStreamsReject and SetActivityStreamsReject +// methods to access and set this property. +func (this ForgeFedCommittedByProperty) IsActivityStreamsReject() bool { + return this.activitystreamsRejectMember != nil +} + +// IsActivityStreamsRelationship returns true if this property has a type of +// "Relationship". When true, use the GetActivityStreamsRelationship and +// SetActivityStreamsRelationship methods to access and set this property. +func (this ForgeFedCommittedByProperty) IsActivityStreamsRelationship() bool { + return this.activitystreamsRelationshipMember != nil +} + +// IsActivityStreamsRemove returns true if this property has a type of "Remove". +// When true, use the GetActivityStreamsRemove and SetActivityStreamsRemove +// methods to access and set this property. +func (this ForgeFedCommittedByProperty) IsActivityStreamsRemove() bool { + return this.activitystreamsRemoveMember != nil +} + +// IsActivityStreamsService returns true if this property has a type of "Service". +// When true, use the GetActivityStreamsService and SetActivityStreamsService +// methods to access and set this property. +func (this ForgeFedCommittedByProperty) IsActivityStreamsService() bool { + return this.activitystreamsServiceMember != nil +} + +// IsActivityStreamsTentativeAccept returns true if this property has a type of +// "TentativeAccept". When true, use the GetActivityStreamsTentativeAccept and +// SetActivityStreamsTentativeAccept methods to access and set this property. +func (this ForgeFedCommittedByProperty) IsActivityStreamsTentativeAccept() bool { + return this.activitystreamsTentativeAcceptMember != nil +} + +// IsActivityStreamsTentativeReject returns true if this property has a type of +// "TentativeReject". When true, use the GetActivityStreamsTentativeReject and +// SetActivityStreamsTentativeReject methods to access and set this property. +func (this ForgeFedCommittedByProperty) IsActivityStreamsTentativeReject() bool { + return this.activitystreamsTentativeRejectMember != nil +} + +// IsActivityStreamsTombstone returns true if this property has a type of +// "Tombstone". When true, use the GetActivityStreamsTombstone and +// SetActivityStreamsTombstone methods to access and set this property. +func (this ForgeFedCommittedByProperty) IsActivityStreamsTombstone() bool { + return this.activitystreamsTombstoneMember != nil +} + +// IsActivityStreamsTravel returns true if this property has a type of "Travel". +// When true, use the GetActivityStreamsTravel and SetActivityStreamsTravel +// methods to access and set this property. +func (this ForgeFedCommittedByProperty) IsActivityStreamsTravel() bool { + return this.activitystreamsTravelMember != nil +} + +// IsActivityStreamsUndo returns true if this property has a type of "Undo". When +// true, use the GetActivityStreamsUndo and SetActivityStreamsUndo methods to +// access and set this property. +func (this ForgeFedCommittedByProperty) IsActivityStreamsUndo() bool { + return this.activitystreamsUndoMember != nil +} + +// IsActivityStreamsUpdate returns true if this property has a type of "Update". +// When true, use the GetActivityStreamsUpdate and SetActivityStreamsUpdate +// methods to access and set this property. +func (this ForgeFedCommittedByProperty) IsActivityStreamsUpdate() bool { + return this.activitystreamsUpdateMember != nil +} + +// IsActivityStreamsVideo returns true if this property has a type of "Video". +// When true, use the GetActivityStreamsVideo and SetActivityStreamsVideo +// methods to access and set this property. +func (this ForgeFedCommittedByProperty) IsActivityStreamsVideo() bool { + return this.activitystreamsVideoMember != nil +} + +// IsActivityStreamsView returns true if this property has a type of "View". When +// true, use the GetActivityStreamsView and SetActivityStreamsView methods to +// access and set this property. +func (this ForgeFedCommittedByProperty) IsActivityStreamsView() bool { + return this.activitystreamsViewMember != nil +} + +// IsForgeFedBranch returns true if this property has a type of "Branch". When +// true, use the GetForgeFedBranch and SetForgeFedBranch methods to access and +// set this property. +func (this ForgeFedCommittedByProperty) IsForgeFedBranch() bool { + return this.forgefedBranchMember != nil +} + +// IsForgeFedCommit returns true if this property has a type of "Commit". When +// true, use the GetForgeFedCommit and SetForgeFedCommit methods to access and +// set this property. +func (this ForgeFedCommittedByProperty) IsForgeFedCommit() bool { + return this.forgefedCommitMember != nil +} + +// IsForgeFedPush returns true if this property has a type of "Push". When true, +// use the GetForgeFedPush and SetForgeFedPush methods to access and set this +// property. +func (this ForgeFedCommittedByProperty) IsForgeFedPush() bool { + return this.forgefedPushMember != nil +} + +// IsForgeFedRepository returns true if this property has a type of "Repository". +// When true, use the GetForgeFedRepository and SetForgeFedRepository methods +// to access and set this property. +func (this ForgeFedCommittedByProperty) IsForgeFedRepository() bool { + return this.forgefedRepositoryMember != nil +} + +// IsForgeFedTicket returns true if this property has a type of "Ticket". When +// true, use the GetForgeFedTicket and SetForgeFedTicket methods to access and +// set this property. +func (this ForgeFedCommittedByProperty) IsForgeFedTicket() bool { + return this.forgefedTicketMember != nil +} + +// IsForgeFedTicketDependency returns true if this property has a type of +// "TicketDependency". When true, use the GetForgeFedTicketDependency and +// SetForgeFedTicketDependency methods to access and set this property. +func (this ForgeFedCommittedByProperty) IsForgeFedTicketDependency() bool { + return this.forgefedTicketDependencyMember != nil +} + +// IsIRI returns true if this property is an IRI. When true, use GetIRI and SetIRI +// to access and set this property +func (this ForgeFedCommittedByProperty) IsIRI() bool { + return this.iri != nil +} + +// IsTootEmoji returns true if this property has a type of "Emoji". When true, use +// the GetTootEmoji and SetTootEmoji methods to access and set this property. +func (this ForgeFedCommittedByProperty) IsTootEmoji() bool { + return this.tootEmojiMember != nil +} + +// IsTootIdentityProof returns true if this property has a type of +// "IdentityProof". When true, use the GetTootIdentityProof and +// SetTootIdentityProof methods to access and set this property. +func (this ForgeFedCommittedByProperty) IsTootIdentityProof() bool { + return this.tootIdentityProofMember != nil +} + +// JSONLDContext returns the JSONLD URIs required in the context string for this +// property and the specific values that are set. The value in the map is the +// alias used to import the property's value or values. +func (this ForgeFedCommittedByProperty) JSONLDContext() map[string]string { + m := map[string]string{"https://forgefed.peers.community/ns": this.alias} + var child map[string]string + if this.IsActivityStreamsObject() { + child = this.GetActivityStreamsObject().JSONLDContext() + } else if this.IsActivityStreamsAccept() { + child = this.GetActivityStreamsAccept().JSONLDContext() + } else if this.IsActivityStreamsActivity() { + child = this.GetActivityStreamsActivity().JSONLDContext() + } else if this.IsActivityStreamsAdd() { + child = this.GetActivityStreamsAdd().JSONLDContext() + } else if this.IsActivityStreamsAnnounce() { + child = this.GetActivityStreamsAnnounce().JSONLDContext() + } else if this.IsActivityStreamsApplication() { + child = this.GetActivityStreamsApplication().JSONLDContext() + } else if this.IsActivityStreamsArrive() { + child = this.GetActivityStreamsArrive().JSONLDContext() + } else if this.IsActivityStreamsArticle() { + child = this.GetActivityStreamsArticle().JSONLDContext() + } else if this.IsActivityStreamsAudio() { + child = this.GetActivityStreamsAudio().JSONLDContext() + } else if this.IsActivityStreamsBlock() { + child = this.GetActivityStreamsBlock().JSONLDContext() + } else if this.IsForgeFedBranch() { + child = this.GetForgeFedBranch().JSONLDContext() + } else if this.IsActivityStreamsCollection() { + child = this.GetActivityStreamsCollection().JSONLDContext() + } else if this.IsActivityStreamsCollectionPage() { + child = this.GetActivityStreamsCollectionPage().JSONLDContext() + } else if this.IsForgeFedCommit() { + child = this.GetForgeFedCommit().JSONLDContext() + } else if this.IsActivityStreamsCreate() { + child = this.GetActivityStreamsCreate().JSONLDContext() + } else if this.IsActivityStreamsDelete() { + child = this.GetActivityStreamsDelete().JSONLDContext() + } else if this.IsActivityStreamsDislike() { + child = this.GetActivityStreamsDislike().JSONLDContext() + } else if this.IsActivityStreamsDocument() { + child = this.GetActivityStreamsDocument().JSONLDContext() + } else if this.IsTootEmoji() { + child = this.GetTootEmoji().JSONLDContext() + } else if this.IsActivityStreamsEvent() { + child = this.GetActivityStreamsEvent().JSONLDContext() + } else if this.IsActivityStreamsFlag() { + child = this.GetActivityStreamsFlag().JSONLDContext() + } else if this.IsActivityStreamsFollow() { + child = this.GetActivityStreamsFollow().JSONLDContext() + } else if this.IsActivityStreamsGroup() { + child = this.GetActivityStreamsGroup().JSONLDContext() + } else if this.IsTootIdentityProof() { + child = this.GetTootIdentityProof().JSONLDContext() + } else if this.IsActivityStreamsIgnore() { + child = this.GetActivityStreamsIgnore().JSONLDContext() + } else if this.IsActivityStreamsImage() { + child = this.GetActivityStreamsImage().JSONLDContext() + } else if this.IsActivityStreamsIntransitiveActivity() { + child = this.GetActivityStreamsIntransitiveActivity().JSONLDContext() + } else if this.IsActivityStreamsInvite() { + child = this.GetActivityStreamsInvite().JSONLDContext() + } else if this.IsActivityStreamsJoin() { + child = this.GetActivityStreamsJoin().JSONLDContext() + } else if this.IsActivityStreamsLeave() { + child = this.GetActivityStreamsLeave().JSONLDContext() + } else if this.IsActivityStreamsLike() { + child = this.GetActivityStreamsLike().JSONLDContext() + } else if this.IsActivityStreamsListen() { + child = this.GetActivityStreamsListen().JSONLDContext() + } else if this.IsActivityStreamsMove() { + child = this.GetActivityStreamsMove().JSONLDContext() + } else if this.IsActivityStreamsNote() { + child = this.GetActivityStreamsNote().JSONLDContext() + } else if this.IsActivityStreamsOffer() { + child = this.GetActivityStreamsOffer().JSONLDContext() + } else if this.IsActivityStreamsOrderedCollection() { + child = this.GetActivityStreamsOrderedCollection().JSONLDContext() + } else if this.IsActivityStreamsOrderedCollectionPage() { + child = this.GetActivityStreamsOrderedCollectionPage().JSONLDContext() + } else if this.IsActivityStreamsOrganization() { + child = this.GetActivityStreamsOrganization().JSONLDContext() + } else if this.IsActivityStreamsPage() { + child = this.GetActivityStreamsPage().JSONLDContext() + } else if this.IsActivityStreamsPerson() { + child = this.GetActivityStreamsPerson().JSONLDContext() + } else if this.IsActivityStreamsPlace() { + child = this.GetActivityStreamsPlace().JSONLDContext() + } else if this.IsActivityStreamsProfile() { + child = this.GetActivityStreamsProfile().JSONLDContext() + } else if this.IsForgeFedPush() { + child = this.GetForgeFedPush().JSONLDContext() + } else if this.IsActivityStreamsQuestion() { + child = this.GetActivityStreamsQuestion().JSONLDContext() + } else if this.IsActivityStreamsRead() { + child = this.GetActivityStreamsRead().JSONLDContext() + } else if this.IsActivityStreamsReject() { + child = this.GetActivityStreamsReject().JSONLDContext() + } else if this.IsActivityStreamsRelationship() { + child = this.GetActivityStreamsRelationship().JSONLDContext() + } else if this.IsActivityStreamsRemove() { + child = this.GetActivityStreamsRemove().JSONLDContext() + } else if this.IsForgeFedRepository() { + child = this.GetForgeFedRepository().JSONLDContext() + } else if this.IsActivityStreamsService() { + child = this.GetActivityStreamsService().JSONLDContext() + } else if this.IsActivityStreamsTentativeAccept() { + child = this.GetActivityStreamsTentativeAccept().JSONLDContext() + } else if this.IsActivityStreamsTentativeReject() { + child = this.GetActivityStreamsTentativeReject().JSONLDContext() + } else if this.IsForgeFedTicket() { + child = this.GetForgeFedTicket().JSONLDContext() + } else if this.IsForgeFedTicketDependency() { + child = this.GetForgeFedTicketDependency().JSONLDContext() + } else if this.IsActivityStreamsTombstone() { + child = this.GetActivityStreamsTombstone().JSONLDContext() + } else if this.IsActivityStreamsTravel() { + child = this.GetActivityStreamsTravel().JSONLDContext() + } else if this.IsActivityStreamsUndo() { + child = this.GetActivityStreamsUndo().JSONLDContext() + } else if this.IsActivityStreamsUpdate() { + child = this.GetActivityStreamsUpdate().JSONLDContext() + } else if this.IsActivityStreamsVideo() { + child = this.GetActivityStreamsVideo().JSONLDContext() + } else if this.IsActivityStreamsView() { + child = this.GetActivityStreamsView().JSONLDContext() + } + /* + Since the literal maps in this function are determined at + code-generation time, this loop should not overwrite an existing key with a + new value. + */ + for k, v := range child { + m[k] = v + } + return m +} + +// KindIndex computes an arbitrary value for indexing this kind of value. This is +// a leaky API detail only for folks looking to replace the go-fed +// implementation. Applications should not use this method. +func (this ForgeFedCommittedByProperty) KindIndex() int { + if this.IsActivityStreamsObject() { + return 0 + } + if this.IsActivityStreamsAccept() { + return 1 + } + if this.IsActivityStreamsActivity() { + return 2 + } + if this.IsActivityStreamsAdd() { + return 3 + } + if this.IsActivityStreamsAnnounce() { + return 4 + } + if this.IsActivityStreamsApplication() { + return 5 + } + if this.IsActivityStreamsArrive() { + return 6 + } + if this.IsActivityStreamsArticle() { + return 7 + } + if this.IsActivityStreamsAudio() { + return 8 + } + if this.IsActivityStreamsBlock() { + return 9 + } + if this.IsForgeFedBranch() { + return 10 + } + if this.IsActivityStreamsCollection() { + return 11 + } + if this.IsActivityStreamsCollectionPage() { + return 12 + } + if this.IsForgeFedCommit() { + return 13 + } + if this.IsActivityStreamsCreate() { + return 14 + } + if this.IsActivityStreamsDelete() { + return 15 + } + if this.IsActivityStreamsDislike() { + return 16 + } + if this.IsActivityStreamsDocument() { + return 17 + } + if this.IsTootEmoji() { + return 18 + } + if this.IsActivityStreamsEvent() { + return 19 + } + if this.IsActivityStreamsFlag() { + return 20 + } + if this.IsActivityStreamsFollow() { + return 21 + } + if this.IsActivityStreamsGroup() { + return 22 + } + if this.IsTootIdentityProof() { + return 23 + } + if this.IsActivityStreamsIgnore() { + return 24 + } + if this.IsActivityStreamsImage() { + return 25 + } + if this.IsActivityStreamsIntransitiveActivity() { + return 26 + } + if this.IsActivityStreamsInvite() { + return 27 + } + if this.IsActivityStreamsJoin() { + return 28 + } + if this.IsActivityStreamsLeave() { + return 29 + } + if this.IsActivityStreamsLike() { + return 30 + } + if this.IsActivityStreamsListen() { + return 31 + } + if this.IsActivityStreamsMove() { + return 32 + } + if this.IsActivityStreamsNote() { + return 33 + } + if this.IsActivityStreamsOffer() { + return 34 + } + if this.IsActivityStreamsOrderedCollection() { + return 35 + } + if this.IsActivityStreamsOrderedCollectionPage() { + return 36 + } + if this.IsActivityStreamsOrganization() { + return 37 + } + if this.IsActivityStreamsPage() { + return 38 + } + if this.IsActivityStreamsPerson() { + return 39 + } + if this.IsActivityStreamsPlace() { + return 40 + } + if this.IsActivityStreamsProfile() { + return 41 + } + if this.IsForgeFedPush() { + return 42 + } + if this.IsActivityStreamsQuestion() { + return 43 + } + if this.IsActivityStreamsRead() { + return 44 + } + if this.IsActivityStreamsReject() { + return 45 + } + if this.IsActivityStreamsRelationship() { + return 46 + } + if this.IsActivityStreamsRemove() { + return 47 + } + if this.IsForgeFedRepository() { + return 48 + } + if this.IsActivityStreamsService() { + return 49 + } + if this.IsActivityStreamsTentativeAccept() { + return 50 + } + if this.IsActivityStreamsTentativeReject() { + return 51 + } + if this.IsForgeFedTicket() { + return 52 + } + if this.IsForgeFedTicketDependency() { + return 53 + } + if this.IsActivityStreamsTombstone() { + return 54 + } + if this.IsActivityStreamsTravel() { + return 55 + } + if this.IsActivityStreamsUndo() { + return 56 + } + if this.IsActivityStreamsUpdate() { + return 57 + } + if this.IsActivityStreamsVideo() { + return 58 + } + if this.IsActivityStreamsView() { + return 59 + } + if this.IsIRI() { + return -2 + } + return -1 +} + +// LessThan compares two instances of this property with an arbitrary but stable +// comparison. Applications should not use this because it is only meant to +// help alternative implementations to go-fed to be able to normalize +// nonfunctional properties. +func (this ForgeFedCommittedByProperty) LessThan(o vocab.ForgeFedCommittedByProperty) bool { + idx1 := this.KindIndex() + idx2 := o.KindIndex() + if idx1 < idx2 { + return true + } else if idx1 > idx2 { + return false + } else if this.IsActivityStreamsObject() { + return this.GetActivityStreamsObject().LessThan(o.GetActivityStreamsObject()) + } else if this.IsActivityStreamsAccept() { + return this.GetActivityStreamsAccept().LessThan(o.GetActivityStreamsAccept()) + } else if this.IsActivityStreamsActivity() { + return this.GetActivityStreamsActivity().LessThan(o.GetActivityStreamsActivity()) + } else if this.IsActivityStreamsAdd() { + return this.GetActivityStreamsAdd().LessThan(o.GetActivityStreamsAdd()) + } else if this.IsActivityStreamsAnnounce() { + return this.GetActivityStreamsAnnounce().LessThan(o.GetActivityStreamsAnnounce()) + } else if this.IsActivityStreamsApplication() { + return this.GetActivityStreamsApplication().LessThan(o.GetActivityStreamsApplication()) + } else if this.IsActivityStreamsArrive() { + return this.GetActivityStreamsArrive().LessThan(o.GetActivityStreamsArrive()) + } else if this.IsActivityStreamsArticle() { + return this.GetActivityStreamsArticle().LessThan(o.GetActivityStreamsArticle()) + } else if this.IsActivityStreamsAudio() { + return this.GetActivityStreamsAudio().LessThan(o.GetActivityStreamsAudio()) + } else if this.IsActivityStreamsBlock() { + return this.GetActivityStreamsBlock().LessThan(o.GetActivityStreamsBlock()) + } else if this.IsForgeFedBranch() { + return this.GetForgeFedBranch().LessThan(o.GetForgeFedBranch()) + } else if this.IsActivityStreamsCollection() { + return this.GetActivityStreamsCollection().LessThan(o.GetActivityStreamsCollection()) + } else if this.IsActivityStreamsCollectionPage() { + return this.GetActivityStreamsCollectionPage().LessThan(o.GetActivityStreamsCollectionPage()) + } else if this.IsForgeFedCommit() { + return this.GetForgeFedCommit().LessThan(o.GetForgeFedCommit()) + } else if this.IsActivityStreamsCreate() { + return this.GetActivityStreamsCreate().LessThan(o.GetActivityStreamsCreate()) + } else if this.IsActivityStreamsDelete() { + return this.GetActivityStreamsDelete().LessThan(o.GetActivityStreamsDelete()) + } else if this.IsActivityStreamsDislike() { + return this.GetActivityStreamsDislike().LessThan(o.GetActivityStreamsDislike()) + } else if this.IsActivityStreamsDocument() { + return this.GetActivityStreamsDocument().LessThan(o.GetActivityStreamsDocument()) + } else if this.IsTootEmoji() { + return this.GetTootEmoji().LessThan(o.GetTootEmoji()) + } else if this.IsActivityStreamsEvent() { + return this.GetActivityStreamsEvent().LessThan(o.GetActivityStreamsEvent()) + } else if this.IsActivityStreamsFlag() { + return this.GetActivityStreamsFlag().LessThan(o.GetActivityStreamsFlag()) + } else if this.IsActivityStreamsFollow() { + return this.GetActivityStreamsFollow().LessThan(o.GetActivityStreamsFollow()) + } else if this.IsActivityStreamsGroup() { + return this.GetActivityStreamsGroup().LessThan(o.GetActivityStreamsGroup()) + } else if this.IsTootIdentityProof() { + return this.GetTootIdentityProof().LessThan(o.GetTootIdentityProof()) + } else if this.IsActivityStreamsIgnore() { + return this.GetActivityStreamsIgnore().LessThan(o.GetActivityStreamsIgnore()) + } else if this.IsActivityStreamsImage() { + return this.GetActivityStreamsImage().LessThan(o.GetActivityStreamsImage()) + } else if this.IsActivityStreamsIntransitiveActivity() { + return this.GetActivityStreamsIntransitiveActivity().LessThan(o.GetActivityStreamsIntransitiveActivity()) + } else if this.IsActivityStreamsInvite() { + return this.GetActivityStreamsInvite().LessThan(o.GetActivityStreamsInvite()) + } else if this.IsActivityStreamsJoin() { + return this.GetActivityStreamsJoin().LessThan(o.GetActivityStreamsJoin()) + } else if this.IsActivityStreamsLeave() { + return this.GetActivityStreamsLeave().LessThan(o.GetActivityStreamsLeave()) + } else if this.IsActivityStreamsLike() { + return this.GetActivityStreamsLike().LessThan(o.GetActivityStreamsLike()) + } else if this.IsActivityStreamsListen() { + return this.GetActivityStreamsListen().LessThan(o.GetActivityStreamsListen()) + } else if this.IsActivityStreamsMove() { + return this.GetActivityStreamsMove().LessThan(o.GetActivityStreamsMove()) + } else if this.IsActivityStreamsNote() { + return this.GetActivityStreamsNote().LessThan(o.GetActivityStreamsNote()) + } else if this.IsActivityStreamsOffer() { + return this.GetActivityStreamsOffer().LessThan(o.GetActivityStreamsOffer()) + } else if this.IsActivityStreamsOrderedCollection() { + return this.GetActivityStreamsOrderedCollection().LessThan(o.GetActivityStreamsOrderedCollection()) + } else if this.IsActivityStreamsOrderedCollectionPage() { + return this.GetActivityStreamsOrderedCollectionPage().LessThan(o.GetActivityStreamsOrderedCollectionPage()) + } else if this.IsActivityStreamsOrganization() { + return this.GetActivityStreamsOrganization().LessThan(o.GetActivityStreamsOrganization()) + } else if this.IsActivityStreamsPage() { + return this.GetActivityStreamsPage().LessThan(o.GetActivityStreamsPage()) + } else if this.IsActivityStreamsPerson() { + return this.GetActivityStreamsPerson().LessThan(o.GetActivityStreamsPerson()) + } else if this.IsActivityStreamsPlace() { + return this.GetActivityStreamsPlace().LessThan(o.GetActivityStreamsPlace()) + } else if this.IsActivityStreamsProfile() { + return this.GetActivityStreamsProfile().LessThan(o.GetActivityStreamsProfile()) + } else if this.IsForgeFedPush() { + return this.GetForgeFedPush().LessThan(o.GetForgeFedPush()) + } else if this.IsActivityStreamsQuestion() { + return this.GetActivityStreamsQuestion().LessThan(o.GetActivityStreamsQuestion()) + } else if this.IsActivityStreamsRead() { + return this.GetActivityStreamsRead().LessThan(o.GetActivityStreamsRead()) + } else if this.IsActivityStreamsReject() { + return this.GetActivityStreamsReject().LessThan(o.GetActivityStreamsReject()) + } else if this.IsActivityStreamsRelationship() { + return this.GetActivityStreamsRelationship().LessThan(o.GetActivityStreamsRelationship()) + } else if this.IsActivityStreamsRemove() { + return this.GetActivityStreamsRemove().LessThan(o.GetActivityStreamsRemove()) + } else if this.IsForgeFedRepository() { + return this.GetForgeFedRepository().LessThan(o.GetForgeFedRepository()) + } else if this.IsActivityStreamsService() { + return this.GetActivityStreamsService().LessThan(o.GetActivityStreamsService()) + } else if this.IsActivityStreamsTentativeAccept() { + return this.GetActivityStreamsTentativeAccept().LessThan(o.GetActivityStreamsTentativeAccept()) + } else if this.IsActivityStreamsTentativeReject() { + return this.GetActivityStreamsTentativeReject().LessThan(o.GetActivityStreamsTentativeReject()) + } else if this.IsForgeFedTicket() { + return this.GetForgeFedTicket().LessThan(o.GetForgeFedTicket()) + } else if this.IsForgeFedTicketDependency() { + return this.GetForgeFedTicketDependency().LessThan(o.GetForgeFedTicketDependency()) + } else if this.IsActivityStreamsTombstone() { + return this.GetActivityStreamsTombstone().LessThan(o.GetActivityStreamsTombstone()) + } else if this.IsActivityStreamsTravel() { + return this.GetActivityStreamsTravel().LessThan(o.GetActivityStreamsTravel()) + } else if this.IsActivityStreamsUndo() { + return this.GetActivityStreamsUndo().LessThan(o.GetActivityStreamsUndo()) + } else if this.IsActivityStreamsUpdate() { + return this.GetActivityStreamsUpdate().LessThan(o.GetActivityStreamsUpdate()) + } else if this.IsActivityStreamsVideo() { + return this.GetActivityStreamsVideo().LessThan(o.GetActivityStreamsVideo()) + } else if this.IsActivityStreamsView() { + return this.GetActivityStreamsView().LessThan(o.GetActivityStreamsView()) + } else if this.IsIRI() { + return this.iri.String() < o.GetIRI().String() + } + return false +} + +// Name returns the name of this property: "committedBy". +func (this ForgeFedCommittedByProperty) Name() string { + if len(this.alias) > 0 { + return this.alias + ":" + "committedBy" + } else { + return "committedBy" + } +} + +// Serialize converts this into an interface representation suitable for +// marshalling into a text or binary format. Applications should not need this +// function as most typical use cases serialize types instead of individual +// properties. It is exposed for alternatives to go-fed implementations to use. +func (this ForgeFedCommittedByProperty) Serialize() (interface{}, error) { + if this.IsActivityStreamsObject() { + return this.GetActivityStreamsObject().Serialize() + } else if this.IsActivityStreamsAccept() { + return this.GetActivityStreamsAccept().Serialize() + } else if this.IsActivityStreamsActivity() { + return this.GetActivityStreamsActivity().Serialize() + } else if this.IsActivityStreamsAdd() { + return this.GetActivityStreamsAdd().Serialize() + } else if this.IsActivityStreamsAnnounce() { + return this.GetActivityStreamsAnnounce().Serialize() + } else if this.IsActivityStreamsApplication() { + return this.GetActivityStreamsApplication().Serialize() + } else if this.IsActivityStreamsArrive() { + return this.GetActivityStreamsArrive().Serialize() + } else if this.IsActivityStreamsArticle() { + return this.GetActivityStreamsArticle().Serialize() + } else if this.IsActivityStreamsAudio() { + return this.GetActivityStreamsAudio().Serialize() + } else if this.IsActivityStreamsBlock() { + return this.GetActivityStreamsBlock().Serialize() + } else if this.IsForgeFedBranch() { + return this.GetForgeFedBranch().Serialize() + } else if this.IsActivityStreamsCollection() { + return this.GetActivityStreamsCollection().Serialize() + } else if this.IsActivityStreamsCollectionPage() { + return this.GetActivityStreamsCollectionPage().Serialize() + } else if this.IsForgeFedCommit() { + return this.GetForgeFedCommit().Serialize() + } else if this.IsActivityStreamsCreate() { + return this.GetActivityStreamsCreate().Serialize() + } else if this.IsActivityStreamsDelete() { + return this.GetActivityStreamsDelete().Serialize() + } else if this.IsActivityStreamsDislike() { + return this.GetActivityStreamsDislike().Serialize() + } else if this.IsActivityStreamsDocument() { + return this.GetActivityStreamsDocument().Serialize() + } else if this.IsTootEmoji() { + return this.GetTootEmoji().Serialize() + } else if this.IsActivityStreamsEvent() { + return this.GetActivityStreamsEvent().Serialize() + } else if this.IsActivityStreamsFlag() { + return this.GetActivityStreamsFlag().Serialize() + } else if this.IsActivityStreamsFollow() { + return this.GetActivityStreamsFollow().Serialize() + } else if this.IsActivityStreamsGroup() { + return this.GetActivityStreamsGroup().Serialize() + } else if this.IsTootIdentityProof() { + return this.GetTootIdentityProof().Serialize() + } else if this.IsActivityStreamsIgnore() { + return this.GetActivityStreamsIgnore().Serialize() + } else if this.IsActivityStreamsImage() { + return this.GetActivityStreamsImage().Serialize() + } else if this.IsActivityStreamsIntransitiveActivity() { + return this.GetActivityStreamsIntransitiveActivity().Serialize() + } else if this.IsActivityStreamsInvite() { + return this.GetActivityStreamsInvite().Serialize() + } else if this.IsActivityStreamsJoin() { + return this.GetActivityStreamsJoin().Serialize() + } else if this.IsActivityStreamsLeave() { + return this.GetActivityStreamsLeave().Serialize() + } else if this.IsActivityStreamsLike() { + return this.GetActivityStreamsLike().Serialize() + } else if this.IsActivityStreamsListen() { + return this.GetActivityStreamsListen().Serialize() + } else if this.IsActivityStreamsMove() { + return this.GetActivityStreamsMove().Serialize() + } else if this.IsActivityStreamsNote() { + return this.GetActivityStreamsNote().Serialize() + } else if this.IsActivityStreamsOffer() { + return this.GetActivityStreamsOffer().Serialize() + } else if this.IsActivityStreamsOrderedCollection() { + return this.GetActivityStreamsOrderedCollection().Serialize() + } else if this.IsActivityStreamsOrderedCollectionPage() { + return this.GetActivityStreamsOrderedCollectionPage().Serialize() + } else if this.IsActivityStreamsOrganization() { + return this.GetActivityStreamsOrganization().Serialize() + } else if this.IsActivityStreamsPage() { + return this.GetActivityStreamsPage().Serialize() + } else if this.IsActivityStreamsPerson() { + return this.GetActivityStreamsPerson().Serialize() + } else if this.IsActivityStreamsPlace() { + return this.GetActivityStreamsPlace().Serialize() + } else if this.IsActivityStreamsProfile() { + return this.GetActivityStreamsProfile().Serialize() + } else if this.IsForgeFedPush() { + return this.GetForgeFedPush().Serialize() + } else if this.IsActivityStreamsQuestion() { + return this.GetActivityStreamsQuestion().Serialize() + } else if this.IsActivityStreamsRead() { + return this.GetActivityStreamsRead().Serialize() + } else if this.IsActivityStreamsReject() { + return this.GetActivityStreamsReject().Serialize() + } else if this.IsActivityStreamsRelationship() { + return this.GetActivityStreamsRelationship().Serialize() + } else if this.IsActivityStreamsRemove() { + return this.GetActivityStreamsRemove().Serialize() + } else if this.IsForgeFedRepository() { + return this.GetForgeFedRepository().Serialize() + } else if this.IsActivityStreamsService() { + return this.GetActivityStreamsService().Serialize() + } else if this.IsActivityStreamsTentativeAccept() { + return this.GetActivityStreamsTentativeAccept().Serialize() + } else if this.IsActivityStreamsTentativeReject() { + return this.GetActivityStreamsTentativeReject().Serialize() + } else if this.IsForgeFedTicket() { + return this.GetForgeFedTicket().Serialize() + } else if this.IsForgeFedTicketDependency() { + return this.GetForgeFedTicketDependency().Serialize() + } else if this.IsActivityStreamsTombstone() { + return this.GetActivityStreamsTombstone().Serialize() + } else if this.IsActivityStreamsTravel() { + return this.GetActivityStreamsTravel().Serialize() + } else if this.IsActivityStreamsUndo() { + return this.GetActivityStreamsUndo().Serialize() + } else if this.IsActivityStreamsUpdate() { + return this.GetActivityStreamsUpdate().Serialize() + } else if this.IsActivityStreamsVideo() { + return this.GetActivityStreamsVideo().Serialize() + } else if this.IsActivityStreamsView() { + return this.GetActivityStreamsView().Serialize() + } else if this.IsIRI() { + return this.iri.String(), nil + } + return this.unknown, nil +} + +// SetActivityStreamsAccept sets the value of this property. Calling +// IsActivityStreamsAccept afterwards returns true. +func (this *ForgeFedCommittedByProperty) SetActivityStreamsAccept(v vocab.ActivityStreamsAccept) { + this.Clear() + this.activitystreamsAcceptMember = v +} + +// SetActivityStreamsActivity sets the value of this property. Calling +// IsActivityStreamsActivity afterwards returns true. +func (this *ForgeFedCommittedByProperty) SetActivityStreamsActivity(v vocab.ActivityStreamsActivity) { + this.Clear() + this.activitystreamsActivityMember = v +} + +// SetActivityStreamsAdd sets the value of this property. Calling +// IsActivityStreamsAdd afterwards returns true. +func (this *ForgeFedCommittedByProperty) SetActivityStreamsAdd(v vocab.ActivityStreamsAdd) { + this.Clear() + this.activitystreamsAddMember = v +} + +// SetActivityStreamsAnnounce sets the value of this property. Calling +// IsActivityStreamsAnnounce afterwards returns true. +func (this *ForgeFedCommittedByProperty) SetActivityStreamsAnnounce(v vocab.ActivityStreamsAnnounce) { + this.Clear() + this.activitystreamsAnnounceMember = v +} + +// SetActivityStreamsApplication sets the value of this property. Calling +// IsActivityStreamsApplication afterwards returns true. +func (this *ForgeFedCommittedByProperty) SetActivityStreamsApplication(v vocab.ActivityStreamsApplication) { + this.Clear() + this.activitystreamsApplicationMember = v +} + +// SetActivityStreamsArrive sets the value of this property. Calling +// IsActivityStreamsArrive afterwards returns true. +func (this *ForgeFedCommittedByProperty) SetActivityStreamsArrive(v vocab.ActivityStreamsArrive) { + this.Clear() + this.activitystreamsArriveMember = v +} + +// SetActivityStreamsArticle sets the value of this property. Calling +// IsActivityStreamsArticle afterwards returns true. +func (this *ForgeFedCommittedByProperty) SetActivityStreamsArticle(v vocab.ActivityStreamsArticle) { + this.Clear() + this.activitystreamsArticleMember = v +} + +// SetActivityStreamsAudio sets the value of this property. Calling +// IsActivityStreamsAudio afterwards returns true. +func (this *ForgeFedCommittedByProperty) SetActivityStreamsAudio(v vocab.ActivityStreamsAudio) { + this.Clear() + this.activitystreamsAudioMember = v +} + +// SetActivityStreamsBlock sets the value of this property. Calling +// IsActivityStreamsBlock afterwards returns true. +func (this *ForgeFedCommittedByProperty) SetActivityStreamsBlock(v vocab.ActivityStreamsBlock) { + this.Clear() + this.activitystreamsBlockMember = v +} + +// SetActivityStreamsCollection sets the value of this property. Calling +// IsActivityStreamsCollection afterwards returns true. +func (this *ForgeFedCommittedByProperty) SetActivityStreamsCollection(v vocab.ActivityStreamsCollection) { + this.Clear() + this.activitystreamsCollectionMember = v +} + +// SetActivityStreamsCollectionPage sets the value of this property. Calling +// IsActivityStreamsCollectionPage afterwards returns true. +func (this *ForgeFedCommittedByProperty) SetActivityStreamsCollectionPage(v vocab.ActivityStreamsCollectionPage) { + this.Clear() + this.activitystreamsCollectionPageMember = v +} + +// SetActivityStreamsCreate sets the value of this property. Calling +// IsActivityStreamsCreate afterwards returns true. +func (this *ForgeFedCommittedByProperty) SetActivityStreamsCreate(v vocab.ActivityStreamsCreate) { + this.Clear() + this.activitystreamsCreateMember = v +} + +// SetActivityStreamsDelete sets the value of this property. Calling +// IsActivityStreamsDelete afterwards returns true. +func (this *ForgeFedCommittedByProperty) SetActivityStreamsDelete(v vocab.ActivityStreamsDelete) { + this.Clear() + this.activitystreamsDeleteMember = v +} + +// SetActivityStreamsDislike sets the value of this property. Calling +// IsActivityStreamsDislike afterwards returns true. +func (this *ForgeFedCommittedByProperty) SetActivityStreamsDislike(v vocab.ActivityStreamsDislike) { + this.Clear() + this.activitystreamsDislikeMember = v +} + +// SetActivityStreamsDocument sets the value of this property. Calling +// IsActivityStreamsDocument afterwards returns true. +func (this *ForgeFedCommittedByProperty) SetActivityStreamsDocument(v vocab.ActivityStreamsDocument) { + this.Clear() + this.activitystreamsDocumentMember = v +} + +// SetActivityStreamsEvent sets the value of this property. Calling +// IsActivityStreamsEvent afterwards returns true. +func (this *ForgeFedCommittedByProperty) SetActivityStreamsEvent(v vocab.ActivityStreamsEvent) { + this.Clear() + this.activitystreamsEventMember = v +} + +// SetActivityStreamsFlag sets the value of this property. Calling +// IsActivityStreamsFlag afterwards returns true. +func (this *ForgeFedCommittedByProperty) SetActivityStreamsFlag(v vocab.ActivityStreamsFlag) { + this.Clear() + this.activitystreamsFlagMember = v +} + +// SetActivityStreamsFollow sets the value of this property. Calling +// IsActivityStreamsFollow afterwards returns true. +func (this *ForgeFedCommittedByProperty) SetActivityStreamsFollow(v vocab.ActivityStreamsFollow) { + this.Clear() + this.activitystreamsFollowMember = v +} + +// SetActivityStreamsGroup sets the value of this property. Calling +// IsActivityStreamsGroup afterwards returns true. +func (this *ForgeFedCommittedByProperty) SetActivityStreamsGroup(v vocab.ActivityStreamsGroup) { + this.Clear() + this.activitystreamsGroupMember = v +} + +// SetActivityStreamsIgnore sets the value of this property. Calling +// IsActivityStreamsIgnore afterwards returns true. +func (this *ForgeFedCommittedByProperty) SetActivityStreamsIgnore(v vocab.ActivityStreamsIgnore) { + this.Clear() + this.activitystreamsIgnoreMember = v +} + +// SetActivityStreamsImage sets the value of this property. Calling +// IsActivityStreamsImage afterwards returns true. +func (this *ForgeFedCommittedByProperty) SetActivityStreamsImage(v vocab.ActivityStreamsImage) { + this.Clear() + this.activitystreamsImageMember = v +} + +// SetActivityStreamsIntransitiveActivity sets the value of this property. Calling +// IsActivityStreamsIntransitiveActivity afterwards returns true. +func (this *ForgeFedCommittedByProperty) SetActivityStreamsIntransitiveActivity(v vocab.ActivityStreamsIntransitiveActivity) { + this.Clear() + this.activitystreamsIntransitiveActivityMember = v +} + +// SetActivityStreamsInvite sets the value of this property. Calling +// IsActivityStreamsInvite afterwards returns true. +func (this *ForgeFedCommittedByProperty) SetActivityStreamsInvite(v vocab.ActivityStreamsInvite) { + this.Clear() + this.activitystreamsInviteMember = v +} + +// SetActivityStreamsJoin sets the value of this property. Calling +// IsActivityStreamsJoin afterwards returns true. +func (this *ForgeFedCommittedByProperty) SetActivityStreamsJoin(v vocab.ActivityStreamsJoin) { + this.Clear() + this.activitystreamsJoinMember = v +} + +// SetActivityStreamsLeave sets the value of this property. Calling +// IsActivityStreamsLeave afterwards returns true. +func (this *ForgeFedCommittedByProperty) SetActivityStreamsLeave(v vocab.ActivityStreamsLeave) { + this.Clear() + this.activitystreamsLeaveMember = v +} + +// SetActivityStreamsLike sets the value of this property. Calling +// IsActivityStreamsLike afterwards returns true. +func (this *ForgeFedCommittedByProperty) SetActivityStreamsLike(v vocab.ActivityStreamsLike) { + this.Clear() + this.activitystreamsLikeMember = v +} + +// SetActivityStreamsListen sets the value of this property. Calling +// IsActivityStreamsListen afterwards returns true. +func (this *ForgeFedCommittedByProperty) SetActivityStreamsListen(v vocab.ActivityStreamsListen) { + this.Clear() + this.activitystreamsListenMember = v +} + +// SetActivityStreamsMove sets the value of this property. Calling +// IsActivityStreamsMove afterwards returns true. +func (this *ForgeFedCommittedByProperty) SetActivityStreamsMove(v vocab.ActivityStreamsMove) { + this.Clear() + this.activitystreamsMoveMember = v +} + +// SetActivityStreamsNote sets the value of this property. Calling +// IsActivityStreamsNote afterwards returns true. +func (this *ForgeFedCommittedByProperty) SetActivityStreamsNote(v vocab.ActivityStreamsNote) { + this.Clear() + this.activitystreamsNoteMember = v +} + +// SetActivityStreamsObject sets the value of this property. Calling +// IsActivityStreamsObject afterwards returns true. +func (this *ForgeFedCommittedByProperty) SetActivityStreamsObject(v vocab.ActivityStreamsObject) { + this.Clear() + this.activitystreamsObjectMember = v +} + +// SetActivityStreamsOffer sets the value of this property. Calling +// IsActivityStreamsOffer afterwards returns true. +func (this *ForgeFedCommittedByProperty) SetActivityStreamsOffer(v vocab.ActivityStreamsOffer) { + this.Clear() + this.activitystreamsOfferMember = v +} + +// SetActivityStreamsOrderedCollection sets the value of this property. Calling +// IsActivityStreamsOrderedCollection afterwards returns true. +func (this *ForgeFedCommittedByProperty) SetActivityStreamsOrderedCollection(v vocab.ActivityStreamsOrderedCollection) { + this.Clear() + this.activitystreamsOrderedCollectionMember = v +} + +// SetActivityStreamsOrderedCollectionPage sets the value of this property. +// Calling IsActivityStreamsOrderedCollectionPage afterwards returns true. +func (this *ForgeFedCommittedByProperty) SetActivityStreamsOrderedCollectionPage(v vocab.ActivityStreamsOrderedCollectionPage) { + this.Clear() + this.activitystreamsOrderedCollectionPageMember = v +} + +// SetActivityStreamsOrganization sets the value of this property. Calling +// IsActivityStreamsOrganization afterwards returns true. +func (this *ForgeFedCommittedByProperty) SetActivityStreamsOrganization(v vocab.ActivityStreamsOrganization) { + this.Clear() + this.activitystreamsOrganizationMember = v +} + +// SetActivityStreamsPage sets the value of this property. Calling +// IsActivityStreamsPage afterwards returns true. +func (this *ForgeFedCommittedByProperty) SetActivityStreamsPage(v vocab.ActivityStreamsPage) { + this.Clear() + this.activitystreamsPageMember = v +} + +// SetActivityStreamsPerson sets the value of this property. Calling +// IsActivityStreamsPerson afterwards returns true. +func (this *ForgeFedCommittedByProperty) SetActivityStreamsPerson(v vocab.ActivityStreamsPerson) { + this.Clear() + this.activitystreamsPersonMember = v +} + +// SetActivityStreamsPlace sets the value of this property. Calling +// IsActivityStreamsPlace afterwards returns true. +func (this *ForgeFedCommittedByProperty) SetActivityStreamsPlace(v vocab.ActivityStreamsPlace) { + this.Clear() + this.activitystreamsPlaceMember = v +} + +// SetActivityStreamsProfile sets the value of this property. Calling +// IsActivityStreamsProfile afterwards returns true. +func (this *ForgeFedCommittedByProperty) SetActivityStreamsProfile(v vocab.ActivityStreamsProfile) { + this.Clear() + this.activitystreamsProfileMember = v +} + +// SetActivityStreamsQuestion sets the value of this property. Calling +// IsActivityStreamsQuestion afterwards returns true. +func (this *ForgeFedCommittedByProperty) SetActivityStreamsQuestion(v vocab.ActivityStreamsQuestion) { + this.Clear() + this.activitystreamsQuestionMember = v +} + +// SetActivityStreamsRead sets the value of this property. Calling +// IsActivityStreamsRead afterwards returns true. +func (this *ForgeFedCommittedByProperty) SetActivityStreamsRead(v vocab.ActivityStreamsRead) { + this.Clear() + this.activitystreamsReadMember = v +} + +// SetActivityStreamsReject sets the value of this property. Calling +// IsActivityStreamsReject afterwards returns true. +func (this *ForgeFedCommittedByProperty) SetActivityStreamsReject(v vocab.ActivityStreamsReject) { + this.Clear() + this.activitystreamsRejectMember = v +} + +// SetActivityStreamsRelationship sets the value of this property. Calling +// IsActivityStreamsRelationship afterwards returns true. +func (this *ForgeFedCommittedByProperty) SetActivityStreamsRelationship(v vocab.ActivityStreamsRelationship) { + this.Clear() + this.activitystreamsRelationshipMember = v +} + +// SetActivityStreamsRemove sets the value of this property. Calling +// IsActivityStreamsRemove afterwards returns true. +func (this *ForgeFedCommittedByProperty) SetActivityStreamsRemove(v vocab.ActivityStreamsRemove) { + this.Clear() + this.activitystreamsRemoveMember = v +} + +// SetActivityStreamsService sets the value of this property. Calling +// IsActivityStreamsService afterwards returns true. +func (this *ForgeFedCommittedByProperty) SetActivityStreamsService(v vocab.ActivityStreamsService) { + this.Clear() + this.activitystreamsServiceMember = v +} + +// SetActivityStreamsTentativeAccept sets the value of this property. Calling +// IsActivityStreamsTentativeAccept afterwards returns true. +func (this *ForgeFedCommittedByProperty) SetActivityStreamsTentativeAccept(v vocab.ActivityStreamsTentativeAccept) { + this.Clear() + this.activitystreamsTentativeAcceptMember = v +} + +// SetActivityStreamsTentativeReject sets the value of this property. Calling +// IsActivityStreamsTentativeReject afterwards returns true. +func (this *ForgeFedCommittedByProperty) SetActivityStreamsTentativeReject(v vocab.ActivityStreamsTentativeReject) { + this.Clear() + this.activitystreamsTentativeRejectMember = v +} + +// SetActivityStreamsTombstone sets the value of this property. Calling +// IsActivityStreamsTombstone afterwards returns true. +func (this *ForgeFedCommittedByProperty) SetActivityStreamsTombstone(v vocab.ActivityStreamsTombstone) { + this.Clear() + this.activitystreamsTombstoneMember = v +} + +// SetActivityStreamsTravel sets the value of this property. Calling +// IsActivityStreamsTravel afterwards returns true. +func (this *ForgeFedCommittedByProperty) SetActivityStreamsTravel(v vocab.ActivityStreamsTravel) { + this.Clear() + this.activitystreamsTravelMember = v +} + +// SetActivityStreamsUndo sets the value of this property. Calling +// IsActivityStreamsUndo afterwards returns true. +func (this *ForgeFedCommittedByProperty) SetActivityStreamsUndo(v vocab.ActivityStreamsUndo) { + this.Clear() + this.activitystreamsUndoMember = v +} + +// SetActivityStreamsUpdate sets the value of this property. Calling +// IsActivityStreamsUpdate afterwards returns true. +func (this *ForgeFedCommittedByProperty) SetActivityStreamsUpdate(v vocab.ActivityStreamsUpdate) { + this.Clear() + this.activitystreamsUpdateMember = v +} + +// SetActivityStreamsVideo sets the value of this property. Calling +// IsActivityStreamsVideo afterwards returns true. +func (this *ForgeFedCommittedByProperty) SetActivityStreamsVideo(v vocab.ActivityStreamsVideo) { + this.Clear() + this.activitystreamsVideoMember = v +} + +// SetActivityStreamsView sets the value of this property. Calling +// IsActivityStreamsView afterwards returns true. +func (this *ForgeFedCommittedByProperty) SetActivityStreamsView(v vocab.ActivityStreamsView) { + this.Clear() + this.activitystreamsViewMember = v +} + +// SetForgeFedBranch sets the value of this property. Calling IsForgeFedBranch +// afterwards returns true. +func (this *ForgeFedCommittedByProperty) SetForgeFedBranch(v vocab.ForgeFedBranch) { + this.Clear() + this.forgefedBranchMember = v +} + +// SetForgeFedCommit sets the value of this property. Calling IsForgeFedCommit +// afterwards returns true. +func (this *ForgeFedCommittedByProperty) SetForgeFedCommit(v vocab.ForgeFedCommit) { + this.Clear() + this.forgefedCommitMember = v +} + +// SetForgeFedPush sets the value of this property. Calling IsForgeFedPush +// afterwards returns true. +func (this *ForgeFedCommittedByProperty) SetForgeFedPush(v vocab.ForgeFedPush) { + this.Clear() + this.forgefedPushMember = v +} + +// SetForgeFedRepository sets the value of this property. Calling +// IsForgeFedRepository afterwards returns true. +func (this *ForgeFedCommittedByProperty) SetForgeFedRepository(v vocab.ForgeFedRepository) { + this.Clear() + this.forgefedRepositoryMember = v +} + +// SetForgeFedTicket sets the value of this property. Calling IsForgeFedTicket +// afterwards returns true. +func (this *ForgeFedCommittedByProperty) SetForgeFedTicket(v vocab.ForgeFedTicket) { + this.Clear() + this.forgefedTicketMember = v +} + +// SetForgeFedTicketDependency sets the value of this property. Calling +// IsForgeFedTicketDependency afterwards returns true. +func (this *ForgeFedCommittedByProperty) SetForgeFedTicketDependency(v vocab.ForgeFedTicketDependency) { + this.Clear() + this.forgefedTicketDependencyMember = v +} + +// SetIRI sets the value of this property. Calling IsIRI afterwards returns true. +func (this *ForgeFedCommittedByProperty) SetIRI(v *url.URL) { + this.Clear() + this.iri = v +} + +// SetTootEmoji sets the value of this property. Calling IsTootEmoji afterwards +// returns true. +func (this *ForgeFedCommittedByProperty) SetTootEmoji(v vocab.TootEmoji) { + this.Clear() + this.tootEmojiMember = v +} + +// SetTootIdentityProof sets the value of this property. Calling +// IsTootIdentityProof afterwards returns true. +func (this *ForgeFedCommittedByProperty) SetTootIdentityProof(v vocab.TootIdentityProof) { + this.Clear() + this.tootIdentityProofMember = v +} + +// SetType attempts to set the property for the arbitrary type. Returns an error +// if it is not a valid type to set on this property. +func (this *ForgeFedCommittedByProperty) SetType(t vocab.Type) error { + if v, ok := t.(vocab.ActivityStreamsObject); ok { + this.SetActivityStreamsObject(v) + return nil + } + if v, ok := t.(vocab.ActivityStreamsAccept); ok { + this.SetActivityStreamsAccept(v) + return nil + } + if v, ok := t.(vocab.ActivityStreamsActivity); ok { + this.SetActivityStreamsActivity(v) + return nil + } + if v, ok := t.(vocab.ActivityStreamsAdd); ok { + this.SetActivityStreamsAdd(v) + return nil + } + if v, ok := t.(vocab.ActivityStreamsAnnounce); ok { + this.SetActivityStreamsAnnounce(v) + return nil + } + if v, ok := t.(vocab.ActivityStreamsApplication); ok { + this.SetActivityStreamsApplication(v) + return nil + } + if v, ok := t.(vocab.ActivityStreamsArrive); ok { + this.SetActivityStreamsArrive(v) + return nil + } + if v, ok := t.(vocab.ActivityStreamsArticle); ok { + this.SetActivityStreamsArticle(v) + return nil + } + if v, ok := t.(vocab.ActivityStreamsAudio); ok { + this.SetActivityStreamsAudio(v) + return nil + } + if v, ok := t.(vocab.ActivityStreamsBlock); ok { + this.SetActivityStreamsBlock(v) + return nil + } + if v, ok := t.(vocab.ForgeFedBranch); ok { + this.SetForgeFedBranch(v) + return nil + } + if v, ok := t.(vocab.ActivityStreamsCollection); ok { + this.SetActivityStreamsCollection(v) + return nil + } + if v, ok := t.(vocab.ActivityStreamsCollectionPage); ok { + this.SetActivityStreamsCollectionPage(v) + return nil + } + if v, ok := t.(vocab.ForgeFedCommit); ok { + this.SetForgeFedCommit(v) + return nil + } + if v, ok := t.(vocab.ActivityStreamsCreate); ok { + this.SetActivityStreamsCreate(v) + return nil + } + if v, ok := t.(vocab.ActivityStreamsDelete); ok { + this.SetActivityStreamsDelete(v) + return nil + } + if v, ok := t.(vocab.ActivityStreamsDislike); ok { + this.SetActivityStreamsDislike(v) + return nil + } + if v, ok := t.(vocab.ActivityStreamsDocument); ok { + this.SetActivityStreamsDocument(v) + return nil + } + if v, ok := t.(vocab.TootEmoji); ok { + this.SetTootEmoji(v) + return nil + } + if v, ok := t.(vocab.ActivityStreamsEvent); ok { + this.SetActivityStreamsEvent(v) + return nil + } + if v, ok := t.(vocab.ActivityStreamsFlag); ok { + this.SetActivityStreamsFlag(v) + return nil + } + if v, ok := t.(vocab.ActivityStreamsFollow); ok { + this.SetActivityStreamsFollow(v) + return nil + } + if v, ok := t.(vocab.ActivityStreamsGroup); ok { + this.SetActivityStreamsGroup(v) + return nil + } + if v, ok := t.(vocab.TootIdentityProof); ok { + this.SetTootIdentityProof(v) + return nil + } + if v, ok := t.(vocab.ActivityStreamsIgnore); ok { + this.SetActivityStreamsIgnore(v) + return nil + } + if v, ok := t.(vocab.ActivityStreamsImage); ok { + this.SetActivityStreamsImage(v) + return nil + } + if v, ok := t.(vocab.ActivityStreamsIntransitiveActivity); ok { + this.SetActivityStreamsIntransitiveActivity(v) + return nil + } + if v, ok := t.(vocab.ActivityStreamsInvite); ok { + this.SetActivityStreamsInvite(v) + return nil + } + if v, ok := t.(vocab.ActivityStreamsJoin); ok { + this.SetActivityStreamsJoin(v) + return nil + } + if v, ok := t.(vocab.ActivityStreamsLeave); ok { + this.SetActivityStreamsLeave(v) + return nil + } + if v, ok := t.(vocab.ActivityStreamsLike); ok { + this.SetActivityStreamsLike(v) + return nil + } + if v, ok := t.(vocab.ActivityStreamsListen); ok { + this.SetActivityStreamsListen(v) + return nil + } + if v, ok := t.(vocab.ActivityStreamsMove); ok { + this.SetActivityStreamsMove(v) + return nil + } + if v, ok := t.(vocab.ActivityStreamsNote); ok { + this.SetActivityStreamsNote(v) + return nil + } + if v, ok := t.(vocab.ActivityStreamsOffer); ok { + this.SetActivityStreamsOffer(v) + return nil + } + if v, ok := t.(vocab.ActivityStreamsOrderedCollection); ok { + this.SetActivityStreamsOrderedCollection(v) + return nil + } + if v, ok := t.(vocab.ActivityStreamsOrderedCollectionPage); ok { + this.SetActivityStreamsOrderedCollectionPage(v) + return nil + } + if v, ok := t.(vocab.ActivityStreamsOrganization); ok { + this.SetActivityStreamsOrganization(v) + return nil + } + if v, ok := t.(vocab.ActivityStreamsPage); ok { + this.SetActivityStreamsPage(v) + return nil + } + if v, ok := t.(vocab.ActivityStreamsPerson); ok { + this.SetActivityStreamsPerson(v) + return nil + } + if v, ok := t.(vocab.ActivityStreamsPlace); ok { + this.SetActivityStreamsPlace(v) + return nil + } + if v, ok := t.(vocab.ActivityStreamsProfile); ok { + this.SetActivityStreamsProfile(v) + return nil + } + if v, ok := t.(vocab.ForgeFedPush); ok { + this.SetForgeFedPush(v) + return nil + } + if v, ok := t.(vocab.ActivityStreamsQuestion); ok { + this.SetActivityStreamsQuestion(v) + return nil + } + if v, ok := t.(vocab.ActivityStreamsRead); ok { + this.SetActivityStreamsRead(v) + return nil + } + if v, ok := t.(vocab.ActivityStreamsReject); ok { + this.SetActivityStreamsReject(v) + return nil + } + if v, ok := t.(vocab.ActivityStreamsRelationship); ok { + this.SetActivityStreamsRelationship(v) + return nil + } + if v, ok := t.(vocab.ActivityStreamsRemove); ok { + this.SetActivityStreamsRemove(v) + return nil + } + if v, ok := t.(vocab.ForgeFedRepository); ok { + this.SetForgeFedRepository(v) + return nil + } + if v, ok := t.(vocab.ActivityStreamsService); ok { + this.SetActivityStreamsService(v) + return nil + } + if v, ok := t.(vocab.ActivityStreamsTentativeAccept); ok { + this.SetActivityStreamsTentativeAccept(v) + return nil + } + if v, ok := t.(vocab.ActivityStreamsTentativeReject); ok { + this.SetActivityStreamsTentativeReject(v) + return nil + } + if v, ok := t.(vocab.ForgeFedTicket); ok { + this.SetForgeFedTicket(v) + return nil + } + if v, ok := t.(vocab.ForgeFedTicketDependency); ok { + this.SetForgeFedTicketDependency(v) + return nil + } + if v, ok := t.(vocab.ActivityStreamsTombstone); ok { + this.SetActivityStreamsTombstone(v) + return nil + } + if v, ok := t.(vocab.ActivityStreamsTravel); ok { + this.SetActivityStreamsTravel(v) + return nil + } + if v, ok := t.(vocab.ActivityStreamsUndo); ok { + this.SetActivityStreamsUndo(v) + return nil + } + if v, ok := t.(vocab.ActivityStreamsUpdate); ok { + this.SetActivityStreamsUpdate(v) + return nil + } + if v, ok := t.(vocab.ActivityStreamsVideo); ok { + this.SetActivityStreamsVideo(v) + return nil + } + if v, ok := t.(vocab.ActivityStreamsView); ok { + this.SetActivityStreamsView(v) + return nil + } + + return fmt.Errorf("illegal type to set on committedBy property: %T", t) +} diff --git a/streams/impl/forgefed/property_dependants/gen_doc.go b/streams/impl/forgefed/property_dependants/gen_doc.go new file mode 100644 index 0000000..0a1ee6c --- /dev/null +++ b/streams/impl/forgefed/property_dependants/gen_doc.go @@ -0,0 +1,17 @@ +// Code generated by astool. DO NOT EDIT. + +// Package propertydependants contains the implementation for the dependants +// property. All applications are strongly encouraged to use the interface +// instead of this concrete definition. The interfaces allow applications to +// consume only the types and properties needed and be independent of the +// go-fed implementation if another alternative implementation is created. +// This package is code-generated and subject to the same license as the +// go-fed tool used to generate it. +// +// This package is independent of other types' and properties' implementations +// by having a Manager injected into it to act as a factory for the concrete +// implementations. The implementations have been generated into their own +// separate subpackages for each vocabulary. +// +// Strongly consider using the interfaces instead of this package. +package propertydependants diff --git a/streams/impl/forgefed/property_dependants/gen_pkg.go b/streams/impl/forgefed/property_dependants/gen_pkg.go new file mode 100644 index 0000000..689ca89 --- /dev/null +++ b/streams/impl/forgefed/property_dependants/gen_pkg.go @@ -0,0 +1,27 @@ +// Code generated by astool. DO NOT EDIT. + +package propertydependants + +import vocab "github.com/go-fed/activity/streams/vocab" + +var mgr privateManager + +// privateManager abstracts the code-generated manager that provides access to +// concrete implementations. +type privateManager interface { + // DeserializeOrderedCollectionActivityStreams returns the deserialization + // method for the "ActivityStreamsOrderedCollection" non-functional + // property in the vocabulary "ActivityStreams" + DeserializeOrderedCollectionActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsOrderedCollection, error) + // DeserializeOrderedCollectionPageActivityStreams returns the + // deserialization method for the + // "ActivityStreamsOrderedCollectionPage" non-functional property in + // the vocabulary "ActivityStreams" + DeserializeOrderedCollectionPageActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsOrderedCollectionPage, error) +} + +// SetManager sets the manager package-global variable. For internal use only, do +// not use as part of Application behavior. Must be called at golang init time. +func SetManager(m privateManager) { + mgr = m +} diff --git a/streams/impl/forgefed/property_dependants/gen_property_forgefed_dependants.go b/streams/impl/forgefed/property_dependants/gen_property_forgefed_dependants.go new file mode 100644 index 0000000..ba35229 --- /dev/null +++ b/streams/impl/forgefed/property_dependants/gen_property_forgefed_dependants.go @@ -0,0 +1,268 @@ +// Code generated by astool. DO NOT EDIT. + +package propertydependants + +import ( + "fmt" + vocab "github.com/go-fed/activity/streams/vocab" + "net/url" +) + +// ForgeFedDependantsProperty is the functional property "dependants". It is +// permitted to be one of multiple value types. At most, one type of value can +// be present, or none at all. Setting a value will clear the other types of +// values so that only one of the 'Is' methods will return true. It is +// possible to clear all values, so that this property is empty. +type ForgeFedDependantsProperty struct { + activitystreamsOrderedCollectionMember vocab.ActivityStreamsOrderedCollection + activitystreamsOrderedCollectionPageMember vocab.ActivityStreamsOrderedCollectionPage + unknown interface{} + iri *url.URL + alias string +} + +// DeserializeDependantsProperty creates a "dependants" property from an interface +// representation that has been unmarshalled from a text or binary format. +func DeserializeDependantsProperty(m map[string]interface{}, aliasMap map[string]string) (*ForgeFedDependantsProperty, error) { + alias := "" + if a, ok := aliasMap["https://forgefed.peers.community/ns"]; ok { + alias = a + } + propName := "dependants" + if len(alias) > 0 { + // Use alias both to find the property, and set within the property. + propName = fmt.Sprintf("%s:%s", alias, "dependants") + } + i, ok := m[propName] + + if ok { + if s, ok := i.(string); ok { + u, err := url.Parse(s) + // If error exists, don't error out -- skip this and treat as unknown string ([]byte) at worst + // Also, if no scheme exists, don't treat it as a URL -- net/url is greedy + if err == nil && len(u.Scheme) > 0 { + this := &ForgeFedDependantsProperty{ + alias: alias, + iri: u, + } + return this, nil + } + } + if m, ok := i.(map[string]interface{}); ok { + if v, err := mgr.DeserializeOrderedCollectionActivityStreams()(m, aliasMap); err == nil { + this := &ForgeFedDependantsProperty{ + activitystreamsOrderedCollectionMember: v, + alias: alias, + } + return this, nil + } else if v, err := mgr.DeserializeOrderedCollectionPageActivityStreams()(m, aliasMap); err == nil { + this := &ForgeFedDependantsProperty{ + activitystreamsOrderedCollectionPageMember: v, + alias: alias, + } + return this, nil + } + } + this := &ForgeFedDependantsProperty{ + alias: alias, + unknown: i, + } + return this, nil + } + return nil, nil +} + +// NewForgeFedDependantsProperty creates a new dependants property. +func NewForgeFedDependantsProperty() *ForgeFedDependantsProperty { + return &ForgeFedDependantsProperty{alias: ""} +} + +// Clear ensures no value of this property is set. Calling HasAny or any of the +// 'Is' methods afterwards will return false. +func (this *ForgeFedDependantsProperty) Clear() { + this.activitystreamsOrderedCollectionMember = nil + this.activitystreamsOrderedCollectionPageMember = nil + this.unknown = nil + this.iri = nil +} + +// GetActivityStreamsOrderedCollection returns the value of this property. When +// IsActivityStreamsOrderedCollection returns false, +// GetActivityStreamsOrderedCollection will return an arbitrary value. +func (this ForgeFedDependantsProperty) GetActivityStreamsOrderedCollection() vocab.ActivityStreamsOrderedCollection { + return this.activitystreamsOrderedCollectionMember +} + +// GetActivityStreamsOrderedCollectionPage returns the value of this property. +// When IsActivityStreamsOrderedCollectionPage returns false, +// GetActivityStreamsOrderedCollectionPage will return an arbitrary value. +func (this ForgeFedDependantsProperty) GetActivityStreamsOrderedCollectionPage() vocab.ActivityStreamsOrderedCollectionPage { + return this.activitystreamsOrderedCollectionPageMember +} + +// GetIRI returns the IRI of this property. When IsIRI returns false, GetIRI will +// return an arbitrary value. +func (this ForgeFedDependantsProperty) GetIRI() *url.URL { + return this.iri +} + +// GetType returns the value in this property as a Type. Returns nil if the value +// is not an ActivityStreams type, such as an IRI or another value. +func (this ForgeFedDependantsProperty) GetType() vocab.Type { + if this.IsActivityStreamsOrderedCollection() { + return this.GetActivityStreamsOrderedCollection() + } + if this.IsActivityStreamsOrderedCollectionPage() { + return this.GetActivityStreamsOrderedCollectionPage() + } + + return nil +} + +// HasAny returns true if any of the different values is set. +func (this ForgeFedDependantsProperty) HasAny() bool { + return this.IsActivityStreamsOrderedCollection() || + this.IsActivityStreamsOrderedCollectionPage() || + this.iri != nil +} + +// IsActivityStreamsOrderedCollection returns true if this property has a type of +// "OrderedCollection". When true, use the GetActivityStreamsOrderedCollection +// and SetActivityStreamsOrderedCollection methods to access and set this +// property. +func (this ForgeFedDependantsProperty) IsActivityStreamsOrderedCollection() bool { + return this.activitystreamsOrderedCollectionMember != nil +} + +// IsActivityStreamsOrderedCollectionPage returns true if this property has a type +// of "OrderedCollectionPage". When true, use the +// GetActivityStreamsOrderedCollectionPage and +// SetActivityStreamsOrderedCollectionPage methods to access and set this +// property. +func (this ForgeFedDependantsProperty) IsActivityStreamsOrderedCollectionPage() bool { + return this.activitystreamsOrderedCollectionPageMember != nil +} + +// IsIRI returns true if this property is an IRI. When true, use GetIRI and SetIRI +// to access and set this property +func (this ForgeFedDependantsProperty) IsIRI() bool { + return this.iri != nil +} + +// JSONLDContext returns the JSONLD URIs required in the context string for this +// property and the specific values that are set. The value in the map is the +// alias used to import the property's value or values. +func (this ForgeFedDependantsProperty) JSONLDContext() map[string]string { + m := map[string]string{"https://forgefed.peers.community/ns": this.alias} + var child map[string]string + if this.IsActivityStreamsOrderedCollection() { + child = this.GetActivityStreamsOrderedCollection().JSONLDContext() + } else if this.IsActivityStreamsOrderedCollectionPage() { + child = this.GetActivityStreamsOrderedCollectionPage().JSONLDContext() + } + /* + Since the literal maps in this function are determined at + code-generation time, this loop should not overwrite an existing key with a + new value. + */ + for k, v := range child { + m[k] = v + } + return m +} + +// KindIndex computes an arbitrary value for indexing this kind of value. This is +// a leaky API detail only for folks looking to replace the go-fed +// implementation. Applications should not use this method. +func (this ForgeFedDependantsProperty) KindIndex() int { + if this.IsActivityStreamsOrderedCollection() { + return 0 + } + if this.IsActivityStreamsOrderedCollectionPage() { + return 1 + } + if this.IsIRI() { + return -2 + } + return -1 +} + +// LessThan compares two instances of this property with an arbitrary but stable +// comparison. Applications should not use this because it is only meant to +// help alternative implementations to go-fed to be able to normalize +// nonfunctional properties. +func (this ForgeFedDependantsProperty) LessThan(o vocab.ForgeFedDependantsProperty) bool { + idx1 := this.KindIndex() + idx2 := o.KindIndex() + if idx1 < idx2 { + return true + } else if idx1 > idx2 { + return false + } else if this.IsActivityStreamsOrderedCollection() { + return this.GetActivityStreamsOrderedCollection().LessThan(o.GetActivityStreamsOrderedCollection()) + } else if this.IsActivityStreamsOrderedCollectionPage() { + return this.GetActivityStreamsOrderedCollectionPage().LessThan(o.GetActivityStreamsOrderedCollectionPage()) + } else if this.IsIRI() { + return this.iri.String() < o.GetIRI().String() + } + return false +} + +// Name returns the name of this property: "dependants". +func (this ForgeFedDependantsProperty) Name() string { + if len(this.alias) > 0 { + return this.alias + ":" + "dependants" + } else { + return "dependants" + } +} + +// Serialize converts this into an interface representation suitable for +// marshalling into a text or binary format. Applications should not need this +// function as most typical use cases serialize types instead of individual +// properties. It is exposed for alternatives to go-fed implementations to use. +func (this ForgeFedDependantsProperty) Serialize() (interface{}, error) { + if this.IsActivityStreamsOrderedCollection() { + return this.GetActivityStreamsOrderedCollection().Serialize() + } else if this.IsActivityStreamsOrderedCollectionPage() { + return this.GetActivityStreamsOrderedCollectionPage().Serialize() + } else if this.IsIRI() { + return this.iri.String(), nil + } + return this.unknown, nil +} + +// SetActivityStreamsOrderedCollection sets the value of this property. Calling +// IsActivityStreamsOrderedCollection afterwards returns true. +func (this *ForgeFedDependantsProperty) SetActivityStreamsOrderedCollection(v vocab.ActivityStreamsOrderedCollection) { + this.Clear() + this.activitystreamsOrderedCollectionMember = v +} + +// SetActivityStreamsOrderedCollectionPage sets the value of this property. +// Calling IsActivityStreamsOrderedCollectionPage afterwards returns true. +func (this *ForgeFedDependantsProperty) SetActivityStreamsOrderedCollectionPage(v vocab.ActivityStreamsOrderedCollectionPage) { + this.Clear() + this.activitystreamsOrderedCollectionPageMember = v +} + +// SetIRI sets the value of this property. Calling IsIRI afterwards returns true. +func (this *ForgeFedDependantsProperty) SetIRI(v *url.URL) { + this.Clear() + this.iri = v +} + +// SetType attempts to set the property for the arbitrary type. Returns an error +// if it is not a valid type to set on this property. +func (this *ForgeFedDependantsProperty) SetType(t vocab.Type) error { + if v, ok := t.(vocab.ActivityStreamsOrderedCollection); ok { + this.SetActivityStreamsOrderedCollection(v) + return nil + } + if v, ok := t.(vocab.ActivityStreamsOrderedCollectionPage); ok { + this.SetActivityStreamsOrderedCollectionPage(v) + return nil + } + + return fmt.Errorf("illegal type to set on dependants property: %T", t) +} diff --git a/streams/impl/forgefed/property_dependedby/gen_doc.go b/streams/impl/forgefed/property_dependedby/gen_doc.go new file mode 100644 index 0000000..d6afd71 --- /dev/null +++ b/streams/impl/forgefed/property_dependedby/gen_doc.go @@ -0,0 +1,17 @@ +// Code generated by astool. DO NOT EDIT. + +// Package propertydependedby contains the implementation for the dependedBy +// property. All applications are strongly encouraged to use the interface +// instead of this concrete definition. The interfaces allow applications to +// consume only the types and properties needed and be independent of the +// go-fed implementation if another alternative implementation is created. +// This package is code-generated and subject to the same license as the +// go-fed tool used to generate it. +// +// This package is independent of other types' and properties' implementations +// by having a Manager injected into it to act as a factory for the concrete +// implementations. The implementations have been generated into their own +// separate subpackages for each vocabulary. +// +// Strongly consider using the interfaces instead of this package. +package propertydependedby diff --git a/streams/impl/forgefed/property_dependedby/gen_pkg.go b/streams/impl/forgefed/property_dependedby/gen_pkg.go new file mode 100644 index 0000000..bcdf09a --- /dev/null +++ b/streams/impl/forgefed/property_dependedby/gen_pkg.go @@ -0,0 +1,22 @@ +// Code generated by astool. DO NOT EDIT. + +package propertydependedby + +import vocab "github.com/go-fed/activity/streams/vocab" + +var mgr privateManager + +// privateManager abstracts the code-generated manager that provides access to +// concrete implementations. +type privateManager interface { + // DeserializeTicketForgeFed returns the deserialization method for the + // "ForgeFedTicket" non-functional property in the vocabulary + // "ForgeFed" + DeserializeTicketForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTicket, error) +} + +// SetManager sets the manager package-global variable. For internal use only, do +// not use as part of Application behavior. Must be called at golang init time. +func SetManager(m privateManager) { + mgr = m +} diff --git a/streams/impl/forgefed/property_dependedby/gen_property_forgefed_dependedBy.go b/streams/impl/forgefed/property_dependedby/gen_property_forgefed_dependedBy.go new file mode 100644 index 0000000..e96386d --- /dev/null +++ b/streams/impl/forgefed/property_dependedby/gen_property_forgefed_dependedBy.go @@ -0,0 +1,622 @@ +// Code generated by astool. DO NOT EDIT. + +package propertydependedby + +import ( + "fmt" + vocab "github.com/go-fed/activity/streams/vocab" + "net/url" +) + +// ForgeFedDependedByPropertyIterator is an iterator for a property. It is +// permitted to be a single nilable value type. +type ForgeFedDependedByPropertyIterator struct { + forgefedTicketMember vocab.ForgeFedTicket + unknown interface{} + iri *url.URL + alias string + myIdx int + parent vocab.ForgeFedDependedByProperty +} + +// NewForgeFedDependedByPropertyIterator creates a new ForgeFedDependedBy property. +func NewForgeFedDependedByPropertyIterator() *ForgeFedDependedByPropertyIterator { + return &ForgeFedDependedByPropertyIterator{alias: ""} +} + +// deserializeForgeFedDependedByPropertyIterator creates an iterator from an +// element that has been unmarshalled from a text or binary format. +func deserializeForgeFedDependedByPropertyIterator(i interface{}, aliasMap map[string]string) (*ForgeFedDependedByPropertyIterator, error) { + alias := "" + if a, ok := aliasMap["https://forgefed.peers.community/ns"]; ok { + alias = a + } + if s, ok := i.(string); ok { + u, err := url.Parse(s) + // If error exists, don't error out -- skip this and treat as unknown string ([]byte) at worst + // Also, if no scheme exists, don't treat it as a URL -- net/url is greedy + if err == nil && len(u.Scheme) > 0 { + this := &ForgeFedDependedByPropertyIterator{ + alias: alias, + iri: u, + } + return this, nil + } + } + if m, ok := i.(map[string]interface{}); ok { + if v, err := mgr.DeserializeTicketForgeFed()(m, aliasMap); err == nil { + this := &ForgeFedDependedByPropertyIterator{ + alias: alias, + forgefedTicketMember: v, + } + return this, nil + } + } + this := &ForgeFedDependedByPropertyIterator{ + alias: alias, + unknown: i, + } + return this, nil +} + +// Get returns the value of this property. When IsForgeFedTicket returns false, +// Get will return any arbitrary value. +func (this ForgeFedDependedByPropertyIterator) Get() vocab.ForgeFedTicket { + return this.forgefedTicketMember +} + +// GetIRI returns the IRI of this property. When IsIRI returns false, GetIRI will +// return any arbitrary value. +func (this ForgeFedDependedByPropertyIterator) GetIRI() *url.URL { + return this.iri +} + +// GetType returns the value in this property as a Type. Returns nil if the value +// is not an ActivityStreams type, such as an IRI or another value. +func (this ForgeFedDependedByPropertyIterator) GetType() vocab.Type { + if this.IsForgeFedTicket() { + return this.Get() + } + + return nil +} + +// HasAny returns true if the value or IRI is set. +func (this ForgeFedDependedByPropertyIterator) HasAny() bool { + return this.IsForgeFedTicket() || this.iri != nil +} + +// IsForgeFedTicket returns true if this property is set and not an IRI. +func (this ForgeFedDependedByPropertyIterator) IsForgeFedTicket() bool { + return this.forgefedTicketMember != nil +} + +// IsIRI returns true if this property is an IRI. +func (this ForgeFedDependedByPropertyIterator) IsIRI() bool { + return this.iri != nil +} + +// JSONLDContext returns the JSONLD URIs required in the context string for this +// property and the specific values that are set. The value in the map is the +// alias used to import the property's value or values. +func (this ForgeFedDependedByPropertyIterator) JSONLDContext() map[string]string { + m := map[string]string{"https://forgefed.peers.community/ns": this.alias} + var child map[string]string + if this.IsForgeFedTicket() { + child = this.Get().JSONLDContext() + } + /* + Since the literal maps in this function are determined at + code-generation time, this loop should not overwrite an existing key with a + new value. + */ + for k, v := range child { + m[k] = v + } + return m +} + +// KindIndex computes an arbitrary value for indexing this kind of value. This is +// a leaky API detail only for folks looking to replace the go-fed +// implementation. Applications should not use this method. +func (this ForgeFedDependedByPropertyIterator) KindIndex() int { + if this.IsForgeFedTicket() { + return 0 + } + if this.IsIRI() { + return -2 + } + return -1 +} + +// LessThan compares two instances of this property with an arbitrary but stable +// comparison. Applications should not use this because it is only meant to +// help alternative implementations to go-fed to be able to normalize +// nonfunctional properties. +func (this ForgeFedDependedByPropertyIterator) LessThan(o vocab.ForgeFedDependedByPropertyIterator) bool { + // LessThan comparison for if either or both are IRIs. + if this.IsIRI() && o.IsIRI() { + return this.iri.String() < o.GetIRI().String() + } else if this.IsIRI() { + // IRIs are always less than other values, none, or unknowns + return true + } else if o.IsIRI() { + // This other, none, or unknown value is always greater than IRIs + return false + } + // LessThan comparison for the single value or unknown value. + if !this.IsForgeFedTicket() && !o.IsForgeFedTicket() { + // Both are unknowns. + return false + } else if this.IsForgeFedTicket() && !o.IsForgeFedTicket() { + // Values are always greater than unknown values. + return false + } else if !this.IsForgeFedTicket() && o.IsForgeFedTicket() { + // Unknowns are always less than known values. + return true + } else { + // Actual comparison. + return this.Get().LessThan(o.Get()) + } +} + +// Name returns the name of this property: "ForgeFedDependedBy". +func (this ForgeFedDependedByPropertyIterator) Name() string { + if len(this.alias) > 0 { + return this.alias + ":" + "ForgeFedDependedBy" + } else { + return "ForgeFedDependedBy" + } +} + +// Next returns the next iterator, or nil if there is no next iterator. +func (this ForgeFedDependedByPropertyIterator) Next() vocab.ForgeFedDependedByPropertyIterator { + if this.myIdx+1 >= this.parent.Len() { + return nil + } else { + return this.parent.At(this.myIdx + 1) + } +} + +// Prev returns the previous iterator, or nil if there is no previous iterator. +func (this ForgeFedDependedByPropertyIterator) Prev() vocab.ForgeFedDependedByPropertyIterator { + if this.myIdx-1 < 0 { + return nil + } else { + return this.parent.At(this.myIdx - 1) + } +} + +// Set sets the value of this property. Calling IsForgeFedTicket afterwards will +// return true. +func (this *ForgeFedDependedByPropertyIterator) Set(v vocab.ForgeFedTicket) { + this.clear() + this.forgefedTicketMember = v +} + +// SetIRI sets the value of this property. Calling IsIRI afterwards will return +// true. +func (this *ForgeFedDependedByPropertyIterator) SetIRI(v *url.URL) { + this.clear() + this.iri = v +} + +// SetType attempts to set the property for the arbitrary type. Returns an error +// if it is not a valid type to set on this property. +func (this *ForgeFedDependedByPropertyIterator) SetType(t vocab.Type) error { + if v, ok := t.(vocab.ForgeFedTicket); ok { + this.Set(v) + return nil + } + + return fmt.Errorf("illegal type to set on ForgeFedDependedBy property: %T", t) +} + +// clear ensures no value of this property is set. Calling IsForgeFedTicket +// afterwards will return false. +func (this *ForgeFedDependedByPropertyIterator) clear() { + this.unknown = nil + this.iri = nil + this.forgefedTicketMember = nil +} + +// serialize converts this into an interface representation suitable for +// marshalling into a text or binary format. Applications should not need this +// function as most typical use cases serialize types instead of individual +// properties. It is exposed for alternatives to go-fed implementations to use. +func (this ForgeFedDependedByPropertyIterator) serialize() (interface{}, error) { + if this.IsForgeFedTicket() { + return this.Get().Serialize() + } else if this.IsIRI() { + return this.iri.String(), nil + } + return this.unknown, nil +} + +// ForgeFedDependedByProperty is the non-functional property "dependedBy". It is +// permitted to have one or more values, and of different value types. +type ForgeFedDependedByProperty struct { + properties []*ForgeFedDependedByPropertyIterator + alias string +} + +// DeserializeDependedByProperty creates a "dependedBy" property from an interface +// representation that has been unmarshalled from a text or binary format. +func DeserializeDependedByProperty(m map[string]interface{}, aliasMap map[string]string) (vocab.ForgeFedDependedByProperty, error) { + alias := "" + if a, ok := aliasMap["https://forgefed.peers.community/ns"]; ok { + alias = a + } + propName := "dependedBy" + if len(alias) > 0 { + propName = fmt.Sprintf("%s:%s", alias, "dependedBy") + } + i, ok := m[propName] + + if ok { + this := &ForgeFedDependedByProperty{ + alias: alias, + properties: []*ForgeFedDependedByPropertyIterator{}, + } + if list, ok := i.([]interface{}); ok { + for _, iterator := range list { + if p, err := deserializeForgeFedDependedByPropertyIterator(iterator, aliasMap); err != nil { + return this, err + } else if p != nil { + this.properties = append(this.properties, p) + } + } + } else { + if p, err := deserializeForgeFedDependedByPropertyIterator(i, aliasMap); err != nil { + return this, err + } else if p != nil { + this.properties = append(this.properties, p) + } + } + // Set up the properties for iteration. + for idx, ele := range this.properties { + ele.parent = this + ele.myIdx = idx + } + return this, nil + } + return nil, nil +} + +// NewForgeFedDependedByProperty creates a new dependedBy property. +func NewForgeFedDependedByProperty() *ForgeFedDependedByProperty { + return &ForgeFedDependedByProperty{alias: ""} +} + +// AppendForgeFedTicket appends a Ticket value to the back of a list of the +// property "dependedBy". Invalidates iterators that are traversing using Prev. +func (this *ForgeFedDependedByProperty) AppendForgeFedTicket(v vocab.ForgeFedTicket) { + this.properties = append(this.properties, &ForgeFedDependedByPropertyIterator{ + alias: this.alias, + forgefedTicketMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendIRI appends an IRI value to the back of a list of the property +// "dependedBy" +func (this *ForgeFedDependedByProperty) AppendIRI(v *url.URL) { + this.properties = append(this.properties, &ForgeFedDependedByPropertyIterator{ + alias: this.alias, + iri: v, + myIdx: this.Len(), + parent: this, + }) +} + +// PrependType prepends an arbitrary type value to the front of a list of the +// property "dependedBy". Invalidates iterators that are traversing using +// Prev. Returns an error if the type is not a valid one to set for this +// property. +func (this *ForgeFedDependedByProperty) AppendType(t vocab.Type) error { + n := &ForgeFedDependedByPropertyIterator{ + alias: this.alias, + myIdx: this.Len(), + parent: this, + } + if err := n.SetType(t); err != nil { + return err + } + this.properties = append(this.properties, n) + return nil +} + +// At returns the property value for the specified index. Panics if the index is +// out of bounds. +func (this ForgeFedDependedByProperty) At(index int) vocab.ForgeFedDependedByPropertyIterator { + return this.properties[index] +} + +// Begin returns the first iterator, or nil if empty. Can be used with the +// iterator's Next method and this property's End method to iterate from front +// to back through all values. +func (this ForgeFedDependedByProperty) Begin() vocab.ForgeFedDependedByPropertyIterator { + if this.Empty() { + return nil + } else { + return this.properties[0] + } +} + +// Empty returns returns true if there are no elements. +func (this ForgeFedDependedByProperty) Empty() bool { + return this.Len() == 0 +} + +// End returns beyond-the-last iterator, which is nil. Can be used with the +// iterator's Next method and this property's Begin method to iterate from +// front to back through all values. +func (this ForgeFedDependedByProperty) End() vocab.ForgeFedDependedByPropertyIterator { + return nil +} + +// InsertForgeFedTicket inserts a Ticket value at the specified index for a +// property "dependedBy". Existing elements at that index and higher are +// shifted back once. Invalidates all iterators. +func (this *ForgeFedDependedByProperty) InsertForgeFedTicket(idx int, v vocab.ForgeFedTicket) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ForgeFedDependedByPropertyIterator{ + alias: this.alias, + forgefedTicketMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// Insert inserts an IRI value at the specified index for a property "dependedBy". +// Existing elements at that index and higher are shifted back once. +// Invalidates all iterators. +func (this *ForgeFedDependedByProperty) InsertIRI(idx int, v *url.URL) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ForgeFedDependedByPropertyIterator{ + alias: this.alias, + iri: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependType prepends an arbitrary type value to the front of a list of the +// property "dependedBy". Invalidates all iterators. Returns an error if the +// type is not a valid one to set for this property. +func (this *ForgeFedDependedByProperty) InsertType(idx int, t vocab.Type) error { + n := &ForgeFedDependedByPropertyIterator{ + alias: this.alias, + myIdx: idx, + parent: this, + } + if err := n.SetType(t); err != nil { + return err + } + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = n + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } + return nil +} + +// JSONLDContext returns the JSONLD URIs required in the context string for this +// property and the specific values that are set. The value in the map is the +// alias used to import the property's value or values. +func (this ForgeFedDependedByProperty) JSONLDContext() map[string]string { + m := map[string]string{"https://forgefed.peers.community/ns": this.alias} + for _, elem := range this.properties { + child := elem.JSONLDContext() + /* + Since the literal maps in this function are determined at + code-generation time, this loop should not overwrite an existing key with a + new value. + */ + for k, v := range child { + m[k] = v + } + } + return m +} + +// KindIndex computes an arbitrary value for indexing this kind of value. This is +// a leaky API method specifically needed only for alternate implementations +// for go-fed. Applications should not use this method. Panics if the index is +// out of bounds. +func (this ForgeFedDependedByProperty) KindIndex(idx int) int { + return this.properties[idx].KindIndex() +} + +// Len returns the number of values that exist for the "dependedBy" property. +func (this ForgeFedDependedByProperty) Len() (length int) { + return len(this.properties) +} + +// Less computes whether another property is less than this one. Mixing types +// results in a consistent but arbitrary ordering +func (this ForgeFedDependedByProperty) Less(i, j int) bool { + idx1 := this.KindIndex(i) + idx2 := this.KindIndex(j) + if idx1 < idx2 { + return true + } else if idx1 == idx2 { + if idx1 == 0 { + lhs := this.properties[i].Get() + rhs := this.properties[j].Get() + return lhs.LessThan(rhs) + } else if idx1 == -2 { + lhs := this.properties[i].GetIRI() + rhs := this.properties[j].GetIRI() + return lhs.String() < rhs.String() + } + } + return false +} + +// LessThan compares two instances of this property with an arbitrary but stable +// comparison. Applications should not use this because it is only meant to +// help alternative implementations to go-fed to be able to normalize +// nonfunctional properties. +func (this ForgeFedDependedByProperty) LessThan(o vocab.ForgeFedDependedByProperty) bool { + l1 := this.Len() + l2 := o.Len() + l := l1 + if l2 < l1 { + l = l2 + } + for i := 0; i < l; i++ { + if this.properties[i].LessThan(o.At(i)) { + return true + } else if o.At(i).LessThan(this.properties[i]) { + return false + } + } + return l1 < l2 +} + +// Name returns the name of this property ("dependedBy") with any alias. +func (this ForgeFedDependedByProperty) Name() string { + if len(this.alias) > 0 { + return this.alias + ":" + "dependedBy" + } else { + return "dependedBy" + } +} + +// PrependForgeFedTicket prepends a Ticket value to the front of a list of the +// property "dependedBy". Invalidates all iterators. +func (this *ForgeFedDependedByProperty) PrependForgeFedTicket(v vocab.ForgeFedTicket) { + this.properties = append([]*ForgeFedDependedByPropertyIterator{{ + alias: this.alias, + forgefedTicketMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependIRI prepends an IRI value to the front of a list of the property +// "dependedBy". +func (this *ForgeFedDependedByProperty) PrependIRI(v *url.URL) { + this.properties = append([]*ForgeFedDependedByPropertyIterator{{ + alias: this.alias, + iri: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependType prepends an arbitrary type value to the front of a list of the +// property "dependedBy". Invalidates all iterators. Returns an error if the +// type is not a valid one to set for this property. +func (this *ForgeFedDependedByProperty) PrependType(t vocab.Type) error { + n := &ForgeFedDependedByPropertyIterator{ + alias: this.alias, + myIdx: 0, + parent: this, + } + if err := n.SetType(t); err != nil { + return err + } + this.properties = append([]*ForgeFedDependedByPropertyIterator{n}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } + return nil +} + +// Remove deletes an element at the specified index from a list of the property +// "dependedBy", regardless of its type. Panics if the index is out of bounds. +// Invalidates all iterators. +func (this *ForgeFedDependedByProperty) Remove(idx int) { + (this.properties)[idx].parent = nil + copy((this.properties)[idx:], (this.properties)[idx+1:]) + (this.properties)[len(this.properties)-1] = &ForgeFedDependedByPropertyIterator{} + this.properties = (this.properties)[:len(this.properties)-1] + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// Serialize converts this into an interface representation suitable for +// marshalling into a text or binary format. Applications should not need this +// function as most typical use cases serialize types instead of individual +// properties. It is exposed for alternatives to go-fed implementations to use. +func (this ForgeFedDependedByProperty) Serialize() (interface{}, error) { + s := make([]interface{}, 0, len(this.properties)) + for _, iterator := range this.properties { + if b, err := iterator.serialize(); err != nil { + return s, err + } else { + s = append(s, b) + } + } + // Shortcut: if serializing one value, don't return an array -- pretty sure other Fediverse software would choke on a "type" value with array, for example. + if len(s) == 1 { + return s[0], nil + } + return s, nil +} + +// Set sets a Ticket value to be at the specified index for the property +// "dependedBy". Panics if the index is out of bounds. Invalidates all +// iterators. +func (this *ForgeFedDependedByProperty) Set(idx int, v vocab.ForgeFedTicket) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ForgeFedDependedByPropertyIterator{ + alias: this.alias, + forgefedTicketMember: v, + myIdx: idx, + parent: this, + } +} + +// SetIRI sets an IRI value to be at the specified index for the property +// "dependedBy". Panics if the index is out of bounds. +func (this *ForgeFedDependedByProperty) SetIRI(idx int, v *url.URL) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ForgeFedDependedByPropertyIterator{ + alias: this.alias, + iri: v, + myIdx: idx, + parent: this, + } +} + +// SetType sets an arbitrary type value to the specified index of the property +// "dependedBy". Invalidates all iterators. Returns an error if the type is +// not a valid one to set for this property. Panics if the index is out of +// bounds. +func (this *ForgeFedDependedByProperty) SetType(idx int, t vocab.Type) error { + n := &ForgeFedDependedByPropertyIterator{ + alias: this.alias, + myIdx: idx, + parent: this, + } + if err := n.SetType(t); err != nil { + return err + } + (this.properties)[idx] = n + return nil +} + +// Swap swaps the location of values at two indices for the "dependedBy" property. +func (this ForgeFedDependedByProperty) Swap(i, j int) { + this.properties[i], this.properties[j] = this.properties[j], this.properties[i] +} diff --git a/streams/impl/forgefed/property_dependencies/gen_doc.go b/streams/impl/forgefed/property_dependencies/gen_doc.go new file mode 100644 index 0000000..4f4b064 --- /dev/null +++ b/streams/impl/forgefed/property_dependencies/gen_doc.go @@ -0,0 +1,17 @@ +// Code generated by astool. DO NOT EDIT. + +// Package propertydependencies contains the implementation for the dependencies +// property. All applications are strongly encouraged to use the interface +// instead of this concrete definition. The interfaces allow applications to +// consume only the types and properties needed and be independent of the +// go-fed implementation if another alternative implementation is created. +// This package is code-generated and subject to the same license as the +// go-fed tool used to generate it. +// +// This package is independent of other types' and properties' implementations +// by having a Manager injected into it to act as a factory for the concrete +// implementations. The implementations have been generated into their own +// separate subpackages for each vocabulary. +// +// Strongly consider using the interfaces instead of this package. +package propertydependencies diff --git a/streams/impl/forgefed/property_dependencies/gen_pkg.go b/streams/impl/forgefed/property_dependencies/gen_pkg.go new file mode 100644 index 0000000..a1b4bda --- /dev/null +++ b/streams/impl/forgefed/property_dependencies/gen_pkg.go @@ -0,0 +1,27 @@ +// Code generated by astool. DO NOT EDIT. + +package propertydependencies + +import vocab "github.com/go-fed/activity/streams/vocab" + +var mgr privateManager + +// privateManager abstracts the code-generated manager that provides access to +// concrete implementations. +type privateManager interface { + // DeserializeOrderedCollectionActivityStreams returns the deserialization + // method for the "ActivityStreamsOrderedCollection" non-functional + // property in the vocabulary "ActivityStreams" + DeserializeOrderedCollectionActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsOrderedCollection, error) + // DeserializeOrderedCollectionPageActivityStreams returns the + // deserialization method for the + // "ActivityStreamsOrderedCollectionPage" non-functional property in + // the vocabulary "ActivityStreams" + DeserializeOrderedCollectionPageActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsOrderedCollectionPage, error) +} + +// SetManager sets the manager package-global variable. For internal use only, do +// not use as part of Application behavior. Must be called at golang init time. +func SetManager(m privateManager) { + mgr = m +} diff --git a/streams/impl/forgefed/property_dependencies/gen_property_forgefed_dependencies.go b/streams/impl/forgefed/property_dependencies/gen_property_forgefed_dependencies.go new file mode 100644 index 0000000..ac8bfb2 --- /dev/null +++ b/streams/impl/forgefed/property_dependencies/gen_property_forgefed_dependencies.go @@ -0,0 +1,269 @@ +// Code generated by astool. DO NOT EDIT. + +package propertydependencies + +import ( + "fmt" + vocab "github.com/go-fed/activity/streams/vocab" + "net/url" +) + +// ForgeFedDependenciesProperty is the functional property "dependencies". It is +// permitted to be one of multiple value types. At most, one type of value can +// be present, or none at all. Setting a value will clear the other types of +// values so that only one of the 'Is' methods will return true. It is +// possible to clear all values, so that this property is empty. +type ForgeFedDependenciesProperty struct { + activitystreamsOrderedCollectionMember vocab.ActivityStreamsOrderedCollection + activitystreamsOrderedCollectionPageMember vocab.ActivityStreamsOrderedCollectionPage + unknown interface{} + iri *url.URL + alias string +} + +// DeserializeDependenciesProperty creates a "dependencies" property from an +// interface representation that has been unmarshalled from a text or binary +// format. +func DeserializeDependenciesProperty(m map[string]interface{}, aliasMap map[string]string) (*ForgeFedDependenciesProperty, error) { + alias := "" + if a, ok := aliasMap["https://forgefed.peers.community/ns"]; ok { + alias = a + } + propName := "dependencies" + if len(alias) > 0 { + // Use alias both to find the property, and set within the property. + propName = fmt.Sprintf("%s:%s", alias, "dependencies") + } + i, ok := m[propName] + + if ok { + if s, ok := i.(string); ok { + u, err := url.Parse(s) + // If error exists, don't error out -- skip this and treat as unknown string ([]byte) at worst + // Also, if no scheme exists, don't treat it as a URL -- net/url is greedy + if err == nil && len(u.Scheme) > 0 { + this := &ForgeFedDependenciesProperty{ + alias: alias, + iri: u, + } + return this, nil + } + } + if m, ok := i.(map[string]interface{}); ok { + if v, err := mgr.DeserializeOrderedCollectionActivityStreams()(m, aliasMap); err == nil { + this := &ForgeFedDependenciesProperty{ + activitystreamsOrderedCollectionMember: v, + alias: alias, + } + return this, nil + } else if v, err := mgr.DeserializeOrderedCollectionPageActivityStreams()(m, aliasMap); err == nil { + this := &ForgeFedDependenciesProperty{ + activitystreamsOrderedCollectionPageMember: v, + alias: alias, + } + return this, nil + } + } + this := &ForgeFedDependenciesProperty{ + alias: alias, + unknown: i, + } + return this, nil + } + return nil, nil +} + +// NewForgeFedDependenciesProperty creates a new dependencies property. +func NewForgeFedDependenciesProperty() *ForgeFedDependenciesProperty { + return &ForgeFedDependenciesProperty{alias: ""} +} + +// Clear ensures no value of this property is set. Calling HasAny or any of the +// 'Is' methods afterwards will return false. +func (this *ForgeFedDependenciesProperty) Clear() { + this.activitystreamsOrderedCollectionMember = nil + this.activitystreamsOrderedCollectionPageMember = nil + this.unknown = nil + this.iri = nil +} + +// GetActivityStreamsOrderedCollection returns the value of this property. When +// IsActivityStreamsOrderedCollection returns false, +// GetActivityStreamsOrderedCollection will return an arbitrary value. +func (this ForgeFedDependenciesProperty) GetActivityStreamsOrderedCollection() vocab.ActivityStreamsOrderedCollection { + return this.activitystreamsOrderedCollectionMember +} + +// GetActivityStreamsOrderedCollectionPage returns the value of this property. +// When IsActivityStreamsOrderedCollectionPage returns false, +// GetActivityStreamsOrderedCollectionPage will return an arbitrary value. +func (this ForgeFedDependenciesProperty) GetActivityStreamsOrderedCollectionPage() vocab.ActivityStreamsOrderedCollectionPage { + return this.activitystreamsOrderedCollectionPageMember +} + +// GetIRI returns the IRI of this property. When IsIRI returns false, GetIRI will +// return an arbitrary value. +func (this ForgeFedDependenciesProperty) GetIRI() *url.URL { + return this.iri +} + +// GetType returns the value in this property as a Type. Returns nil if the value +// is not an ActivityStreams type, such as an IRI or another value. +func (this ForgeFedDependenciesProperty) GetType() vocab.Type { + if this.IsActivityStreamsOrderedCollection() { + return this.GetActivityStreamsOrderedCollection() + } + if this.IsActivityStreamsOrderedCollectionPage() { + return this.GetActivityStreamsOrderedCollectionPage() + } + + return nil +} + +// HasAny returns true if any of the different values is set. +func (this ForgeFedDependenciesProperty) HasAny() bool { + return this.IsActivityStreamsOrderedCollection() || + this.IsActivityStreamsOrderedCollectionPage() || + this.iri != nil +} + +// IsActivityStreamsOrderedCollection returns true if this property has a type of +// "OrderedCollection". When true, use the GetActivityStreamsOrderedCollection +// and SetActivityStreamsOrderedCollection methods to access and set this +// property. +func (this ForgeFedDependenciesProperty) IsActivityStreamsOrderedCollection() bool { + return this.activitystreamsOrderedCollectionMember != nil +} + +// IsActivityStreamsOrderedCollectionPage returns true if this property has a type +// of "OrderedCollectionPage". When true, use the +// GetActivityStreamsOrderedCollectionPage and +// SetActivityStreamsOrderedCollectionPage methods to access and set this +// property. +func (this ForgeFedDependenciesProperty) IsActivityStreamsOrderedCollectionPage() bool { + return this.activitystreamsOrderedCollectionPageMember != nil +} + +// IsIRI returns true if this property is an IRI. When true, use GetIRI and SetIRI +// to access and set this property +func (this ForgeFedDependenciesProperty) IsIRI() bool { + return this.iri != nil +} + +// JSONLDContext returns the JSONLD URIs required in the context string for this +// property and the specific values that are set. The value in the map is the +// alias used to import the property's value or values. +func (this ForgeFedDependenciesProperty) JSONLDContext() map[string]string { + m := map[string]string{"https://forgefed.peers.community/ns": this.alias} + var child map[string]string + if this.IsActivityStreamsOrderedCollection() { + child = this.GetActivityStreamsOrderedCollection().JSONLDContext() + } else if this.IsActivityStreamsOrderedCollectionPage() { + child = this.GetActivityStreamsOrderedCollectionPage().JSONLDContext() + } + /* + Since the literal maps in this function are determined at + code-generation time, this loop should not overwrite an existing key with a + new value. + */ + for k, v := range child { + m[k] = v + } + return m +} + +// KindIndex computes an arbitrary value for indexing this kind of value. This is +// a leaky API detail only for folks looking to replace the go-fed +// implementation. Applications should not use this method. +func (this ForgeFedDependenciesProperty) KindIndex() int { + if this.IsActivityStreamsOrderedCollection() { + return 0 + } + if this.IsActivityStreamsOrderedCollectionPage() { + return 1 + } + if this.IsIRI() { + return -2 + } + return -1 +} + +// LessThan compares two instances of this property with an arbitrary but stable +// comparison. Applications should not use this because it is only meant to +// help alternative implementations to go-fed to be able to normalize +// nonfunctional properties. +func (this ForgeFedDependenciesProperty) LessThan(o vocab.ForgeFedDependenciesProperty) bool { + idx1 := this.KindIndex() + idx2 := o.KindIndex() + if idx1 < idx2 { + return true + } else if idx1 > idx2 { + return false + } else if this.IsActivityStreamsOrderedCollection() { + return this.GetActivityStreamsOrderedCollection().LessThan(o.GetActivityStreamsOrderedCollection()) + } else if this.IsActivityStreamsOrderedCollectionPage() { + return this.GetActivityStreamsOrderedCollectionPage().LessThan(o.GetActivityStreamsOrderedCollectionPage()) + } else if this.IsIRI() { + return this.iri.String() < o.GetIRI().String() + } + return false +} + +// Name returns the name of this property: "dependencies". +func (this ForgeFedDependenciesProperty) Name() string { + if len(this.alias) > 0 { + return this.alias + ":" + "dependencies" + } else { + return "dependencies" + } +} + +// Serialize converts this into an interface representation suitable for +// marshalling into a text or binary format. Applications should not need this +// function as most typical use cases serialize types instead of individual +// properties. It is exposed for alternatives to go-fed implementations to use. +func (this ForgeFedDependenciesProperty) Serialize() (interface{}, error) { + if this.IsActivityStreamsOrderedCollection() { + return this.GetActivityStreamsOrderedCollection().Serialize() + } else if this.IsActivityStreamsOrderedCollectionPage() { + return this.GetActivityStreamsOrderedCollectionPage().Serialize() + } else if this.IsIRI() { + return this.iri.String(), nil + } + return this.unknown, nil +} + +// SetActivityStreamsOrderedCollection sets the value of this property. Calling +// IsActivityStreamsOrderedCollection afterwards returns true. +func (this *ForgeFedDependenciesProperty) SetActivityStreamsOrderedCollection(v vocab.ActivityStreamsOrderedCollection) { + this.Clear() + this.activitystreamsOrderedCollectionMember = v +} + +// SetActivityStreamsOrderedCollectionPage sets the value of this property. +// Calling IsActivityStreamsOrderedCollectionPage afterwards returns true. +func (this *ForgeFedDependenciesProperty) SetActivityStreamsOrderedCollectionPage(v vocab.ActivityStreamsOrderedCollectionPage) { + this.Clear() + this.activitystreamsOrderedCollectionPageMember = v +} + +// SetIRI sets the value of this property. Calling IsIRI afterwards returns true. +func (this *ForgeFedDependenciesProperty) SetIRI(v *url.URL) { + this.Clear() + this.iri = v +} + +// SetType attempts to set the property for the arbitrary type. Returns an error +// if it is not a valid type to set on this property. +func (this *ForgeFedDependenciesProperty) SetType(t vocab.Type) error { + if v, ok := t.(vocab.ActivityStreamsOrderedCollection); ok { + this.SetActivityStreamsOrderedCollection(v) + return nil + } + if v, ok := t.(vocab.ActivityStreamsOrderedCollectionPage); ok { + this.SetActivityStreamsOrderedCollectionPage(v) + return nil + } + + return fmt.Errorf("illegal type to set on dependencies property: %T", t) +} diff --git a/streams/impl/forgefed/property_dependson/gen_doc.go b/streams/impl/forgefed/property_dependson/gen_doc.go new file mode 100644 index 0000000..53d2647 --- /dev/null +++ b/streams/impl/forgefed/property_dependson/gen_doc.go @@ -0,0 +1,17 @@ +// Code generated by astool. DO NOT EDIT. + +// Package propertydependson contains the implementation for the dependsOn +// property. All applications are strongly encouraged to use the interface +// instead of this concrete definition. The interfaces allow applications to +// consume only the types and properties needed and be independent of the +// go-fed implementation if another alternative implementation is created. +// This package is code-generated and subject to the same license as the +// go-fed tool used to generate it. +// +// This package is independent of other types' and properties' implementations +// by having a Manager injected into it to act as a factory for the concrete +// implementations. The implementations have been generated into their own +// separate subpackages for each vocabulary. +// +// Strongly consider using the interfaces instead of this package. +package propertydependson diff --git a/streams/impl/forgefed/property_dependson/gen_pkg.go b/streams/impl/forgefed/property_dependson/gen_pkg.go new file mode 100644 index 0000000..0998fc1 --- /dev/null +++ b/streams/impl/forgefed/property_dependson/gen_pkg.go @@ -0,0 +1,22 @@ +// Code generated by astool. DO NOT EDIT. + +package propertydependson + +import vocab "github.com/go-fed/activity/streams/vocab" + +var mgr privateManager + +// privateManager abstracts the code-generated manager that provides access to +// concrete implementations. +type privateManager interface { + // DeserializeTicketForgeFed returns the deserialization method for the + // "ForgeFedTicket" non-functional property in the vocabulary + // "ForgeFed" + DeserializeTicketForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTicket, error) +} + +// SetManager sets the manager package-global variable. For internal use only, do +// not use as part of Application behavior. Must be called at golang init time. +func SetManager(m privateManager) { + mgr = m +} diff --git a/streams/impl/forgefed/property_dependson/gen_property_forgefed_dependsOn.go b/streams/impl/forgefed/property_dependson/gen_property_forgefed_dependsOn.go new file mode 100644 index 0000000..f87a2dc --- /dev/null +++ b/streams/impl/forgefed/property_dependson/gen_property_forgefed_dependsOn.go @@ -0,0 +1,619 @@ +// Code generated by astool. DO NOT EDIT. + +package propertydependson + +import ( + "fmt" + vocab "github.com/go-fed/activity/streams/vocab" + "net/url" +) + +// ForgeFedDependsOnPropertyIterator is an iterator for a property. It is +// permitted to be a single nilable value type. +type ForgeFedDependsOnPropertyIterator struct { + forgefedTicketMember vocab.ForgeFedTicket + unknown interface{} + iri *url.URL + alias string + myIdx int + parent vocab.ForgeFedDependsOnProperty +} + +// NewForgeFedDependsOnPropertyIterator creates a new ForgeFedDependsOn property. +func NewForgeFedDependsOnPropertyIterator() *ForgeFedDependsOnPropertyIterator { + return &ForgeFedDependsOnPropertyIterator{alias: ""} +} + +// deserializeForgeFedDependsOnPropertyIterator creates an iterator from an +// element that has been unmarshalled from a text or binary format. +func deserializeForgeFedDependsOnPropertyIterator(i interface{}, aliasMap map[string]string) (*ForgeFedDependsOnPropertyIterator, error) { + alias := "" + if a, ok := aliasMap["https://forgefed.peers.community/ns"]; ok { + alias = a + } + if s, ok := i.(string); ok { + u, err := url.Parse(s) + // If error exists, don't error out -- skip this and treat as unknown string ([]byte) at worst + // Also, if no scheme exists, don't treat it as a URL -- net/url is greedy + if err == nil && len(u.Scheme) > 0 { + this := &ForgeFedDependsOnPropertyIterator{ + alias: alias, + iri: u, + } + return this, nil + } + } + if m, ok := i.(map[string]interface{}); ok { + if v, err := mgr.DeserializeTicketForgeFed()(m, aliasMap); err == nil { + this := &ForgeFedDependsOnPropertyIterator{ + alias: alias, + forgefedTicketMember: v, + } + return this, nil + } + } + this := &ForgeFedDependsOnPropertyIterator{ + alias: alias, + unknown: i, + } + return this, nil +} + +// Get returns the value of this property. When IsForgeFedTicket returns false, +// Get will return any arbitrary value. +func (this ForgeFedDependsOnPropertyIterator) Get() vocab.ForgeFedTicket { + return this.forgefedTicketMember +} + +// GetIRI returns the IRI of this property. When IsIRI returns false, GetIRI will +// return any arbitrary value. +func (this ForgeFedDependsOnPropertyIterator) GetIRI() *url.URL { + return this.iri +} + +// GetType returns the value in this property as a Type. Returns nil if the value +// is not an ActivityStreams type, such as an IRI or another value. +func (this ForgeFedDependsOnPropertyIterator) GetType() vocab.Type { + if this.IsForgeFedTicket() { + return this.Get() + } + + return nil +} + +// HasAny returns true if the value or IRI is set. +func (this ForgeFedDependsOnPropertyIterator) HasAny() bool { + return this.IsForgeFedTicket() || this.iri != nil +} + +// IsForgeFedTicket returns true if this property is set and not an IRI. +func (this ForgeFedDependsOnPropertyIterator) IsForgeFedTicket() bool { + return this.forgefedTicketMember != nil +} + +// IsIRI returns true if this property is an IRI. +func (this ForgeFedDependsOnPropertyIterator) IsIRI() bool { + return this.iri != nil +} + +// JSONLDContext returns the JSONLD URIs required in the context string for this +// property and the specific values that are set. The value in the map is the +// alias used to import the property's value or values. +func (this ForgeFedDependsOnPropertyIterator) JSONLDContext() map[string]string { + m := map[string]string{"https://forgefed.peers.community/ns": this.alias} + var child map[string]string + if this.IsForgeFedTicket() { + child = this.Get().JSONLDContext() + } + /* + Since the literal maps in this function are determined at + code-generation time, this loop should not overwrite an existing key with a + new value. + */ + for k, v := range child { + m[k] = v + } + return m +} + +// KindIndex computes an arbitrary value for indexing this kind of value. This is +// a leaky API detail only for folks looking to replace the go-fed +// implementation. Applications should not use this method. +func (this ForgeFedDependsOnPropertyIterator) KindIndex() int { + if this.IsForgeFedTicket() { + return 0 + } + if this.IsIRI() { + return -2 + } + return -1 +} + +// LessThan compares two instances of this property with an arbitrary but stable +// comparison. Applications should not use this because it is only meant to +// help alternative implementations to go-fed to be able to normalize +// nonfunctional properties. +func (this ForgeFedDependsOnPropertyIterator) LessThan(o vocab.ForgeFedDependsOnPropertyIterator) bool { + // LessThan comparison for if either or both are IRIs. + if this.IsIRI() && o.IsIRI() { + return this.iri.String() < o.GetIRI().String() + } else if this.IsIRI() { + // IRIs are always less than other values, none, or unknowns + return true + } else if o.IsIRI() { + // This other, none, or unknown value is always greater than IRIs + return false + } + // LessThan comparison for the single value or unknown value. + if !this.IsForgeFedTicket() && !o.IsForgeFedTicket() { + // Both are unknowns. + return false + } else if this.IsForgeFedTicket() && !o.IsForgeFedTicket() { + // Values are always greater than unknown values. + return false + } else if !this.IsForgeFedTicket() && o.IsForgeFedTicket() { + // Unknowns are always less than known values. + return true + } else { + // Actual comparison. + return this.Get().LessThan(o.Get()) + } +} + +// Name returns the name of this property: "ForgeFedDependsOn". +func (this ForgeFedDependsOnPropertyIterator) Name() string { + if len(this.alias) > 0 { + return this.alias + ":" + "ForgeFedDependsOn" + } else { + return "ForgeFedDependsOn" + } +} + +// Next returns the next iterator, or nil if there is no next iterator. +func (this ForgeFedDependsOnPropertyIterator) Next() vocab.ForgeFedDependsOnPropertyIterator { + if this.myIdx+1 >= this.parent.Len() { + return nil + } else { + return this.parent.At(this.myIdx + 1) + } +} + +// Prev returns the previous iterator, or nil if there is no previous iterator. +func (this ForgeFedDependsOnPropertyIterator) Prev() vocab.ForgeFedDependsOnPropertyIterator { + if this.myIdx-1 < 0 { + return nil + } else { + return this.parent.At(this.myIdx - 1) + } +} + +// Set sets the value of this property. Calling IsForgeFedTicket afterwards will +// return true. +func (this *ForgeFedDependsOnPropertyIterator) Set(v vocab.ForgeFedTicket) { + this.clear() + this.forgefedTicketMember = v +} + +// SetIRI sets the value of this property. Calling IsIRI afterwards will return +// true. +func (this *ForgeFedDependsOnPropertyIterator) SetIRI(v *url.URL) { + this.clear() + this.iri = v +} + +// SetType attempts to set the property for the arbitrary type. Returns an error +// if it is not a valid type to set on this property. +func (this *ForgeFedDependsOnPropertyIterator) SetType(t vocab.Type) error { + if v, ok := t.(vocab.ForgeFedTicket); ok { + this.Set(v) + return nil + } + + return fmt.Errorf("illegal type to set on ForgeFedDependsOn property: %T", t) +} + +// clear ensures no value of this property is set. Calling IsForgeFedTicket +// afterwards will return false. +func (this *ForgeFedDependsOnPropertyIterator) clear() { + this.unknown = nil + this.iri = nil + this.forgefedTicketMember = nil +} + +// serialize converts this into an interface representation suitable for +// marshalling into a text or binary format. Applications should not need this +// function as most typical use cases serialize types instead of individual +// properties. It is exposed for alternatives to go-fed implementations to use. +func (this ForgeFedDependsOnPropertyIterator) serialize() (interface{}, error) { + if this.IsForgeFedTicket() { + return this.Get().Serialize() + } else if this.IsIRI() { + return this.iri.String(), nil + } + return this.unknown, nil +} + +// ForgeFedDependsOnProperty is the non-functional property "dependsOn". It is +// permitted to have one or more values, and of different value types. +type ForgeFedDependsOnProperty struct { + properties []*ForgeFedDependsOnPropertyIterator + alias string +} + +// DeserializeDependsOnProperty creates a "dependsOn" property from an interface +// representation that has been unmarshalled from a text or binary format. +func DeserializeDependsOnProperty(m map[string]interface{}, aliasMap map[string]string) (vocab.ForgeFedDependsOnProperty, error) { + alias := "" + if a, ok := aliasMap["https://forgefed.peers.community/ns"]; ok { + alias = a + } + propName := "dependsOn" + if len(alias) > 0 { + propName = fmt.Sprintf("%s:%s", alias, "dependsOn") + } + i, ok := m[propName] + + if ok { + this := &ForgeFedDependsOnProperty{ + alias: alias, + properties: []*ForgeFedDependsOnPropertyIterator{}, + } + if list, ok := i.([]interface{}); ok { + for _, iterator := range list { + if p, err := deserializeForgeFedDependsOnPropertyIterator(iterator, aliasMap); err != nil { + return this, err + } else if p != nil { + this.properties = append(this.properties, p) + } + } + } else { + if p, err := deserializeForgeFedDependsOnPropertyIterator(i, aliasMap); err != nil { + return this, err + } else if p != nil { + this.properties = append(this.properties, p) + } + } + // Set up the properties for iteration. + for idx, ele := range this.properties { + ele.parent = this + ele.myIdx = idx + } + return this, nil + } + return nil, nil +} + +// NewForgeFedDependsOnProperty creates a new dependsOn property. +func NewForgeFedDependsOnProperty() *ForgeFedDependsOnProperty { + return &ForgeFedDependsOnProperty{alias: ""} +} + +// AppendForgeFedTicket appends a Ticket value to the back of a list of the +// property "dependsOn". Invalidates iterators that are traversing using Prev. +func (this *ForgeFedDependsOnProperty) AppendForgeFedTicket(v vocab.ForgeFedTicket) { + this.properties = append(this.properties, &ForgeFedDependsOnPropertyIterator{ + alias: this.alias, + forgefedTicketMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendIRI appends an IRI value to the back of a list of the property "dependsOn" +func (this *ForgeFedDependsOnProperty) AppendIRI(v *url.URL) { + this.properties = append(this.properties, &ForgeFedDependsOnPropertyIterator{ + alias: this.alias, + iri: v, + myIdx: this.Len(), + parent: this, + }) +} + +// PrependType prepends an arbitrary type value to the front of a list of the +// property "dependsOn". Invalidates iterators that are traversing using Prev. +// Returns an error if the type is not a valid one to set for this property. +func (this *ForgeFedDependsOnProperty) AppendType(t vocab.Type) error { + n := &ForgeFedDependsOnPropertyIterator{ + alias: this.alias, + myIdx: this.Len(), + parent: this, + } + if err := n.SetType(t); err != nil { + return err + } + this.properties = append(this.properties, n) + return nil +} + +// At returns the property value for the specified index. Panics if the index is +// out of bounds. +func (this ForgeFedDependsOnProperty) At(index int) vocab.ForgeFedDependsOnPropertyIterator { + return this.properties[index] +} + +// Begin returns the first iterator, or nil if empty. Can be used with the +// iterator's Next method and this property's End method to iterate from front +// to back through all values. +func (this ForgeFedDependsOnProperty) Begin() vocab.ForgeFedDependsOnPropertyIterator { + if this.Empty() { + return nil + } else { + return this.properties[0] + } +} + +// Empty returns returns true if there are no elements. +func (this ForgeFedDependsOnProperty) Empty() bool { + return this.Len() == 0 +} + +// End returns beyond-the-last iterator, which is nil. Can be used with the +// iterator's Next method and this property's Begin method to iterate from +// front to back through all values. +func (this ForgeFedDependsOnProperty) End() vocab.ForgeFedDependsOnPropertyIterator { + return nil +} + +// InsertForgeFedTicket inserts a Ticket value at the specified index for a +// property "dependsOn". Existing elements at that index and higher are +// shifted back once. Invalidates all iterators. +func (this *ForgeFedDependsOnProperty) InsertForgeFedTicket(idx int, v vocab.ForgeFedTicket) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ForgeFedDependsOnPropertyIterator{ + alias: this.alias, + forgefedTicketMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// Insert inserts an IRI value at the specified index for a property "dependsOn". +// Existing elements at that index and higher are shifted back once. +// Invalidates all iterators. +func (this *ForgeFedDependsOnProperty) InsertIRI(idx int, v *url.URL) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ForgeFedDependsOnPropertyIterator{ + alias: this.alias, + iri: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependType prepends an arbitrary type value to the front of a list of the +// property "dependsOn". Invalidates all iterators. Returns an error if the +// type is not a valid one to set for this property. +func (this *ForgeFedDependsOnProperty) InsertType(idx int, t vocab.Type) error { + n := &ForgeFedDependsOnPropertyIterator{ + alias: this.alias, + myIdx: idx, + parent: this, + } + if err := n.SetType(t); err != nil { + return err + } + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = n + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } + return nil +} + +// JSONLDContext returns the JSONLD URIs required in the context string for this +// property and the specific values that are set. The value in the map is the +// alias used to import the property's value or values. +func (this ForgeFedDependsOnProperty) JSONLDContext() map[string]string { + m := map[string]string{"https://forgefed.peers.community/ns": this.alias} + for _, elem := range this.properties { + child := elem.JSONLDContext() + /* + Since the literal maps in this function are determined at + code-generation time, this loop should not overwrite an existing key with a + new value. + */ + for k, v := range child { + m[k] = v + } + } + return m +} + +// KindIndex computes an arbitrary value for indexing this kind of value. This is +// a leaky API method specifically needed only for alternate implementations +// for go-fed. Applications should not use this method. Panics if the index is +// out of bounds. +func (this ForgeFedDependsOnProperty) KindIndex(idx int) int { + return this.properties[idx].KindIndex() +} + +// Len returns the number of values that exist for the "dependsOn" property. +func (this ForgeFedDependsOnProperty) Len() (length int) { + return len(this.properties) +} + +// Less computes whether another property is less than this one. Mixing types +// results in a consistent but arbitrary ordering +func (this ForgeFedDependsOnProperty) Less(i, j int) bool { + idx1 := this.KindIndex(i) + idx2 := this.KindIndex(j) + if idx1 < idx2 { + return true + } else if idx1 == idx2 { + if idx1 == 0 { + lhs := this.properties[i].Get() + rhs := this.properties[j].Get() + return lhs.LessThan(rhs) + } else if idx1 == -2 { + lhs := this.properties[i].GetIRI() + rhs := this.properties[j].GetIRI() + return lhs.String() < rhs.String() + } + } + return false +} + +// LessThan compares two instances of this property with an arbitrary but stable +// comparison. Applications should not use this because it is only meant to +// help alternative implementations to go-fed to be able to normalize +// nonfunctional properties. +func (this ForgeFedDependsOnProperty) LessThan(o vocab.ForgeFedDependsOnProperty) bool { + l1 := this.Len() + l2 := o.Len() + l := l1 + if l2 < l1 { + l = l2 + } + for i := 0; i < l; i++ { + if this.properties[i].LessThan(o.At(i)) { + return true + } else if o.At(i).LessThan(this.properties[i]) { + return false + } + } + return l1 < l2 +} + +// Name returns the name of this property ("dependsOn") with any alias. +func (this ForgeFedDependsOnProperty) Name() string { + if len(this.alias) > 0 { + return this.alias + ":" + "dependsOn" + } else { + return "dependsOn" + } +} + +// PrependForgeFedTicket prepends a Ticket value to the front of a list of the +// property "dependsOn". Invalidates all iterators. +func (this *ForgeFedDependsOnProperty) PrependForgeFedTicket(v vocab.ForgeFedTicket) { + this.properties = append([]*ForgeFedDependsOnPropertyIterator{{ + alias: this.alias, + forgefedTicketMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependIRI prepends an IRI value to the front of a list of the property +// "dependsOn". +func (this *ForgeFedDependsOnProperty) PrependIRI(v *url.URL) { + this.properties = append([]*ForgeFedDependsOnPropertyIterator{{ + alias: this.alias, + iri: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependType prepends an arbitrary type value to the front of a list of the +// property "dependsOn". Invalidates all iterators. Returns an error if the +// type is not a valid one to set for this property. +func (this *ForgeFedDependsOnProperty) PrependType(t vocab.Type) error { + n := &ForgeFedDependsOnPropertyIterator{ + alias: this.alias, + myIdx: 0, + parent: this, + } + if err := n.SetType(t); err != nil { + return err + } + this.properties = append([]*ForgeFedDependsOnPropertyIterator{n}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } + return nil +} + +// Remove deletes an element at the specified index from a list of the property +// "dependsOn", regardless of its type. Panics if the index is out of bounds. +// Invalidates all iterators. +func (this *ForgeFedDependsOnProperty) Remove(idx int) { + (this.properties)[idx].parent = nil + copy((this.properties)[idx:], (this.properties)[idx+1:]) + (this.properties)[len(this.properties)-1] = &ForgeFedDependsOnPropertyIterator{} + this.properties = (this.properties)[:len(this.properties)-1] + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// Serialize converts this into an interface representation suitable for +// marshalling into a text or binary format. Applications should not need this +// function as most typical use cases serialize types instead of individual +// properties. It is exposed for alternatives to go-fed implementations to use. +func (this ForgeFedDependsOnProperty) Serialize() (interface{}, error) { + s := make([]interface{}, 0, len(this.properties)) + for _, iterator := range this.properties { + if b, err := iterator.serialize(); err != nil { + return s, err + } else { + s = append(s, b) + } + } + // Shortcut: if serializing one value, don't return an array -- pretty sure other Fediverse software would choke on a "type" value with array, for example. + if len(s) == 1 { + return s[0], nil + } + return s, nil +} + +// Set sets a Ticket value to be at the specified index for the property +// "dependsOn". Panics if the index is out of bounds. Invalidates all +// iterators. +func (this *ForgeFedDependsOnProperty) Set(idx int, v vocab.ForgeFedTicket) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ForgeFedDependsOnPropertyIterator{ + alias: this.alias, + forgefedTicketMember: v, + myIdx: idx, + parent: this, + } +} + +// SetIRI sets an IRI value to be at the specified index for the property +// "dependsOn". Panics if the index is out of bounds. +func (this *ForgeFedDependsOnProperty) SetIRI(idx int, v *url.URL) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ForgeFedDependsOnPropertyIterator{ + alias: this.alias, + iri: v, + myIdx: idx, + parent: this, + } +} + +// SetType sets an arbitrary type value to the specified index of the property +// "dependsOn". Invalidates all iterators. Returns an error if the type is not +// a valid one to set for this property. Panics if the index is out of bounds. +func (this *ForgeFedDependsOnProperty) SetType(idx int, t vocab.Type) error { + n := &ForgeFedDependsOnPropertyIterator{ + alias: this.alias, + myIdx: idx, + parent: this, + } + if err := n.SetType(t); err != nil { + return err + } + (this.properties)[idx] = n + return nil +} + +// Swap swaps the location of values at two indices for the "dependsOn" property. +func (this ForgeFedDependsOnProperty) Swap(i, j int) { + this.properties[i], this.properties[j] = this.properties[j], this.properties[i] +} diff --git a/streams/impl/forgefed/property_description/gen_doc.go b/streams/impl/forgefed/property_description/gen_doc.go new file mode 100644 index 0000000..664c990 --- /dev/null +++ b/streams/impl/forgefed/property_description/gen_doc.go @@ -0,0 +1,17 @@ +// Code generated by astool. DO NOT EDIT. + +// Package propertydescription contains the implementation for the description +// property. All applications are strongly encouraged to use the interface +// instead of this concrete definition. The interfaces allow applications to +// consume only the types and properties needed and be independent of the +// go-fed implementation if another alternative implementation is created. +// This package is code-generated and subject to the same license as the +// go-fed tool used to generate it. +// +// This package is independent of other types' and properties' implementations +// by having a Manager injected into it to act as a factory for the concrete +// implementations. The implementations have been generated into their own +// separate subpackages for each vocabulary. +// +// Strongly consider using the interfaces instead of this package. +package propertydescription diff --git a/streams/impl/forgefed/property_description/gen_pkg.go b/streams/impl/forgefed/property_description/gen_pkg.go new file mode 100644 index 0000000..1502759 --- /dev/null +++ b/streams/impl/forgefed/property_description/gen_pkg.go @@ -0,0 +1,257 @@ +// Code generated by astool. DO NOT EDIT. + +package propertydescription + +import vocab "github.com/go-fed/activity/streams/vocab" + +var mgr privateManager + +// privateManager abstracts the code-generated manager that provides access to +// concrete implementations. +type privateManager interface { + // DeserializeAcceptActivityStreams returns the deserialization method for + // the "ActivityStreamsAccept" non-functional property in the + // vocabulary "ActivityStreams" + DeserializeAcceptActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAccept, error) + // DeserializeActivityActivityStreams returns the deserialization method + // for the "ActivityStreamsActivity" non-functional property in the + // vocabulary "ActivityStreams" + DeserializeActivityActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsActivity, error) + // DeserializeAddActivityStreams returns the deserialization method for + // the "ActivityStreamsAdd" non-functional property in the vocabulary + // "ActivityStreams" + DeserializeAddActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAdd, error) + // DeserializeAnnounceActivityStreams returns the deserialization method + // for the "ActivityStreamsAnnounce" non-functional property in the + // vocabulary "ActivityStreams" + DeserializeAnnounceActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAnnounce, error) + // DeserializeApplicationActivityStreams returns the deserialization + // method for the "ActivityStreamsApplication" non-functional property + // in the vocabulary "ActivityStreams" + DeserializeApplicationActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsApplication, error) + // DeserializeArriveActivityStreams returns the deserialization method for + // the "ActivityStreamsArrive" non-functional property in the + // vocabulary "ActivityStreams" + DeserializeArriveActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsArrive, error) + // DeserializeArticleActivityStreams returns the deserialization method + // for the "ActivityStreamsArticle" non-functional property in the + // vocabulary "ActivityStreams" + DeserializeArticleActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsArticle, error) + // DeserializeAudioActivityStreams returns the deserialization method for + // the "ActivityStreamsAudio" non-functional property in the + // vocabulary "ActivityStreams" + DeserializeAudioActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAudio, error) + // DeserializeBlockActivityStreams returns the deserialization method for + // the "ActivityStreamsBlock" non-functional property in the + // vocabulary "ActivityStreams" + DeserializeBlockActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsBlock, error) + // DeserializeBranchForgeFed returns the deserialization method for the + // "ForgeFedBranch" non-functional property in the vocabulary + // "ForgeFed" + DeserializeBranchForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedBranch, error) + // DeserializeCollectionActivityStreams returns the deserialization method + // for the "ActivityStreamsCollection" non-functional property in the + // vocabulary "ActivityStreams" + DeserializeCollectionActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsCollection, error) + // DeserializeCollectionPageActivityStreams returns the deserialization + // method for the "ActivityStreamsCollectionPage" non-functional + // property in the vocabulary "ActivityStreams" + DeserializeCollectionPageActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsCollectionPage, error) + // DeserializeCommitForgeFed returns the deserialization method for the + // "ForgeFedCommit" non-functional property in the vocabulary + // "ForgeFed" + DeserializeCommitForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedCommit, error) + // DeserializeCreateActivityStreams returns the deserialization method for + // the "ActivityStreamsCreate" non-functional property in the + // vocabulary "ActivityStreams" + DeserializeCreateActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsCreate, error) + // DeserializeDeleteActivityStreams returns the deserialization method for + // the "ActivityStreamsDelete" non-functional property in the + // vocabulary "ActivityStreams" + DeserializeDeleteActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsDelete, error) + // DeserializeDislikeActivityStreams returns the deserialization method + // for the "ActivityStreamsDislike" non-functional property in the + // vocabulary "ActivityStreams" + DeserializeDislikeActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsDislike, error) + // DeserializeDocumentActivityStreams returns the deserialization method + // for the "ActivityStreamsDocument" non-functional property in the + // vocabulary "ActivityStreams" + DeserializeDocumentActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsDocument, error) + // DeserializeEmojiToot returns the deserialization method for the + // "TootEmoji" non-functional property in the vocabulary "Toot" + DeserializeEmojiToot() func(map[string]interface{}, map[string]string) (vocab.TootEmoji, error) + // DeserializeEventActivityStreams returns the deserialization method for + // the "ActivityStreamsEvent" non-functional property in the + // vocabulary "ActivityStreams" + DeserializeEventActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsEvent, error) + // DeserializeFlagActivityStreams returns the deserialization method for + // the "ActivityStreamsFlag" non-functional property in the vocabulary + // "ActivityStreams" + DeserializeFlagActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsFlag, error) + // DeserializeFollowActivityStreams returns the deserialization method for + // the "ActivityStreamsFollow" non-functional property in the + // vocabulary "ActivityStreams" + DeserializeFollowActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsFollow, error) + // DeserializeGroupActivityStreams returns the deserialization method for + // the "ActivityStreamsGroup" non-functional property in the + // vocabulary "ActivityStreams" + DeserializeGroupActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsGroup, error) + // DeserializeIdentityProofToot returns the deserialization method for the + // "TootIdentityProof" non-functional property in the vocabulary "Toot" + DeserializeIdentityProofToot() func(map[string]interface{}, map[string]string) (vocab.TootIdentityProof, error) + // DeserializeIgnoreActivityStreams returns the deserialization method for + // the "ActivityStreamsIgnore" non-functional property in the + // vocabulary "ActivityStreams" + DeserializeIgnoreActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsIgnore, error) + // DeserializeImageActivityStreams returns the deserialization method for + // the "ActivityStreamsImage" non-functional property in the + // vocabulary "ActivityStreams" + DeserializeImageActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsImage, error) + // DeserializeIntransitiveActivityActivityStreams returns the + // deserialization method for the + // "ActivityStreamsIntransitiveActivity" non-functional property in + // the vocabulary "ActivityStreams" + DeserializeIntransitiveActivityActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsIntransitiveActivity, error) + // DeserializeInviteActivityStreams returns the deserialization method for + // the "ActivityStreamsInvite" non-functional property in the + // vocabulary "ActivityStreams" + DeserializeInviteActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsInvite, error) + // DeserializeJoinActivityStreams returns the deserialization method for + // the "ActivityStreamsJoin" non-functional property in the vocabulary + // "ActivityStreams" + DeserializeJoinActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsJoin, error) + // DeserializeLeaveActivityStreams returns the deserialization method for + // the "ActivityStreamsLeave" non-functional property in the + // vocabulary "ActivityStreams" + DeserializeLeaveActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLeave, error) + // DeserializeLikeActivityStreams returns the deserialization method for + // the "ActivityStreamsLike" non-functional property in the vocabulary + // "ActivityStreams" + DeserializeLikeActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLike, error) + // DeserializeListenActivityStreams returns the deserialization method for + // the "ActivityStreamsListen" non-functional property in the + // vocabulary "ActivityStreams" + DeserializeListenActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsListen, error) + // DeserializeMoveActivityStreams returns the deserialization method for + // the "ActivityStreamsMove" non-functional property in the vocabulary + // "ActivityStreams" + DeserializeMoveActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsMove, error) + // DeserializeNoteActivityStreams returns the deserialization method for + // the "ActivityStreamsNote" non-functional property in the vocabulary + // "ActivityStreams" + DeserializeNoteActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsNote, error) + // DeserializeObjectActivityStreams returns the deserialization method for + // the "ActivityStreamsObject" non-functional property in the + // vocabulary "ActivityStreams" + DeserializeObjectActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsObject, error) + // DeserializeOfferActivityStreams returns the deserialization method for + // the "ActivityStreamsOffer" non-functional property in the + // vocabulary "ActivityStreams" + DeserializeOfferActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsOffer, error) + // DeserializeOrderedCollectionActivityStreams returns the deserialization + // method for the "ActivityStreamsOrderedCollection" non-functional + // property in the vocabulary "ActivityStreams" + DeserializeOrderedCollectionActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsOrderedCollection, error) + // DeserializeOrderedCollectionPageActivityStreams returns the + // deserialization method for the + // "ActivityStreamsOrderedCollectionPage" non-functional property in + // the vocabulary "ActivityStreams" + DeserializeOrderedCollectionPageActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsOrderedCollectionPage, error) + // DeserializeOrganizationActivityStreams returns the deserialization + // method for the "ActivityStreamsOrganization" non-functional + // property in the vocabulary "ActivityStreams" + DeserializeOrganizationActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsOrganization, error) + // DeserializePageActivityStreams returns the deserialization method for + // the "ActivityStreamsPage" non-functional property in the vocabulary + // "ActivityStreams" + DeserializePageActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsPage, error) + // DeserializePersonActivityStreams returns the deserialization method for + // the "ActivityStreamsPerson" non-functional property in the + // vocabulary "ActivityStreams" + DeserializePersonActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsPerson, error) + // DeserializePlaceActivityStreams returns the deserialization method for + // the "ActivityStreamsPlace" non-functional property in the + // vocabulary "ActivityStreams" + DeserializePlaceActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsPlace, error) + // DeserializeProfileActivityStreams returns the deserialization method + // for the "ActivityStreamsProfile" non-functional property in the + // vocabulary "ActivityStreams" + DeserializeProfileActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsProfile, error) + // DeserializePushForgeFed returns the deserialization method for the + // "ForgeFedPush" non-functional property in the vocabulary "ForgeFed" + DeserializePushForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedPush, error) + // DeserializeQuestionActivityStreams returns the deserialization method + // for the "ActivityStreamsQuestion" non-functional property in the + // vocabulary "ActivityStreams" + DeserializeQuestionActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsQuestion, error) + // DeserializeReadActivityStreams returns the deserialization method for + // the "ActivityStreamsRead" non-functional property in the vocabulary + // "ActivityStreams" + DeserializeReadActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsRead, error) + // DeserializeRejectActivityStreams returns the deserialization method for + // the "ActivityStreamsReject" non-functional property in the + // vocabulary "ActivityStreams" + DeserializeRejectActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsReject, error) + // DeserializeRelationshipActivityStreams returns the deserialization + // method for the "ActivityStreamsRelationship" non-functional + // property in the vocabulary "ActivityStreams" + DeserializeRelationshipActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsRelationship, error) + // DeserializeRemoveActivityStreams returns the deserialization method for + // the "ActivityStreamsRemove" non-functional property in the + // vocabulary "ActivityStreams" + DeserializeRemoveActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsRemove, error) + // DeserializeRepositoryForgeFed returns the deserialization method for + // the "ForgeFedRepository" non-functional property in the vocabulary + // "ForgeFed" + DeserializeRepositoryForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedRepository, error) + // DeserializeServiceActivityStreams returns the deserialization method + // for the "ActivityStreamsService" non-functional property in the + // vocabulary "ActivityStreams" + DeserializeServiceActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsService, error) + // DeserializeTentativeAcceptActivityStreams returns the deserialization + // method for the "ActivityStreamsTentativeAccept" non-functional + // property in the vocabulary "ActivityStreams" + DeserializeTentativeAcceptActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTentativeAccept, error) + // DeserializeTentativeRejectActivityStreams returns the deserialization + // method for the "ActivityStreamsTentativeReject" non-functional + // property in the vocabulary "ActivityStreams" + DeserializeTentativeRejectActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTentativeReject, error) + // DeserializeTicketDependencyForgeFed returns the deserialization method + // for the "ForgeFedTicketDependency" non-functional property in the + // vocabulary "ForgeFed" + DeserializeTicketDependencyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTicketDependency, error) + // DeserializeTicketForgeFed returns the deserialization method for the + // "ForgeFedTicket" non-functional property in the vocabulary + // "ForgeFed" + DeserializeTicketForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTicket, error) + // DeserializeTombstoneActivityStreams returns the deserialization method + // for the "ActivityStreamsTombstone" non-functional property in the + // vocabulary "ActivityStreams" + DeserializeTombstoneActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTombstone, error) + // DeserializeTravelActivityStreams returns the deserialization method for + // the "ActivityStreamsTravel" non-functional property in the + // vocabulary "ActivityStreams" + DeserializeTravelActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTravel, error) + // DeserializeUndoActivityStreams returns the deserialization method for + // the "ActivityStreamsUndo" non-functional property in the vocabulary + // "ActivityStreams" + DeserializeUndoActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsUndo, error) + // DeserializeUpdateActivityStreams returns the deserialization method for + // the "ActivityStreamsUpdate" non-functional property in the + // vocabulary "ActivityStreams" + DeserializeUpdateActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsUpdate, error) + // DeserializeVideoActivityStreams returns the deserialization method for + // the "ActivityStreamsVideo" non-functional property in the + // vocabulary "ActivityStreams" + DeserializeVideoActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsVideo, error) + // DeserializeViewActivityStreams returns the deserialization method for + // the "ActivityStreamsView" non-functional property in the vocabulary + // "ActivityStreams" + DeserializeViewActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsView, error) +} + +// SetManager sets the manager package-global variable. For internal use only, do +// not use as part of Application behavior. Must be called at golang init time. +func SetManager(m privateManager) { + mgr = m +} diff --git a/streams/impl/forgefed/property_description/gen_property_forgefed_description.go b/streams/impl/forgefed/property_description/gen_property_forgefed_description.go new file mode 100644 index 0000000..8e96d68 --- /dev/null +++ b/streams/impl/forgefed/property_description/gen_property_forgefed_description.go @@ -0,0 +1,2933 @@ +// Code generated by astool. DO NOT EDIT. + +package propertydescription + +import ( + "fmt" + vocab "github.com/go-fed/activity/streams/vocab" + "net/url" +) + +// ForgeFedDescriptionProperty is the functional property "description". It is +// permitted to be one of multiple value types. At most, one type of value can +// be present, or none at all. Setting a value will clear the other types of +// values so that only one of the 'Is' methods will return true. It is +// possible to clear all values, so that this property is empty. +type ForgeFedDescriptionProperty struct { + activitystreamsObjectMember vocab.ActivityStreamsObject + activitystreamsAcceptMember vocab.ActivityStreamsAccept + activitystreamsActivityMember vocab.ActivityStreamsActivity + activitystreamsAddMember vocab.ActivityStreamsAdd + activitystreamsAnnounceMember vocab.ActivityStreamsAnnounce + activitystreamsApplicationMember vocab.ActivityStreamsApplication + activitystreamsArriveMember vocab.ActivityStreamsArrive + activitystreamsArticleMember vocab.ActivityStreamsArticle + activitystreamsAudioMember vocab.ActivityStreamsAudio + activitystreamsBlockMember vocab.ActivityStreamsBlock + forgefedBranchMember vocab.ForgeFedBranch + activitystreamsCollectionMember vocab.ActivityStreamsCollection + activitystreamsCollectionPageMember vocab.ActivityStreamsCollectionPage + forgefedCommitMember vocab.ForgeFedCommit + activitystreamsCreateMember vocab.ActivityStreamsCreate + activitystreamsDeleteMember vocab.ActivityStreamsDelete + activitystreamsDislikeMember vocab.ActivityStreamsDislike + activitystreamsDocumentMember vocab.ActivityStreamsDocument + tootEmojiMember vocab.TootEmoji + activitystreamsEventMember vocab.ActivityStreamsEvent + activitystreamsFlagMember vocab.ActivityStreamsFlag + activitystreamsFollowMember vocab.ActivityStreamsFollow + activitystreamsGroupMember vocab.ActivityStreamsGroup + tootIdentityProofMember vocab.TootIdentityProof + activitystreamsIgnoreMember vocab.ActivityStreamsIgnore + activitystreamsImageMember vocab.ActivityStreamsImage + activitystreamsIntransitiveActivityMember vocab.ActivityStreamsIntransitiveActivity + activitystreamsInviteMember vocab.ActivityStreamsInvite + activitystreamsJoinMember vocab.ActivityStreamsJoin + activitystreamsLeaveMember vocab.ActivityStreamsLeave + activitystreamsLikeMember vocab.ActivityStreamsLike + activitystreamsListenMember vocab.ActivityStreamsListen + activitystreamsMoveMember vocab.ActivityStreamsMove + activitystreamsNoteMember vocab.ActivityStreamsNote + activitystreamsOfferMember vocab.ActivityStreamsOffer + activitystreamsOrderedCollectionMember vocab.ActivityStreamsOrderedCollection + activitystreamsOrderedCollectionPageMember vocab.ActivityStreamsOrderedCollectionPage + activitystreamsOrganizationMember vocab.ActivityStreamsOrganization + activitystreamsPageMember vocab.ActivityStreamsPage + activitystreamsPersonMember vocab.ActivityStreamsPerson + activitystreamsPlaceMember vocab.ActivityStreamsPlace + activitystreamsProfileMember vocab.ActivityStreamsProfile + forgefedPushMember vocab.ForgeFedPush + activitystreamsQuestionMember vocab.ActivityStreamsQuestion + activitystreamsReadMember vocab.ActivityStreamsRead + activitystreamsRejectMember vocab.ActivityStreamsReject + activitystreamsRelationshipMember vocab.ActivityStreamsRelationship + activitystreamsRemoveMember vocab.ActivityStreamsRemove + forgefedRepositoryMember vocab.ForgeFedRepository + activitystreamsServiceMember vocab.ActivityStreamsService + activitystreamsTentativeAcceptMember vocab.ActivityStreamsTentativeAccept + activitystreamsTentativeRejectMember vocab.ActivityStreamsTentativeReject + forgefedTicketMember vocab.ForgeFedTicket + forgefedTicketDependencyMember vocab.ForgeFedTicketDependency + activitystreamsTombstoneMember vocab.ActivityStreamsTombstone + activitystreamsTravelMember vocab.ActivityStreamsTravel + activitystreamsUndoMember vocab.ActivityStreamsUndo + activitystreamsUpdateMember vocab.ActivityStreamsUpdate + activitystreamsVideoMember vocab.ActivityStreamsVideo + activitystreamsViewMember vocab.ActivityStreamsView + unknown interface{} + iri *url.URL + alias string +} + +// DeserializeDescriptionProperty creates a "description" property from an +// interface representation that has been unmarshalled from a text or binary +// format. +func DeserializeDescriptionProperty(m map[string]interface{}, aliasMap map[string]string) (*ForgeFedDescriptionProperty, error) { + alias := "" + if a, ok := aliasMap["https://forgefed.peers.community/ns"]; ok { + alias = a + } + propName := "description" + if len(alias) > 0 { + // Use alias both to find the property, and set within the property. + propName = fmt.Sprintf("%s:%s", alias, "description") + } + i, ok := m[propName] + + if ok { + if s, ok := i.(string); ok { + u, err := url.Parse(s) + // If error exists, don't error out -- skip this and treat as unknown string ([]byte) at worst + // Also, if no scheme exists, don't treat it as a URL -- net/url is greedy + if err == nil && len(u.Scheme) > 0 { + this := &ForgeFedDescriptionProperty{ + alias: alias, + iri: u, + } + return this, nil + } + } + if m, ok := i.(map[string]interface{}); ok { + if v, err := mgr.DeserializeObjectActivityStreams()(m, aliasMap); err == nil { + this := &ForgeFedDescriptionProperty{ + activitystreamsObjectMember: v, + alias: alias, + } + return this, nil + } else if v, err := mgr.DeserializeAcceptActivityStreams()(m, aliasMap); err == nil { + this := &ForgeFedDescriptionProperty{ + activitystreamsAcceptMember: v, + alias: alias, + } + return this, nil + } else if v, err := mgr.DeserializeActivityActivityStreams()(m, aliasMap); err == nil { + this := &ForgeFedDescriptionProperty{ + activitystreamsActivityMember: v, + alias: alias, + } + return this, nil + } else if v, err := mgr.DeserializeAddActivityStreams()(m, aliasMap); err == nil { + this := &ForgeFedDescriptionProperty{ + activitystreamsAddMember: v, + alias: alias, + } + return this, nil + } else if v, err := mgr.DeserializeAnnounceActivityStreams()(m, aliasMap); err == nil { + this := &ForgeFedDescriptionProperty{ + activitystreamsAnnounceMember: v, + alias: alias, + } + return this, nil + } else if v, err := mgr.DeserializeApplicationActivityStreams()(m, aliasMap); err == nil { + this := &ForgeFedDescriptionProperty{ + activitystreamsApplicationMember: v, + alias: alias, + } + return this, nil + } else if v, err := mgr.DeserializeArriveActivityStreams()(m, aliasMap); err == nil { + this := &ForgeFedDescriptionProperty{ + activitystreamsArriveMember: v, + alias: alias, + } + return this, nil + } else if v, err := mgr.DeserializeArticleActivityStreams()(m, aliasMap); err == nil { + this := &ForgeFedDescriptionProperty{ + activitystreamsArticleMember: v, + alias: alias, + } + return this, nil + } else if v, err := mgr.DeserializeAudioActivityStreams()(m, aliasMap); err == nil { + this := &ForgeFedDescriptionProperty{ + activitystreamsAudioMember: v, + alias: alias, + } + return this, nil + } else if v, err := mgr.DeserializeBlockActivityStreams()(m, aliasMap); err == nil { + this := &ForgeFedDescriptionProperty{ + activitystreamsBlockMember: v, + alias: alias, + } + return this, nil + } else if v, err := mgr.DeserializeBranchForgeFed()(m, aliasMap); err == nil { + this := &ForgeFedDescriptionProperty{ + alias: alias, + forgefedBranchMember: v, + } + return this, nil + } else if v, err := mgr.DeserializeCollectionActivityStreams()(m, aliasMap); err == nil { + this := &ForgeFedDescriptionProperty{ + activitystreamsCollectionMember: v, + alias: alias, + } + return this, nil + } else if v, err := mgr.DeserializeCollectionPageActivityStreams()(m, aliasMap); err == nil { + this := &ForgeFedDescriptionProperty{ + activitystreamsCollectionPageMember: v, + alias: alias, + } + return this, nil + } else if v, err := mgr.DeserializeCommitForgeFed()(m, aliasMap); err == nil { + this := &ForgeFedDescriptionProperty{ + alias: alias, + forgefedCommitMember: v, + } + return this, nil + } else if v, err := mgr.DeserializeCreateActivityStreams()(m, aliasMap); err == nil { + this := &ForgeFedDescriptionProperty{ + activitystreamsCreateMember: v, + alias: alias, + } + return this, nil + } else if v, err := mgr.DeserializeDeleteActivityStreams()(m, aliasMap); err == nil { + this := &ForgeFedDescriptionProperty{ + activitystreamsDeleteMember: v, + alias: alias, + } + return this, nil + } else if v, err := mgr.DeserializeDislikeActivityStreams()(m, aliasMap); err == nil { + this := &ForgeFedDescriptionProperty{ + activitystreamsDislikeMember: v, + alias: alias, + } + return this, nil + } else if v, err := mgr.DeserializeDocumentActivityStreams()(m, aliasMap); err == nil { + this := &ForgeFedDescriptionProperty{ + activitystreamsDocumentMember: v, + alias: alias, + } + return this, nil + } else if v, err := mgr.DeserializeEmojiToot()(m, aliasMap); err == nil { + this := &ForgeFedDescriptionProperty{ + alias: alias, + tootEmojiMember: v, + } + return this, nil + } else if v, err := mgr.DeserializeEventActivityStreams()(m, aliasMap); err == nil { + this := &ForgeFedDescriptionProperty{ + activitystreamsEventMember: v, + alias: alias, + } + return this, nil + } else if v, err := mgr.DeserializeFlagActivityStreams()(m, aliasMap); err == nil { + this := &ForgeFedDescriptionProperty{ + activitystreamsFlagMember: v, + alias: alias, + } + return this, nil + } else if v, err := mgr.DeserializeFollowActivityStreams()(m, aliasMap); err == nil { + this := &ForgeFedDescriptionProperty{ + activitystreamsFollowMember: v, + alias: alias, + } + return this, nil + } else if v, err := mgr.DeserializeGroupActivityStreams()(m, aliasMap); err == nil { + this := &ForgeFedDescriptionProperty{ + activitystreamsGroupMember: v, + alias: alias, + } + return this, nil + } else if v, err := mgr.DeserializeIdentityProofToot()(m, aliasMap); err == nil { + this := &ForgeFedDescriptionProperty{ + alias: alias, + tootIdentityProofMember: v, + } + return this, nil + } else if v, err := mgr.DeserializeIgnoreActivityStreams()(m, aliasMap); err == nil { + this := &ForgeFedDescriptionProperty{ + activitystreamsIgnoreMember: v, + alias: alias, + } + return this, nil + } else if v, err := mgr.DeserializeImageActivityStreams()(m, aliasMap); err == nil { + this := &ForgeFedDescriptionProperty{ + activitystreamsImageMember: v, + alias: alias, + } + return this, nil + } else if v, err := mgr.DeserializeIntransitiveActivityActivityStreams()(m, aliasMap); err == nil { + this := &ForgeFedDescriptionProperty{ + activitystreamsIntransitiveActivityMember: v, + alias: alias, + } + return this, nil + } else if v, err := mgr.DeserializeInviteActivityStreams()(m, aliasMap); err == nil { + this := &ForgeFedDescriptionProperty{ + activitystreamsInviteMember: v, + alias: alias, + } + return this, nil + } else if v, err := mgr.DeserializeJoinActivityStreams()(m, aliasMap); err == nil { + this := &ForgeFedDescriptionProperty{ + activitystreamsJoinMember: v, + alias: alias, + } + return this, nil + } else if v, err := mgr.DeserializeLeaveActivityStreams()(m, aliasMap); err == nil { + this := &ForgeFedDescriptionProperty{ + activitystreamsLeaveMember: v, + alias: alias, + } + return this, nil + } else if v, err := mgr.DeserializeLikeActivityStreams()(m, aliasMap); err == nil { + this := &ForgeFedDescriptionProperty{ + activitystreamsLikeMember: v, + alias: alias, + } + return this, nil + } else if v, err := mgr.DeserializeListenActivityStreams()(m, aliasMap); err == nil { + this := &ForgeFedDescriptionProperty{ + activitystreamsListenMember: v, + alias: alias, + } + return this, nil + } else if v, err := mgr.DeserializeMoveActivityStreams()(m, aliasMap); err == nil { + this := &ForgeFedDescriptionProperty{ + activitystreamsMoveMember: v, + alias: alias, + } + return this, nil + } else if v, err := mgr.DeserializeNoteActivityStreams()(m, aliasMap); err == nil { + this := &ForgeFedDescriptionProperty{ + activitystreamsNoteMember: v, + alias: alias, + } + return this, nil + } else if v, err := mgr.DeserializeOfferActivityStreams()(m, aliasMap); err == nil { + this := &ForgeFedDescriptionProperty{ + activitystreamsOfferMember: v, + alias: alias, + } + return this, nil + } else if v, err := mgr.DeserializeOrderedCollectionActivityStreams()(m, aliasMap); err == nil { + this := &ForgeFedDescriptionProperty{ + activitystreamsOrderedCollectionMember: v, + alias: alias, + } + return this, nil + } else if v, err := mgr.DeserializeOrderedCollectionPageActivityStreams()(m, aliasMap); err == nil { + this := &ForgeFedDescriptionProperty{ + activitystreamsOrderedCollectionPageMember: v, + alias: alias, + } + return this, nil + } else if v, err := mgr.DeserializeOrganizationActivityStreams()(m, aliasMap); err == nil { + this := &ForgeFedDescriptionProperty{ + activitystreamsOrganizationMember: v, + alias: alias, + } + return this, nil + } else if v, err := mgr.DeserializePageActivityStreams()(m, aliasMap); err == nil { + this := &ForgeFedDescriptionProperty{ + activitystreamsPageMember: v, + alias: alias, + } + return this, nil + } else if v, err := mgr.DeserializePersonActivityStreams()(m, aliasMap); err == nil { + this := &ForgeFedDescriptionProperty{ + activitystreamsPersonMember: v, + alias: alias, + } + return this, nil + } else if v, err := mgr.DeserializePlaceActivityStreams()(m, aliasMap); err == nil { + this := &ForgeFedDescriptionProperty{ + activitystreamsPlaceMember: v, + alias: alias, + } + return this, nil + } else if v, err := mgr.DeserializeProfileActivityStreams()(m, aliasMap); err == nil { + this := &ForgeFedDescriptionProperty{ + activitystreamsProfileMember: v, + alias: alias, + } + return this, nil + } else if v, err := mgr.DeserializePushForgeFed()(m, aliasMap); err == nil { + this := &ForgeFedDescriptionProperty{ + alias: alias, + forgefedPushMember: v, + } + return this, nil + } else if v, err := mgr.DeserializeQuestionActivityStreams()(m, aliasMap); err == nil { + this := &ForgeFedDescriptionProperty{ + activitystreamsQuestionMember: v, + alias: alias, + } + return this, nil + } else if v, err := mgr.DeserializeReadActivityStreams()(m, aliasMap); err == nil { + this := &ForgeFedDescriptionProperty{ + activitystreamsReadMember: v, + alias: alias, + } + return this, nil + } else if v, err := mgr.DeserializeRejectActivityStreams()(m, aliasMap); err == nil { + this := &ForgeFedDescriptionProperty{ + activitystreamsRejectMember: v, + alias: alias, + } + return this, nil + } else if v, err := mgr.DeserializeRelationshipActivityStreams()(m, aliasMap); err == nil { + this := &ForgeFedDescriptionProperty{ + activitystreamsRelationshipMember: v, + alias: alias, + } + return this, nil + } else if v, err := mgr.DeserializeRemoveActivityStreams()(m, aliasMap); err == nil { + this := &ForgeFedDescriptionProperty{ + activitystreamsRemoveMember: v, + alias: alias, + } + return this, nil + } else if v, err := mgr.DeserializeRepositoryForgeFed()(m, aliasMap); err == nil { + this := &ForgeFedDescriptionProperty{ + alias: alias, + forgefedRepositoryMember: v, + } + return this, nil + } else if v, err := mgr.DeserializeServiceActivityStreams()(m, aliasMap); err == nil { + this := &ForgeFedDescriptionProperty{ + activitystreamsServiceMember: v, + alias: alias, + } + return this, nil + } else if v, err := mgr.DeserializeTentativeAcceptActivityStreams()(m, aliasMap); err == nil { + this := &ForgeFedDescriptionProperty{ + activitystreamsTentativeAcceptMember: v, + alias: alias, + } + return this, nil + } else if v, err := mgr.DeserializeTentativeRejectActivityStreams()(m, aliasMap); err == nil { + this := &ForgeFedDescriptionProperty{ + activitystreamsTentativeRejectMember: v, + alias: alias, + } + return this, nil + } else if v, err := mgr.DeserializeTicketForgeFed()(m, aliasMap); err == nil { + this := &ForgeFedDescriptionProperty{ + alias: alias, + forgefedTicketMember: v, + } + return this, nil + } else if v, err := mgr.DeserializeTicketDependencyForgeFed()(m, aliasMap); err == nil { + this := &ForgeFedDescriptionProperty{ + alias: alias, + forgefedTicketDependencyMember: v, + } + return this, nil + } else if v, err := mgr.DeserializeTombstoneActivityStreams()(m, aliasMap); err == nil { + this := &ForgeFedDescriptionProperty{ + activitystreamsTombstoneMember: v, + alias: alias, + } + return this, nil + } else if v, err := mgr.DeserializeTravelActivityStreams()(m, aliasMap); err == nil { + this := &ForgeFedDescriptionProperty{ + activitystreamsTravelMember: v, + alias: alias, + } + return this, nil + } else if v, err := mgr.DeserializeUndoActivityStreams()(m, aliasMap); err == nil { + this := &ForgeFedDescriptionProperty{ + activitystreamsUndoMember: v, + alias: alias, + } + return this, nil + } else if v, err := mgr.DeserializeUpdateActivityStreams()(m, aliasMap); err == nil { + this := &ForgeFedDescriptionProperty{ + activitystreamsUpdateMember: v, + alias: alias, + } + return this, nil + } else if v, err := mgr.DeserializeVideoActivityStreams()(m, aliasMap); err == nil { + this := &ForgeFedDescriptionProperty{ + activitystreamsVideoMember: v, + alias: alias, + } + return this, nil + } else if v, err := mgr.DeserializeViewActivityStreams()(m, aliasMap); err == nil { + this := &ForgeFedDescriptionProperty{ + activitystreamsViewMember: v, + alias: alias, + } + return this, nil + } + } + this := &ForgeFedDescriptionProperty{ + alias: alias, + unknown: i, + } + return this, nil + } + return nil, nil +} + +// NewForgeFedDescriptionProperty creates a new description property. +func NewForgeFedDescriptionProperty() *ForgeFedDescriptionProperty { + return &ForgeFedDescriptionProperty{alias: ""} +} + +// Clear ensures no value of this property is set. Calling HasAny or any of the +// 'Is' methods afterwards will return false. +func (this *ForgeFedDescriptionProperty) Clear() { + this.activitystreamsObjectMember = nil + this.activitystreamsAcceptMember = nil + this.activitystreamsActivityMember = nil + this.activitystreamsAddMember = nil + this.activitystreamsAnnounceMember = nil + this.activitystreamsApplicationMember = nil + this.activitystreamsArriveMember = nil + this.activitystreamsArticleMember = nil + this.activitystreamsAudioMember = nil + this.activitystreamsBlockMember = nil + this.forgefedBranchMember = nil + this.activitystreamsCollectionMember = nil + this.activitystreamsCollectionPageMember = nil + this.forgefedCommitMember = nil + this.activitystreamsCreateMember = nil + this.activitystreamsDeleteMember = nil + this.activitystreamsDislikeMember = nil + this.activitystreamsDocumentMember = nil + this.tootEmojiMember = nil + this.activitystreamsEventMember = nil + this.activitystreamsFlagMember = nil + this.activitystreamsFollowMember = nil + this.activitystreamsGroupMember = nil + this.tootIdentityProofMember = nil + this.activitystreamsIgnoreMember = nil + this.activitystreamsImageMember = nil + this.activitystreamsIntransitiveActivityMember = nil + this.activitystreamsInviteMember = nil + this.activitystreamsJoinMember = nil + this.activitystreamsLeaveMember = nil + this.activitystreamsLikeMember = nil + this.activitystreamsListenMember = nil + this.activitystreamsMoveMember = nil + this.activitystreamsNoteMember = nil + this.activitystreamsOfferMember = nil + this.activitystreamsOrderedCollectionMember = nil + this.activitystreamsOrderedCollectionPageMember = nil + this.activitystreamsOrganizationMember = nil + this.activitystreamsPageMember = nil + this.activitystreamsPersonMember = nil + this.activitystreamsPlaceMember = nil + this.activitystreamsProfileMember = nil + this.forgefedPushMember = nil + this.activitystreamsQuestionMember = nil + this.activitystreamsReadMember = nil + this.activitystreamsRejectMember = nil + this.activitystreamsRelationshipMember = nil + this.activitystreamsRemoveMember = nil + this.forgefedRepositoryMember = nil + this.activitystreamsServiceMember = nil + this.activitystreamsTentativeAcceptMember = nil + this.activitystreamsTentativeRejectMember = nil + this.forgefedTicketMember = nil + this.forgefedTicketDependencyMember = nil + this.activitystreamsTombstoneMember = nil + this.activitystreamsTravelMember = nil + this.activitystreamsUndoMember = nil + this.activitystreamsUpdateMember = nil + this.activitystreamsVideoMember = nil + this.activitystreamsViewMember = nil + this.unknown = nil + this.iri = nil +} + +// GetActivityStreamsAccept returns the value of this property. When +// IsActivityStreamsAccept returns false, GetActivityStreamsAccept will return +// an arbitrary value. +func (this ForgeFedDescriptionProperty) GetActivityStreamsAccept() vocab.ActivityStreamsAccept { + return this.activitystreamsAcceptMember +} + +// GetActivityStreamsActivity returns the value of this property. When +// IsActivityStreamsActivity returns false, GetActivityStreamsActivity will +// return an arbitrary value. +func (this ForgeFedDescriptionProperty) GetActivityStreamsActivity() vocab.ActivityStreamsActivity { + return this.activitystreamsActivityMember +} + +// GetActivityStreamsAdd returns the value of this property. When +// IsActivityStreamsAdd returns false, GetActivityStreamsAdd will return an +// arbitrary value. +func (this ForgeFedDescriptionProperty) GetActivityStreamsAdd() vocab.ActivityStreamsAdd { + return this.activitystreamsAddMember +} + +// GetActivityStreamsAnnounce returns the value of this property. When +// IsActivityStreamsAnnounce returns false, GetActivityStreamsAnnounce will +// return an arbitrary value. +func (this ForgeFedDescriptionProperty) GetActivityStreamsAnnounce() vocab.ActivityStreamsAnnounce { + return this.activitystreamsAnnounceMember +} + +// GetActivityStreamsApplication returns the value of this property. When +// IsActivityStreamsApplication returns false, GetActivityStreamsApplication +// will return an arbitrary value. +func (this ForgeFedDescriptionProperty) GetActivityStreamsApplication() vocab.ActivityStreamsApplication { + return this.activitystreamsApplicationMember +} + +// GetActivityStreamsArrive returns the value of this property. When +// IsActivityStreamsArrive returns false, GetActivityStreamsArrive will return +// an arbitrary value. +func (this ForgeFedDescriptionProperty) GetActivityStreamsArrive() vocab.ActivityStreamsArrive { + return this.activitystreamsArriveMember +} + +// GetActivityStreamsArticle returns the value of this property. When +// IsActivityStreamsArticle returns false, GetActivityStreamsArticle will +// return an arbitrary value. +func (this ForgeFedDescriptionProperty) GetActivityStreamsArticle() vocab.ActivityStreamsArticle { + return this.activitystreamsArticleMember +} + +// GetActivityStreamsAudio returns the value of this property. When +// IsActivityStreamsAudio returns false, GetActivityStreamsAudio will return +// an arbitrary value. +func (this ForgeFedDescriptionProperty) GetActivityStreamsAudio() vocab.ActivityStreamsAudio { + return this.activitystreamsAudioMember +} + +// GetActivityStreamsBlock returns the value of this property. When +// IsActivityStreamsBlock returns false, GetActivityStreamsBlock will return +// an arbitrary value. +func (this ForgeFedDescriptionProperty) GetActivityStreamsBlock() vocab.ActivityStreamsBlock { + return this.activitystreamsBlockMember +} + +// GetActivityStreamsCollection returns the value of this property. When +// IsActivityStreamsCollection returns false, GetActivityStreamsCollection +// will return an arbitrary value. +func (this ForgeFedDescriptionProperty) GetActivityStreamsCollection() vocab.ActivityStreamsCollection { + return this.activitystreamsCollectionMember +} + +// GetActivityStreamsCollectionPage returns the value of this property. When +// IsActivityStreamsCollectionPage returns false, +// GetActivityStreamsCollectionPage will return an arbitrary value. +func (this ForgeFedDescriptionProperty) GetActivityStreamsCollectionPage() vocab.ActivityStreamsCollectionPage { + return this.activitystreamsCollectionPageMember +} + +// GetActivityStreamsCreate returns the value of this property. When +// IsActivityStreamsCreate returns false, GetActivityStreamsCreate will return +// an arbitrary value. +func (this ForgeFedDescriptionProperty) GetActivityStreamsCreate() vocab.ActivityStreamsCreate { + return this.activitystreamsCreateMember +} + +// GetActivityStreamsDelete returns the value of this property. When +// IsActivityStreamsDelete returns false, GetActivityStreamsDelete will return +// an arbitrary value. +func (this ForgeFedDescriptionProperty) GetActivityStreamsDelete() vocab.ActivityStreamsDelete { + return this.activitystreamsDeleteMember +} + +// GetActivityStreamsDislike returns the value of this property. When +// IsActivityStreamsDislike returns false, GetActivityStreamsDislike will +// return an arbitrary value. +func (this ForgeFedDescriptionProperty) GetActivityStreamsDislike() vocab.ActivityStreamsDislike { + return this.activitystreamsDislikeMember +} + +// GetActivityStreamsDocument returns the value of this property. When +// IsActivityStreamsDocument returns false, GetActivityStreamsDocument will +// return an arbitrary value. +func (this ForgeFedDescriptionProperty) GetActivityStreamsDocument() vocab.ActivityStreamsDocument { + return this.activitystreamsDocumentMember +} + +// GetActivityStreamsEvent returns the value of this property. When +// IsActivityStreamsEvent returns false, GetActivityStreamsEvent will return +// an arbitrary value. +func (this ForgeFedDescriptionProperty) GetActivityStreamsEvent() vocab.ActivityStreamsEvent { + return this.activitystreamsEventMember +} + +// GetActivityStreamsFlag returns the value of this property. When +// IsActivityStreamsFlag returns false, GetActivityStreamsFlag will return an +// arbitrary value. +func (this ForgeFedDescriptionProperty) GetActivityStreamsFlag() vocab.ActivityStreamsFlag { + return this.activitystreamsFlagMember +} + +// GetActivityStreamsFollow returns the value of this property. When +// IsActivityStreamsFollow returns false, GetActivityStreamsFollow will return +// an arbitrary value. +func (this ForgeFedDescriptionProperty) GetActivityStreamsFollow() vocab.ActivityStreamsFollow { + return this.activitystreamsFollowMember +} + +// GetActivityStreamsGroup returns the value of this property. When +// IsActivityStreamsGroup returns false, GetActivityStreamsGroup will return +// an arbitrary value. +func (this ForgeFedDescriptionProperty) GetActivityStreamsGroup() vocab.ActivityStreamsGroup { + return this.activitystreamsGroupMember +} + +// GetActivityStreamsIgnore returns the value of this property. When +// IsActivityStreamsIgnore returns false, GetActivityStreamsIgnore will return +// an arbitrary value. +func (this ForgeFedDescriptionProperty) GetActivityStreamsIgnore() vocab.ActivityStreamsIgnore { + return this.activitystreamsIgnoreMember +} + +// GetActivityStreamsImage returns the value of this property. When +// IsActivityStreamsImage returns false, GetActivityStreamsImage will return +// an arbitrary value. +func (this ForgeFedDescriptionProperty) GetActivityStreamsImage() vocab.ActivityStreamsImage { + return this.activitystreamsImageMember +} + +// GetActivityStreamsIntransitiveActivity returns the value of this property. When +// IsActivityStreamsIntransitiveActivity returns false, +// GetActivityStreamsIntransitiveActivity will return an arbitrary value. +func (this ForgeFedDescriptionProperty) GetActivityStreamsIntransitiveActivity() vocab.ActivityStreamsIntransitiveActivity { + return this.activitystreamsIntransitiveActivityMember +} + +// GetActivityStreamsInvite returns the value of this property. When +// IsActivityStreamsInvite returns false, GetActivityStreamsInvite will return +// an arbitrary value. +func (this ForgeFedDescriptionProperty) GetActivityStreamsInvite() vocab.ActivityStreamsInvite { + return this.activitystreamsInviteMember +} + +// GetActivityStreamsJoin returns the value of this property. When +// IsActivityStreamsJoin returns false, GetActivityStreamsJoin will return an +// arbitrary value. +func (this ForgeFedDescriptionProperty) GetActivityStreamsJoin() vocab.ActivityStreamsJoin { + return this.activitystreamsJoinMember +} + +// GetActivityStreamsLeave returns the value of this property. When +// IsActivityStreamsLeave returns false, GetActivityStreamsLeave will return +// an arbitrary value. +func (this ForgeFedDescriptionProperty) GetActivityStreamsLeave() vocab.ActivityStreamsLeave { + return this.activitystreamsLeaveMember +} + +// GetActivityStreamsLike returns the value of this property. When +// IsActivityStreamsLike returns false, GetActivityStreamsLike will return an +// arbitrary value. +func (this ForgeFedDescriptionProperty) GetActivityStreamsLike() vocab.ActivityStreamsLike { + return this.activitystreamsLikeMember +} + +// GetActivityStreamsListen returns the value of this property. When +// IsActivityStreamsListen returns false, GetActivityStreamsListen will return +// an arbitrary value. +func (this ForgeFedDescriptionProperty) GetActivityStreamsListen() vocab.ActivityStreamsListen { + return this.activitystreamsListenMember +} + +// GetActivityStreamsMove returns the value of this property. When +// IsActivityStreamsMove returns false, GetActivityStreamsMove will return an +// arbitrary value. +func (this ForgeFedDescriptionProperty) GetActivityStreamsMove() vocab.ActivityStreamsMove { + return this.activitystreamsMoveMember +} + +// GetActivityStreamsNote returns the value of this property. When +// IsActivityStreamsNote returns false, GetActivityStreamsNote will return an +// arbitrary value. +func (this ForgeFedDescriptionProperty) GetActivityStreamsNote() vocab.ActivityStreamsNote { + return this.activitystreamsNoteMember +} + +// GetActivityStreamsObject returns the value of this property. When +// IsActivityStreamsObject returns false, GetActivityStreamsObject will return +// an arbitrary value. +func (this ForgeFedDescriptionProperty) GetActivityStreamsObject() vocab.ActivityStreamsObject { + return this.activitystreamsObjectMember +} + +// GetActivityStreamsOffer returns the value of this property. When +// IsActivityStreamsOffer returns false, GetActivityStreamsOffer will return +// an arbitrary value. +func (this ForgeFedDescriptionProperty) GetActivityStreamsOffer() vocab.ActivityStreamsOffer { + return this.activitystreamsOfferMember +} + +// GetActivityStreamsOrderedCollection returns the value of this property. When +// IsActivityStreamsOrderedCollection returns false, +// GetActivityStreamsOrderedCollection will return an arbitrary value. +func (this ForgeFedDescriptionProperty) GetActivityStreamsOrderedCollection() vocab.ActivityStreamsOrderedCollection { + return this.activitystreamsOrderedCollectionMember +} + +// GetActivityStreamsOrderedCollectionPage returns the value of this property. +// When IsActivityStreamsOrderedCollectionPage returns false, +// GetActivityStreamsOrderedCollectionPage will return an arbitrary value. +func (this ForgeFedDescriptionProperty) GetActivityStreamsOrderedCollectionPage() vocab.ActivityStreamsOrderedCollectionPage { + return this.activitystreamsOrderedCollectionPageMember +} + +// GetActivityStreamsOrganization returns the value of this property. When +// IsActivityStreamsOrganization returns false, GetActivityStreamsOrganization +// will return an arbitrary value. +func (this ForgeFedDescriptionProperty) GetActivityStreamsOrganization() vocab.ActivityStreamsOrganization { + return this.activitystreamsOrganizationMember +} + +// GetActivityStreamsPage returns the value of this property. When +// IsActivityStreamsPage returns false, GetActivityStreamsPage will return an +// arbitrary value. +func (this ForgeFedDescriptionProperty) GetActivityStreamsPage() vocab.ActivityStreamsPage { + return this.activitystreamsPageMember +} + +// GetActivityStreamsPerson returns the value of this property. When +// IsActivityStreamsPerson returns false, GetActivityStreamsPerson will return +// an arbitrary value. +func (this ForgeFedDescriptionProperty) GetActivityStreamsPerson() vocab.ActivityStreamsPerson { + return this.activitystreamsPersonMember +} + +// GetActivityStreamsPlace returns the value of this property. When +// IsActivityStreamsPlace returns false, GetActivityStreamsPlace will return +// an arbitrary value. +func (this ForgeFedDescriptionProperty) GetActivityStreamsPlace() vocab.ActivityStreamsPlace { + return this.activitystreamsPlaceMember +} + +// GetActivityStreamsProfile returns the value of this property. When +// IsActivityStreamsProfile returns false, GetActivityStreamsProfile will +// return an arbitrary value. +func (this ForgeFedDescriptionProperty) GetActivityStreamsProfile() vocab.ActivityStreamsProfile { + return this.activitystreamsProfileMember +} + +// GetActivityStreamsQuestion returns the value of this property. When +// IsActivityStreamsQuestion returns false, GetActivityStreamsQuestion will +// return an arbitrary value. +func (this ForgeFedDescriptionProperty) GetActivityStreamsQuestion() vocab.ActivityStreamsQuestion { + return this.activitystreamsQuestionMember +} + +// GetActivityStreamsRead returns the value of this property. When +// IsActivityStreamsRead returns false, GetActivityStreamsRead will return an +// arbitrary value. +func (this ForgeFedDescriptionProperty) GetActivityStreamsRead() vocab.ActivityStreamsRead { + return this.activitystreamsReadMember +} + +// GetActivityStreamsReject returns the value of this property. When +// IsActivityStreamsReject returns false, GetActivityStreamsReject will return +// an arbitrary value. +func (this ForgeFedDescriptionProperty) GetActivityStreamsReject() vocab.ActivityStreamsReject { + return this.activitystreamsRejectMember +} + +// GetActivityStreamsRelationship returns the value of this property. When +// IsActivityStreamsRelationship returns false, GetActivityStreamsRelationship +// will return an arbitrary value. +func (this ForgeFedDescriptionProperty) GetActivityStreamsRelationship() vocab.ActivityStreamsRelationship { + return this.activitystreamsRelationshipMember +} + +// GetActivityStreamsRemove returns the value of this property. When +// IsActivityStreamsRemove returns false, GetActivityStreamsRemove will return +// an arbitrary value. +func (this ForgeFedDescriptionProperty) GetActivityStreamsRemove() vocab.ActivityStreamsRemove { + return this.activitystreamsRemoveMember +} + +// GetActivityStreamsService returns the value of this property. When +// IsActivityStreamsService returns false, GetActivityStreamsService will +// return an arbitrary value. +func (this ForgeFedDescriptionProperty) GetActivityStreamsService() vocab.ActivityStreamsService { + return this.activitystreamsServiceMember +} + +// GetActivityStreamsTentativeAccept returns the value of this property. When +// IsActivityStreamsTentativeAccept returns false, +// GetActivityStreamsTentativeAccept will return an arbitrary value. +func (this ForgeFedDescriptionProperty) GetActivityStreamsTentativeAccept() vocab.ActivityStreamsTentativeAccept { + return this.activitystreamsTentativeAcceptMember +} + +// GetActivityStreamsTentativeReject returns the value of this property. When +// IsActivityStreamsTentativeReject returns false, +// GetActivityStreamsTentativeReject will return an arbitrary value. +func (this ForgeFedDescriptionProperty) GetActivityStreamsTentativeReject() vocab.ActivityStreamsTentativeReject { + return this.activitystreamsTentativeRejectMember +} + +// GetActivityStreamsTombstone returns the value of this property. When +// IsActivityStreamsTombstone returns false, GetActivityStreamsTombstone will +// return an arbitrary value. +func (this ForgeFedDescriptionProperty) GetActivityStreamsTombstone() vocab.ActivityStreamsTombstone { + return this.activitystreamsTombstoneMember +} + +// GetActivityStreamsTravel returns the value of this property. When +// IsActivityStreamsTravel returns false, GetActivityStreamsTravel will return +// an arbitrary value. +func (this ForgeFedDescriptionProperty) GetActivityStreamsTravel() vocab.ActivityStreamsTravel { + return this.activitystreamsTravelMember +} + +// GetActivityStreamsUndo returns the value of this property. When +// IsActivityStreamsUndo returns false, GetActivityStreamsUndo will return an +// arbitrary value. +func (this ForgeFedDescriptionProperty) GetActivityStreamsUndo() vocab.ActivityStreamsUndo { + return this.activitystreamsUndoMember +} + +// GetActivityStreamsUpdate returns the value of this property. When +// IsActivityStreamsUpdate returns false, GetActivityStreamsUpdate will return +// an arbitrary value. +func (this ForgeFedDescriptionProperty) GetActivityStreamsUpdate() vocab.ActivityStreamsUpdate { + return this.activitystreamsUpdateMember +} + +// GetActivityStreamsVideo returns the value of this property. When +// IsActivityStreamsVideo returns false, GetActivityStreamsVideo will return +// an arbitrary value. +func (this ForgeFedDescriptionProperty) GetActivityStreamsVideo() vocab.ActivityStreamsVideo { + return this.activitystreamsVideoMember +} + +// GetActivityStreamsView returns the value of this property. When +// IsActivityStreamsView returns false, GetActivityStreamsView will return an +// arbitrary value. +func (this ForgeFedDescriptionProperty) GetActivityStreamsView() vocab.ActivityStreamsView { + return this.activitystreamsViewMember +} + +// GetForgeFedBranch returns the value of this property. When IsForgeFedBranch +// returns false, GetForgeFedBranch will return an arbitrary value. +func (this ForgeFedDescriptionProperty) GetForgeFedBranch() vocab.ForgeFedBranch { + return this.forgefedBranchMember +} + +// GetForgeFedCommit returns the value of this property. When IsForgeFedCommit +// returns false, GetForgeFedCommit will return an arbitrary value. +func (this ForgeFedDescriptionProperty) GetForgeFedCommit() vocab.ForgeFedCommit { + return this.forgefedCommitMember +} + +// GetForgeFedPush returns the value of this property. When IsForgeFedPush returns +// false, GetForgeFedPush will return an arbitrary value. +func (this ForgeFedDescriptionProperty) GetForgeFedPush() vocab.ForgeFedPush { + return this.forgefedPushMember +} + +// GetForgeFedRepository returns the value of this property. When +// IsForgeFedRepository returns false, GetForgeFedRepository will return an +// arbitrary value. +func (this ForgeFedDescriptionProperty) GetForgeFedRepository() vocab.ForgeFedRepository { + return this.forgefedRepositoryMember +} + +// GetForgeFedTicket returns the value of this property. When IsForgeFedTicket +// returns false, GetForgeFedTicket will return an arbitrary value. +func (this ForgeFedDescriptionProperty) GetForgeFedTicket() vocab.ForgeFedTicket { + return this.forgefedTicketMember +} + +// GetForgeFedTicketDependency returns the value of this property. When +// IsForgeFedTicketDependency returns false, GetForgeFedTicketDependency will +// return an arbitrary value. +func (this ForgeFedDescriptionProperty) GetForgeFedTicketDependency() vocab.ForgeFedTicketDependency { + return this.forgefedTicketDependencyMember +} + +// GetIRI returns the IRI of this property. When IsIRI returns false, GetIRI will +// return an arbitrary value. +func (this ForgeFedDescriptionProperty) GetIRI() *url.URL { + return this.iri +} + +// GetTootEmoji returns the value of this property. When IsTootEmoji returns +// false, GetTootEmoji will return an arbitrary value. +func (this ForgeFedDescriptionProperty) GetTootEmoji() vocab.TootEmoji { + return this.tootEmojiMember +} + +// GetTootIdentityProof returns the value of this property. When +// IsTootIdentityProof returns false, GetTootIdentityProof will return an +// arbitrary value. +func (this ForgeFedDescriptionProperty) GetTootIdentityProof() vocab.TootIdentityProof { + return this.tootIdentityProofMember +} + +// GetType returns the value in this property as a Type. Returns nil if the value +// is not an ActivityStreams type, such as an IRI or another value. +func (this ForgeFedDescriptionProperty) GetType() vocab.Type { + if this.IsActivityStreamsObject() { + return this.GetActivityStreamsObject() + } + if this.IsActivityStreamsAccept() { + return this.GetActivityStreamsAccept() + } + if this.IsActivityStreamsActivity() { + return this.GetActivityStreamsActivity() + } + if this.IsActivityStreamsAdd() { + return this.GetActivityStreamsAdd() + } + if this.IsActivityStreamsAnnounce() { + return this.GetActivityStreamsAnnounce() + } + if this.IsActivityStreamsApplication() { + return this.GetActivityStreamsApplication() + } + if this.IsActivityStreamsArrive() { + return this.GetActivityStreamsArrive() + } + if this.IsActivityStreamsArticle() { + return this.GetActivityStreamsArticle() + } + if this.IsActivityStreamsAudio() { + return this.GetActivityStreamsAudio() + } + if this.IsActivityStreamsBlock() { + return this.GetActivityStreamsBlock() + } + if this.IsForgeFedBranch() { + return this.GetForgeFedBranch() + } + if this.IsActivityStreamsCollection() { + return this.GetActivityStreamsCollection() + } + if this.IsActivityStreamsCollectionPage() { + return this.GetActivityStreamsCollectionPage() + } + if this.IsForgeFedCommit() { + return this.GetForgeFedCommit() + } + if this.IsActivityStreamsCreate() { + return this.GetActivityStreamsCreate() + } + if this.IsActivityStreamsDelete() { + return this.GetActivityStreamsDelete() + } + if this.IsActivityStreamsDislike() { + return this.GetActivityStreamsDislike() + } + if this.IsActivityStreamsDocument() { + return this.GetActivityStreamsDocument() + } + if this.IsTootEmoji() { + return this.GetTootEmoji() + } + if this.IsActivityStreamsEvent() { + return this.GetActivityStreamsEvent() + } + if this.IsActivityStreamsFlag() { + return this.GetActivityStreamsFlag() + } + if this.IsActivityStreamsFollow() { + return this.GetActivityStreamsFollow() + } + if this.IsActivityStreamsGroup() { + return this.GetActivityStreamsGroup() + } + if this.IsTootIdentityProof() { + return this.GetTootIdentityProof() + } + if this.IsActivityStreamsIgnore() { + return this.GetActivityStreamsIgnore() + } + if this.IsActivityStreamsImage() { + return this.GetActivityStreamsImage() + } + if this.IsActivityStreamsIntransitiveActivity() { + return this.GetActivityStreamsIntransitiveActivity() + } + if this.IsActivityStreamsInvite() { + return this.GetActivityStreamsInvite() + } + if this.IsActivityStreamsJoin() { + return this.GetActivityStreamsJoin() + } + if this.IsActivityStreamsLeave() { + return this.GetActivityStreamsLeave() + } + if this.IsActivityStreamsLike() { + return this.GetActivityStreamsLike() + } + if this.IsActivityStreamsListen() { + return this.GetActivityStreamsListen() + } + if this.IsActivityStreamsMove() { + return this.GetActivityStreamsMove() + } + if this.IsActivityStreamsNote() { + return this.GetActivityStreamsNote() + } + if this.IsActivityStreamsOffer() { + return this.GetActivityStreamsOffer() + } + if this.IsActivityStreamsOrderedCollection() { + return this.GetActivityStreamsOrderedCollection() + } + if this.IsActivityStreamsOrderedCollectionPage() { + return this.GetActivityStreamsOrderedCollectionPage() + } + if this.IsActivityStreamsOrganization() { + return this.GetActivityStreamsOrganization() + } + if this.IsActivityStreamsPage() { + return this.GetActivityStreamsPage() + } + if this.IsActivityStreamsPerson() { + return this.GetActivityStreamsPerson() + } + if this.IsActivityStreamsPlace() { + return this.GetActivityStreamsPlace() + } + if this.IsActivityStreamsProfile() { + return this.GetActivityStreamsProfile() + } + if this.IsForgeFedPush() { + return this.GetForgeFedPush() + } + if this.IsActivityStreamsQuestion() { + return this.GetActivityStreamsQuestion() + } + if this.IsActivityStreamsRead() { + return this.GetActivityStreamsRead() + } + if this.IsActivityStreamsReject() { + return this.GetActivityStreamsReject() + } + if this.IsActivityStreamsRelationship() { + return this.GetActivityStreamsRelationship() + } + if this.IsActivityStreamsRemove() { + return this.GetActivityStreamsRemove() + } + if this.IsForgeFedRepository() { + return this.GetForgeFedRepository() + } + if this.IsActivityStreamsService() { + return this.GetActivityStreamsService() + } + if this.IsActivityStreamsTentativeAccept() { + return this.GetActivityStreamsTentativeAccept() + } + if this.IsActivityStreamsTentativeReject() { + return this.GetActivityStreamsTentativeReject() + } + if this.IsForgeFedTicket() { + return this.GetForgeFedTicket() + } + if this.IsForgeFedTicketDependency() { + return this.GetForgeFedTicketDependency() + } + if this.IsActivityStreamsTombstone() { + return this.GetActivityStreamsTombstone() + } + if this.IsActivityStreamsTravel() { + return this.GetActivityStreamsTravel() + } + if this.IsActivityStreamsUndo() { + return this.GetActivityStreamsUndo() + } + if this.IsActivityStreamsUpdate() { + return this.GetActivityStreamsUpdate() + } + if this.IsActivityStreamsVideo() { + return this.GetActivityStreamsVideo() + } + if this.IsActivityStreamsView() { + return this.GetActivityStreamsView() + } + + return nil +} + +// HasAny returns true if any of the different values is set. +func (this ForgeFedDescriptionProperty) HasAny() bool { + return this.IsActivityStreamsObject() || + this.IsActivityStreamsAccept() || + this.IsActivityStreamsActivity() || + this.IsActivityStreamsAdd() || + this.IsActivityStreamsAnnounce() || + this.IsActivityStreamsApplication() || + this.IsActivityStreamsArrive() || + this.IsActivityStreamsArticle() || + this.IsActivityStreamsAudio() || + this.IsActivityStreamsBlock() || + this.IsForgeFedBranch() || + this.IsActivityStreamsCollection() || + this.IsActivityStreamsCollectionPage() || + this.IsForgeFedCommit() || + this.IsActivityStreamsCreate() || + this.IsActivityStreamsDelete() || + this.IsActivityStreamsDislike() || + this.IsActivityStreamsDocument() || + this.IsTootEmoji() || + this.IsActivityStreamsEvent() || + this.IsActivityStreamsFlag() || + this.IsActivityStreamsFollow() || + this.IsActivityStreamsGroup() || + this.IsTootIdentityProof() || + this.IsActivityStreamsIgnore() || + this.IsActivityStreamsImage() || + this.IsActivityStreamsIntransitiveActivity() || + this.IsActivityStreamsInvite() || + this.IsActivityStreamsJoin() || + this.IsActivityStreamsLeave() || + this.IsActivityStreamsLike() || + this.IsActivityStreamsListen() || + this.IsActivityStreamsMove() || + this.IsActivityStreamsNote() || + this.IsActivityStreamsOffer() || + this.IsActivityStreamsOrderedCollection() || + this.IsActivityStreamsOrderedCollectionPage() || + this.IsActivityStreamsOrganization() || + this.IsActivityStreamsPage() || + this.IsActivityStreamsPerson() || + this.IsActivityStreamsPlace() || + this.IsActivityStreamsProfile() || + this.IsForgeFedPush() || + this.IsActivityStreamsQuestion() || + this.IsActivityStreamsRead() || + this.IsActivityStreamsReject() || + this.IsActivityStreamsRelationship() || + this.IsActivityStreamsRemove() || + this.IsForgeFedRepository() || + this.IsActivityStreamsService() || + this.IsActivityStreamsTentativeAccept() || + this.IsActivityStreamsTentativeReject() || + this.IsForgeFedTicket() || + this.IsForgeFedTicketDependency() || + this.IsActivityStreamsTombstone() || + this.IsActivityStreamsTravel() || + this.IsActivityStreamsUndo() || + this.IsActivityStreamsUpdate() || + this.IsActivityStreamsVideo() || + this.IsActivityStreamsView() || + this.iri != nil +} + +// IsActivityStreamsAccept returns true if this property has a type of "Accept". +// When true, use the GetActivityStreamsAccept and SetActivityStreamsAccept +// methods to access and set this property. +func (this ForgeFedDescriptionProperty) IsActivityStreamsAccept() bool { + return this.activitystreamsAcceptMember != nil +} + +// IsActivityStreamsActivity returns true if this property has a type of +// "Activity". When true, use the GetActivityStreamsActivity and +// SetActivityStreamsActivity methods to access and set this property. +func (this ForgeFedDescriptionProperty) IsActivityStreamsActivity() bool { + return this.activitystreamsActivityMember != nil +} + +// IsActivityStreamsAdd returns true if this property has a type of "Add". When +// true, use the GetActivityStreamsAdd and SetActivityStreamsAdd methods to +// access and set this property. +func (this ForgeFedDescriptionProperty) IsActivityStreamsAdd() bool { + return this.activitystreamsAddMember != nil +} + +// IsActivityStreamsAnnounce returns true if this property has a type of +// "Announce". When true, use the GetActivityStreamsAnnounce and +// SetActivityStreamsAnnounce methods to access and set this property. +func (this ForgeFedDescriptionProperty) IsActivityStreamsAnnounce() bool { + return this.activitystreamsAnnounceMember != nil +} + +// IsActivityStreamsApplication returns true if this property has a type of +// "Application". When true, use the GetActivityStreamsApplication and +// SetActivityStreamsApplication methods to access and set this property. +func (this ForgeFedDescriptionProperty) IsActivityStreamsApplication() bool { + return this.activitystreamsApplicationMember != nil +} + +// IsActivityStreamsArrive returns true if this property has a type of "Arrive". +// When true, use the GetActivityStreamsArrive and SetActivityStreamsArrive +// methods to access and set this property. +func (this ForgeFedDescriptionProperty) IsActivityStreamsArrive() bool { + return this.activitystreamsArriveMember != nil +} + +// IsActivityStreamsArticle returns true if this property has a type of "Article". +// When true, use the GetActivityStreamsArticle and SetActivityStreamsArticle +// methods to access and set this property. +func (this ForgeFedDescriptionProperty) IsActivityStreamsArticle() bool { + return this.activitystreamsArticleMember != nil +} + +// IsActivityStreamsAudio returns true if this property has a type of "Audio". +// When true, use the GetActivityStreamsAudio and SetActivityStreamsAudio +// methods to access and set this property. +func (this ForgeFedDescriptionProperty) IsActivityStreamsAudio() bool { + return this.activitystreamsAudioMember != nil +} + +// IsActivityStreamsBlock returns true if this property has a type of "Block". +// When true, use the GetActivityStreamsBlock and SetActivityStreamsBlock +// methods to access and set this property. +func (this ForgeFedDescriptionProperty) IsActivityStreamsBlock() bool { + return this.activitystreamsBlockMember != nil +} + +// IsActivityStreamsCollection returns true if this property has a type of +// "Collection". When true, use the GetActivityStreamsCollection and +// SetActivityStreamsCollection methods to access and set this property. +func (this ForgeFedDescriptionProperty) IsActivityStreamsCollection() bool { + return this.activitystreamsCollectionMember != nil +} + +// IsActivityStreamsCollectionPage returns true if this property has a type of +// "CollectionPage". When true, use the GetActivityStreamsCollectionPage and +// SetActivityStreamsCollectionPage methods to access and set this property. +func (this ForgeFedDescriptionProperty) IsActivityStreamsCollectionPage() bool { + return this.activitystreamsCollectionPageMember != nil +} + +// IsActivityStreamsCreate returns true if this property has a type of "Create". +// When true, use the GetActivityStreamsCreate and SetActivityStreamsCreate +// methods to access and set this property. +func (this ForgeFedDescriptionProperty) IsActivityStreamsCreate() bool { + return this.activitystreamsCreateMember != nil +} + +// IsActivityStreamsDelete returns true if this property has a type of "Delete". +// When true, use the GetActivityStreamsDelete and SetActivityStreamsDelete +// methods to access and set this property. +func (this ForgeFedDescriptionProperty) IsActivityStreamsDelete() bool { + return this.activitystreamsDeleteMember != nil +} + +// IsActivityStreamsDislike returns true if this property has a type of "Dislike". +// When true, use the GetActivityStreamsDislike and SetActivityStreamsDislike +// methods to access and set this property. +func (this ForgeFedDescriptionProperty) IsActivityStreamsDislike() bool { + return this.activitystreamsDislikeMember != nil +} + +// IsActivityStreamsDocument returns true if this property has a type of +// "Document". When true, use the GetActivityStreamsDocument and +// SetActivityStreamsDocument methods to access and set this property. +func (this ForgeFedDescriptionProperty) IsActivityStreamsDocument() bool { + return this.activitystreamsDocumentMember != nil +} + +// IsActivityStreamsEvent returns true if this property has a type of "Event". +// When true, use the GetActivityStreamsEvent and SetActivityStreamsEvent +// methods to access and set this property. +func (this ForgeFedDescriptionProperty) IsActivityStreamsEvent() bool { + return this.activitystreamsEventMember != nil +} + +// IsActivityStreamsFlag returns true if this property has a type of "Flag". When +// true, use the GetActivityStreamsFlag and SetActivityStreamsFlag methods to +// access and set this property. +func (this ForgeFedDescriptionProperty) IsActivityStreamsFlag() bool { + return this.activitystreamsFlagMember != nil +} + +// IsActivityStreamsFollow returns true if this property has a type of "Follow". +// When true, use the GetActivityStreamsFollow and SetActivityStreamsFollow +// methods to access and set this property. +func (this ForgeFedDescriptionProperty) IsActivityStreamsFollow() bool { + return this.activitystreamsFollowMember != nil +} + +// IsActivityStreamsGroup returns true if this property has a type of "Group". +// When true, use the GetActivityStreamsGroup and SetActivityStreamsGroup +// methods to access and set this property. +func (this ForgeFedDescriptionProperty) IsActivityStreamsGroup() bool { + return this.activitystreamsGroupMember != nil +} + +// IsActivityStreamsIgnore returns true if this property has a type of "Ignore". +// When true, use the GetActivityStreamsIgnore and SetActivityStreamsIgnore +// methods to access and set this property. +func (this ForgeFedDescriptionProperty) IsActivityStreamsIgnore() bool { + return this.activitystreamsIgnoreMember != nil +} + +// IsActivityStreamsImage returns true if this property has a type of "Image". +// When true, use the GetActivityStreamsImage and SetActivityStreamsImage +// methods to access and set this property. +func (this ForgeFedDescriptionProperty) IsActivityStreamsImage() bool { + return this.activitystreamsImageMember != nil +} + +// IsActivityStreamsIntransitiveActivity returns true if this property has a type +// of "IntransitiveActivity". When true, use the +// GetActivityStreamsIntransitiveActivity and +// SetActivityStreamsIntransitiveActivity methods to access and set this +// property. +func (this ForgeFedDescriptionProperty) IsActivityStreamsIntransitiveActivity() bool { + return this.activitystreamsIntransitiveActivityMember != nil +} + +// IsActivityStreamsInvite returns true if this property has a type of "Invite". +// When true, use the GetActivityStreamsInvite and SetActivityStreamsInvite +// methods to access and set this property. +func (this ForgeFedDescriptionProperty) IsActivityStreamsInvite() bool { + return this.activitystreamsInviteMember != nil +} + +// IsActivityStreamsJoin returns true if this property has a type of "Join". When +// true, use the GetActivityStreamsJoin and SetActivityStreamsJoin methods to +// access and set this property. +func (this ForgeFedDescriptionProperty) IsActivityStreamsJoin() bool { + return this.activitystreamsJoinMember != nil +} + +// IsActivityStreamsLeave returns true if this property has a type of "Leave". +// When true, use the GetActivityStreamsLeave and SetActivityStreamsLeave +// methods to access and set this property. +func (this ForgeFedDescriptionProperty) IsActivityStreamsLeave() bool { + return this.activitystreamsLeaveMember != nil +} + +// IsActivityStreamsLike returns true if this property has a type of "Like". When +// true, use the GetActivityStreamsLike and SetActivityStreamsLike methods to +// access and set this property. +func (this ForgeFedDescriptionProperty) IsActivityStreamsLike() bool { + return this.activitystreamsLikeMember != nil +} + +// IsActivityStreamsListen returns true if this property has a type of "Listen". +// When true, use the GetActivityStreamsListen and SetActivityStreamsListen +// methods to access and set this property. +func (this ForgeFedDescriptionProperty) IsActivityStreamsListen() bool { + return this.activitystreamsListenMember != nil +} + +// IsActivityStreamsMove returns true if this property has a type of "Move". When +// true, use the GetActivityStreamsMove and SetActivityStreamsMove methods to +// access and set this property. +func (this ForgeFedDescriptionProperty) IsActivityStreamsMove() bool { + return this.activitystreamsMoveMember != nil +} + +// IsActivityStreamsNote returns true if this property has a type of "Note". When +// true, use the GetActivityStreamsNote and SetActivityStreamsNote methods to +// access and set this property. +func (this ForgeFedDescriptionProperty) IsActivityStreamsNote() bool { + return this.activitystreamsNoteMember != nil +} + +// IsActivityStreamsObject returns true if this property has a type of "Object". +// When true, use the GetActivityStreamsObject and SetActivityStreamsObject +// methods to access and set this property. +func (this ForgeFedDescriptionProperty) IsActivityStreamsObject() bool { + return this.activitystreamsObjectMember != nil +} + +// IsActivityStreamsOffer returns true if this property has a type of "Offer". +// When true, use the GetActivityStreamsOffer and SetActivityStreamsOffer +// methods to access and set this property. +func (this ForgeFedDescriptionProperty) IsActivityStreamsOffer() bool { + return this.activitystreamsOfferMember != nil +} + +// IsActivityStreamsOrderedCollection returns true if this property has a type of +// "OrderedCollection". When true, use the GetActivityStreamsOrderedCollection +// and SetActivityStreamsOrderedCollection methods to access and set this +// property. +func (this ForgeFedDescriptionProperty) IsActivityStreamsOrderedCollection() bool { + return this.activitystreamsOrderedCollectionMember != nil +} + +// IsActivityStreamsOrderedCollectionPage returns true if this property has a type +// of "OrderedCollectionPage". When true, use the +// GetActivityStreamsOrderedCollectionPage and +// SetActivityStreamsOrderedCollectionPage methods to access and set this +// property. +func (this ForgeFedDescriptionProperty) IsActivityStreamsOrderedCollectionPage() bool { + return this.activitystreamsOrderedCollectionPageMember != nil +} + +// IsActivityStreamsOrganization returns true if this property has a type of +// "Organization". When true, use the GetActivityStreamsOrganization and +// SetActivityStreamsOrganization methods to access and set this property. +func (this ForgeFedDescriptionProperty) IsActivityStreamsOrganization() bool { + return this.activitystreamsOrganizationMember != nil +} + +// IsActivityStreamsPage returns true if this property has a type of "Page". When +// true, use the GetActivityStreamsPage and SetActivityStreamsPage methods to +// access and set this property. +func (this ForgeFedDescriptionProperty) IsActivityStreamsPage() bool { + return this.activitystreamsPageMember != nil +} + +// IsActivityStreamsPerson returns true if this property has a type of "Person". +// When true, use the GetActivityStreamsPerson and SetActivityStreamsPerson +// methods to access and set this property. +func (this ForgeFedDescriptionProperty) IsActivityStreamsPerson() bool { + return this.activitystreamsPersonMember != nil +} + +// IsActivityStreamsPlace returns true if this property has a type of "Place". +// When true, use the GetActivityStreamsPlace and SetActivityStreamsPlace +// methods to access and set this property. +func (this ForgeFedDescriptionProperty) IsActivityStreamsPlace() bool { + return this.activitystreamsPlaceMember != nil +} + +// IsActivityStreamsProfile returns true if this property has a type of "Profile". +// When true, use the GetActivityStreamsProfile and SetActivityStreamsProfile +// methods to access and set this property. +func (this ForgeFedDescriptionProperty) IsActivityStreamsProfile() bool { + return this.activitystreamsProfileMember != nil +} + +// IsActivityStreamsQuestion returns true if this property has a type of +// "Question". When true, use the GetActivityStreamsQuestion and +// SetActivityStreamsQuestion methods to access and set this property. +func (this ForgeFedDescriptionProperty) IsActivityStreamsQuestion() bool { + return this.activitystreamsQuestionMember != nil +} + +// IsActivityStreamsRead returns true if this property has a type of "Read". When +// true, use the GetActivityStreamsRead and SetActivityStreamsRead methods to +// access and set this property. +func (this ForgeFedDescriptionProperty) IsActivityStreamsRead() bool { + return this.activitystreamsReadMember != nil +} + +// IsActivityStreamsReject returns true if this property has a type of "Reject". +// When true, use the GetActivityStreamsReject and SetActivityStreamsReject +// methods to access and set this property. +func (this ForgeFedDescriptionProperty) IsActivityStreamsReject() bool { + return this.activitystreamsRejectMember != nil +} + +// IsActivityStreamsRelationship returns true if this property has a type of +// "Relationship". When true, use the GetActivityStreamsRelationship and +// SetActivityStreamsRelationship methods to access and set this property. +func (this ForgeFedDescriptionProperty) IsActivityStreamsRelationship() bool { + return this.activitystreamsRelationshipMember != nil +} + +// IsActivityStreamsRemove returns true if this property has a type of "Remove". +// When true, use the GetActivityStreamsRemove and SetActivityStreamsRemove +// methods to access and set this property. +func (this ForgeFedDescriptionProperty) IsActivityStreamsRemove() bool { + return this.activitystreamsRemoveMember != nil +} + +// IsActivityStreamsService returns true if this property has a type of "Service". +// When true, use the GetActivityStreamsService and SetActivityStreamsService +// methods to access and set this property. +func (this ForgeFedDescriptionProperty) IsActivityStreamsService() bool { + return this.activitystreamsServiceMember != nil +} + +// IsActivityStreamsTentativeAccept returns true if this property has a type of +// "TentativeAccept". When true, use the GetActivityStreamsTentativeAccept and +// SetActivityStreamsTentativeAccept methods to access and set this property. +func (this ForgeFedDescriptionProperty) IsActivityStreamsTentativeAccept() bool { + return this.activitystreamsTentativeAcceptMember != nil +} + +// IsActivityStreamsTentativeReject returns true if this property has a type of +// "TentativeReject". When true, use the GetActivityStreamsTentativeReject and +// SetActivityStreamsTentativeReject methods to access and set this property. +func (this ForgeFedDescriptionProperty) IsActivityStreamsTentativeReject() bool { + return this.activitystreamsTentativeRejectMember != nil +} + +// IsActivityStreamsTombstone returns true if this property has a type of +// "Tombstone". When true, use the GetActivityStreamsTombstone and +// SetActivityStreamsTombstone methods to access and set this property. +func (this ForgeFedDescriptionProperty) IsActivityStreamsTombstone() bool { + return this.activitystreamsTombstoneMember != nil +} + +// IsActivityStreamsTravel returns true if this property has a type of "Travel". +// When true, use the GetActivityStreamsTravel and SetActivityStreamsTravel +// methods to access and set this property. +func (this ForgeFedDescriptionProperty) IsActivityStreamsTravel() bool { + return this.activitystreamsTravelMember != nil +} + +// IsActivityStreamsUndo returns true if this property has a type of "Undo". When +// true, use the GetActivityStreamsUndo and SetActivityStreamsUndo methods to +// access and set this property. +func (this ForgeFedDescriptionProperty) IsActivityStreamsUndo() bool { + return this.activitystreamsUndoMember != nil +} + +// IsActivityStreamsUpdate returns true if this property has a type of "Update". +// When true, use the GetActivityStreamsUpdate and SetActivityStreamsUpdate +// methods to access and set this property. +func (this ForgeFedDescriptionProperty) IsActivityStreamsUpdate() bool { + return this.activitystreamsUpdateMember != nil +} + +// IsActivityStreamsVideo returns true if this property has a type of "Video". +// When true, use the GetActivityStreamsVideo and SetActivityStreamsVideo +// methods to access and set this property. +func (this ForgeFedDescriptionProperty) IsActivityStreamsVideo() bool { + return this.activitystreamsVideoMember != nil +} + +// IsActivityStreamsView returns true if this property has a type of "View". When +// true, use the GetActivityStreamsView and SetActivityStreamsView methods to +// access and set this property. +func (this ForgeFedDescriptionProperty) IsActivityStreamsView() bool { + return this.activitystreamsViewMember != nil +} + +// IsForgeFedBranch returns true if this property has a type of "Branch". When +// true, use the GetForgeFedBranch and SetForgeFedBranch methods to access and +// set this property. +func (this ForgeFedDescriptionProperty) IsForgeFedBranch() bool { + return this.forgefedBranchMember != nil +} + +// IsForgeFedCommit returns true if this property has a type of "Commit". When +// true, use the GetForgeFedCommit and SetForgeFedCommit methods to access and +// set this property. +func (this ForgeFedDescriptionProperty) IsForgeFedCommit() bool { + return this.forgefedCommitMember != nil +} + +// IsForgeFedPush returns true if this property has a type of "Push". When true, +// use the GetForgeFedPush and SetForgeFedPush methods to access and set this +// property. +func (this ForgeFedDescriptionProperty) IsForgeFedPush() bool { + return this.forgefedPushMember != nil +} + +// IsForgeFedRepository returns true if this property has a type of "Repository". +// When true, use the GetForgeFedRepository and SetForgeFedRepository methods +// to access and set this property. +func (this ForgeFedDescriptionProperty) IsForgeFedRepository() bool { + return this.forgefedRepositoryMember != nil +} + +// IsForgeFedTicket returns true if this property has a type of "Ticket". When +// true, use the GetForgeFedTicket and SetForgeFedTicket methods to access and +// set this property. +func (this ForgeFedDescriptionProperty) IsForgeFedTicket() bool { + return this.forgefedTicketMember != nil +} + +// IsForgeFedTicketDependency returns true if this property has a type of +// "TicketDependency". When true, use the GetForgeFedTicketDependency and +// SetForgeFedTicketDependency methods to access and set this property. +func (this ForgeFedDescriptionProperty) IsForgeFedTicketDependency() bool { + return this.forgefedTicketDependencyMember != nil +} + +// IsIRI returns true if this property is an IRI. When true, use GetIRI and SetIRI +// to access and set this property +func (this ForgeFedDescriptionProperty) IsIRI() bool { + return this.iri != nil +} + +// IsTootEmoji returns true if this property has a type of "Emoji". When true, use +// the GetTootEmoji and SetTootEmoji methods to access and set this property. +func (this ForgeFedDescriptionProperty) IsTootEmoji() bool { + return this.tootEmojiMember != nil +} + +// IsTootIdentityProof returns true if this property has a type of +// "IdentityProof". When true, use the GetTootIdentityProof and +// SetTootIdentityProof methods to access and set this property. +func (this ForgeFedDescriptionProperty) IsTootIdentityProof() bool { + return this.tootIdentityProofMember != nil +} + +// JSONLDContext returns the JSONLD URIs required in the context string for this +// property and the specific values that are set. The value in the map is the +// alias used to import the property's value or values. +func (this ForgeFedDescriptionProperty) JSONLDContext() map[string]string { + m := map[string]string{"https://forgefed.peers.community/ns": this.alias} + var child map[string]string + if this.IsActivityStreamsObject() { + child = this.GetActivityStreamsObject().JSONLDContext() + } else if this.IsActivityStreamsAccept() { + child = this.GetActivityStreamsAccept().JSONLDContext() + } else if this.IsActivityStreamsActivity() { + child = this.GetActivityStreamsActivity().JSONLDContext() + } else if this.IsActivityStreamsAdd() { + child = this.GetActivityStreamsAdd().JSONLDContext() + } else if this.IsActivityStreamsAnnounce() { + child = this.GetActivityStreamsAnnounce().JSONLDContext() + } else if this.IsActivityStreamsApplication() { + child = this.GetActivityStreamsApplication().JSONLDContext() + } else if this.IsActivityStreamsArrive() { + child = this.GetActivityStreamsArrive().JSONLDContext() + } else if this.IsActivityStreamsArticle() { + child = this.GetActivityStreamsArticle().JSONLDContext() + } else if this.IsActivityStreamsAudio() { + child = this.GetActivityStreamsAudio().JSONLDContext() + } else if this.IsActivityStreamsBlock() { + child = this.GetActivityStreamsBlock().JSONLDContext() + } else if this.IsForgeFedBranch() { + child = this.GetForgeFedBranch().JSONLDContext() + } else if this.IsActivityStreamsCollection() { + child = this.GetActivityStreamsCollection().JSONLDContext() + } else if this.IsActivityStreamsCollectionPage() { + child = this.GetActivityStreamsCollectionPage().JSONLDContext() + } else if this.IsForgeFedCommit() { + child = this.GetForgeFedCommit().JSONLDContext() + } else if this.IsActivityStreamsCreate() { + child = this.GetActivityStreamsCreate().JSONLDContext() + } else if this.IsActivityStreamsDelete() { + child = this.GetActivityStreamsDelete().JSONLDContext() + } else if this.IsActivityStreamsDislike() { + child = this.GetActivityStreamsDislike().JSONLDContext() + } else if this.IsActivityStreamsDocument() { + child = this.GetActivityStreamsDocument().JSONLDContext() + } else if this.IsTootEmoji() { + child = this.GetTootEmoji().JSONLDContext() + } else if this.IsActivityStreamsEvent() { + child = this.GetActivityStreamsEvent().JSONLDContext() + } else if this.IsActivityStreamsFlag() { + child = this.GetActivityStreamsFlag().JSONLDContext() + } else if this.IsActivityStreamsFollow() { + child = this.GetActivityStreamsFollow().JSONLDContext() + } else if this.IsActivityStreamsGroup() { + child = this.GetActivityStreamsGroup().JSONLDContext() + } else if this.IsTootIdentityProof() { + child = this.GetTootIdentityProof().JSONLDContext() + } else if this.IsActivityStreamsIgnore() { + child = this.GetActivityStreamsIgnore().JSONLDContext() + } else if this.IsActivityStreamsImage() { + child = this.GetActivityStreamsImage().JSONLDContext() + } else if this.IsActivityStreamsIntransitiveActivity() { + child = this.GetActivityStreamsIntransitiveActivity().JSONLDContext() + } else if this.IsActivityStreamsInvite() { + child = this.GetActivityStreamsInvite().JSONLDContext() + } else if this.IsActivityStreamsJoin() { + child = this.GetActivityStreamsJoin().JSONLDContext() + } else if this.IsActivityStreamsLeave() { + child = this.GetActivityStreamsLeave().JSONLDContext() + } else if this.IsActivityStreamsLike() { + child = this.GetActivityStreamsLike().JSONLDContext() + } else if this.IsActivityStreamsListen() { + child = this.GetActivityStreamsListen().JSONLDContext() + } else if this.IsActivityStreamsMove() { + child = this.GetActivityStreamsMove().JSONLDContext() + } else if this.IsActivityStreamsNote() { + child = this.GetActivityStreamsNote().JSONLDContext() + } else if this.IsActivityStreamsOffer() { + child = this.GetActivityStreamsOffer().JSONLDContext() + } else if this.IsActivityStreamsOrderedCollection() { + child = this.GetActivityStreamsOrderedCollection().JSONLDContext() + } else if this.IsActivityStreamsOrderedCollectionPage() { + child = this.GetActivityStreamsOrderedCollectionPage().JSONLDContext() + } else if this.IsActivityStreamsOrganization() { + child = this.GetActivityStreamsOrganization().JSONLDContext() + } else if this.IsActivityStreamsPage() { + child = this.GetActivityStreamsPage().JSONLDContext() + } else if this.IsActivityStreamsPerson() { + child = this.GetActivityStreamsPerson().JSONLDContext() + } else if this.IsActivityStreamsPlace() { + child = this.GetActivityStreamsPlace().JSONLDContext() + } else if this.IsActivityStreamsProfile() { + child = this.GetActivityStreamsProfile().JSONLDContext() + } else if this.IsForgeFedPush() { + child = this.GetForgeFedPush().JSONLDContext() + } else if this.IsActivityStreamsQuestion() { + child = this.GetActivityStreamsQuestion().JSONLDContext() + } else if this.IsActivityStreamsRead() { + child = this.GetActivityStreamsRead().JSONLDContext() + } else if this.IsActivityStreamsReject() { + child = this.GetActivityStreamsReject().JSONLDContext() + } else if this.IsActivityStreamsRelationship() { + child = this.GetActivityStreamsRelationship().JSONLDContext() + } else if this.IsActivityStreamsRemove() { + child = this.GetActivityStreamsRemove().JSONLDContext() + } else if this.IsForgeFedRepository() { + child = this.GetForgeFedRepository().JSONLDContext() + } else if this.IsActivityStreamsService() { + child = this.GetActivityStreamsService().JSONLDContext() + } else if this.IsActivityStreamsTentativeAccept() { + child = this.GetActivityStreamsTentativeAccept().JSONLDContext() + } else if this.IsActivityStreamsTentativeReject() { + child = this.GetActivityStreamsTentativeReject().JSONLDContext() + } else if this.IsForgeFedTicket() { + child = this.GetForgeFedTicket().JSONLDContext() + } else if this.IsForgeFedTicketDependency() { + child = this.GetForgeFedTicketDependency().JSONLDContext() + } else if this.IsActivityStreamsTombstone() { + child = this.GetActivityStreamsTombstone().JSONLDContext() + } else if this.IsActivityStreamsTravel() { + child = this.GetActivityStreamsTravel().JSONLDContext() + } else if this.IsActivityStreamsUndo() { + child = this.GetActivityStreamsUndo().JSONLDContext() + } else if this.IsActivityStreamsUpdate() { + child = this.GetActivityStreamsUpdate().JSONLDContext() + } else if this.IsActivityStreamsVideo() { + child = this.GetActivityStreamsVideo().JSONLDContext() + } else if this.IsActivityStreamsView() { + child = this.GetActivityStreamsView().JSONLDContext() + } + /* + Since the literal maps in this function are determined at + code-generation time, this loop should not overwrite an existing key with a + new value. + */ + for k, v := range child { + m[k] = v + } + return m +} + +// KindIndex computes an arbitrary value for indexing this kind of value. This is +// a leaky API detail only for folks looking to replace the go-fed +// implementation. Applications should not use this method. +func (this ForgeFedDescriptionProperty) KindIndex() int { + if this.IsActivityStreamsObject() { + return 0 + } + if this.IsActivityStreamsAccept() { + return 1 + } + if this.IsActivityStreamsActivity() { + return 2 + } + if this.IsActivityStreamsAdd() { + return 3 + } + if this.IsActivityStreamsAnnounce() { + return 4 + } + if this.IsActivityStreamsApplication() { + return 5 + } + if this.IsActivityStreamsArrive() { + return 6 + } + if this.IsActivityStreamsArticle() { + return 7 + } + if this.IsActivityStreamsAudio() { + return 8 + } + if this.IsActivityStreamsBlock() { + return 9 + } + if this.IsForgeFedBranch() { + return 10 + } + if this.IsActivityStreamsCollection() { + return 11 + } + if this.IsActivityStreamsCollectionPage() { + return 12 + } + if this.IsForgeFedCommit() { + return 13 + } + if this.IsActivityStreamsCreate() { + return 14 + } + if this.IsActivityStreamsDelete() { + return 15 + } + if this.IsActivityStreamsDislike() { + return 16 + } + if this.IsActivityStreamsDocument() { + return 17 + } + if this.IsTootEmoji() { + return 18 + } + if this.IsActivityStreamsEvent() { + return 19 + } + if this.IsActivityStreamsFlag() { + return 20 + } + if this.IsActivityStreamsFollow() { + return 21 + } + if this.IsActivityStreamsGroup() { + return 22 + } + if this.IsTootIdentityProof() { + return 23 + } + if this.IsActivityStreamsIgnore() { + return 24 + } + if this.IsActivityStreamsImage() { + return 25 + } + if this.IsActivityStreamsIntransitiveActivity() { + return 26 + } + if this.IsActivityStreamsInvite() { + return 27 + } + if this.IsActivityStreamsJoin() { + return 28 + } + if this.IsActivityStreamsLeave() { + return 29 + } + if this.IsActivityStreamsLike() { + return 30 + } + if this.IsActivityStreamsListen() { + return 31 + } + if this.IsActivityStreamsMove() { + return 32 + } + if this.IsActivityStreamsNote() { + return 33 + } + if this.IsActivityStreamsOffer() { + return 34 + } + if this.IsActivityStreamsOrderedCollection() { + return 35 + } + if this.IsActivityStreamsOrderedCollectionPage() { + return 36 + } + if this.IsActivityStreamsOrganization() { + return 37 + } + if this.IsActivityStreamsPage() { + return 38 + } + if this.IsActivityStreamsPerson() { + return 39 + } + if this.IsActivityStreamsPlace() { + return 40 + } + if this.IsActivityStreamsProfile() { + return 41 + } + if this.IsForgeFedPush() { + return 42 + } + if this.IsActivityStreamsQuestion() { + return 43 + } + if this.IsActivityStreamsRead() { + return 44 + } + if this.IsActivityStreamsReject() { + return 45 + } + if this.IsActivityStreamsRelationship() { + return 46 + } + if this.IsActivityStreamsRemove() { + return 47 + } + if this.IsForgeFedRepository() { + return 48 + } + if this.IsActivityStreamsService() { + return 49 + } + if this.IsActivityStreamsTentativeAccept() { + return 50 + } + if this.IsActivityStreamsTentativeReject() { + return 51 + } + if this.IsForgeFedTicket() { + return 52 + } + if this.IsForgeFedTicketDependency() { + return 53 + } + if this.IsActivityStreamsTombstone() { + return 54 + } + if this.IsActivityStreamsTravel() { + return 55 + } + if this.IsActivityStreamsUndo() { + return 56 + } + if this.IsActivityStreamsUpdate() { + return 57 + } + if this.IsActivityStreamsVideo() { + return 58 + } + if this.IsActivityStreamsView() { + return 59 + } + if this.IsIRI() { + return -2 + } + return -1 +} + +// LessThan compares two instances of this property with an arbitrary but stable +// comparison. Applications should not use this because it is only meant to +// help alternative implementations to go-fed to be able to normalize +// nonfunctional properties. +func (this ForgeFedDescriptionProperty) LessThan(o vocab.ForgeFedDescriptionProperty) bool { + idx1 := this.KindIndex() + idx2 := o.KindIndex() + if idx1 < idx2 { + return true + } else if idx1 > idx2 { + return false + } else if this.IsActivityStreamsObject() { + return this.GetActivityStreamsObject().LessThan(o.GetActivityStreamsObject()) + } else if this.IsActivityStreamsAccept() { + return this.GetActivityStreamsAccept().LessThan(o.GetActivityStreamsAccept()) + } else if this.IsActivityStreamsActivity() { + return this.GetActivityStreamsActivity().LessThan(o.GetActivityStreamsActivity()) + } else if this.IsActivityStreamsAdd() { + return this.GetActivityStreamsAdd().LessThan(o.GetActivityStreamsAdd()) + } else if this.IsActivityStreamsAnnounce() { + return this.GetActivityStreamsAnnounce().LessThan(o.GetActivityStreamsAnnounce()) + } else if this.IsActivityStreamsApplication() { + return this.GetActivityStreamsApplication().LessThan(o.GetActivityStreamsApplication()) + } else if this.IsActivityStreamsArrive() { + return this.GetActivityStreamsArrive().LessThan(o.GetActivityStreamsArrive()) + } else if this.IsActivityStreamsArticle() { + return this.GetActivityStreamsArticle().LessThan(o.GetActivityStreamsArticle()) + } else if this.IsActivityStreamsAudio() { + return this.GetActivityStreamsAudio().LessThan(o.GetActivityStreamsAudio()) + } else if this.IsActivityStreamsBlock() { + return this.GetActivityStreamsBlock().LessThan(o.GetActivityStreamsBlock()) + } else if this.IsForgeFedBranch() { + return this.GetForgeFedBranch().LessThan(o.GetForgeFedBranch()) + } else if this.IsActivityStreamsCollection() { + return this.GetActivityStreamsCollection().LessThan(o.GetActivityStreamsCollection()) + } else if this.IsActivityStreamsCollectionPage() { + return this.GetActivityStreamsCollectionPage().LessThan(o.GetActivityStreamsCollectionPage()) + } else if this.IsForgeFedCommit() { + return this.GetForgeFedCommit().LessThan(o.GetForgeFedCommit()) + } else if this.IsActivityStreamsCreate() { + return this.GetActivityStreamsCreate().LessThan(o.GetActivityStreamsCreate()) + } else if this.IsActivityStreamsDelete() { + return this.GetActivityStreamsDelete().LessThan(o.GetActivityStreamsDelete()) + } else if this.IsActivityStreamsDislike() { + return this.GetActivityStreamsDislike().LessThan(o.GetActivityStreamsDislike()) + } else if this.IsActivityStreamsDocument() { + return this.GetActivityStreamsDocument().LessThan(o.GetActivityStreamsDocument()) + } else if this.IsTootEmoji() { + return this.GetTootEmoji().LessThan(o.GetTootEmoji()) + } else if this.IsActivityStreamsEvent() { + return this.GetActivityStreamsEvent().LessThan(o.GetActivityStreamsEvent()) + } else if this.IsActivityStreamsFlag() { + return this.GetActivityStreamsFlag().LessThan(o.GetActivityStreamsFlag()) + } else if this.IsActivityStreamsFollow() { + return this.GetActivityStreamsFollow().LessThan(o.GetActivityStreamsFollow()) + } else if this.IsActivityStreamsGroup() { + return this.GetActivityStreamsGroup().LessThan(o.GetActivityStreamsGroup()) + } else if this.IsTootIdentityProof() { + return this.GetTootIdentityProof().LessThan(o.GetTootIdentityProof()) + } else if this.IsActivityStreamsIgnore() { + return this.GetActivityStreamsIgnore().LessThan(o.GetActivityStreamsIgnore()) + } else if this.IsActivityStreamsImage() { + return this.GetActivityStreamsImage().LessThan(o.GetActivityStreamsImage()) + } else if this.IsActivityStreamsIntransitiveActivity() { + return this.GetActivityStreamsIntransitiveActivity().LessThan(o.GetActivityStreamsIntransitiveActivity()) + } else if this.IsActivityStreamsInvite() { + return this.GetActivityStreamsInvite().LessThan(o.GetActivityStreamsInvite()) + } else if this.IsActivityStreamsJoin() { + return this.GetActivityStreamsJoin().LessThan(o.GetActivityStreamsJoin()) + } else if this.IsActivityStreamsLeave() { + return this.GetActivityStreamsLeave().LessThan(o.GetActivityStreamsLeave()) + } else if this.IsActivityStreamsLike() { + return this.GetActivityStreamsLike().LessThan(o.GetActivityStreamsLike()) + } else if this.IsActivityStreamsListen() { + return this.GetActivityStreamsListen().LessThan(o.GetActivityStreamsListen()) + } else if this.IsActivityStreamsMove() { + return this.GetActivityStreamsMove().LessThan(o.GetActivityStreamsMove()) + } else if this.IsActivityStreamsNote() { + return this.GetActivityStreamsNote().LessThan(o.GetActivityStreamsNote()) + } else if this.IsActivityStreamsOffer() { + return this.GetActivityStreamsOffer().LessThan(o.GetActivityStreamsOffer()) + } else if this.IsActivityStreamsOrderedCollection() { + return this.GetActivityStreamsOrderedCollection().LessThan(o.GetActivityStreamsOrderedCollection()) + } else if this.IsActivityStreamsOrderedCollectionPage() { + return this.GetActivityStreamsOrderedCollectionPage().LessThan(o.GetActivityStreamsOrderedCollectionPage()) + } else if this.IsActivityStreamsOrganization() { + return this.GetActivityStreamsOrganization().LessThan(o.GetActivityStreamsOrganization()) + } else if this.IsActivityStreamsPage() { + return this.GetActivityStreamsPage().LessThan(o.GetActivityStreamsPage()) + } else if this.IsActivityStreamsPerson() { + return this.GetActivityStreamsPerson().LessThan(o.GetActivityStreamsPerson()) + } else if this.IsActivityStreamsPlace() { + return this.GetActivityStreamsPlace().LessThan(o.GetActivityStreamsPlace()) + } else if this.IsActivityStreamsProfile() { + return this.GetActivityStreamsProfile().LessThan(o.GetActivityStreamsProfile()) + } else if this.IsForgeFedPush() { + return this.GetForgeFedPush().LessThan(o.GetForgeFedPush()) + } else if this.IsActivityStreamsQuestion() { + return this.GetActivityStreamsQuestion().LessThan(o.GetActivityStreamsQuestion()) + } else if this.IsActivityStreamsRead() { + return this.GetActivityStreamsRead().LessThan(o.GetActivityStreamsRead()) + } else if this.IsActivityStreamsReject() { + return this.GetActivityStreamsReject().LessThan(o.GetActivityStreamsReject()) + } else if this.IsActivityStreamsRelationship() { + return this.GetActivityStreamsRelationship().LessThan(o.GetActivityStreamsRelationship()) + } else if this.IsActivityStreamsRemove() { + return this.GetActivityStreamsRemove().LessThan(o.GetActivityStreamsRemove()) + } else if this.IsForgeFedRepository() { + return this.GetForgeFedRepository().LessThan(o.GetForgeFedRepository()) + } else if this.IsActivityStreamsService() { + return this.GetActivityStreamsService().LessThan(o.GetActivityStreamsService()) + } else if this.IsActivityStreamsTentativeAccept() { + return this.GetActivityStreamsTentativeAccept().LessThan(o.GetActivityStreamsTentativeAccept()) + } else if this.IsActivityStreamsTentativeReject() { + return this.GetActivityStreamsTentativeReject().LessThan(o.GetActivityStreamsTentativeReject()) + } else if this.IsForgeFedTicket() { + return this.GetForgeFedTicket().LessThan(o.GetForgeFedTicket()) + } else if this.IsForgeFedTicketDependency() { + return this.GetForgeFedTicketDependency().LessThan(o.GetForgeFedTicketDependency()) + } else if this.IsActivityStreamsTombstone() { + return this.GetActivityStreamsTombstone().LessThan(o.GetActivityStreamsTombstone()) + } else if this.IsActivityStreamsTravel() { + return this.GetActivityStreamsTravel().LessThan(o.GetActivityStreamsTravel()) + } else if this.IsActivityStreamsUndo() { + return this.GetActivityStreamsUndo().LessThan(o.GetActivityStreamsUndo()) + } else if this.IsActivityStreamsUpdate() { + return this.GetActivityStreamsUpdate().LessThan(o.GetActivityStreamsUpdate()) + } else if this.IsActivityStreamsVideo() { + return this.GetActivityStreamsVideo().LessThan(o.GetActivityStreamsVideo()) + } else if this.IsActivityStreamsView() { + return this.GetActivityStreamsView().LessThan(o.GetActivityStreamsView()) + } else if this.IsIRI() { + return this.iri.String() < o.GetIRI().String() + } + return false +} + +// Name returns the name of this property: "description". +func (this ForgeFedDescriptionProperty) Name() string { + if len(this.alias) > 0 { + return this.alias + ":" + "description" + } else { + return "description" + } +} + +// Serialize converts this into an interface representation suitable for +// marshalling into a text or binary format. Applications should not need this +// function as most typical use cases serialize types instead of individual +// properties. It is exposed for alternatives to go-fed implementations to use. +func (this ForgeFedDescriptionProperty) Serialize() (interface{}, error) { + if this.IsActivityStreamsObject() { + return this.GetActivityStreamsObject().Serialize() + } else if this.IsActivityStreamsAccept() { + return this.GetActivityStreamsAccept().Serialize() + } else if this.IsActivityStreamsActivity() { + return this.GetActivityStreamsActivity().Serialize() + } else if this.IsActivityStreamsAdd() { + return this.GetActivityStreamsAdd().Serialize() + } else if this.IsActivityStreamsAnnounce() { + return this.GetActivityStreamsAnnounce().Serialize() + } else if this.IsActivityStreamsApplication() { + return this.GetActivityStreamsApplication().Serialize() + } else if this.IsActivityStreamsArrive() { + return this.GetActivityStreamsArrive().Serialize() + } else if this.IsActivityStreamsArticle() { + return this.GetActivityStreamsArticle().Serialize() + } else if this.IsActivityStreamsAudio() { + return this.GetActivityStreamsAudio().Serialize() + } else if this.IsActivityStreamsBlock() { + return this.GetActivityStreamsBlock().Serialize() + } else if this.IsForgeFedBranch() { + return this.GetForgeFedBranch().Serialize() + } else if this.IsActivityStreamsCollection() { + return this.GetActivityStreamsCollection().Serialize() + } else if this.IsActivityStreamsCollectionPage() { + return this.GetActivityStreamsCollectionPage().Serialize() + } else if this.IsForgeFedCommit() { + return this.GetForgeFedCommit().Serialize() + } else if this.IsActivityStreamsCreate() { + return this.GetActivityStreamsCreate().Serialize() + } else if this.IsActivityStreamsDelete() { + return this.GetActivityStreamsDelete().Serialize() + } else if this.IsActivityStreamsDislike() { + return this.GetActivityStreamsDislike().Serialize() + } else if this.IsActivityStreamsDocument() { + return this.GetActivityStreamsDocument().Serialize() + } else if this.IsTootEmoji() { + return this.GetTootEmoji().Serialize() + } else if this.IsActivityStreamsEvent() { + return this.GetActivityStreamsEvent().Serialize() + } else if this.IsActivityStreamsFlag() { + return this.GetActivityStreamsFlag().Serialize() + } else if this.IsActivityStreamsFollow() { + return this.GetActivityStreamsFollow().Serialize() + } else if this.IsActivityStreamsGroup() { + return this.GetActivityStreamsGroup().Serialize() + } else if this.IsTootIdentityProof() { + return this.GetTootIdentityProof().Serialize() + } else if this.IsActivityStreamsIgnore() { + return this.GetActivityStreamsIgnore().Serialize() + } else if this.IsActivityStreamsImage() { + return this.GetActivityStreamsImage().Serialize() + } else if this.IsActivityStreamsIntransitiveActivity() { + return this.GetActivityStreamsIntransitiveActivity().Serialize() + } else if this.IsActivityStreamsInvite() { + return this.GetActivityStreamsInvite().Serialize() + } else if this.IsActivityStreamsJoin() { + return this.GetActivityStreamsJoin().Serialize() + } else if this.IsActivityStreamsLeave() { + return this.GetActivityStreamsLeave().Serialize() + } else if this.IsActivityStreamsLike() { + return this.GetActivityStreamsLike().Serialize() + } else if this.IsActivityStreamsListen() { + return this.GetActivityStreamsListen().Serialize() + } else if this.IsActivityStreamsMove() { + return this.GetActivityStreamsMove().Serialize() + } else if this.IsActivityStreamsNote() { + return this.GetActivityStreamsNote().Serialize() + } else if this.IsActivityStreamsOffer() { + return this.GetActivityStreamsOffer().Serialize() + } else if this.IsActivityStreamsOrderedCollection() { + return this.GetActivityStreamsOrderedCollection().Serialize() + } else if this.IsActivityStreamsOrderedCollectionPage() { + return this.GetActivityStreamsOrderedCollectionPage().Serialize() + } else if this.IsActivityStreamsOrganization() { + return this.GetActivityStreamsOrganization().Serialize() + } else if this.IsActivityStreamsPage() { + return this.GetActivityStreamsPage().Serialize() + } else if this.IsActivityStreamsPerson() { + return this.GetActivityStreamsPerson().Serialize() + } else if this.IsActivityStreamsPlace() { + return this.GetActivityStreamsPlace().Serialize() + } else if this.IsActivityStreamsProfile() { + return this.GetActivityStreamsProfile().Serialize() + } else if this.IsForgeFedPush() { + return this.GetForgeFedPush().Serialize() + } else if this.IsActivityStreamsQuestion() { + return this.GetActivityStreamsQuestion().Serialize() + } else if this.IsActivityStreamsRead() { + return this.GetActivityStreamsRead().Serialize() + } else if this.IsActivityStreamsReject() { + return this.GetActivityStreamsReject().Serialize() + } else if this.IsActivityStreamsRelationship() { + return this.GetActivityStreamsRelationship().Serialize() + } else if this.IsActivityStreamsRemove() { + return this.GetActivityStreamsRemove().Serialize() + } else if this.IsForgeFedRepository() { + return this.GetForgeFedRepository().Serialize() + } else if this.IsActivityStreamsService() { + return this.GetActivityStreamsService().Serialize() + } else if this.IsActivityStreamsTentativeAccept() { + return this.GetActivityStreamsTentativeAccept().Serialize() + } else if this.IsActivityStreamsTentativeReject() { + return this.GetActivityStreamsTentativeReject().Serialize() + } else if this.IsForgeFedTicket() { + return this.GetForgeFedTicket().Serialize() + } else if this.IsForgeFedTicketDependency() { + return this.GetForgeFedTicketDependency().Serialize() + } else if this.IsActivityStreamsTombstone() { + return this.GetActivityStreamsTombstone().Serialize() + } else if this.IsActivityStreamsTravel() { + return this.GetActivityStreamsTravel().Serialize() + } else if this.IsActivityStreamsUndo() { + return this.GetActivityStreamsUndo().Serialize() + } else if this.IsActivityStreamsUpdate() { + return this.GetActivityStreamsUpdate().Serialize() + } else if this.IsActivityStreamsVideo() { + return this.GetActivityStreamsVideo().Serialize() + } else if this.IsActivityStreamsView() { + return this.GetActivityStreamsView().Serialize() + } else if this.IsIRI() { + return this.iri.String(), nil + } + return this.unknown, nil +} + +// SetActivityStreamsAccept sets the value of this property. Calling +// IsActivityStreamsAccept afterwards returns true. +func (this *ForgeFedDescriptionProperty) SetActivityStreamsAccept(v vocab.ActivityStreamsAccept) { + this.Clear() + this.activitystreamsAcceptMember = v +} + +// SetActivityStreamsActivity sets the value of this property. Calling +// IsActivityStreamsActivity afterwards returns true. +func (this *ForgeFedDescriptionProperty) SetActivityStreamsActivity(v vocab.ActivityStreamsActivity) { + this.Clear() + this.activitystreamsActivityMember = v +} + +// SetActivityStreamsAdd sets the value of this property. Calling +// IsActivityStreamsAdd afterwards returns true. +func (this *ForgeFedDescriptionProperty) SetActivityStreamsAdd(v vocab.ActivityStreamsAdd) { + this.Clear() + this.activitystreamsAddMember = v +} + +// SetActivityStreamsAnnounce sets the value of this property. Calling +// IsActivityStreamsAnnounce afterwards returns true. +func (this *ForgeFedDescriptionProperty) SetActivityStreamsAnnounce(v vocab.ActivityStreamsAnnounce) { + this.Clear() + this.activitystreamsAnnounceMember = v +} + +// SetActivityStreamsApplication sets the value of this property. Calling +// IsActivityStreamsApplication afterwards returns true. +func (this *ForgeFedDescriptionProperty) SetActivityStreamsApplication(v vocab.ActivityStreamsApplication) { + this.Clear() + this.activitystreamsApplicationMember = v +} + +// SetActivityStreamsArrive sets the value of this property. Calling +// IsActivityStreamsArrive afterwards returns true. +func (this *ForgeFedDescriptionProperty) SetActivityStreamsArrive(v vocab.ActivityStreamsArrive) { + this.Clear() + this.activitystreamsArriveMember = v +} + +// SetActivityStreamsArticle sets the value of this property. Calling +// IsActivityStreamsArticle afterwards returns true. +func (this *ForgeFedDescriptionProperty) SetActivityStreamsArticle(v vocab.ActivityStreamsArticle) { + this.Clear() + this.activitystreamsArticleMember = v +} + +// SetActivityStreamsAudio sets the value of this property. Calling +// IsActivityStreamsAudio afterwards returns true. +func (this *ForgeFedDescriptionProperty) SetActivityStreamsAudio(v vocab.ActivityStreamsAudio) { + this.Clear() + this.activitystreamsAudioMember = v +} + +// SetActivityStreamsBlock sets the value of this property. Calling +// IsActivityStreamsBlock afterwards returns true. +func (this *ForgeFedDescriptionProperty) SetActivityStreamsBlock(v vocab.ActivityStreamsBlock) { + this.Clear() + this.activitystreamsBlockMember = v +} + +// SetActivityStreamsCollection sets the value of this property. Calling +// IsActivityStreamsCollection afterwards returns true. +func (this *ForgeFedDescriptionProperty) SetActivityStreamsCollection(v vocab.ActivityStreamsCollection) { + this.Clear() + this.activitystreamsCollectionMember = v +} + +// SetActivityStreamsCollectionPage sets the value of this property. Calling +// IsActivityStreamsCollectionPage afterwards returns true. +func (this *ForgeFedDescriptionProperty) SetActivityStreamsCollectionPage(v vocab.ActivityStreamsCollectionPage) { + this.Clear() + this.activitystreamsCollectionPageMember = v +} + +// SetActivityStreamsCreate sets the value of this property. Calling +// IsActivityStreamsCreate afterwards returns true. +func (this *ForgeFedDescriptionProperty) SetActivityStreamsCreate(v vocab.ActivityStreamsCreate) { + this.Clear() + this.activitystreamsCreateMember = v +} + +// SetActivityStreamsDelete sets the value of this property. Calling +// IsActivityStreamsDelete afterwards returns true. +func (this *ForgeFedDescriptionProperty) SetActivityStreamsDelete(v vocab.ActivityStreamsDelete) { + this.Clear() + this.activitystreamsDeleteMember = v +} + +// SetActivityStreamsDislike sets the value of this property. Calling +// IsActivityStreamsDislike afterwards returns true. +func (this *ForgeFedDescriptionProperty) SetActivityStreamsDislike(v vocab.ActivityStreamsDislike) { + this.Clear() + this.activitystreamsDislikeMember = v +} + +// SetActivityStreamsDocument sets the value of this property. Calling +// IsActivityStreamsDocument afterwards returns true. +func (this *ForgeFedDescriptionProperty) SetActivityStreamsDocument(v vocab.ActivityStreamsDocument) { + this.Clear() + this.activitystreamsDocumentMember = v +} + +// SetActivityStreamsEvent sets the value of this property. Calling +// IsActivityStreamsEvent afterwards returns true. +func (this *ForgeFedDescriptionProperty) SetActivityStreamsEvent(v vocab.ActivityStreamsEvent) { + this.Clear() + this.activitystreamsEventMember = v +} + +// SetActivityStreamsFlag sets the value of this property. Calling +// IsActivityStreamsFlag afterwards returns true. +func (this *ForgeFedDescriptionProperty) SetActivityStreamsFlag(v vocab.ActivityStreamsFlag) { + this.Clear() + this.activitystreamsFlagMember = v +} + +// SetActivityStreamsFollow sets the value of this property. Calling +// IsActivityStreamsFollow afterwards returns true. +func (this *ForgeFedDescriptionProperty) SetActivityStreamsFollow(v vocab.ActivityStreamsFollow) { + this.Clear() + this.activitystreamsFollowMember = v +} + +// SetActivityStreamsGroup sets the value of this property. Calling +// IsActivityStreamsGroup afterwards returns true. +func (this *ForgeFedDescriptionProperty) SetActivityStreamsGroup(v vocab.ActivityStreamsGroup) { + this.Clear() + this.activitystreamsGroupMember = v +} + +// SetActivityStreamsIgnore sets the value of this property. Calling +// IsActivityStreamsIgnore afterwards returns true. +func (this *ForgeFedDescriptionProperty) SetActivityStreamsIgnore(v vocab.ActivityStreamsIgnore) { + this.Clear() + this.activitystreamsIgnoreMember = v +} + +// SetActivityStreamsImage sets the value of this property. Calling +// IsActivityStreamsImage afterwards returns true. +func (this *ForgeFedDescriptionProperty) SetActivityStreamsImage(v vocab.ActivityStreamsImage) { + this.Clear() + this.activitystreamsImageMember = v +} + +// SetActivityStreamsIntransitiveActivity sets the value of this property. Calling +// IsActivityStreamsIntransitiveActivity afterwards returns true. +func (this *ForgeFedDescriptionProperty) SetActivityStreamsIntransitiveActivity(v vocab.ActivityStreamsIntransitiveActivity) { + this.Clear() + this.activitystreamsIntransitiveActivityMember = v +} + +// SetActivityStreamsInvite sets the value of this property. Calling +// IsActivityStreamsInvite afterwards returns true. +func (this *ForgeFedDescriptionProperty) SetActivityStreamsInvite(v vocab.ActivityStreamsInvite) { + this.Clear() + this.activitystreamsInviteMember = v +} + +// SetActivityStreamsJoin sets the value of this property. Calling +// IsActivityStreamsJoin afterwards returns true. +func (this *ForgeFedDescriptionProperty) SetActivityStreamsJoin(v vocab.ActivityStreamsJoin) { + this.Clear() + this.activitystreamsJoinMember = v +} + +// SetActivityStreamsLeave sets the value of this property. Calling +// IsActivityStreamsLeave afterwards returns true. +func (this *ForgeFedDescriptionProperty) SetActivityStreamsLeave(v vocab.ActivityStreamsLeave) { + this.Clear() + this.activitystreamsLeaveMember = v +} + +// SetActivityStreamsLike sets the value of this property. Calling +// IsActivityStreamsLike afterwards returns true. +func (this *ForgeFedDescriptionProperty) SetActivityStreamsLike(v vocab.ActivityStreamsLike) { + this.Clear() + this.activitystreamsLikeMember = v +} + +// SetActivityStreamsListen sets the value of this property. Calling +// IsActivityStreamsListen afterwards returns true. +func (this *ForgeFedDescriptionProperty) SetActivityStreamsListen(v vocab.ActivityStreamsListen) { + this.Clear() + this.activitystreamsListenMember = v +} + +// SetActivityStreamsMove sets the value of this property. Calling +// IsActivityStreamsMove afterwards returns true. +func (this *ForgeFedDescriptionProperty) SetActivityStreamsMove(v vocab.ActivityStreamsMove) { + this.Clear() + this.activitystreamsMoveMember = v +} + +// SetActivityStreamsNote sets the value of this property. Calling +// IsActivityStreamsNote afterwards returns true. +func (this *ForgeFedDescriptionProperty) SetActivityStreamsNote(v vocab.ActivityStreamsNote) { + this.Clear() + this.activitystreamsNoteMember = v +} + +// SetActivityStreamsObject sets the value of this property. Calling +// IsActivityStreamsObject afterwards returns true. +func (this *ForgeFedDescriptionProperty) SetActivityStreamsObject(v vocab.ActivityStreamsObject) { + this.Clear() + this.activitystreamsObjectMember = v +} + +// SetActivityStreamsOffer sets the value of this property. Calling +// IsActivityStreamsOffer afterwards returns true. +func (this *ForgeFedDescriptionProperty) SetActivityStreamsOffer(v vocab.ActivityStreamsOffer) { + this.Clear() + this.activitystreamsOfferMember = v +} + +// SetActivityStreamsOrderedCollection sets the value of this property. Calling +// IsActivityStreamsOrderedCollection afterwards returns true. +func (this *ForgeFedDescriptionProperty) SetActivityStreamsOrderedCollection(v vocab.ActivityStreamsOrderedCollection) { + this.Clear() + this.activitystreamsOrderedCollectionMember = v +} + +// SetActivityStreamsOrderedCollectionPage sets the value of this property. +// Calling IsActivityStreamsOrderedCollectionPage afterwards returns true. +func (this *ForgeFedDescriptionProperty) SetActivityStreamsOrderedCollectionPage(v vocab.ActivityStreamsOrderedCollectionPage) { + this.Clear() + this.activitystreamsOrderedCollectionPageMember = v +} + +// SetActivityStreamsOrganization sets the value of this property. Calling +// IsActivityStreamsOrganization afterwards returns true. +func (this *ForgeFedDescriptionProperty) SetActivityStreamsOrganization(v vocab.ActivityStreamsOrganization) { + this.Clear() + this.activitystreamsOrganizationMember = v +} + +// SetActivityStreamsPage sets the value of this property. Calling +// IsActivityStreamsPage afterwards returns true. +func (this *ForgeFedDescriptionProperty) SetActivityStreamsPage(v vocab.ActivityStreamsPage) { + this.Clear() + this.activitystreamsPageMember = v +} + +// SetActivityStreamsPerson sets the value of this property. Calling +// IsActivityStreamsPerson afterwards returns true. +func (this *ForgeFedDescriptionProperty) SetActivityStreamsPerson(v vocab.ActivityStreamsPerson) { + this.Clear() + this.activitystreamsPersonMember = v +} + +// SetActivityStreamsPlace sets the value of this property. Calling +// IsActivityStreamsPlace afterwards returns true. +func (this *ForgeFedDescriptionProperty) SetActivityStreamsPlace(v vocab.ActivityStreamsPlace) { + this.Clear() + this.activitystreamsPlaceMember = v +} + +// SetActivityStreamsProfile sets the value of this property. Calling +// IsActivityStreamsProfile afterwards returns true. +func (this *ForgeFedDescriptionProperty) SetActivityStreamsProfile(v vocab.ActivityStreamsProfile) { + this.Clear() + this.activitystreamsProfileMember = v +} + +// SetActivityStreamsQuestion sets the value of this property. Calling +// IsActivityStreamsQuestion afterwards returns true. +func (this *ForgeFedDescriptionProperty) SetActivityStreamsQuestion(v vocab.ActivityStreamsQuestion) { + this.Clear() + this.activitystreamsQuestionMember = v +} + +// SetActivityStreamsRead sets the value of this property. Calling +// IsActivityStreamsRead afterwards returns true. +func (this *ForgeFedDescriptionProperty) SetActivityStreamsRead(v vocab.ActivityStreamsRead) { + this.Clear() + this.activitystreamsReadMember = v +} + +// SetActivityStreamsReject sets the value of this property. Calling +// IsActivityStreamsReject afterwards returns true. +func (this *ForgeFedDescriptionProperty) SetActivityStreamsReject(v vocab.ActivityStreamsReject) { + this.Clear() + this.activitystreamsRejectMember = v +} + +// SetActivityStreamsRelationship sets the value of this property. Calling +// IsActivityStreamsRelationship afterwards returns true. +func (this *ForgeFedDescriptionProperty) SetActivityStreamsRelationship(v vocab.ActivityStreamsRelationship) { + this.Clear() + this.activitystreamsRelationshipMember = v +} + +// SetActivityStreamsRemove sets the value of this property. Calling +// IsActivityStreamsRemove afterwards returns true. +func (this *ForgeFedDescriptionProperty) SetActivityStreamsRemove(v vocab.ActivityStreamsRemove) { + this.Clear() + this.activitystreamsRemoveMember = v +} + +// SetActivityStreamsService sets the value of this property. Calling +// IsActivityStreamsService afterwards returns true. +func (this *ForgeFedDescriptionProperty) SetActivityStreamsService(v vocab.ActivityStreamsService) { + this.Clear() + this.activitystreamsServiceMember = v +} + +// SetActivityStreamsTentativeAccept sets the value of this property. Calling +// IsActivityStreamsTentativeAccept afterwards returns true. +func (this *ForgeFedDescriptionProperty) SetActivityStreamsTentativeAccept(v vocab.ActivityStreamsTentativeAccept) { + this.Clear() + this.activitystreamsTentativeAcceptMember = v +} + +// SetActivityStreamsTentativeReject sets the value of this property. Calling +// IsActivityStreamsTentativeReject afterwards returns true. +func (this *ForgeFedDescriptionProperty) SetActivityStreamsTentativeReject(v vocab.ActivityStreamsTentativeReject) { + this.Clear() + this.activitystreamsTentativeRejectMember = v +} + +// SetActivityStreamsTombstone sets the value of this property. Calling +// IsActivityStreamsTombstone afterwards returns true. +func (this *ForgeFedDescriptionProperty) SetActivityStreamsTombstone(v vocab.ActivityStreamsTombstone) { + this.Clear() + this.activitystreamsTombstoneMember = v +} + +// SetActivityStreamsTravel sets the value of this property. Calling +// IsActivityStreamsTravel afterwards returns true. +func (this *ForgeFedDescriptionProperty) SetActivityStreamsTravel(v vocab.ActivityStreamsTravel) { + this.Clear() + this.activitystreamsTravelMember = v +} + +// SetActivityStreamsUndo sets the value of this property. Calling +// IsActivityStreamsUndo afterwards returns true. +func (this *ForgeFedDescriptionProperty) SetActivityStreamsUndo(v vocab.ActivityStreamsUndo) { + this.Clear() + this.activitystreamsUndoMember = v +} + +// SetActivityStreamsUpdate sets the value of this property. Calling +// IsActivityStreamsUpdate afterwards returns true. +func (this *ForgeFedDescriptionProperty) SetActivityStreamsUpdate(v vocab.ActivityStreamsUpdate) { + this.Clear() + this.activitystreamsUpdateMember = v +} + +// SetActivityStreamsVideo sets the value of this property. Calling +// IsActivityStreamsVideo afterwards returns true. +func (this *ForgeFedDescriptionProperty) SetActivityStreamsVideo(v vocab.ActivityStreamsVideo) { + this.Clear() + this.activitystreamsVideoMember = v +} + +// SetActivityStreamsView sets the value of this property. Calling +// IsActivityStreamsView afterwards returns true. +func (this *ForgeFedDescriptionProperty) SetActivityStreamsView(v vocab.ActivityStreamsView) { + this.Clear() + this.activitystreamsViewMember = v +} + +// SetForgeFedBranch sets the value of this property. Calling IsForgeFedBranch +// afterwards returns true. +func (this *ForgeFedDescriptionProperty) SetForgeFedBranch(v vocab.ForgeFedBranch) { + this.Clear() + this.forgefedBranchMember = v +} + +// SetForgeFedCommit sets the value of this property. Calling IsForgeFedCommit +// afterwards returns true. +func (this *ForgeFedDescriptionProperty) SetForgeFedCommit(v vocab.ForgeFedCommit) { + this.Clear() + this.forgefedCommitMember = v +} + +// SetForgeFedPush sets the value of this property. Calling IsForgeFedPush +// afterwards returns true. +func (this *ForgeFedDescriptionProperty) SetForgeFedPush(v vocab.ForgeFedPush) { + this.Clear() + this.forgefedPushMember = v +} + +// SetForgeFedRepository sets the value of this property. Calling +// IsForgeFedRepository afterwards returns true. +func (this *ForgeFedDescriptionProperty) SetForgeFedRepository(v vocab.ForgeFedRepository) { + this.Clear() + this.forgefedRepositoryMember = v +} + +// SetForgeFedTicket sets the value of this property. Calling IsForgeFedTicket +// afterwards returns true. +func (this *ForgeFedDescriptionProperty) SetForgeFedTicket(v vocab.ForgeFedTicket) { + this.Clear() + this.forgefedTicketMember = v +} + +// SetForgeFedTicketDependency sets the value of this property. Calling +// IsForgeFedTicketDependency afterwards returns true. +func (this *ForgeFedDescriptionProperty) SetForgeFedTicketDependency(v vocab.ForgeFedTicketDependency) { + this.Clear() + this.forgefedTicketDependencyMember = v +} + +// SetIRI sets the value of this property. Calling IsIRI afterwards returns true. +func (this *ForgeFedDescriptionProperty) SetIRI(v *url.URL) { + this.Clear() + this.iri = v +} + +// SetTootEmoji sets the value of this property. Calling IsTootEmoji afterwards +// returns true. +func (this *ForgeFedDescriptionProperty) SetTootEmoji(v vocab.TootEmoji) { + this.Clear() + this.tootEmojiMember = v +} + +// SetTootIdentityProof sets the value of this property. Calling +// IsTootIdentityProof afterwards returns true. +func (this *ForgeFedDescriptionProperty) SetTootIdentityProof(v vocab.TootIdentityProof) { + this.Clear() + this.tootIdentityProofMember = v +} + +// SetType attempts to set the property for the arbitrary type. Returns an error +// if it is not a valid type to set on this property. +func (this *ForgeFedDescriptionProperty) SetType(t vocab.Type) error { + if v, ok := t.(vocab.ActivityStreamsObject); ok { + this.SetActivityStreamsObject(v) + return nil + } + if v, ok := t.(vocab.ActivityStreamsAccept); ok { + this.SetActivityStreamsAccept(v) + return nil + } + if v, ok := t.(vocab.ActivityStreamsActivity); ok { + this.SetActivityStreamsActivity(v) + return nil + } + if v, ok := t.(vocab.ActivityStreamsAdd); ok { + this.SetActivityStreamsAdd(v) + return nil + } + if v, ok := t.(vocab.ActivityStreamsAnnounce); ok { + this.SetActivityStreamsAnnounce(v) + return nil + } + if v, ok := t.(vocab.ActivityStreamsApplication); ok { + this.SetActivityStreamsApplication(v) + return nil + } + if v, ok := t.(vocab.ActivityStreamsArrive); ok { + this.SetActivityStreamsArrive(v) + return nil + } + if v, ok := t.(vocab.ActivityStreamsArticle); ok { + this.SetActivityStreamsArticle(v) + return nil + } + if v, ok := t.(vocab.ActivityStreamsAudio); ok { + this.SetActivityStreamsAudio(v) + return nil + } + if v, ok := t.(vocab.ActivityStreamsBlock); ok { + this.SetActivityStreamsBlock(v) + return nil + } + if v, ok := t.(vocab.ForgeFedBranch); ok { + this.SetForgeFedBranch(v) + return nil + } + if v, ok := t.(vocab.ActivityStreamsCollection); ok { + this.SetActivityStreamsCollection(v) + return nil + } + if v, ok := t.(vocab.ActivityStreamsCollectionPage); ok { + this.SetActivityStreamsCollectionPage(v) + return nil + } + if v, ok := t.(vocab.ForgeFedCommit); ok { + this.SetForgeFedCommit(v) + return nil + } + if v, ok := t.(vocab.ActivityStreamsCreate); ok { + this.SetActivityStreamsCreate(v) + return nil + } + if v, ok := t.(vocab.ActivityStreamsDelete); ok { + this.SetActivityStreamsDelete(v) + return nil + } + if v, ok := t.(vocab.ActivityStreamsDislike); ok { + this.SetActivityStreamsDislike(v) + return nil + } + if v, ok := t.(vocab.ActivityStreamsDocument); ok { + this.SetActivityStreamsDocument(v) + return nil + } + if v, ok := t.(vocab.TootEmoji); ok { + this.SetTootEmoji(v) + return nil + } + if v, ok := t.(vocab.ActivityStreamsEvent); ok { + this.SetActivityStreamsEvent(v) + return nil + } + if v, ok := t.(vocab.ActivityStreamsFlag); ok { + this.SetActivityStreamsFlag(v) + return nil + } + if v, ok := t.(vocab.ActivityStreamsFollow); ok { + this.SetActivityStreamsFollow(v) + return nil + } + if v, ok := t.(vocab.ActivityStreamsGroup); ok { + this.SetActivityStreamsGroup(v) + return nil + } + if v, ok := t.(vocab.TootIdentityProof); ok { + this.SetTootIdentityProof(v) + return nil + } + if v, ok := t.(vocab.ActivityStreamsIgnore); ok { + this.SetActivityStreamsIgnore(v) + return nil + } + if v, ok := t.(vocab.ActivityStreamsImage); ok { + this.SetActivityStreamsImage(v) + return nil + } + if v, ok := t.(vocab.ActivityStreamsIntransitiveActivity); ok { + this.SetActivityStreamsIntransitiveActivity(v) + return nil + } + if v, ok := t.(vocab.ActivityStreamsInvite); ok { + this.SetActivityStreamsInvite(v) + return nil + } + if v, ok := t.(vocab.ActivityStreamsJoin); ok { + this.SetActivityStreamsJoin(v) + return nil + } + if v, ok := t.(vocab.ActivityStreamsLeave); ok { + this.SetActivityStreamsLeave(v) + return nil + } + if v, ok := t.(vocab.ActivityStreamsLike); ok { + this.SetActivityStreamsLike(v) + return nil + } + if v, ok := t.(vocab.ActivityStreamsListen); ok { + this.SetActivityStreamsListen(v) + return nil + } + if v, ok := t.(vocab.ActivityStreamsMove); ok { + this.SetActivityStreamsMove(v) + return nil + } + if v, ok := t.(vocab.ActivityStreamsNote); ok { + this.SetActivityStreamsNote(v) + return nil + } + if v, ok := t.(vocab.ActivityStreamsOffer); ok { + this.SetActivityStreamsOffer(v) + return nil + } + if v, ok := t.(vocab.ActivityStreamsOrderedCollection); ok { + this.SetActivityStreamsOrderedCollection(v) + return nil + } + if v, ok := t.(vocab.ActivityStreamsOrderedCollectionPage); ok { + this.SetActivityStreamsOrderedCollectionPage(v) + return nil + } + if v, ok := t.(vocab.ActivityStreamsOrganization); ok { + this.SetActivityStreamsOrganization(v) + return nil + } + if v, ok := t.(vocab.ActivityStreamsPage); ok { + this.SetActivityStreamsPage(v) + return nil + } + if v, ok := t.(vocab.ActivityStreamsPerson); ok { + this.SetActivityStreamsPerson(v) + return nil + } + if v, ok := t.(vocab.ActivityStreamsPlace); ok { + this.SetActivityStreamsPlace(v) + return nil + } + if v, ok := t.(vocab.ActivityStreamsProfile); ok { + this.SetActivityStreamsProfile(v) + return nil + } + if v, ok := t.(vocab.ForgeFedPush); ok { + this.SetForgeFedPush(v) + return nil + } + if v, ok := t.(vocab.ActivityStreamsQuestion); ok { + this.SetActivityStreamsQuestion(v) + return nil + } + if v, ok := t.(vocab.ActivityStreamsRead); ok { + this.SetActivityStreamsRead(v) + return nil + } + if v, ok := t.(vocab.ActivityStreamsReject); ok { + this.SetActivityStreamsReject(v) + return nil + } + if v, ok := t.(vocab.ActivityStreamsRelationship); ok { + this.SetActivityStreamsRelationship(v) + return nil + } + if v, ok := t.(vocab.ActivityStreamsRemove); ok { + this.SetActivityStreamsRemove(v) + return nil + } + if v, ok := t.(vocab.ForgeFedRepository); ok { + this.SetForgeFedRepository(v) + return nil + } + if v, ok := t.(vocab.ActivityStreamsService); ok { + this.SetActivityStreamsService(v) + return nil + } + if v, ok := t.(vocab.ActivityStreamsTentativeAccept); ok { + this.SetActivityStreamsTentativeAccept(v) + return nil + } + if v, ok := t.(vocab.ActivityStreamsTentativeReject); ok { + this.SetActivityStreamsTentativeReject(v) + return nil + } + if v, ok := t.(vocab.ForgeFedTicket); ok { + this.SetForgeFedTicket(v) + return nil + } + if v, ok := t.(vocab.ForgeFedTicketDependency); ok { + this.SetForgeFedTicketDependency(v) + return nil + } + if v, ok := t.(vocab.ActivityStreamsTombstone); ok { + this.SetActivityStreamsTombstone(v) + return nil + } + if v, ok := t.(vocab.ActivityStreamsTravel); ok { + this.SetActivityStreamsTravel(v) + return nil + } + if v, ok := t.(vocab.ActivityStreamsUndo); ok { + this.SetActivityStreamsUndo(v) + return nil + } + if v, ok := t.(vocab.ActivityStreamsUpdate); ok { + this.SetActivityStreamsUpdate(v) + return nil + } + if v, ok := t.(vocab.ActivityStreamsVideo); ok { + this.SetActivityStreamsVideo(v) + return nil + } + if v, ok := t.(vocab.ActivityStreamsView); ok { + this.SetActivityStreamsView(v) + return nil + } + + return fmt.Errorf("illegal type to set on description property: %T", t) +} diff --git a/streams/impl/forgefed/property_earlyitems/gen_doc.go b/streams/impl/forgefed/property_earlyitems/gen_doc.go new file mode 100644 index 0000000..54df4ed --- /dev/null +++ b/streams/impl/forgefed/property_earlyitems/gen_doc.go @@ -0,0 +1,17 @@ +// Code generated by astool. DO NOT EDIT. + +// Package propertyearlyitems contains the implementation for the earlyItems +// property. All applications are strongly encouraged to use the interface +// instead of this concrete definition. The interfaces allow applications to +// consume only the types and properties needed and be independent of the +// go-fed implementation if another alternative implementation is created. +// This package is code-generated and subject to the same license as the +// go-fed tool used to generate it. +// +// This package is independent of other types' and properties' implementations +// by having a Manager injected into it to act as a factory for the concrete +// implementations. The implementations have been generated into their own +// separate subpackages for each vocabulary. +// +// Strongly consider using the interfaces instead of this package. +package propertyearlyitems diff --git a/streams/impl/forgefed/property_earlyitems/gen_pkg.go b/streams/impl/forgefed/property_earlyitems/gen_pkg.go new file mode 100644 index 0000000..7cf49dd --- /dev/null +++ b/streams/impl/forgefed/property_earlyitems/gen_pkg.go @@ -0,0 +1,265 @@ +// Code generated by astool. DO NOT EDIT. + +package propertyearlyitems + +import vocab "github.com/go-fed/activity/streams/vocab" + +var mgr privateManager + +// privateManager abstracts the code-generated manager that provides access to +// concrete implementations. +type privateManager interface { + // DeserializeAcceptActivityStreams returns the deserialization method for + // the "ActivityStreamsAccept" non-functional property in the + // vocabulary "ActivityStreams" + DeserializeAcceptActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAccept, error) + // DeserializeActivityActivityStreams returns the deserialization method + // for the "ActivityStreamsActivity" non-functional property in the + // vocabulary "ActivityStreams" + DeserializeActivityActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsActivity, error) + // DeserializeAddActivityStreams returns the deserialization method for + // the "ActivityStreamsAdd" non-functional property in the vocabulary + // "ActivityStreams" + DeserializeAddActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAdd, error) + // DeserializeAnnounceActivityStreams returns the deserialization method + // for the "ActivityStreamsAnnounce" non-functional property in the + // vocabulary "ActivityStreams" + DeserializeAnnounceActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAnnounce, error) + // DeserializeApplicationActivityStreams returns the deserialization + // method for the "ActivityStreamsApplication" non-functional property + // in the vocabulary "ActivityStreams" + DeserializeApplicationActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsApplication, error) + // DeserializeArriveActivityStreams returns the deserialization method for + // the "ActivityStreamsArrive" non-functional property in the + // vocabulary "ActivityStreams" + DeserializeArriveActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsArrive, error) + // DeserializeArticleActivityStreams returns the deserialization method + // for the "ActivityStreamsArticle" non-functional property in the + // vocabulary "ActivityStreams" + DeserializeArticleActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsArticle, error) + // DeserializeAudioActivityStreams returns the deserialization method for + // the "ActivityStreamsAudio" non-functional property in the + // vocabulary "ActivityStreams" + DeserializeAudioActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAudio, error) + // DeserializeBlockActivityStreams returns the deserialization method for + // the "ActivityStreamsBlock" non-functional property in the + // vocabulary "ActivityStreams" + DeserializeBlockActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsBlock, error) + // DeserializeBranchForgeFed returns the deserialization method for the + // "ForgeFedBranch" non-functional property in the vocabulary + // "ForgeFed" + DeserializeBranchForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedBranch, error) + // DeserializeCollectionActivityStreams returns the deserialization method + // for the "ActivityStreamsCollection" non-functional property in the + // vocabulary "ActivityStreams" + DeserializeCollectionActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsCollection, error) + // DeserializeCollectionPageActivityStreams returns the deserialization + // method for the "ActivityStreamsCollectionPage" non-functional + // property in the vocabulary "ActivityStreams" + DeserializeCollectionPageActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsCollectionPage, error) + // DeserializeCommitForgeFed returns the deserialization method for the + // "ForgeFedCommit" non-functional property in the vocabulary + // "ForgeFed" + DeserializeCommitForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedCommit, error) + // DeserializeCreateActivityStreams returns the deserialization method for + // the "ActivityStreamsCreate" non-functional property in the + // vocabulary "ActivityStreams" + DeserializeCreateActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsCreate, error) + // DeserializeDeleteActivityStreams returns the deserialization method for + // the "ActivityStreamsDelete" non-functional property in the + // vocabulary "ActivityStreams" + DeserializeDeleteActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsDelete, error) + // DeserializeDislikeActivityStreams returns the deserialization method + // for the "ActivityStreamsDislike" non-functional property in the + // vocabulary "ActivityStreams" + DeserializeDislikeActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsDislike, error) + // DeserializeDocumentActivityStreams returns the deserialization method + // for the "ActivityStreamsDocument" non-functional property in the + // vocabulary "ActivityStreams" + DeserializeDocumentActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsDocument, error) + // DeserializeEmojiToot returns the deserialization method for the + // "TootEmoji" non-functional property in the vocabulary "Toot" + DeserializeEmojiToot() func(map[string]interface{}, map[string]string) (vocab.TootEmoji, error) + // DeserializeEventActivityStreams returns the deserialization method for + // the "ActivityStreamsEvent" non-functional property in the + // vocabulary "ActivityStreams" + DeserializeEventActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsEvent, error) + // DeserializeFlagActivityStreams returns the deserialization method for + // the "ActivityStreamsFlag" non-functional property in the vocabulary + // "ActivityStreams" + DeserializeFlagActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsFlag, error) + // DeserializeFollowActivityStreams returns the deserialization method for + // the "ActivityStreamsFollow" non-functional property in the + // vocabulary "ActivityStreams" + DeserializeFollowActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsFollow, error) + // DeserializeGroupActivityStreams returns the deserialization method for + // the "ActivityStreamsGroup" non-functional property in the + // vocabulary "ActivityStreams" + DeserializeGroupActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsGroup, error) + // DeserializeIdentityProofToot returns the deserialization method for the + // "TootIdentityProof" non-functional property in the vocabulary "Toot" + DeserializeIdentityProofToot() func(map[string]interface{}, map[string]string) (vocab.TootIdentityProof, error) + // DeserializeIgnoreActivityStreams returns the deserialization method for + // the "ActivityStreamsIgnore" non-functional property in the + // vocabulary "ActivityStreams" + DeserializeIgnoreActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsIgnore, error) + // DeserializeImageActivityStreams returns the deserialization method for + // the "ActivityStreamsImage" non-functional property in the + // vocabulary "ActivityStreams" + DeserializeImageActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsImage, error) + // DeserializeIntransitiveActivityActivityStreams returns the + // deserialization method for the + // "ActivityStreamsIntransitiveActivity" non-functional property in + // the vocabulary "ActivityStreams" + DeserializeIntransitiveActivityActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsIntransitiveActivity, error) + // DeserializeInviteActivityStreams returns the deserialization method for + // the "ActivityStreamsInvite" non-functional property in the + // vocabulary "ActivityStreams" + DeserializeInviteActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsInvite, error) + // DeserializeJoinActivityStreams returns the deserialization method for + // the "ActivityStreamsJoin" non-functional property in the vocabulary + // "ActivityStreams" + DeserializeJoinActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsJoin, error) + // DeserializeLeaveActivityStreams returns the deserialization method for + // the "ActivityStreamsLeave" non-functional property in the + // vocabulary "ActivityStreams" + DeserializeLeaveActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLeave, error) + // DeserializeLikeActivityStreams returns the deserialization method for + // the "ActivityStreamsLike" non-functional property in the vocabulary + // "ActivityStreams" + DeserializeLikeActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLike, error) + // DeserializeLinkActivityStreams returns the deserialization method for + // the "ActivityStreamsLink" non-functional property in the vocabulary + // "ActivityStreams" + DeserializeLinkActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLink, error) + // DeserializeListenActivityStreams returns the deserialization method for + // the "ActivityStreamsListen" non-functional property in the + // vocabulary "ActivityStreams" + DeserializeListenActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsListen, error) + // DeserializeMentionActivityStreams returns the deserialization method + // for the "ActivityStreamsMention" non-functional property in the + // vocabulary "ActivityStreams" + DeserializeMentionActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsMention, error) + // DeserializeMoveActivityStreams returns the deserialization method for + // the "ActivityStreamsMove" non-functional property in the vocabulary + // "ActivityStreams" + DeserializeMoveActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsMove, error) + // DeserializeNoteActivityStreams returns the deserialization method for + // the "ActivityStreamsNote" non-functional property in the vocabulary + // "ActivityStreams" + DeserializeNoteActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsNote, error) + // DeserializeObjectActivityStreams returns the deserialization method for + // the "ActivityStreamsObject" non-functional property in the + // vocabulary "ActivityStreams" + DeserializeObjectActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsObject, error) + // DeserializeOfferActivityStreams returns the deserialization method for + // the "ActivityStreamsOffer" non-functional property in the + // vocabulary "ActivityStreams" + DeserializeOfferActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsOffer, error) + // DeserializeOrderedCollectionActivityStreams returns the deserialization + // method for the "ActivityStreamsOrderedCollection" non-functional + // property in the vocabulary "ActivityStreams" + DeserializeOrderedCollectionActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsOrderedCollection, error) + // DeserializeOrderedCollectionPageActivityStreams returns the + // deserialization method for the + // "ActivityStreamsOrderedCollectionPage" non-functional property in + // the vocabulary "ActivityStreams" + DeserializeOrderedCollectionPageActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsOrderedCollectionPage, error) + // DeserializeOrganizationActivityStreams returns the deserialization + // method for the "ActivityStreamsOrganization" non-functional + // property in the vocabulary "ActivityStreams" + DeserializeOrganizationActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsOrganization, error) + // DeserializePageActivityStreams returns the deserialization method for + // the "ActivityStreamsPage" non-functional property in the vocabulary + // "ActivityStreams" + DeserializePageActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsPage, error) + // DeserializePersonActivityStreams returns the deserialization method for + // the "ActivityStreamsPerson" non-functional property in the + // vocabulary "ActivityStreams" + DeserializePersonActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsPerson, error) + // DeserializePlaceActivityStreams returns the deserialization method for + // the "ActivityStreamsPlace" non-functional property in the + // vocabulary "ActivityStreams" + DeserializePlaceActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsPlace, error) + // DeserializeProfileActivityStreams returns the deserialization method + // for the "ActivityStreamsProfile" non-functional property in the + // vocabulary "ActivityStreams" + DeserializeProfileActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsProfile, error) + // DeserializePushForgeFed returns the deserialization method for the + // "ForgeFedPush" non-functional property in the vocabulary "ForgeFed" + DeserializePushForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedPush, error) + // DeserializeQuestionActivityStreams returns the deserialization method + // for the "ActivityStreamsQuestion" non-functional property in the + // vocabulary "ActivityStreams" + DeserializeQuestionActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsQuestion, error) + // DeserializeReadActivityStreams returns the deserialization method for + // the "ActivityStreamsRead" non-functional property in the vocabulary + // "ActivityStreams" + DeserializeReadActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsRead, error) + // DeserializeRejectActivityStreams returns the deserialization method for + // the "ActivityStreamsReject" non-functional property in the + // vocabulary "ActivityStreams" + DeserializeRejectActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsReject, error) + // DeserializeRelationshipActivityStreams returns the deserialization + // method for the "ActivityStreamsRelationship" non-functional + // property in the vocabulary "ActivityStreams" + DeserializeRelationshipActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsRelationship, error) + // DeserializeRemoveActivityStreams returns the deserialization method for + // the "ActivityStreamsRemove" non-functional property in the + // vocabulary "ActivityStreams" + DeserializeRemoveActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsRemove, error) + // DeserializeRepositoryForgeFed returns the deserialization method for + // the "ForgeFedRepository" non-functional property in the vocabulary + // "ForgeFed" + DeserializeRepositoryForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedRepository, error) + // DeserializeServiceActivityStreams returns the deserialization method + // for the "ActivityStreamsService" non-functional property in the + // vocabulary "ActivityStreams" + DeserializeServiceActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsService, error) + // DeserializeTentativeAcceptActivityStreams returns the deserialization + // method for the "ActivityStreamsTentativeAccept" non-functional + // property in the vocabulary "ActivityStreams" + DeserializeTentativeAcceptActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTentativeAccept, error) + // DeserializeTentativeRejectActivityStreams returns the deserialization + // method for the "ActivityStreamsTentativeReject" non-functional + // property in the vocabulary "ActivityStreams" + DeserializeTentativeRejectActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTentativeReject, error) + // DeserializeTicketDependencyForgeFed returns the deserialization method + // for the "ForgeFedTicketDependency" non-functional property in the + // vocabulary "ForgeFed" + DeserializeTicketDependencyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTicketDependency, error) + // DeserializeTicketForgeFed returns the deserialization method for the + // "ForgeFedTicket" non-functional property in the vocabulary + // "ForgeFed" + DeserializeTicketForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTicket, error) + // DeserializeTombstoneActivityStreams returns the deserialization method + // for the "ActivityStreamsTombstone" non-functional property in the + // vocabulary "ActivityStreams" + DeserializeTombstoneActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTombstone, error) + // DeserializeTravelActivityStreams returns the deserialization method for + // the "ActivityStreamsTravel" non-functional property in the + // vocabulary "ActivityStreams" + DeserializeTravelActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTravel, error) + // DeserializeUndoActivityStreams returns the deserialization method for + // the "ActivityStreamsUndo" non-functional property in the vocabulary + // "ActivityStreams" + DeserializeUndoActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsUndo, error) + // DeserializeUpdateActivityStreams returns the deserialization method for + // the "ActivityStreamsUpdate" non-functional property in the + // vocabulary "ActivityStreams" + DeserializeUpdateActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsUpdate, error) + // DeserializeVideoActivityStreams returns the deserialization method for + // the "ActivityStreamsVideo" non-functional property in the + // vocabulary "ActivityStreams" + DeserializeVideoActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsVideo, error) + // DeserializeViewActivityStreams returns the deserialization method for + // the "ActivityStreamsView" non-functional property in the vocabulary + // "ActivityStreams" + DeserializeViewActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsView, error) +} + +// SetManager sets the manager package-global variable. For internal use only, do +// not use as part of Application behavior. Must be called at golang init time. +func SetManager(m privateManager) { + mgr = m +} diff --git a/streams/impl/forgefed/property_earlyitems/gen_property_forgefed_earlyItems.go b/streams/impl/forgefed/property_earlyitems/gen_property_forgefed_earlyItems.go new file mode 100644 index 0000000..38e5b0d --- /dev/null +++ b/streams/impl/forgefed/property_earlyitems/gen_property_forgefed_earlyItems.go @@ -0,0 +1,7046 @@ +// Code generated by astool. DO NOT EDIT. + +package propertyearlyitems + +import ( + "fmt" + vocab "github.com/go-fed/activity/streams/vocab" + "net/url" +) + +// ForgeFedEarlyItemsPropertyIterator is an iterator for a property. It is +// permitted to be one of multiple value types. At most, one type of value can +// be present, or none at all. Setting a value will clear the other types of +// values so that only one of the 'Is' methods will return true. It is +// possible to clear all values, so that this property is empty. +type ForgeFedEarlyItemsPropertyIterator struct { + activitystreamsObjectMember vocab.ActivityStreamsObject + activitystreamsLinkMember vocab.ActivityStreamsLink + activitystreamsAcceptMember vocab.ActivityStreamsAccept + activitystreamsActivityMember vocab.ActivityStreamsActivity + activitystreamsAddMember vocab.ActivityStreamsAdd + activitystreamsAnnounceMember vocab.ActivityStreamsAnnounce + activitystreamsApplicationMember vocab.ActivityStreamsApplication + activitystreamsArriveMember vocab.ActivityStreamsArrive + activitystreamsArticleMember vocab.ActivityStreamsArticle + activitystreamsAudioMember vocab.ActivityStreamsAudio + activitystreamsBlockMember vocab.ActivityStreamsBlock + forgefedBranchMember vocab.ForgeFedBranch + activitystreamsCollectionMember vocab.ActivityStreamsCollection + activitystreamsCollectionPageMember vocab.ActivityStreamsCollectionPage + forgefedCommitMember vocab.ForgeFedCommit + activitystreamsCreateMember vocab.ActivityStreamsCreate + activitystreamsDeleteMember vocab.ActivityStreamsDelete + activitystreamsDislikeMember vocab.ActivityStreamsDislike + activitystreamsDocumentMember vocab.ActivityStreamsDocument + tootEmojiMember vocab.TootEmoji + activitystreamsEventMember vocab.ActivityStreamsEvent + activitystreamsFlagMember vocab.ActivityStreamsFlag + activitystreamsFollowMember vocab.ActivityStreamsFollow + activitystreamsGroupMember vocab.ActivityStreamsGroup + tootIdentityProofMember vocab.TootIdentityProof + activitystreamsIgnoreMember vocab.ActivityStreamsIgnore + activitystreamsImageMember vocab.ActivityStreamsImage + activitystreamsIntransitiveActivityMember vocab.ActivityStreamsIntransitiveActivity + activitystreamsInviteMember vocab.ActivityStreamsInvite + activitystreamsJoinMember vocab.ActivityStreamsJoin + activitystreamsLeaveMember vocab.ActivityStreamsLeave + activitystreamsLikeMember vocab.ActivityStreamsLike + activitystreamsListenMember vocab.ActivityStreamsListen + activitystreamsMentionMember vocab.ActivityStreamsMention + activitystreamsMoveMember vocab.ActivityStreamsMove + activitystreamsNoteMember vocab.ActivityStreamsNote + activitystreamsOfferMember vocab.ActivityStreamsOffer + activitystreamsOrderedCollectionMember vocab.ActivityStreamsOrderedCollection + activitystreamsOrderedCollectionPageMember vocab.ActivityStreamsOrderedCollectionPage + activitystreamsOrganizationMember vocab.ActivityStreamsOrganization + activitystreamsPageMember vocab.ActivityStreamsPage + activitystreamsPersonMember vocab.ActivityStreamsPerson + activitystreamsPlaceMember vocab.ActivityStreamsPlace + activitystreamsProfileMember vocab.ActivityStreamsProfile + forgefedPushMember vocab.ForgeFedPush + activitystreamsQuestionMember vocab.ActivityStreamsQuestion + activitystreamsReadMember vocab.ActivityStreamsRead + activitystreamsRejectMember vocab.ActivityStreamsReject + activitystreamsRelationshipMember vocab.ActivityStreamsRelationship + activitystreamsRemoveMember vocab.ActivityStreamsRemove + forgefedRepositoryMember vocab.ForgeFedRepository + activitystreamsServiceMember vocab.ActivityStreamsService + activitystreamsTentativeAcceptMember vocab.ActivityStreamsTentativeAccept + activitystreamsTentativeRejectMember vocab.ActivityStreamsTentativeReject + forgefedTicketMember vocab.ForgeFedTicket + forgefedTicketDependencyMember vocab.ForgeFedTicketDependency + activitystreamsTombstoneMember vocab.ActivityStreamsTombstone + activitystreamsTravelMember vocab.ActivityStreamsTravel + activitystreamsUndoMember vocab.ActivityStreamsUndo + activitystreamsUpdateMember vocab.ActivityStreamsUpdate + activitystreamsVideoMember vocab.ActivityStreamsVideo + activitystreamsViewMember vocab.ActivityStreamsView + unknown interface{} + iri *url.URL + alias string + myIdx int + parent vocab.ForgeFedEarlyItemsProperty +} + +// NewForgeFedEarlyItemsPropertyIterator creates a new ForgeFedEarlyItems property. +func NewForgeFedEarlyItemsPropertyIterator() *ForgeFedEarlyItemsPropertyIterator { + return &ForgeFedEarlyItemsPropertyIterator{alias: ""} +} + +// deserializeForgeFedEarlyItemsPropertyIterator creates an iterator from an +// element that has been unmarshalled from a text or binary format. +func deserializeForgeFedEarlyItemsPropertyIterator(i interface{}, aliasMap map[string]string) (*ForgeFedEarlyItemsPropertyIterator, error) { + alias := "" + if a, ok := aliasMap["https://forgefed.peers.community/ns"]; ok { + alias = a + } + if s, ok := i.(string); ok { + u, err := url.Parse(s) + // If error exists, don't error out -- skip this and treat as unknown string ([]byte) at worst + // Also, if no scheme exists, don't treat it as a URL -- net/url is greedy + if err == nil && len(u.Scheme) > 0 { + this := &ForgeFedEarlyItemsPropertyIterator{ + alias: alias, + iri: u, + } + return this, nil + } + } + if m, ok := i.(map[string]interface{}); ok { + if v, err := mgr.DeserializeObjectActivityStreams()(m, aliasMap); err == nil { + this := &ForgeFedEarlyItemsPropertyIterator{ + activitystreamsObjectMember: v, + alias: alias, + } + return this, nil + } else if v, err := mgr.DeserializeLinkActivityStreams()(m, aliasMap); err == nil { + this := &ForgeFedEarlyItemsPropertyIterator{ + activitystreamsLinkMember: v, + alias: alias, + } + return this, nil + } else if v, err := mgr.DeserializeAcceptActivityStreams()(m, aliasMap); err == nil { + this := &ForgeFedEarlyItemsPropertyIterator{ + activitystreamsAcceptMember: v, + alias: alias, + } + return this, nil + } else if v, err := mgr.DeserializeActivityActivityStreams()(m, aliasMap); err == nil { + this := &ForgeFedEarlyItemsPropertyIterator{ + activitystreamsActivityMember: v, + alias: alias, + } + return this, nil + } else if v, err := mgr.DeserializeAddActivityStreams()(m, aliasMap); err == nil { + this := &ForgeFedEarlyItemsPropertyIterator{ + activitystreamsAddMember: v, + alias: alias, + } + return this, nil + } else if v, err := mgr.DeserializeAnnounceActivityStreams()(m, aliasMap); err == nil { + this := &ForgeFedEarlyItemsPropertyIterator{ + activitystreamsAnnounceMember: v, + alias: alias, + } + return this, nil + } else if v, err := mgr.DeserializeApplicationActivityStreams()(m, aliasMap); err == nil { + this := &ForgeFedEarlyItemsPropertyIterator{ + activitystreamsApplicationMember: v, + alias: alias, + } + return this, nil + } else if v, err := mgr.DeserializeArriveActivityStreams()(m, aliasMap); err == nil { + this := &ForgeFedEarlyItemsPropertyIterator{ + activitystreamsArriveMember: v, + alias: alias, + } + return this, nil + } else if v, err := mgr.DeserializeArticleActivityStreams()(m, aliasMap); err == nil { + this := &ForgeFedEarlyItemsPropertyIterator{ + activitystreamsArticleMember: v, + alias: alias, + } + return this, nil + } else if v, err := mgr.DeserializeAudioActivityStreams()(m, aliasMap); err == nil { + this := &ForgeFedEarlyItemsPropertyIterator{ + activitystreamsAudioMember: v, + alias: alias, + } + return this, nil + } else if v, err := mgr.DeserializeBlockActivityStreams()(m, aliasMap); err == nil { + this := &ForgeFedEarlyItemsPropertyIterator{ + activitystreamsBlockMember: v, + alias: alias, + } + return this, nil + } else if v, err := mgr.DeserializeBranchForgeFed()(m, aliasMap); err == nil { + this := &ForgeFedEarlyItemsPropertyIterator{ + alias: alias, + forgefedBranchMember: v, + } + return this, nil + } else if v, err := mgr.DeserializeCollectionActivityStreams()(m, aliasMap); err == nil { + this := &ForgeFedEarlyItemsPropertyIterator{ + activitystreamsCollectionMember: v, + alias: alias, + } + return this, nil + } else if v, err := mgr.DeserializeCollectionPageActivityStreams()(m, aliasMap); err == nil { + this := &ForgeFedEarlyItemsPropertyIterator{ + activitystreamsCollectionPageMember: v, + alias: alias, + } + return this, nil + } else if v, err := mgr.DeserializeCommitForgeFed()(m, aliasMap); err == nil { + this := &ForgeFedEarlyItemsPropertyIterator{ + alias: alias, + forgefedCommitMember: v, + } + return this, nil + } else if v, err := mgr.DeserializeCreateActivityStreams()(m, aliasMap); err == nil { + this := &ForgeFedEarlyItemsPropertyIterator{ + activitystreamsCreateMember: v, + alias: alias, + } + return this, nil + } else if v, err := mgr.DeserializeDeleteActivityStreams()(m, aliasMap); err == nil { + this := &ForgeFedEarlyItemsPropertyIterator{ + activitystreamsDeleteMember: v, + alias: alias, + } + return this, nil + } else if v, err := mgr.DeserializeDislikeActivityStreams()(m, aliasMap); err == nil { + this := &ForgeFedEarlyItemsPropertyIterator{ + activitystreamsDislikeMember: v, + alias: alias, + } + return this, nil + } else if v, err := mgr.DeserializeDocumentActivityStreams()(m, aliasMap); err == nil { + this := &ForgeFedEarlyItemsPropertyIterator{ + activitystreamsDocumentMember: v, + alias: alias, + } + return this, nil + } else if v, err := mgr.DeserializeEmojiToot()(m, aliasMap); err == nil { + this := &ForgeFedEarlyItemsPropertyIterator{ + alias: alias, + tootEmojiMember: v, + } + return this, nil + } else if v, err := mgr.DeserializeEventActivityStreams()(m, aliasMap); err == nil { + this := &ForgeFedEarlyItemsPropertyIterator{ + activitystreamsEventMember: v, + alias: alias, + } + return this, nil + } else if v, err := mgr.DeserializeFlagActivityStreams()(m, aliasMap); err == nil { + this := &ForgeFedEarlyItemsPropertyIterator{ + activitystreamsFlagMember: v, + alias: alias, + } + return this, nil + } else if v, err := mgr.DeserializeFollowActivityStreams()(m, aliasMap); err == nil { + this := &ForgeFedEarlyItemsPropertyIterator{ + activitystreamsFollowMember: v, + alias: alias, + } + return this, nil + } else if v, err := mgr.DeserializeGroupActivityStreams()(m, aliasMap); err == nil { + this := &ForgeFedEarlyItemsPropertyIterator{ + activitystreamsGroupMember: v, + alias: alias, + } + return this, nil + } else if v, err := mgr.DeserializeIdentityProofToot()(m, aliasMap); err == nil { + this := &ForgeFedEarlyItemsPropertyIterator{ + alias: alias, + tootIdentityProofMember: v, + } + return this, nil + } else if v, err := mgr.DeserializeIgnoreActivityStreams()(m, aliasMap); err == nil { + this := &ForgeFedEarlyItemsPropertyIterator{ + activitystreamsIgnoreMember: v, + alias: alias, + } + return this, nil + } else if v, err := mgr.DeserializeImageActivityStreams()(m, aliasMap); err == nil { + this := &ForgeFedEarlyItemsPropertyIterator{ + activitystreamsImageMember: v, + alias: alias, + } + return this, nil + } else if v, err := mgr.DeserializeIntransitiveActivityActivityStreams()(m, aliasMap); err == nil { + this := &ForgeFedEarlyItemsPropertyIterator{ + activitystreamsIntransitiveActivityMember: v, + alias: alias, + } + return this, nil + } else if v, err := mgr.DeserializeInviteActivityStreams()(m, aliasMap); err == nil { + this := &ForgeFedEarlyItemsPropertyIterator{ + activitystreamsInviteMember: v, + alias: alias, + } + return this, nil + } else if v, err := mgr.DeserializeJoinActivityStreams()(m, aliasMap); err == nil { + this := &ForgeFedEarlyItemsPropertyIterator{ + activitystreamsJoinMember: v, + alias: alias, + } + return this, nil + } else if v, err := mgr.DeserializeLeaveActivityStreams()(m, aliasMap); err == nil { + this := &ForgeFedEarlyItemsPropertyIterator{ + activitystreamsLeaveMember: v, + alias: alias, + } + return this, nil + } else if v, err := mgr.DeserializeLikeActivityStreams()(m, aliasMap); err == nil { + this := &ForgeFedEarlyItemsPropertyIterator{ + activitystreamsLikeMember: v, + alias: alias, + } + return this, nil + } else if v, err := mgr.DeserializeListenActivityStreams()(m, aliasMap); err == nil { + this := &ForgeFedEarlyItemsPropertyIterator{ + activitystreamsListenMember: v, + alias: alias, + } + return this, nil + } else if v, err := mgr.DeserializeMentionActivityStreams()(m, aliasMap); err == nil { + this := &ForgeFedEarlyItemsPropertyIterator{ + activitystreamsMentionMember: v, + alias: alias, + } + return this, nil + } else if v, err := mgr.DeserializeMoveActivityStreams()(m, aliasMap); err == nil { + this := &ForgeFedEarlyItemsPropertyIterator{ + activitystreamsMoveMember: v, + alias: alias, + } + return this, nil + } else if v, err := mgr.DeserializeNoteActivityStreams()(m, aliasMap); err == nil { + this := &ForgeFedEarlyItemsPropertyIterator{ + activitystreamsNoteMember: v, + alias: alias, + } + return this, nil + } else if v, err := mgr.DeserializeOfferActivityStreams()(m, aliasMap); err == nil { + this := &ForgeFedEarlyItemsPropertyIterator{ + activitystreamsOfferMember: v, + alias: alias, + } + return this, nil + } else if v, err := mgr.DeserializeOrderedCollectionActivityStreams()(m, aliasMap); err == nil { + this := &ForgeFedEarlyItemsPropertyIterator{ + activitystreamsOrderedCollectionMember: v, + alias: alias, + } + return this, nil + } else if v, err := mgr.DeserializeOrderedCollectionPageActivityStreams()(m, aliasMap); err == nil { + this := &ForgeFedEarlyItemsPropertyIterator{ + activitystreamsOrderedCollectionPageMember: v, + alias: alias, + } + return this, nil + } else if v, err := mgr.DeserializeOrganizationActivityStreams()(m, aliasMap); err == nil { + this := &ForgeFedEarlyItemsPropertyIterator{ + activitystreamsOrganizationMember: v, + alias: alias, + } + return this, nil + } else if v, err := mgr.DeserializePageActivityStreams()(m, aliasMap); err == nil { + this := &ForgeFedEarlyItemsPropertyIterator{ + activitystreamsPageMember: v, + alias: alias, + } + return this, nil + } else if v, err := mgr.DeserializePersonActivityStreams()(m, aliasMap); err == nil { + this := &ForgeFedEarlyItemsPropertyIterator{ + activitystreamsPersonMember: v, + alias: alias, + } + return this, nil + } else if v, err := mgr.DeserializePlaceActivityStreams()(m, aliasMap); err == nil { + this := &ForgeFedEarlyItemsPropertyIterator{ + activitystreamsPlaceMember: v, + alias: alias, + } + return this, nil + } else if v, err := mgr.DeserializeProfileActivityStreams()(m, aliasMap); err == nil { + this := &ForgeFedEarlyItemsPropertyIterator{ + activitystreamsProfileMember: v, + alias: alias, + } + return this, nil + } else if v, err := mgr.DeserializePushForgeFed()(m, aliasMap); err == nil { + this := &ForgeFedEarlyItemsPropertyIterator{ + alias: alias, + forgefedPushMember: v, + } + return this, nil + } else if v, err := mgr.DeserializeQuestionActivityStreams()(m, aliasMap); err == nil { + this := &ForgeFedEarlyItemsPropertyIterator{ + activitystreamsQuestionMember: v, + alias: alias, + } + return this, nil + } else if v, err := mgr.DeserializeReadActivityStreams()(m, aliasMap); err == nil { + this := &ForgeFedEarlyItemsPropertyIterator{ + activitystreamsReadMember: v, + alias: alias, + } + return this, nil + } else if v, err := mgr.DeserializeRejectActivityStreams()(m, aliasMap); err == nil { + this := &ForgeFedEarlyItemsPropertyIterator{ + activitystreamsRejectMember: v, + alias: alias, + } + return this, nil + } else if v, err := mgr.DeserializeRelationshipActivityStreams()(m, aliasMap); err == nil { + this := &ForgeFedEarlyItemsPropertyIterator{ + activitystreamsRelationshipMember: v, + alias: alias, + } + return this, nil + } else if v, err := mgr.DeserializeRemoveActivityStreams()(m, aliasMap); err == nil { + this := &ForgeFedEarlyItemsPropertyIterator{ + activitystreamsRemoveMember: v, + alias: alias, + } + return this, nil + } else if v, err := mgr.DeserializeRepositoryForgeFed()(m, aliasMap); err == nil { + this := &ForgeFedEarlyItemsPropertyIterator{ + alias: alias, + forgefedRepositoryMember: v, + } + return this, nil + } else if v, err := mgr.DeserializeServiceActivityStreams()(m, aliasMap); err == nil { + this := &ForgeFedEarlyItemsPropertyIterator{ + activitystreamsServiceMember: v, + alias: alias, + } + return this, nil + } else if v, err := mgr.DeserializeTentativeAcceptActivityStreams()(m, aliasMap); err == nil { + this := &ForgeFedEarlyItemsPropertyIterator{ + activitystreamsTentativeAcceptMember: v, + alias: alias, + } + return this, nil + } else if v, err := mgr.DeserializeTentativeRejectActivityStreams()(m, aliasMap); err == nil { + this := &ForgeFedEarlyItemsPropertyIterator{ + activitystreamsTentativeRejectMember: v, + alias: alias, + } + return this, nil + } else if v, err := mgr.DeserializeTicketForgeFed()(m, aliasMap); err == nil { + this := &ForgeFedEarlyItemsPropertyIterator{ + alias: alias, + forgefedTicketMember: v, + } + return this, nil + } else if v, err := mgr.DeserializeTicketDependencyForgeFed()(m, aliasMap); err == nil { + this := &ForgeFedEarlyItemsPropertyIterator{ + alias: alias, + forgefedTicketDependencyMember: v, + } + return this, nil + } else if v, err := mgr.DeserializeTombstoneActivityStreams()(m, aliasMap); err == nil { + this := &ForgeFedEarlyItemsPropertyIterator{ + activitystreamsTombstoneMember: v, + alias: alias, + } + return this, nil + } else if v, err := mgr.DeserializeTravelActivityStreams()(m, aliasMap); err == nil { + this := &ForgeFedEarlyItemsPropertyIterator{ + activitystreamsTravelMember: v, + alias: alias, + } + return this, nil + } else if v, err := mgr.DeserializeUndoActivityStreams()(m, aliasMap); err == nil { + this := &ForgeFedEarlyItemsPropertyIterator{ + activitystreamsUndoMember: v, + alias: alias, + } + return this, nil + } else if v, err := mgr.DeserializeUpdateActivityStreams()(m, aliasMap); err == nil { + this := &ForgeFedEarlyItemsPropertyIterator{ + activitystreamsUpdateMember: v, + alias: alias, + } + return this, nil + } else if v, err := mgr.DeserializeVideoActivityStreams()(m, aliasMap); err == nil { + this := &ForgeFedEarlyItemsPropertyIterator{ + activitystreamsVideoMember: v, + alias: alias, + } + return this, nil + } else if v, err := mgr.DeserializeViewActivityStreams()(m, aliasMap); err == nil { + this := &ForgeFedEarlyItemsPropertyIterator{ + activitystreamsViewMember: v, + alias: alias, + } + return this, nil + } + } + this := &ForgeFedEarlyItemsPropertyIterator{ + alias: alias, + unknown: i, + } + return this, nil +} + +// GetActivityStreamsAccept returns the value of this property. When +// IsActivityStreamsAccept returns false, GetActivityStreamsAccept will return +// an arbitrary value. +func (this ForgeFedEarlyItemsPropertyIterator) GetActivityStreamsAccept() vocab.ActivityStreamsAccept { + return this.activitystreamsAcceptMember +} + +// GetActivityStreamsActivity returns the value of this property. When +// IsActivityStreamsActivity returns false, GetActivityStreamsActivity will +// return an arbitrary value. +func (this ForgeFedEarlyItemsPropertyIterator) GetActivityStreamsActivity() vocab.ActivityStreamsActivity { + return this.activitystreamsActivityMember +} + +// GetActivityStreamsAdd returns the value of this property. When +// IsActivityStreamsAdd returns false, GetActivityStreamsAdd will return an +// arbitrary value. +func (this ForgeFedEarlyItemsPropertyIterator) GetActivityStreamsAdd() vocab.ActivityStreamsAdd { + return this.activitystreamsAddMember +} + +// GetActivityStreamsAnnounce returns the value of this property. When +// IsActivityStreamsAnnounce returns false, GetActivityStreamsAnnounce will +// return an arbitrary value. +func (this ForgeFedEarlyItemsPropertyIterator) GetActivityStreamsAnnounce() vocab.ActivityStreamsAnnounce { + return this.activitystreamsAnnounceMember +} + +// GetActivityStreamsApplication returns the value of this property. When +// IsActivityStreamsApplication returns false, GetActivityStreamsApplication +// will return an arbitrary value. +func (this ForgeFedEarlyItemsPropertyIterator) GetActivityStreamsApplication() vocab.ActivityStreamsApplication { + return this.activitystreamsApplicationMember +} + +// GetActivityStreamsArrive returns the value of this property. When +// IsActivityStreamsArrive returns false, GetActivityStreamsArrive will return +// an arbitrary value. +func (this ForgeFedEarlyItemsPropertyIterator) GetActivityStreamsArrive() vocab.ActivityStreamsArrive { + return this.activitystreamsArriveMember +} + +// GetActivityStreamsArticle returns the value of this property. When +// IsActivityStreamsArticle returns false, GetActivityStreamsArticle will +// return an arbitrary value. +func (this ForgeFedEarlyItemsPropertyIterator) GetActivityStreamsArticle() vocab.ActivityStreamsArticle { + return this.activitystreamsArticleMember +} + +// GetActivityStreamsAudio returns the value of this property. When +// IsActivityStreamsAudio returns false, GetActivityStreamsAudio will return +// an arbitrary value. +func (this ForgeFedEarlyItemsPropertyIterator) GetActivityStreamsAudio() vocab.ActivityStreamsAudio { + return this.activitystreamsAudioMember +} + +// GetActivityStreamsBlock returns the value of this property. When +// IsActivityStreamsBlock returns false, GetActivityStreamsBlock will return +// an arbitrary value. +func (this ForgeFedEarlyItemsPropertyIterator) GetActivityStreamsBlock() vocab.ActivityStreamsBlock { + return this.activitystreamsBlockMember +} + +// GetActivityStreamsCollection returns the value of this property. When +// IsActivityStreamsCollection returns false, GetActivityStreamsCollection +// will return an arbitrary value. +func (this ForgeFedEarlyItemsPropertyIterator) GetActivityStreamsCollection() vocab.ActivityStreamsCollection { + return this.activitystreamsCollectionMember +} + +// GetActivityStreamsCollectionPage returns the value of this property. When +// IsActivityStreamsCollectionPage returns false, +// GetActivityStreamsCollectionPage will return an arbitrary value. +func (this ForgeFedEarlyItemsPropertyIterator) GetActivityStreamsCollectionPage() vocab.ActivityStreamsCollectionPage { + return this.activitystreamsCollectionPageMember +} + +// GetActivityStreamsCreate returns the value of this property. When +// IsActivityStreamsCreate returns false, GetActivityStreamsCreate will return +// an arbitrary value. +func (this ForgeFedEarlyItemsPropertyIterator) GetActivityStreamsCreate() vocab.ActivityStreamsCreate { + return this.activitystreamsCreateMember +} + +// GetActivityStreamsDelete returns the value of this property. When +// IsActivityStreamsDelete returns false, GetActivityStreamsDelete will return +// an arbitrary value. +func (this ForgeFedEarlyItemsPropertyIterator) GetActivityStreamsDelete() vocab.ActivityStreamsDelete { + return this.activitystreamsDeleteMember +} + +// GetActivityStreamsDislike returns the value of this property. When +// IsActivityStreamsDislike returns false, GetActivityStreamsDislike will +// return an arbitrary value. +func (this ForgeFedEarlyItemsPropertyIterator) GetActivityStreamsDislike() vocab.ActivityStreamsDislike { + return this.activitystreamsDislikeMember +} + +// GetActivityStreamsDocument returns the value of this property. When +// IsActivityStreamsDocument returns false, GetActivityStreamsDocument will +// return an arbitrary value. +func (this ForgeFedEarlyItemsPropertyIterator) GetActivityStreamsDocument() vocab.ActivityStreamsDocument { + return this.activitystreamsDocumentMember +} + +// GetActivityStreamsEvent returns the value of this property. When +// IsActivityStreamsEvent returns false, GetActivityStreamsEvent will return +// an arbitrary value. +func (this ForgeFedEarlyItemsPropertyIterator) GetActivityStreamsEvent() vocab.ActivityStreamsEvent { + return this.activitystreamsEventMember +} + +// GetActivityStreamsFlag returns the value of this property. When +// IsActivityStreamsFlag returns false, GetActivityStreamsFlag will return an +// arbitrary value. +func (this ForgeFedEarlyItemsPropertyIterator) GetActivityStreamsFlag() vocab.ActivityStreamsFlag { + return this.activitystreamsFlagMember +} + +// GetActivityStreamsFollow returns the value of this property. When +// IsActivityStreamsFollow returns false, GetActivityStreamsFollow will return +// an arbitrary value. +func (this ForgeFedEarlyItemsPropertyIterator) GetActivityStreamsFollow() vocab.ActivityStreamsFollow { + return this.activitystreamsFollowMember +} + +// GetActivityStreamsGroup returns the value of this property. When +// IsActivityStreamsGroup returns false, GetActivityStreamsGroup will return +// an arbitrary value. +func (this ForgeFedEarlyItemsPropertyIterator) GetActivityStreamsGroup() vocab.ActivityStreamsGroup { + return this.activitystreamsGroupMember +} + +// GetActivityStreamsIgnore returns the value of this property. When +// IsActivityStreamsIgnore returns false, GetActivityStreamsIgnore will return +// an arbitrary value. +func (this ForgeFedEarlyItemsPropertyIterator) GetActivityStreamsIgnore() vocab.ActivityStreamsIgnore { + return this.activitystreamsIgnoreMember +} + +// GetActivityStreamsImage returns the value of this property. When +// IsActivityStreamsImage returns false, GetActivityStreamsImage will return +// an arbitrary value. +func (this ForgeFedEarlyItemsPropertyIterator) GetActivityStreamsImage() vocab.ActivityStreamsImage { + return this.activitystreamsImageMember +} + +// GetActivityStreamsIntransitiveActivity returns the value of this property. When +// IsActivityStreamsIntransitiveActivity returns false, +// GetActivityStreamsIntransitiveActivity will return an arbitrary value. +func (this ForgeFedEarlyItemsPropertyIterator) GetActivityStreamsIntransitiveActivity() vocab.ActivityStreamsIntransitiveActivity { + return this.activitystreamsIntransitiveActivityMember +} + +// GetActivityStreamsInvite returns the value of this property. When +// IsActivityStreamsInvite returns false, GetActivityStreamsInvite will return +// an arbitrary value. +func (this ForgeFedEarlyItemsPropertyIterator) GetActivityStreamsInvite() vocab.ActivityStreamsInvite { + return this.activitystreamsInviteMember +} + +// GetActivityStreamsJoin returns the value of this property. When +// IsActivityStreamsJoin returns false, GetActivityStreamsJoin will return an +// arbitrary value. +func (this ForgeFedEarlyItemsPropertyIterator) GetActivityStreamsJoin() vocab.ActivityStreamsJoin { + return this.activitystreamsJoinMember +} + +// GetActivityStreamsLeave returns the value of this property. When +// IsActivityStreamsLeave returns false, GetActivityStreamsLeave will return +// an arbitrary value. +func (this ForgeFedEarlyItemsPropertyIterator) GetActivityStreamsLeave() vocab.ActivityStreamsLeave { + return this.activitystreamsLeaveMember +} + +// GetActivityStreamsLike returns the value of this property. When +// IsActivityStreamsLike returns false, GetActivityStreamsLike will return an +// arbitrary value. +func (this ForgeFedEarlyItemsPropertyIterator) GetActivityStreamsLike() vocab.ActivityStreamsLike { + return this.activitystreamsLikeMember +} + +// GetActivityStreamsLink returns the value of this property. When +// IsActivityStreamsLink returns false, GetActivityStreamsLink will return an +// arbitrary value. +func (this ForgeFedEarlyItemsPropertyIterator) GetActivityStreamsLink() vocab.ActivityStreamsLink { + return this.activitystreamsLinkMember +} + +// GetActivityStreamsListen returns the value of this property. When +// IsActivityStreamsListen returns false, GetActivityStreamsListen will return +// an arbitrary value. +func (this ForgeFedEarlyItemsPropertyIterator) GetActivityStreamsListen() vocab.ActivityStreamsListen { + return this.activitystreamsListenMember +} + +// GetActivityStreamsMention returns the value of this property. When +// IsActivityStreamsMention returns false, GetActivityStreamsMention will +// return an arbitrary value. +func (this ForgeFedEarlyItemsPropertyIterator) GetActivityStreamsMention() vocab.ActivityStreamsMention { + return this.activitystreamsMentionMember +} + +// GetActivityStreamsMove returns the value of this property. When +// IsActivityStreamsMove returns false, GetActivityStreamsMove will return an +// arbitrary value. +func (this ForgeFedEarlyItemsPropertyIterator) GetActivityStreamsMove() vocab.ActivityStreamsMove { + return this.activitystreamsMoveMember +} + +// GetActivityStreamsNote returns the value of this property. When +// IsActivityStreamsNote returns false, GetActivityStreamsNote will return an +// arbitrary value. +func (this ForgeFedEarlyItemsPropertyIterator) GetActivityStreamsNote() vocab.ActivityStreamsNote { + return this.activitystreamsNoteMember +} + +// GetActivityStreamsObject returns the value of this property. When +// IsActivityStreamsObject returns false, GetActivityStreamsObject will return +// an arbitrary value. +func (this ForgeFedEarlyItemsPropertyIterator) GetActivityStreamsObject() vocab.ActivityStreamsObject { + return this.activitystreamsObjectMember +} + +// GetActivityStreamsOffer returns the value of this property. When +// IsActivityStreamsOffer returns false, GetActivityStreamsOffer will return +// an arbitrary value. +func (this ForgeFedEarlyItemsPropertyIterator) GetActivityStreamsOffer() vocab.ActivityStreamsOffer { + return this.activitystreamsOfferMember +} + +// GetActivityStreamsOrderedCollection returns the value of this property. When +// IsActivityStreamsOrderedCollection returns false, +// GetActivityStreamsOrderedCollection will return an arbitrary value. +func (this ForgeFedEarlyItemsPropertyIterator) GetActivityStreamsOrderedCollection() vocab.ActivityStreamsOrderedCollection { + return this.activitystreamsOrderedCollectionMember +} + +// GetActivityStreamsOrderedCollectionPage returns the value of this property. +// When IsActivityStreamsOrderedCollectionPage returns false, +// GetActivityStreamsOrderedCollectionPage will return an arbitrary value. +func (this ForgeFedEarlyItemsPropertyIterator) GetActivityStreamsOrderedCollectionPage() vocab.ActivityStreamsOrderedCollectionPage { + return this.activitystreamsOrderedCollectionPageMember +} + +// GetActivityStreamsOrganization returns the value of this property. When +// IsActivityStreamsOrganization returns false, GetActivityStreamsOrganization +// will return an arbitrary value. +func (this ForgeFedEarlyItemsPropertyIterator) GetActivityStreamsOrganization() vocab.ActivityStreamsOrganization { + return this.activitystreamsOrganizationMember +} + +// GetActivityStreamsPage returns the value of this property. When +// IsActivityStreamsPage returns false, GetActivityStreamsPage will return an +// arbitrary value. +func (this ForgeFedEarlyItemsPropertyIterator) GetActivityStreamsPage() vocab.ActivityStreamsPage { + return this.activitystreamsPageMember +} + +// GetActivityStreamsPerson returns the value of this property. When +// IsActivityStreamsPerson returns false, GetActivityStreamsPerson will return +// an arbitrary value. +func (this ForgeFedEarlyItemsPropertyIterator) GetActivityStreamsPerson() vocab.ActivityStreamsPerson { + return this.activitystreamsPersonMember +} + +// GetActivityStreamsPlace returns the value of this property. When +// IsActivityStreamsPlace returns false, GetActivityStreamsPlace will return +// an arbitrary value. +func (this ForgeFedEarlyItemsPropertyIterator) GetActivityStreamsPlace() vocab.ActivityStreamsPlace { + return this.activitystreamsPlaceMember +} + +// GetActivityStreamsProfile returns the value of this property. When +// IsActivityStreamsProfile returns false, GetActivityStreamsProfile will +// return an arbitrary value. +func (this ForgeFedEarlyItemsPropertyIterator) GetActivityStreamsProfile() vocab.ActivityStreamsProfile { + return this.activitystreamsProfileMember +} + +// GetActivityStreamsQuestion returns the value of this property. When +// IsActivityStreamsQuestion returns false, GetActivityStreamsQuestion will +// return an arbitrary value. +func (this ForgeFedEarlyItemsPropertyIterator) GetActivityStreamsQuestion() vocab.ActivityStreamsQuestion { + return this.activitystreamsQuestionMember +} + +// GetActivityStreamsRead returns the value of this property. When +// IsActivityStreamsRead returns false, GetActivityStreamsRead will return an +// arbitrary value. +func (this ForgeFedEarlyItemsPropertyIterator) GetActivityStreamsRead() vocab.ActivityStreamsRead { + return this.activitystreamsReadMember +} + +// GetActivityStreamsReject returns the value of this property. When +// IsActivityStreamsReject returns false, GetActivityStreamsReject will return +// an arbitrary value. +func (this ForgeFedEarlyItemsPropertyIterator) GetActivityStreamsReject() vocab.ActivityStreamsReject { + return this.activitystreamsRejectMember +} + +// GetActivityStreamsRelationship returns the value of this property. When +// IsActivityStreamsRelationship returns false, GetActivityStreamsRelationship +// will return an arbitrary value. +func (this ForgeFedEarlyItemsPropertyIterator) GetActivityStreamsRelationship() vocab.ActivityStreamsRelationship { + return this.activitystreamsRelationshipMember +} + +// GetActivityStreamsRemove returns the value of this property. When +// IsActivityStreamsRemove returns false, GetActivityStreamsRemove will return +// an arbitrary value. +func (this ForgeFedEarlyItemsPropertyIterator) GetActivityStreamsRemove() vocab.ActivityStreamsRemove { + return this.activitystreamsRemoveMember +} + +// GetActivityStreamsService returns the value of this property. When +// IsActivityStreamsService returns false, GetActivityStreamsService will +// return an arbitrary value. +func (this ForgeFedEarlyItemsPropertyIterator) GetActivityStreamsService() vocab.ActivityStreamsService { + return this.activitystreamsServiceMember +} + +// GetActivityStreamsTentativeAccept returns the value of this property. When +// IsActivityStreamsTentativeAccept returns false, +// GetActivityStreamsTentativeAccept will return an arbitrary value. +func (this ForgeFedEarlyItemsPropertyIterator) GetActivityStreamsTentativeAccept() vocab.ActivityStreamsTentativeAccept { + return this.activitystreamsTentativeAcceptMember +} + +// GetActivityStreamsTentativeReject returns the value of this property. When +// IsActivityStreamsTentativeReject returns false, +// GetActivityStreamsTentativeReject will return an arbitrary value. +func (this ForgeFedEarlyItemsPropertyIterator) GetActivityStreamsTentativeReject() vocab.ActivityStreamsTentativeReject { + return this.activitystreamsTentativeRejectMember +} + +// GetActivityStreamsTombstone returns the value of this property. When +// IsActivityStreamsTombstone returns false, GetActivityStreamsTombstone will +// return an arbitrary value. +func (this ForgeFedEarlyItemsPropertyIterator) GetActivityStreamsTombstone() vocab.ActivityStreamsTombstone { + return this.activitystreamsTombstoneMember +} + +// GetActivityStreamsTravel returns the value of this property. When +// IsActivityStreamsTravel returns false, GetActivityStreamsTravel will return +// an arbitrary value. +func (this ForgeFedEarlyItemsPropertyIterator) GetActivityStreamsTravel() vocab.ActivityStreamsTravel { + return this.activitystreamsTravelMember +} + +// GetActivityStreamsUndo returns the value of this property. When +// IsActivityStreamsUndo returns false, GetActivityStreamsUndo will return an +// arbitrary value. +func (this ForgeFedEarlyItemsPropertyIterator) GetActivityStreamsUndo() vocab.ActivityStreamsUndo { + return this.activitystreamsUndoMember +} + +// GetActivityStreamsUpdate returns the value of this property. When +// IsActivityStreamsUpdate returns false, GetActivityStreamsUpdate will return +// an arbitrary value. +func (this ForgeFedEarlyItemsPropertyIterator) GetActivityStreamsUpdate() vocab.ActivityStreamsUpdate { + return this.activitystreamsUpdateMember +} + +// GetActivityStreamsVideo returns the value of this property. When +// IsActivityStreamsVideo returns false, GetActivityStreamsVideo will return +// an arbitrary value. +func (this ForgeFedEarlyItemsPropertyIterator) GetActivityStreamsVideo() vocab.ActivityStreamsVideo { + return this.activitystreamsVideoMember +} + +// GetActivityStreamsView returns the value of this property. When +// IsActivityStreamsView returns false, GetActivityStreamsView will return an +// arbitrary value. +func (this ForgeFedEarlyItemsPropertyIterator) GetActivityStreamsView() vocab.ActivityStreamsView { + return this.activitystreamsViewMember +} + +// GetForgeFedBranch returns the value of this property. When IsForgeFedBranch +// returns false, GetForgeFedBranch will return an arbitrary value. +func (this ForgeFedEarlyItemsPropertyIterator) GetForgeFedBranch() vocab.ForgeFedBranch { + return this.forgefedBranchMember +} + +// GetForgeFedCommit returns the value of this property. When IsForgeFedCommit +// returns false, GetForgeFedCommit will return an arbitrary value. +func (this ForgeFedEarlyItemsPropertyIterator) GetForgeFedCommit() vocab.ForgeFedCommit { + return this.forgefedCommitMember +} + +// GetForgeFedPush returns the value of this property. When IsForgeFedPush returns +// false, GetForgeFedPush will return an arbitrary value. +func (this ForgeFedEarlyItemsPropertyIterator) GetForgeFedPush() vocab.ForgeFedPush { + return this.forgefedPushMember +} + +// GetForgeFedRepository returns the value of this property. When +// IsForgeFedRepository returns false, GetForgeFedRepository will return an +// arbitrary value. +func (this ForgeFedEarlyItemsPropertyIterator) GetForgeFedRepository() vocab.ForgeFedRepository { + return this.forgefedRepositoryMember +} + +// GetForgeFedTicket returns the value of this property. When IsForgeFedTicket +// returns false, GetForgeFedTicket will return an arbitrary value. +func (this ForgeFedEarlyItemsPropertyIterator) GetForgeFedTicket() vocab.ForgeFedTicket { + return this.forgefedTicketMember +} + +// GetForgeFedTicketDependency returns the value of this property. When +// IsForgeFedTicketDependency returns false, GetForgeFedTicketDependency will +// return an arbitrary value. +func (this ForgeFedEarlyItemsPropertyIterator) GetForgeFedTicketDependency() vocab.ForgeFedTicketDependency { + return this.forgefedTicketDependencyMember +} + +// GetIRI returns the IRI of this property. When IsIRI returns false, GetIRI will +// return an arbitrary value. +func (this ForgeFedEarlyItemsPropertyIterator) GetIRI() *url.URL { + return this.iri +} + +// GetTootEmoji returns the value of this property. When IsTootEmoji returns +// false, GetTootEmoji will return an arbitrary value. +func (this ForgeFedEarlyItemsPropertyIterator) GetTootEmoji() vocab.TootEmoji { + return this.tootEmojiMember +} + +// GetTootIdentityProof returns the value of this property. When +// IsTootIdentityProof returns false, GetTootIdentityProof will return an +// arbitrary value. +func (this ForgeFedEarlyItemsPropertyIterator) GetTootIdentityProof() vocab.TootIdentityProof { + return this.tootIdentityProofMember +} + +// GetType returns the value in this property as a Type. Returns nil if the value +// is not an ActivityStreams type, such as an IRI or another value. +func (this ForgeFedEarlyItemsPropertyIterator) GetType() vocab.Type { + if this.IsActivityStreamsObject() { + return this.GetActivityStreamsObject() + } + if this.IsActivityStreamsLink() { + return this.GetActivityStreamsLink() + } + if this.IsActivityStreamsAccept() { + return this.GetActivityStreamsAccept() + } + if this.IsActivityStreamsActivity() { + return this.GetActivityStreamsActivity() + } + if this.IsActivityStreamsAdd() { + return this.GetActivityStreamsAdd() + } + if this.IsActivityStreamsAnnounce() { + return this.GetActivityStreamsAnnounce() + } + if this.IsActivityStreamsApplication() { + return this.GetActivityStreamsApplication() + } + if this.IsActivityStreamsArrive() { + return this.GetActivityStreamsArrive() + } + if this.IsActivityStreamsArticle() { + return this.GetActivityStreamsArticle() + } + if this.IsActivityStreamsAudio() { + return this.GetActivityStreamsAudio() + } + if this.IsActivityStreamsBlock() { + return this.GetActivityStreamsBlock() + } + if this.IsForgeFedBranch() { + return this.GetForgeFedBranch() + } + if this.IsActivityStreamsCollection() { + return this.GetActivityStreamsCollection() + } + if this.IsActivityStreamsCollectionPage() { + return this.GetActivityStreamsCollectionPage() + } + if this.IsForgeFedCommit() { + return this.GetForgeFedCommit() + } + if this.IsActivityStreamsCreate() { + return this.GetActivityStreamsCreate() + } + if this.IsActivityStreamsDelete() { + return this.GetActivityStreamsDelete() + } + if this.IsActivityStreamsDislike() { + return this.GetActivityStreamsDislike() + } + if this.IsActivityStreamsDocument() { + return this.GetActivityStreamsDocument() + } + if this.IsTootEmoji() { + return this.GetTootEmoji() + } + if this.IsActivityStreamsEvent() { + return this.GetActivityStreamsEvent() + } + if this.IsActivityStreamsFlag() { + return this.GetActivityStreamsFlag() + } + if this.IsActivityStreamsFollow() { + return this.GetActivityStreamsFollow() + } + if this.IsActivityStreamsGroup() { + return this.GetActivityStreamsGroup() + } + if this.IsTootIdentityProof() { + return this.GetTootIdentityProof() + } + if this.IsActivityStreamsIgnore() { + return this.GetActivityStreamsIgnore() + } + if this.IsActivityStreamsImage() { + return this.GetActivityStreamsImage() + } + if this.IsActivityStreamsIntransitiveActivity() { + return this.GetActivityStreamsIntransitiveActivity() + } + if this.IsActivityStreamsInvite() { + return this.GetActivityStreamsInvite() + } + if this.IsActivityStreamsJoin() { + return this.GetActivityStreamsJoin() + } + if this.IsActivityStreamsLeave() { + return this.GetActivityStreamsLeave() + } + if this.IsActivityStreamsLike() { + return this.GetActivityStreamsLike() + } + if this.IsActivityStreamsListen() { + return this.GetActivityStreamsListen() + } + if this.IsActivityStreamsMention() { + return this.GetActivityStreamsMention() + } + if this.IsActivityStreamsMove() { + return this.GetActivityStreamsMove() + } + if this.IsActivityStreamsNote() { + return this.GetActivityStreamsNote() + } + if this.IsActivityStreamsOffer() { + return this.GetActivityStreamsOffer() + } + if this.IsActivityStreamsOrderedCollection() { + return this.GetActivityStreamsOrderedCollection() + } + if this.IsActivityStreamsOrderedCollectionPage() { + return this.GetActivityStreamsOrderedCollectionPage() + } + if this.IsActivityStreamsOrganization() { + return this.GetActivityStreamsOrganization() + } + if this.IsActivityStreamsPage() { + return this.GetActivityStreamsPage() + } + if this.IsActivityStreamsPerson() { + return this.GetActivityStreamsPerson() + } + if this.IsActivityStreamsPlace() { + return this.GetActivityStreamsPlace() + } + if this.IsActivityStreamsProfile() { + return this.GetActivityStreamsProfile() + } + if this.IsForgeFedPush() { + return this.GetForgeFedPush() + } + if this.IsActivityStreamsQuestion() { + return this.GetActivityStreamsQuestion() + } + if this.IsActivityStreamsRead() { + return this.GetActivityStreamsRead() + } + if this.IsActivityStreamsReject() { + return this.GetActivityStreamsReject() + } + if this.IsActivityStreamsRelationship() { + return this.GetActivityStreamsRelationship() + } + if this.IsActivityStreamsRemove() { + return this.GetActivityStreamsRemove() + } + if this.IsForgeFedRepository() { + return this.GetForgeFedRepository() + } + if this.IsActivityStreamsService() { + return this.GetActivityStreamsService() + } + if this.IsActivityStreamsTentativeAccept() { + return this.GetActivityStreamsTentativeAccept() + } + if this.IsActivityStreamsTentativeReject() { + return this.GetActivityStreamsTentativeReject() + } + if this.IsForgeFedTicket() { + return this.GetForgeFedTicket() + } + if this.IsForgeFedTicketDependency() { + return this.GetForgeFedTicketDependency() + } + if this.IsActivityStreamsTombstone() { + return this.GetActivityStreamsTombstone() + } + if this.IsActivityStreamsTravel() { + return this.GetActivityStreamsTravel() + } + if this.IsActivityStreamsUndo() { + return this.GetActivityStreamsUndo() + } + if this.IsActivityStreamsUpdate() { + return this.GetActivityStreamsUpdate() + } + if this.IsActivityStreamsVideo() { + return this.GetActivityStreamsVideo() + } + if this.IsActivityStreamsView() { + return this.GetActivityStreamsView() + } + + return nil +} + +// HasAny returns true if any of the different values is set. +func (this ForgeFedEarlyItemsPropertyIterator) HasAny() bool { + return this.IsActivityStreamsObject() || + this.IsActivityStreamsLink() || + this.IsActivityStreamsAccept() || + this.IsActivityStreamsActivity() || + this.IsActivityStreamsAdd() || + this.IsActivityStreamsAnnounce() || + this.IsActivityStreamsApplication() || + this.IsActivityStreamsArrive() || + this.IsActivityStreamsArticle() || + this.IsActivityStreamsAudio() || + this.IsActivityStreamsBlock() || + this.IsForgeFedBranch() || + this.IsActivityStreamsCollection() || + this.IsActivityStreamsCollectionPage() || + this.IsForgeFedCommit() || + this.IsActivityStreamsCreate() || + this.IsActivityStreamsDelete() || + this.IsActivityStreamsDislike() || + this.IsActivityStreamsDocument() || + this.IsTootEmoji() || + this.IsActivityStreamsEvent() || + this.IsActivityStreamsFlag() || + this.IsActivityStreamsFollow() || + this.IsActivityStreamsGroup() || + this.IsTootIdentityProof() || + this.IsActivityStreamsIgnore() || + this.IsActivityStreamsImage() || + this.IsActivityStreamsIntransitiveActivity() || + this.IsActivityStreamsInvite() || + this.IsActivityStreamsJoin() || + this.IsActivityStreamsLeave() || + this.IsActivityStreamsLike() || + this.IsActivityStreamsListen() || + this.IsActivityStreamsMention() || + this.IsActivityStreamsMove() || + this.IsActivityStreamsNote() || + this.IsActivityStreamsOffer() || + this.IsActivityStreamsOrderedCollection() || + this.IsActivityStreamsOrderedCollectionPage() || + this.IsActivityStreamsOrganization() || + this.IsActivityStreamsPage() || + this.IsActivityStreamsPerson() || + this.IsActivityStreamsPlace() || + this.IsActivityStreamsProfile() || + this.IsForgeFedPush() || + this.IsActivityStreamsQuestion() || + this.IsActivityStreamsRead() || + this.IsActivityStreamsReject() || + this.IsActivityStreamsRelationship() || + this.IsActivityStreamsRemove() || + this.IsForgeFedRepository() || + this.IsActivityStreamsService() || + this.IsActivityStreamsTentativeAccept() || + this.IsActivityStreamsTentativeReject() || + this.IsForgeFedTicket() || + this.IsForgeFedTicketDependency() || + this.IsActivityStreamsTombstone() || + this.IsActivityStreamsTravel() || + this.IsActivityStreamsUndo() || + this.IsActivityStreamsUpdate() || + this.IsActivityStreamsVideo() || + this.IsActivityStreamsView() || + this.iri != nil +} + +// IsActivityStreamsAccept returns true if this property has a type of "Accept". +// When true, use the GetActivityStreamsAccept and SetActivityStreamsAccept +// methods to access and set this property. +func (this ForgeFedEarlyItemsPropertyIterator) IsActivityStreamsAccept() bool { + return this.activitystreamsAcceptMember != nil +} + +// IsActivityStreamsActivity returns true if this property has a type of +// "Activity". When true, use the GetActivityStreamsActivity and +// SetActivityStreamsActivity methods to access and set this property. +func (this ForgeFedEarlyItemsPropertyIterator) IsActivityStreamsActivity() bool { + return this.activitystreamsActivityMember != nil +} + +// IsActivityStreamsAdd returns true if this property has a type of "Add". When +// true, use the GetActivityStreamsAdd and SetActivityStreamsAdd methods to +// access and set this property. +func (this ForgeFedEarlyItemsPropertyIterator) IsActivityStreamsAdd() bool { + return this.activitystreamsAddMember != nil +} + +// IsActivityStreamsAnnounce returns true if this property has a type of +// "Announce". When true, use the GetActivityStreamsAnnounce and +// SetActivityStreamsAnnounce methods to access and set this property. +func (this ForgeFedEarlyItemsPropertyIterator) IsActivityStreamsAnnounce() bool { + return this.activitystreamsAnnounceMember != nil +} + +// IsActivityStreamsApplication returns true if this property has a type of +// "Application". When true, use the GetActivityStreamsApplication and +// SetActivityStreamsApplication methods to access and set this property. +func (this ForgeFedEarlyItemsPropertyIterator) IsActivityStreamsApplication() bool { + return this.activitystreamsApplicationMember != nil +} + +// IsActivityStreamsArrive returns true if this property has a type of "Arrive". +// When true, use the GetActivityStreamsArrive and SetActivityStreamsArrive +// methods to access and set this property. +func (this ForgeFedEarlyItemsPropertyIterator) IsActivityStreamsArrive() bool { + return this.activitystreamsArriveMember != nil +} + +// IsActivityStreamsArticle returns true if this property has a type of "Article". +// When true, use the GetActivityStreamsArticle and SetActivityStreamsArticle +// methods to access and set this property. +func (this ForgeFedEarlyItemsPropertyIterator) IsActivityStreamsArticle() bool { + return this.activitystreamsArticleMember != nil +} + +// IsActivityStreamsAudio returns true if this property has a type of "Audio". +// When true, use the GetActivityStreamsAudio and SetActivityStreamsAudio +// methods to access and set this property. +func (this ForgeFedEarlyItemsPropertyIterator) IsActivityStreamsAudio() bool { + return this.activitystreamsAudioMember != nil +} + +// IsActivityStreamsBlock returns true if this property has a type of "Block". +// When true, use the GetActivityStreamsBlock and SetActivityStreamsBlock +// methods to access and set this property. +func (this ForgeFedEarlyItemsPropertyIterator) IsActivityStreamsBlock() bool { + return this.activitystreamsBlockMember != nil +} + +// IsActivityStreamsCollection returns true if this property has a type of +// "Collection". When true, use the GetActivityStreamsCollection and +// SetActivityStreamsCollection methods to access and set this property. +func (this ForgeFedEarlyItemsPropertyIterator) IsActivityStreamsCollection() bool { + return this.activitystreamsCollectionMember != nil +} + +// IsActivityStreamsCollectionPage returns true if this property has a type of +// "CollectionPage". When true, use the GetActivityStreamsCollectionPage and +// SetActivityStreamsCollectionPage methods to access and set this property. +func (this ForgeFedEarlyItemsPropertyIterator) IsActivityStreamsCollectionPage() bool { + return this.activitystreamsCollectionPageMember != nil +} + +// IsActivityStreamsCreate returns true if this property has a type of "Create". +// When true, use the GetActivityStreamsCreate and SetActivityStreamsCreate +// methods to access and set this property. +func (this ForgeFedEarlyItemsPropertyIterator) IsActivityStreamsCreate() bool { + return this.activitystreamsCreateMember != nil +} + +// IsActivityStreamsDelete returns true if this property has a type of "Delete". +// When true, use the GetActivityStreamsDelete and SetActivityStreamsDelete +// methods to access and set this property. +func (this ForgeFedEarlyItemsPropertyIterator) IsActivityStreamsDelete() bool { + return this.activitystreamsDeleteMember != nil +} + +// IsActivityStreamsDislike returns true if this property has a type of "Dislike". +// When true, use the GetActivityStreamsDislike and SetActivityStreamsDislike +// methods to access and set this property. +func (this ForgeFedEarlyItemsPropertyIterator) IsActivityStreamsDislike() bool { + return this.activitystreamsDislikeMember != nil +} + +// IsActivityStreamsDocument returns true if this property has a type of +// "Document". When true, use the GetActivityStreamsDocument and +// SetActivityStreamsDocument methods to access and set this property. +func (this ForgeFedEarlyItemsPropertyIterator) IsActivityStreamsDocument() bool { + return this.activitystreamsDocumentMember != nil +} + +// IsActivityStreamsEvent returns true if this property has a type of "Event". +// When true, use the GetActivityStreamsEvent and SetActivityStreamsEvent +// methods to access and set this property. +func (this ForgeFedEarlyItemsPropertyIterator) IsActivityStreamsEvent() bool { + return this.activitystreamsEventMember != nil +} + +// IsActivityStreamsFlag returns true if this property has a type of "Flag". When +// true, use the GetActivityStreamsFlag and SetActivityStreamsFlag methods to +// access and set this property. +func (this ForgeFedEarlyItemsPropertyIterator) IsActivityStreamsFlag() bool { + return this.activitystreamsFlagMember != nil +} + +// IsActivityStreamsFollow returns true if this property has a type of "Follow". +// When true, use the GetActivityStreamsFollow and SetActivityStreamsFollow +// methods to access and set this property. +func (this ForgeFedEarlyItemsPropertyIterator) IsActivityStreamsFollow() bool { + return this.activitystreamsFollowMember != nil +} + +// IsActivityStreamsGroup returns true if this property has a type of "Group". +// When true, use the GetActivityStreamsGroup and SetActivityStreamsGroup +// methods to access and set this property. +func (this ForgeFedEarlyItemsPropertyIterator) IsActivityStreamsGroup() bool { + return this.activitystreamsGroupMember != nil +} + +// IsActivityStreamsIgnore returns true if this property has a type of "Ignore". +// When true, use the GetActivityStreamsIgnore and SetActivityStreamsIgnore +// methods to access and set this property. +func (this ForgeFedEarlyItemsPropertyIterator) IsActivityStreamsIgnore() bool { + return this.activitystreamsIgnoreMember != nil +} + +// IsActivityStreamsImage returns true if this property has a type of "Image". +// When true, use the GetActivityStreamsImage and SetActivityStreamsImage +// methods to access and set this property. +func (this ForgeFedEarlyItemsPropertyIterator) IsActivityStreamsImage() bool { + return this.activitystreamsImageMember != nil +} + +// IsActivityStreamsIntransitiveActivity returns true if this property has a type +// of "IntransitiveActivity". When true, use the +// GetActivityStreamsIntransitiveActivity and +// SetActivityStreamsIntransitiveActivity methods to access and set this +// property. +func (this ForgeFedEarlyItemsPropertyIterator) IsActivityStreamsIntransitiveActivity() bool { + return this.activitystreamsIntransitiveActivityMember != nil +} + +// IsActivityStreamsInvite returns true if this property has a type of "Invite". +// When true, use the GetActivityStreamsInvite and SetActivityStreamsInvite +// methods to access and set this property. +func (this ForgeFedEarlyItemsPropertyIterator) IsActivityStreamsInvite() bool { + return this.activitystreamsInviteMember != nil +} + +// IsActivityStreamsJoin returns true if this property has a type of "Join". When +// true, use the GetActivityStreamsJoin and SetActivityStreamsJoin methods to +// access and set this property. +func (this ForgeFedEarlyItemsPropertyIterator) IsActivityStreamsJoin() bool { + return this.activitystreamsJoinMember != nil +} + +// IsActivityStreamsLeave returns true if this property has a type of "Leave". +// When true, use the GetActivityStreamsLeave and SetActivityStreamsLeave +// methods to access and set this property. +func (this ForgeFedEarlyItemsPropertyIterator) IsActivityStreamsLeave() bool { + return this.activitystreamsLeaveMember != nil +} + +// IsActivityStreamsLike returns true if this property has a type of "Like". When +// true, use the GetActivityStreamsLike and SetActivityStreamsLike methods to +// access and set this property. +func (this ForgeFedEarlyItemsPropertyIterator) IsActivityStreamsLike() bool { + return this.activitystreamsLikeMember != nil +} + +// IsActivityStreamsLink returns true if this property has a type of "Link". When +// true, use the GetActivityStreamsLink and SetActivityStreamsLink methods to +// access and set this property. +func (this ForgeFedEarlyItemsPropertyIterator) IsActivityStreamsLink() bool { + return this.activitystreamsLinkMember != nil +} + +// IsActivityStreamsListen returns true if this property has a type of "Listen". +// When true, use the GetActivityStreamsListen and SetActivityStreamsListen +// methods to access and set this property. +func (this ForgeFedEarlyItemsPropertyIterator) IsActivityStreamsListen() bool { + return this.activitystreamsListenMember != nil +} + +// IsActivityStreamsMention returns true if this property has a type of "Mention". +// When true, use the GetActivityStreamsMention and SetActivityStreamsMention +// methods to access and set this property. +func (this ForgeFedEarlyItemsPropertyIterator) IsActivityStreamsMention() bool { + return this.activitystreamsMentionMember != nil +} + +// IsActivityStreamsMove returns true if this property has a type of "Move". When +// true, use the GetActivityStreamsMove and SetActivityStreamsMove methods to +// access and set this property. +func (this ForgeFedEarlyItemsPropertyIterator) IsActivityStreamsMove() bool { + return this.activitystreamsMoveMember != nil +} + +// IsActivityStreamsNote returns true if this property has a type of "Note". When +// true, use the GetActivityStreamsNote and SetActivityStreamsNote methods to +// access and set this property. +func (this ForgeFedEarlyItemsPropertyIterator) IsActivityStreamsNote() bool { + return this.activitystreamsNoteMember != nil +} + +// IsActivityStreamsObject returns true if this property has a type of "Object". +// When true, use the GetActivityStreamsObject and SetActivityStreamsObject +// methods to access and set this property. +func (this ForgeFedEarlyItemsPropertyIterator) IsActivityStreamsObject() bool { + return this.activitystreamsObjectMember != nil +} + +// IsActivityStreamsOffer returns true if this property has a type of "Offer". +// When true, use the GetActivityStreamsOffer and SetActivityStreamsOffer +// methods to access and set this property. +func (this ForgeFedEarlyItemsPropertyIterator) IsActivityStreamsOffer() bool { + return this.activitystreamsOfferMember != nil +} + +// IsActivityStreamsOrderedCollection returns true if this property has a type of +// "OrderedCollection". When true, use the GetActivityStreamsOrderedCollection +// and SetActivityStreamsOrderedCollection methods to access and set this +// property. +func (this ForgeFedEarlyItemsPropertyIterator) IsActivityStreamsOrderedCollection() bool { + return this.activitystreamsOrderedCollectionMember != nil +} + +// IsActivityStreamsOrderedCollectionPage returns true if this property has a type +// of "OrderedCollectionPage". When true, use the +// GetActivityStreamsOrderedCollectionPage and +// SetActivityStreamsOrderedCollectionPage methods to access and set this +// property. +func (this ForgeFedEarlyItemsPropertyIterator) IsActivityStreamsOrderedCollectionPage() bool { + return this.activitystreamsOrderedCollectionPageMember != nil +} + +// IsActivityStreamsOrganization returns true if this property has a type of +// "Organization". When true, use the GetActivityStreamsOrganization and +// SetActivityStreamsOrganization methods to access and set this property. +func (this ForgeFedEarlyItemsPropertyIterator) IsActivityStreamsOrganization() bool { + return this.activitystreamsOrganizationMember != nil +} + +// IsActivityStreamsPage returns true if this property has a type of "Page". When +// true, use the GetActivityStreamsPage and SetActivityStreamsPage methods to +// access and set this property. +func (this ForgeFedEarlyItemsPropertyIterator) IsActivityStreamsPage() bool { + return this.activitystreamsPageMember != nil +} + +// IsActivityStreamsPerson returns true if this property has a type of "Person". +// When true, use the GetActivityStreamsPerson and SetActivityStreamsPerson +// methods to access and set this property. +func (this ForgeFedEarlyItemsPropertyIterator) IsActivityStreamsPerson() bool { + return this.activitystreamsPersonMember != nil +} + +// IsActivityStreamsPlace returns true if this property has a type of "Place". +// When true, use the GetActivityStreamsPlace and SetActivityStreamsPlace +// methods to access and set this property. +func (this ForgeFedEarlyItemsPropertyIterator) IsActivityStreamsPlace() bool { + return this.activitystreamsPlaceMember != nil +} + +// IsActivityStreamsProfile returns true if this property has a type of "Profile". +// When true, use the GetActivityStreamsProfile and SetActivityStreamsProfile +// methods to access and set this property. +func (this ForgeFedEarlyItemsPropertyIterator) IsActivityStreamsProfile() bool { + return this.activitystreamsProfileMember != nil +} + +// IsActivityStreamsQuestion returns true if this property has a type of +// "Question". When true, use the GetActivityStreamsQuestion and +// SetActivityStreamsQuestion methods to access and set this property. +func (this ForgeFedEarlyItemsPropertyIterator) IsActivityStreamsQuestion() bool { + return this.activitystreamsQuestionMember != nil +} + +// IsActivityStreamsRead returns true if this property has a type of "Read". When +// true, use the GetActivityStreamsRead and SetActivityStreamsRead methods to +// access and set this property. +func (this ForgeFedEarlyItemsPropertyIterator) IsActivityStreamsRead() bool { + return this.activitystreamsReadMember != nil +} + +// IsActivityStreamsReject returns true if this property has a type of "Reject". +// When true, use the GetActivityStreamsReject and SetActivityStreamsReject +// methods to access and set this property. +func (this ForgeFedEarlyItemsPropertyIterator) IsActivityStreamsReject() bool { + return this.activitystreamsRejectMember != nil +} + +// IsActivityStreamsRelationship returns true if this property has a type of +// "Relationship". When true, use the GetActivityStreamsRelationship and +// SetActivityStreamsRelationship methods to access and set this property. +func (this ForgeFedEarlyItemsPropertyIterator) IsActivityStreamsRelationship() bool { + return this.activitystreamsRelationshipMember != nil +} + +// IsActivityStreamsRemove returns true if this property has a type of "Remove". +// When true, use the GetActivityStreamsRemove and SetActivityStreamsRemove +// methods to access and set this property. +func (this ForgeFedEarlyItemsPropertyIterator) IsActivityStreamsRemove() bool { + return this.activitystreamsRemoveMember != nil +} + +// IsActivityStreamsService returns true if this property has a type of "Service". +// When true, use the GetActivityStreamsService and SetActivityStreamsService +// methods to access and set this property. +func (this ForgeFedEarlyItemsPropertyIterator) IsActivityStreamsService() bool { + return this.activitystreamsServiceMember != nil +} + +// IsActivityStreamsTentativeAccept returns true if this property has a type of +// "TentativeAccept". When true, use the GetActivityStreamsTentativeAccept and +// SetActivityStreamsTentativeAccept methods to access and set this property. +func (this ForgeFedEarlyItemsPropertyIterator) IsActivityStreamsTentativeAccept() bool { + return this.activitystreamsTentativeAcceptMember != nil +} + +// IsActivityStreamsTentativeReject returns true if this property has a type of +// "TentativeReject". When true, use the GetActivityStreamsTentativeReject and +// SetActivityStreamsTentativeReject methods to access and set this property. +func (this ForgeFedEarlyItemsPropertyIterator) IsActivityStreamsTentativeReject() bool { + return this.activitystreamsTentativeRejectMember != nil +} + +// IsActivityStreamsTombstone returns true if this property has a type of +// "Tombstone". When true, use the GetActivityStreamsTombstone and +// SetActivityStreamsTombstone methods to access and set this property. +func (this ForgeFedEarlyItemsPropertyIterator) IsActivityStreamsTombstone() bool { + return this.activitystreamsTombstoneMember != nil +} + +// IsActivityStreamsTravel returns true if this property has a type of "Travel". +// When true, use the GetActivityStreamsTravel and SetActivityStreamsTravel +// methods to access and set this property. +func (this ForgeFedEarlyItemsPropertyIterator) IsActivityStreamsTravel() bool { + return this.activitystreamsTravelMember != nil +} + +// IsActivityStreamsUndo returns true if this property has a type of "Undo". When +// true, use the GetActivityStreamsUndo and SetActivityStreamsUndo methods to +// access and set this property. +func (this ForgeFedEarlyItemsPropertyIterator) IsActivityStreamsUndo() bool { + return this.activitystreamsUndoMember != nil +} + +// IsActivityStreamsUpdate returns true if this property has a type of "Update". +// When true, use the GetActivityStreamsUpdate and SetActivityStreamsUpdate +// methods to access and set this property. +func (this ForgeFedEarlyItemsPropertyIterator) IsActivityStreamsUpdate() bool { + return this.activitystreamsUpdateMember != nil +} + +// IsActivityStreamsVideo returns true if this property has a type of "Video". +// When true, use the GetActivityStreamsVideo and SetActivityStreamsVideo +// methods to access and set this property. +func (this ForgeFedEarlyItemsPropertyIterator) IsActivityStreamsVideo() bool { + return this.activitystreamsVideoMember != nil +} + +// IsActivityStreamsView returns true if this property has a type of "View". When +// true, use the GetActivityStreamsView and SetActivityStreamsView methods to +// access and set this property. +func (this ForgeFedEarlyItemsPropertyIterator) IsActivityStreamsView() bool { + return this.activitystreamsViewMember != nil +} + +// IsForgeFedBranch returns true if this property has a type of "Branch". When +// true, use the GetForgeFedBranch and SetForgeFedBranch methods to access and +// set this property. +func (this ForgeFedEarlyItemsPropertyIterator) IsForgeFedBranch() bool { + return this.forgefedBranchMember != nil +} + +// IsForgeFedCommit returns true if this property has a type of "Commit". When +// true, use the GetForgeFedCommit and SetForgeFedCommit methods to access and +// set this property. +func (this ForgeFedEarlyItemsPropertyIterator) IsForgeFedCommit() bool { + return this.forgefedCommitMember != nil +} + +// IsForgeFedPush returns true if this property has a type of "Push". When true, +// use the GetForgeFedPush and SetForgeFedPush methods to access and set this +// property. +func (this ForgeFedEarlyItemsPropertyIterator) IsForgeFedPush() bool { + return this.forgefedPushMember != nil +} + +// IsForgeFedRepository returns true if this property has a type of "Repository". +// When true, use the GetForgeFedRepository and SetForgeFedRepository methods +// to access and set this property. +func (this ForgeFedEarlyItemsPropertyIterator) IsForgeFedRepository() bool { + return this.forgefedRepositoryMember != nil +} + +// IsForgeFedTicket returns true if this property has a type of "Ticket". When +// true, use the GetForgeFedTicket and SetForgeFedTicket methods to access and +// set this property. +func (this ForgeFedEarlyItemsPropertyIterator) IsForgeFedTicket() bool { + return this.forgefedTicketMember != nil +} + +// IsForgeFedTicketDependency returns true if this property has a type of +// "TicketDependency". When true, use the GetForgeFedTicketDependency and +// SetForgeFedTicketDependency methods to access and set this property. +func (this ForgeFedEarlyItemsPropertyIterator) IsForgeFedTicketDependency() bool { + return this.forgefedTicketDependencyMember != nil +} + +// IsIRI returns true if this property is an IRI. When true, use GetIRI and SetIRI +// to access and set this property +func (this ForgeFedEarlyItemsPropertyIterator) IsIRI() bool { + return this.iri != nil +} + +// IsTootEmoji returns true if this property has a type of "Emoji". When true, use +// the GetTootEmoji and SetTootEmoji methods to access and set this property. +func (this ForgeFedEarlyItemsPropertyIterator) IsTootEmoji() bool { + return this.tootEmojiMember != nil +} + +// IsTootIdentityProof returns true if this property has a type of +// "IdentityProof". When true, use the GetTootIdentityProof and +// SetTootIdentityProof methods to access and set this property. +func (this ForgeFedEarlyItemsPropertyIterator) IsTootIdentityProof() bool { + return this.tootIdentityProofMember != nil +} + +// JSONLDContext returns the JSONLD URIs required in the context string for this +// property and the specific values that are set. The value in the map is the +// alias used to import the property's value or values. +func (this ForgeFedEarlyItemsPropertyIterator) JSONLDContext() map[string]string { + m := map[string]string{"https://forgefed.peers.community/ns": this.alias} + var child map[string]string + if this.IsActivityStreamsObject() { + child = this.GetActivityStreamsObject().JSONLDContext() + } else if this.IsActivityStreamsLink() { + child = this.GetActivityStreamsLink().JSONLDContext() + } else if this.IsActivityStreamsAccept() { + child = this.GetActivityStreamsAccept().JSONLDContext() + } else if this.IsActivityStreamsActivity() { + child = this.GetActivityStreamsActivity().JSONLDContext() + } else if this.IsActivityStreamsAdd() { + child = this.GetActivityStreamsAdd().JSONLDContext() + } else if this.IsActivityStreamsAnnounce() { + child = this.GetActivityStreamsAnnounce().JSONLDContext() + } else if this.IsActivityStreamsApplication() { + child = this.GetActivityStreamsApplication().JSONLDContext() + } else if this.IsActivityStreamsArrive() { + child = this.GetActivityStreamsArrive().JSONLDContext() + } else if this.IsActivityStreamsArticle() { + child = this.GetActivityStreamsArticle().JSONLDContext() + } else if this.IsActivityStreamsAudio() { + child = this.GetActivityStreamsAudio().JSONLDContext() + } else if this.IsActivityStreamsBlock() { + child = this.GetActivityStreamsBlock().JSONLDContext() + } else if this.IsForgeFedBranch() { + child = this.GetForgeFedBranch().JSONLDContext() + } else if this.IsActivityStreamsCollection() { + child = this.GetActivityStreamsCollection().JSONLDContext() + } else if this.IsActivityStreamsCollectionPage() { + child = this.GetActivityStreamsCollectionPage().JSONLDContext() + } else if this.IsForgeFedCommit() { + child = this.GetForgeFedCommit().JSONLDContext() + } else if this.IsActivityStreamsCreate() { + child = this.GetActivityStreamsCreate().JSONLDContext() + } else if this.IsActivityStreamsDelete() { + child = this.GetActivityStreamsDelete().JSONLDContext() + } else if this.IsActivityStreamsDislike() { + child = this.GetActivityStreamsDislike().JSONLDContext() + } else if this.IsActivityStreamsDocument() { + child = this.GetActivityStreamsDocument().JSONLDContext() + } else if this.IsTootEmoji() { + child = this.GetTootEmoji().JSONLDContext() + } else if this.IsActivityStreamsEvent() { + child = this.GetActivityStreamsEvent().JSONLDContext() + } else if this.IsActivityStreamsFlag() { + child = this.GetActivityStreamsFlag().JSONLDContext() + } else if this.IsActivityStreamsFollow() { + child = this.GetActivityStreamsFollow().JSONLDContext() + } else if this.IsActivityStreamsGroup() { + child = this.GetActivityStreamsGroup().JSONLDContext() + } else if this.IsTootIdentityProof() { + child = this.GetTootIdentityProof().JSONLDContext() + } else if this.IsActivityStreamsIgnore() { + child = this.GetActivityStreamsIgnore().JSONLDContext() + } else if this.IsActivityStreamsImage() { + child = this.GetActivityStreamsImage().JSONLDContext() + } else if this.IsActivityStreamsIntransitiveActivity() { + child = this.GetActivityStreamsIntransitiveActivity().JSONLDContext() + } else if this.IsActivityStreamsInvite() { + child = this.GetActivityStreamsInvite().JSONLDContext() + } else if this.IsActivityStreamsJoin() { + child = this.GetActivityStreamsJoin().JSONLDContext() + } else if this.IsActivityStreamsLeave() { + child = this.GetActivityStreamsLeave().JSONLDContext() + } else if this.IsActivityStreamsLike() { + child = this.GetActivityStreamsLike().JSONLDContext() + } else if this.IsActivityStreamsListen() { + child = this.GetActivityStreamsListen().JSONLDContext() + } else if this.IsActivityStreamsMention() { + child = this.GetActivityStreamsMention().JSONLDContext() + } else if this.IsActivityStreamsMove() { + child = this.GetActivityStreamsMove().JSONLDContext() + } else if this.IsActivityStreamsNote() { + child = this.GetActivityStreamsNote().JSONLDContext() + } else if this.IsActivityStreamsOffer() { + child = this.GetActivityStreamsOffer().JSONLDContext() + } else if this.IsActivityStreamsOrderedCollection() { + child = this.GetActivityStreamsOrderedCollection().JSONLDContext() + } else if this.IsActivityStreamsOrderedCollectionPage() { + child = this.GetActivityStreamsOrderedCollectionPage().JSONLDContext() + } else if this.IsActivityStreamsOrganization() { + child = this.GetActivityStreamsOrganization().JSONLDContext() + } else if this.IsActivityStreamsPage() { + child = this.GetActivityStreamsPage().JSONLDContext() + } else if this.IsActivityStreamsPerson() { + child = this.GetActivityStreamsPerson().JSONLDContext() + } else if this.IsActivityStreamsPlace() { + child = this.GetActivityStreamsPlace().JSONLDContext() + } else if this.IsActivityStreamsProfile() { + child = this.GetActivityStreamsProfile().JSONLDContext() + } else if this.IsForgeFedPush() { + child = this.GetForgeFedPush().JSONLDContext() + } else if this.IsActivityStreamsQuestion() { + child = this.GetActivityStreamsQuestion().JSONLDContext() + } else if this.IsActivityStreamsRead() { + child = this.GetActivityStreamsRead().JSONLDContext() + } else if this.IsActivityStreamsReject() { + child = this.GetActivityStreamsReject().JSONLDContext() + } else if this.IsActivityStreamsRelationship() { + child = this.GetActivityStreamsRelationship().JSONLDContext() + } else if this.IsActivityStreamsRemove() { + child = this.GetActivityStreamsRemove().JSONLDContext() + } else if this.IsForgeFedRepository() { + child = this.GetForgeFedRepository().JSONLDContext() + } else if this.IsActivityStreamsService() { + child = this.GetActivityStreamsService().JSONLDContext() + } else if this.IsActivityStreamsTentativeAccept() { + child = this.GetActivityStreamsTentativeAccept().JSONLDContext() + } else if this.IsActivityStreamsTentativeReject() { + child = this.GetActivityStreamsTentativeReject().JSONLDContext() + } else if this.IsForgeFedTicket() { + child = this.GetForgeFedTicket().JSONLDContext() + } else if this.IsForgeFedTicketDependency() { + child = this.GetForgeFedTicketDependency().JSONLDContext() + } else if this.IsActivityStreamsTombstone() { + child = this.GetActivityStreamsTombstone().JSONLDContext() + } else if this.IsActivityStreamsTravel() { + child = this.GetActivityStreamsTravel().JSONLDContext() + } else if this.IsActivityStreamsUndo() { + child = this.GetActivityStreamsUndo().JSONLDContext() + } else if this.IsActivityStreamsUpdate() { + child = this.GetActivityStreamsUpdate().JSONLDContext() + } else if this.IsActivityStreamsVideo() { + child = this.GetActivityStreamsVideo().JSONLDContext() + } else if this.IsActivityStreamsView() { + child = this.GetActivityStreamsView().JSONLDContext() + } + /* + Since the literal maps in this function are determined at + code-generation time, this loop should not overwrite an existing key with a + new value. + */ + for k, v := range child { + m[k] = v + } + return m +} + +// KindIndex computes an arbitrary value for indexing this kind of value. This is +// a leaky API detail only for folks looking to replace the go-fed +// implementation. Applications should not use this method. +func (this ForgeFedEarlyItemsPropertyIterator) KindIndex() int { + if this.IsActivityStreamsObject() { + return 0 + } + if this.IsActivityStreamsLink() { + return 1 + } + if this.IsActivityStreamsAccept() { + return 2 + } + if this.IsActivityStreamsActivity() { + return 3 + } + if this.IsActivityStreamsAdd() { + return 4 + } + if this.IsActivityStreamsAnnounce() { + return 5 + } + if this.IsActivityStreamsApplication() { + return 6 + } + if this.IsActivityStreamsArrive() { + return 7 + } + if this.IsActivityStreamsArticle() { + return 8 + } + if this.IsActivityStreamsAudio() { + return 9 + } + if this.IsActivityStreamsBlock() { + return 10 + } + if this.IsForgeFedBranch() { + return 11 + } + if this.IsActivityStreamsCollection() { + return 12 + } + if this.IsActivityStreamsCollectionPage() { + return 13 + } + if this.IsForgeFedCommit() { + return 14 + } + if this.IsActivityStreamsCreate() { + return 15 + } + if this.IsActivityStreamsDelete() { + return 16 + } + if this.IsActivityStreamsDislike() { + return 17 + } + if this.IsActivityStreamsDocument() { + return 18 + } + if this.IsTootEmoji() { + return 19 + } + if this.IsActivityStreamsEvent() { + return 20 + } + if this.IsActivityStreamsFlag() { + return 21 + } + if this.IsActivityStreamsFollow() { + return 22 + } + if this.IsActivityStreamsGroup() { + return 23 + } + if this.IsTootIdentityProof() { + return 24 + } + if this.IsActivityStreamsIgnore() { + return 25 + } + if this.IsActivityStreamsImage() { + return 26 + } + if this.IsActivityStreamsIntransitiveActivity() { + return 27 + } + if this.IsActivityStreamsInvite() { + return 28 + } + if this.IsActivityStreamsJoin() { + return 29 + } + if this.IsActivityStreamsLeave() { + return 30 + } + if this.IsActivityStreamsLike() { + return 31 + } + if this.IsActivityStreamsListen() { + return 32 + } + if this.IsActivityStreamsMention() { + return 33 + } + if this.IsActivityStreamsMove() { + return 34 + } + if this.IsActivityStreamsNote() { + return 35 + } + if this.IsActivityStreamsOffer() { + return 36 + } + if this.IsActivityStreamsOrderedCollection() { + return 37 + } + if this.IsActivityStreamsOrderedCollectionPage() { + return 38 + } + if this.IsActivityStreamsOrganization() { + return 39 + } + if this.IsActivityStreamsPage() { + return 40 + } + if this.IsActivityStreamsPerson() { + return 41 + } + if this.IsActivityStreamsPlace() { + return 42 + } + if this.IsActivityStreamsProfile() { + return 43 + } + if this.IsForgeFedPush() { + return 44 + } + if this.IsActivityStreamsQuestion() { + return 45 + } + if this.IsActivityStreamsRead() { + return 46 + } + if this.IsActivityStreamsReject() { + return 47 + } + if this.IsActivityStreamsRelationship() { + return 48 + } + if this.IsActivityStreamsRemove() { + return 49 + } + if this.IsForgeFedRepository() { + return 50 + } + if this.IsActivityStreamsService() { + return 51 + } + if this.IsActivityStreamsTentativeAccept() { + return 52 + } + if this.IsActivityStreamsTentativeReject() { + return 53 + } + if this.IsForgeFedTicket() { + return 54 + } + if this.IsForgeFedTicketDependency() { + return 55 + } + if this.IsActivityStreamsTombstone() { + return 56 + } + if this.IsActivityStreamsTravel() { + return 57 + } + if this.IsActivityStreamsUndo() { + return 58 + } + if this.IsActivityStreamsUpdate() { + return 59 + } + if this.IsActivityStreamsVideo() { + return 60 + } + if this.IsActivityStreamsView() { + return 61 + } + if this.IsIRI() { + return -2 + } + return -1 +} + +// LessThan compares two instances of this property with an arbitrary but stable +// comparison. Applications should not use this because it is only meant to +// help alternative implementations to go-fed to be able to normalize +// nonfunctional properties. +func (this ForgeFedEarlyItemsPropertyIterator) LessThan(o vocab.ForgeFedEarlyItemsPropertyIterator) bool { + idx1 := this.KindIndex() + idx2 := o.KindIndex() + if idx1 < idx2 { + return true + } else if idx1 > idx2 { + return false + } else if this.IsActivityStreamsObject() { + return this.GetActivityStreamsObject().LessThan(o.GetActivityStreamsObject()) + } else if this.IsActivityStreamsLink() { + return this.GetActivityStreamsLink().LessThan(o.GetActivityStreamsLink()) + } else if this.IsActivityStreamsAccept() { + return this.GetActivityStreamsAccept().LessThan(o.GetActivityStreamsAccept()) + } else if this.IsActivityStreamsActivity() { + return this.GetActivityStreamsActivity().LessThan(o.GetActivityStreamsActivity()) + } else if this.IsActivityStreamsAdd() { + return this.GetActivityStreamsAdd().LessThan(o.GetActivityStreamsAdd()) + } else if this.IsActivityStreamsAnnounce() { + return this.GetActivityStreamsAnnounce().LessThan(o.GetActivityStreamsAnnounce()) + } else if this.IsActivityStreamsApplication() { + return this.GetActivityStreamsApplication().LessThan(o.GetActivityStreamsApplication()) + } else if this.IsActivityStreamsArrive() { + return this.GetActivityStreamsArrive().LessThan(o.GetActivityStreamsArrive()) + } else if this.IsActivityStreamsArticle() { + return this.GetActivityStreamsArticle().LessThan(o.GetActivityStreamsArticle()) + } else if this.IsActivityStreamsAudio() { + return this.GetActivityStreamsAudio().LessThan(o.GetActivityStreamsAudio()) + } else if this.IsActivityStreamsBlock() { + return this.GetActivityStreamsBlock().LessThan(o.GetActivityStreamsBlock()) + } else if this.IsForgeFedBranch() { + return this.GetForgeFedBranch().LessThan(o.GetForgeFedBranch()) + } else if this.IsActivityStreamsCollection() { + return this.GetActivityStreamsCollection().LessThan(o.GetActivityStreamsCollection()) + } else if this.IsActivityStreamsCollectionPage() { + return this.GetActivityStreamsCollectionPage().LessThan(o.GetActivityStreamsCollectionPage()) + } else if this.IsForgeFedCommit() { + return this.GetForgeFedCommit().LessThan(o.GetForgeFedCommit()) + } else if this.IsActivityStreamsCreate() { + return this.GetActivityStreamsCreate().LessThan(o.GetActivityStreamsCreate()) + } else if this.IsActivityStreamsDelete() { + return this.GetActivityStreamsDelete().LessThan(o.GetActivityStreamsDelete()) + } else if this.IsActivityStreamsDislike() { + return this.GetActivityStreamsDislike().LessThan(o.GetActivityStreamsDislike()) + } else if this.IsActivityStreamsDocument() { + return this.GetActivityStreamsDocument().LessThan(o.GetActivityStreamsDocument()) + } else if this.IsTootEmoji() { + return this.GetTootEmoji().LessThan(o.GetTootEmoji()) + } else if this.IsActivityStreamsEvent() { + return this.GetActivityStreamsEvent().LessThan(o.GetActivityStreamsEvent()) + } else if this.IsActivityStreamsFlag() { + return this.GetActivityStreamsFlag().LessThan(o.GetActivityStreamsFlag()) + } else if this.IsActivityStreamsFollow() { + return this.GetActivityStreamsFollow().LessThan(o.GetActivityStreamsFollow()) + } else if this.IsActivityStreamsGroup() { + return this.GetActivityStreamsGroup().LessThan(o.GetActivityStreamsGroup()) + } else if this.IsTootIdentityProof() { + return this.GetTootIdentityProof().LessThan(o.GetTootIdentityProof()) + } else if this.IsActivityStreamsIgnore() { + return this.GetActivityStreamsIgnore().LessThan(o.GetActivityStreamsIgnore()) + } else if this.IsActivityStreamsImage() { + return this.GetActivityStreamsImage().LessThan(o.GetActivityStreamsImage()) + } else if this.IsActivityStreamsIntransitiveActivity() { + return this.GetActivityStreamsIntransitiveActivity().LessThan(o.GetActivityStreamsIntransitiveActivity()) + } else if this.IsActivityStreamsInvite() { + return this.GetActivityStreamsInvite().LessThan(o.GetActivityStreamsInvite()) + } else if this.IsActivityStreamsJoin() { + return this.GetActivityStreamsJoin().LessThan(o.GetActivityStreamsJoin()) + } else if this.IsActivityStreamsLeave() { + return this.GetActivityStreamsLeave().LessThan(o.GetActivityStreamsLeave()) + } else if this.IsActivityStreamsLike() { + return this.GetActivityStreamsLike().LessThan(o.GetActivityStreamsLike()) + } else if this.IsActivityStreamsListen() { + return this.GetActivityStreamsListen().LessThan(o.GetActivityStreamsListen()) + } else if this.IsActivityStreamsMention() { + return this.GetActivityStreamsMention().LessThan(o.GetActivityStreamsMention()) + } else if this.IsActivityStreamsMove() { + return this.GetActivityStreamsMove().LessThan(o.GetActivityStreamsMove()) + } else if this.IsActivityStreamsNote() { + return this.GetActivityStreamsNote().LessThan(o.GetActivityStreamsNote()) + } else if this.IsActivityStreamsOffer() { + return this.GetActivityStreamsOffer().LessThan(o.GetActivityStreamsOffer()) + } else if this.IsActivityStreamsOrderedCollection() { + return this.GetActivityStreamsOrderedCollection().LessThan(o.GetActivityStreamsOrderedCollection()) + } else if this.IsActivityStreamsOrderedCollectionPage() { + return this.GetActivityStreamsOrderedCollectionPage().LessThan(o.GetActivityStreamsOrderedCollectionPage()) + } else if this.IsActivityStreamsOrganization() { + return this.GetActivityStreamsOrganization().LessThan(o.GetActivityStreamsOrganization()) + } else if this.IsActivityStreamsPage() { + return this.GetActivityStreamsPage().LessThan(o.GetActivityStreamsPage()) + } else if this.IsActivityStreamsPerson() { + return this.GetActivityStreamsPerson().LessThan(o.GetActivityStreamsPerson()) + } else if this.IsActivityStreamsPlace() { + return this.GetActivityStreamsPlace().LessThan(o.GetActivityStreamsPlace()) + } else if this.IsActivityStreamsProfile() { + return this.GetActivityStreamsProfile().LessThan(o.GetActivityStreamsProfile()) + } else if this.IsForgeFedPush() { + return this.GetForgeFedPush().LessThan(o.GetForgeFedPush()) + } else if this.IsActivityStreamsQuestion() { + return this.GetActivityStreamsQuestion().LessThan(o.GetActivityStreamsQuestion()) + } else if this.IsActivityStreamsRead() { + return this.GetActivityStreamsRead().LessThan(o.GetActivityStreamsRead()) + } else if this.IsActivityStreamsReject() { + return this.GetActivityStreamsReject().LessThan(o.GetActivityStreamsReject()) + } else if this.IsActivityStreamsRelationship() { + return this.GetActivityStreamsRelationship().LessThan(o.GetActivityStreamsRelationship()) + } else if this.IsActivityStreamsRemove() { + return this.GetActivityStreamsRemove().LessThan(o.GetActivityStreamsRemove()) + } else if this.IsForgeFedRepository() { + return this.GetForgeFedRepository().LessThan(o.GetForgeFedRepository()) + } else if this.IsActivityStreamsService() { + return this.GetActivityStreamsService().LessThan(o.GetActivityStreamsService()) + } else if this.IsActivityStreamsTentativeAccept() { + return this.GetActivityStreamsTentativeAccept().LessThan(o.GetActivityStreamsTentativeAccept()) + } else if this.IsActivityStreamsTentativeReject() { + return this.GetActivityStreamsTentativeReject().LessThan(o.GetActivityStreamsTentativeReject()) + } else if this.IsForgeFedTicket() { + return this.GetForgeFedTicket().LessThan(o.GetForgeFedTicket()) + } else if this.IsForgeFedTicketDependency() { + return this.GetForgeFedTicketDependency().LessThan(o.GetForgeFedTicketDependency()) + } else if this.IsActivityStreamsTombstone() { + return this.GetActivityStreamsTombstone().LessThan(o.GetActivityStreamsTombstone()) + } else if this.IsActivityStreamsTravel() { + return this.GetActivityStreamsTravel().LessThan(o.GetActivityStreamsTravel()) + } else if this.IsActivityStreamsUndo() { + return this.GetActivityStreamsUndo().LessThan(o.GetActivityStreamsUndo()) + } else if this.IsActivityStreamsUpdate() { + return this.GetActivityStreamsUpdate().LessThan(o.GetActivityStreamsUpdate()) + } else if this.IsActivityStreamsVideo() { + return this.GetActivityStreamsVideo().LessThan(o.GetActivityStreamsVideo()) + } else if this.IsActivityStreamsView() { + return this.GetActivityStreamsView().LessThan(o.GetActivityStreamsView()) + } else if this.IsIRI() { + return this.iri.String() < o.GetIRI().String() + } + return false +} + +// Name returns the name of this property: "ForgeFedEarlyItems". +func (this ForgeFedEarlyItemsPropertyIterator) Name() string { + if len(this.alias) > 0 { + return this.alias + ":" + "ForgeFedEarlyItems" + } else { + return "ForgeFedEarlyItems" + } +} + +// Next returns the next iterator, or nil if there is no next iterator. +func (this ForgeFedEarlyItemsPropertyIterator) Next() vocab.ForgeFedEarlyItemsPropertyIterator { + if this.myIdx+1 >= this.parent.Len() { + return nil + } else { + return this.parent.At(this.myIdx + 1) + } +} + +// Prev returns the previous iterator, or nil if there is no previous iterator. +func (this ForgeFedEarlyItemsPropertyIterator) Prev() vocab.ForgeFedEarlyItemsPropertyIterator { + if this.myIdx-1 < 0 { + return nil + } else { + return this.parent.At(this.myIdx - 1) + } +} + +// SetActivityStreamsAccept sets the value of this property. Calling +// IsActivityStreamsAccept afterwards returns true. +func (this *ForgeFedEarlyItemsPropertyIterator) SetActivityStreamsAccept(v vocab.ActivityStreamsAccept) { + this.clear() + this.activitystreamsAcceptMember = v +} + +// SetActivityStreamsActivity sets the value of this property. Calling +// IsActivityStreamsActivity afterwards returns true. +func (this *ForgeFedEarlyItemsPropertyIterator) SetActivityStreamsActivity(v vocab.ActivityStreamsActivity) { + this.clear() + this.activitystreamsActivityMember = v +} + +// SetActivityStreamsAdd sets the value of this property. Calling +// IsActivityStreamsAdd afterwards returns true. +func (this *ForgeFedEarlyItemsPropertyIterator) SetActivityStreamsAdd(v vocab.ActivityStreamsAdd) { + this.clear() + this.activitystreamsAddMember = v +} + +// SetActivityStreamsAnnounce sets the value of this property. Calling +// IsActivityStreamsAnnounce afterwards returns true. +func (this *ForgeFedEarlyItemsPropertyIterator) SetActivityStreamsAnnounce(v vocab.ActivityStreamsAnnounce) { + this.clear() + this.activitystreamsAnnounceMember = v +} + +// SetActivityStreamsApplication sets the value of this property. Calling +// IsActivityStreamsApplication afterwards returns true. +func (this *ForgeFedEarlyItemsPropertyIterator) SetActivityStreamsApplication(v vocab.ActivityStreamsApplication) { + this.clear() + this.activitystreamsApplicationMember = v +} + +// SetActivityStreamsArrive sets the value of this property. Calling +// IsActivityStreamsArrive afterwards returns true. +func (this *ForgeFedEarlyItemsPropertyIterator) SetActivityStreamsArrive(v vocab.ActivityStreamsArrive) { + this.clear() + this.activitystreamsArriveMember = v +} + +// SetActivityStreamsArticle sets the value of this property. Calling +// IsActivityStreamsArticle afterwards returns true. +func (this *ForgeFedEarlyItemsPropertyIterator) SetActivityStreamsArticle(v vocab.ActivityStreamsArticle) { + this.clear() + this.activitystreamsArticleMember = v +} + +// SetActivityStreamsAudio sets the value of this property. Calling +// IsActivityStreamsAudio afterwards returns true. +func (this *ForgeFedEarlyItemsPropertyIterator) SetActivityStreamsAudio(v vocab.ActivityStreamsAudio) { + this.clear() + this.activitystreamsAudioMember = v +} + +// SetActivityStreamsBlock sets the value of this property. Calling +// IsActivityStreamsBlock afterwards returns true. +func (this *ForgeFedEarlyItemsPropertyIterator) SetActivityStreamsBlock(v vocab.ActivityStreamsBlock) { + this.clear() + this.activitystreamsBlockMember = v +} + +// SetActivityStreamsCollection sets the value of this property. Calling +// IsActivityStreamsCollection afterwards returns true. +func (this *ForgeFedEarlyItemsPropertyIterator) SetActivityStreamsCollection(v vocab.ActivityStreamsCollection) { + this.clear() + this.activitystreamsCollectionMember = v +} + +// SetActivityStreamsCollectionPage sets the value of this property. Calling +// IsActivityStreamsCollectionPage afterwards returns true. +func (this *ForgeFedEarlyItemsPropertyIterator) SetActivityStreamsCollectionPage(v vocab.ActivityStreamsCollectionPage) { + this.clear() + this.activitystreamsCollectionPageMember = v +} + +// SetActivityStreamsCreate sets the value of this property. Calling +// IsActivityStreamsCreate afterwards returns true. +func (this *ForgeFedEarlyItemsPropertyIterator) SetActivityStreamsCreate(v vocab.ActivityStreamsCreate) { + this.clear() + this.activitystreamsCreateMember = v +} + +// SetActivityStreamsDelete sets the value of this property. Calling +// IsActivityStreamsDelete afterwards returns true. +func (this *ForgeFedEarlyItemsPropertyIterator) SetActivityStreamsDelete(v vocab.ActivityStreamsDelete) { + this.clear() + this.activitystreamsDeleteMember = v +} + +// SetActivityStreamsDislike sets the value of this property. Calling +// IsActivityStreamsDislike afterwards returns true. +func (this *ForgeFedEarlyItemsPropertyIterator) SetActivityStreamsDislike(v vocab.ActivityStreamsDislike) { + this.clear() + this.activitystreamsDislikeMember = v +} + +// SetActivityStreamsDocument sets the value of this property. Calling +// IsActivityStreamsDocument afterwards returns true. +func (this *ForgeFedEarlyItemsPropertyIterator) SetActivityStreamsDocument(v vocab.ActivityStreamsDocument) { + this.clear() + this.activitystreamsDocumentMember = v +} + +// SetActivityStreamsEvent sets the value of this property. Calling +// IsActivityStreamsEvent afterwards returns true. +func (this *ForgeFedEarlyItemsPropertyIterator) SetActivityStreamsEvent(v vocab.ActivityStreamsEvent) { + this.clear() + this.activitystreamsEventMember = v +} + +// SetActivityStreamsFlag sets the value of this property. Calling +// IsActivityStreamsFlag afterwards returns true. +func (this *ForgeFedEarlyItemsPropertyIterator) SetActivityStreamsFlag(v vocab.ActivityStreamsFlag) { + this.clear() + this.activitystreamsFlagMember = v +} + +// SetActivityStreamsFollow sets the value of this property. Calling +// IsActivityStreamsFollow afterwards returns true. +func (this *ForgeFedEarlyItemsPropertyIterator) SetActivityStreamsFollow(v vocab.ActivityStreamsFollow) { + this.clear() + this.activitystreamsFollowMember = v +} + +// SetActivityStreamsGroup sets the value of this property. Calling +// IsActivityStreamsGroup afterwards returns true. +func (this *ForgeFedEarlyItemsPropertyIterator) SetActivityStreamsGroup(v vocab.ActivityStreamsGroup) { + this.clear() + this.activitystreamsGroupMember = v +} + +// SetActivityStreamsIgnore sets the value of this property. Calling +// IsActivityStreamsIgnore afterwards returns true. +func (this *ForgeFedEarlyItemsPropertyIterator) SetActivityStreamsIgnore(v vocab.ActivityStreamsIgnore) { + this.clear() + this.activitystreamsIgnoreMember = v +} + +// SetActivityStreamsImage sets the value of this property. Calling +// IsActivityStreamsImage afterwards returns true. +func (this *ForgeFedEarlyItemsPropertyIterator) SetActivityStreamsImage(v vocab.ActivityStreamsImage) { + this.clear() + this.activitystreamsImageMember = v +} + +// SetActivityStreamsIntransitiveActivity sets the value of this property. Calling +// IsActivityStreamsIntransitiveActivity afterwards returns true. +func (this *ForgeFedEarlyItemsPropertyIterator) SetActivityStreamsIntransitiveActivity(v vocab.ActivityStreamsIntransitiveActivity) { + this.clear() + this.activitystreamsIntransitiveActivityMember = v +} + +// SetActivityStreamsInvite sets the value of this property. Calling +// IsActivityStreamsInvite afterwards returns true. +func (this *ForgeFedEarlyItemsPropertyIterator) SetActivityStreamsInvite(v vocab.ActivityStreamsInvite) { + this.clear() + this.activitystreamsInviteMember = v +} + +// SetActivityStreamsJoin sets the value of this property. Calling +// IsActivityStreamsJoin afterwards returns true. +func (this *ForgeFedEarlyItemsPropertyIterator) SetActivityStreamsJoin(v vocab.ActivityStreamsJoin) { + this.clear() + this.activitystreamsJoinMember = v +} + +// SetActivityStreamsLeave sets the value of this property. Calling +// IsActivityStreamsLeave afterwards returns true. +func (this *ForgeFedEarlyItemsPropertyIterator) SetActivityStreamsLeave(v vocab.ActivityStreamsLeave) { + this.clear() + this.activitystreamsLeaveMember = v +} + +// SetActivityStreamsLike sets the value of this property. Calling +// IsActivityStreamsLike afterwards returns true. +func (this *ForgeFedEarlyItemsPropertyIterator) SetActivityStreamsLike(v vocab.ActivityStreamsLike) { + this.clear() + this.activitystreamsLikeMember = v +} + +// SetActivityStreamsLink sets the value of this property. Calling +// IsActivityStreamsLink afterwards returns true. +func (this *ForgeFedEarlyItemsPropertyIterator) SetActivityStreamsLink(v vocab.ActivityStreamsLink) { + this.clear() + this.activitystreamsLinkMember = v +} + +// SetActivityStreamsListen sets the value of this property. Calling +// IsActivityStreamsListen afterwards returns true. +func (this *ForgeFedEarlyItemsPropertyIterator) SetActivityStreamsListen(v vocab.ActivityStreamsListen) { + this.clear() + this.activitystreamsListenMember = v +} + +// SetActivityStreamsMention sets the value of this property. Calling +// IsActivityStreamsMention afterwards returns true. +func (this *ForgeFedEarlyItemsPropertyIterator) SetActivityStreamsMention(v vocab.ActivityStreamsMention) { + this.clear() + this.activitystreamsMentionMember = v +} + +// SetActivityStreamsMove sets the value of this property. Calling +// IsActivityStreamsMove afterwards returns true. +func (this *ForgeFedEarlyItemsPropertyIterator) SetActivityStreamsMove(v vocab.ActivityStreamsMove) { + this.clear() + this.activitystreamsMoveMember = v +} + +// SetActivityStreamsNote sets the value of this property. Calling +// IsActivityStreamsNote afterwards returns true. +func (this *ForgeFedEarlyItemsPropertyIterator) SetActivityStreamsNote(v vocab.ActivityStreamsNote) { + this.clear() + this.activitystreamsNoteMember = v +} + +// SetActivityStreamsObject sets the value of this property. Calling +// IsActivityStreamsObject afterwards returns true. +func (this *ForgeFedEarlyItemsPropertyIterator) SetActivityStreamsObject(v vocab.ActivityStreamsObject) { + this.clear() + this.activitystreamsObjectMember = v +} + +// SetActivityStreamsOffer sets the value of this property. Calling +// IsActivityStreamsOffer afterwards returns true. +func (this *ForgeFedEarlyItemsPropertyIterator) SetActivityStreamsOffer(v vocab.ActivityStreamsOffer) { + this.clear() + this.activitystreamsOfferMember = v +} + +// SetActivityStreamsOrderedCollection sets the value of this property. Calling +// IsActivityStreamsOrderedCollection afterwards returns true. +func (this *ForgeFedEarlyItemsPropertyIterator) SetActivityStreamsOrderedCollection(v vocab.ActivityStreamsOrderedCollection) { + this.clear() + this.activitystreamsOrderedCollectionMember = v +} + +// SetActivityStreamsOrderedCollectionPage sets the value of this property. +// Calling IsActivityStreamsOrderedCollectionPage afterwards returns true. +func (this *ForgeFedEarlyItemsPropertyIterator) SetActivityStreamsOrderedCollectionPage(v vocab.ActivityStreamsOrderedCollectionPage) { + this.clear() + this.activitystreamsOrderedCollectionPageMember = v +} + +// SetActivityStreamsOrganization sets the value of this property. Calling +// IsActivityStreamsOrganization afterwards returns true. +func (this *ForgeFedEarlyItemsPropertyIterator) SetActivityStreamsOrganization(v vocab.ActivityStreamsOrganization) { + this.clear() + this.activitystreamsOrganizationMember = v +} + +// SetActivityStreamsPage sets the value of this property. Calling +// IsActivityStreamsPage afterwards returns true. +func (this *ForgeFedEarlyItemsPropertyIterator) SetActivityStreamsPage(v vocab.ActivityStreamsPage) { + this.clear() + this.activitystreamsPageMember = v +} + +// SetActivityStreamsPerson sets the value of this property. Calling +// IsActivityStreamsPerson afterwards returns true. +func (this *ForgeFedEarlyItemsPropertyIterator) SetActivityStreamsPerson(v vocab.ActivityStreamsPerson) { + this.clear() + this.activitystreamsPersonMember = v +} + +// SetActivityStreamsPlace sets the value of this property. Calling +// IsActivityStreamsPlace afterwards returns true. +func (this *ForgeFedEarlyItemsPropertyIterator) SetActivityStreamsPlace(v vocab.ActivityStreamsPlace) { + this.clear() + this.activitystreamsPlaceMember = v +} + +// SetActivityStreamsProfile sets the value of this property. Calling +// IsActivityStreamsProfile afterwards returns true. +func (this *ForgeFedEarlyItemsPropertyIterator) SetActivityStreamsProfile(v vocab.ActivityStreamsProfile) { + this.clear() + this.activitystreamsProfileMember = v +} + +// SetActivityStreamsQuestion sets the value of this property. Calling +// IsActivityStreamsQuestion afterwards returns true. +func (this *ForgeFedEarlyItemsPropertyIterator) SetActivityStreamsQuestion(v vocab.ActivityStreamsQuestion) { + this.clear() + this.activitystreamsQuestionMember = v +} + +// SetActivityStreamsRead sets the value of this property. Calling +// IsActivityStreamsRead afterwards returns true. +func (this *ForgeFedEarlyItemsPropertyIterator) SetActivityStreamsRead(v vocab.ActivityStreamsRead) { + this.clear() + this.activitystreamsReadMember = v +} + +// SetActivityStreamsReject sets the value of this property. Calling +// IsActivityStreamsReject afterwards returns true. +func (this *ForgeFedEarlyItemsPropertyIterator) SetActivityStreamsReject(v vocab.ActivityStreamsReject) { + this.clear() + this.activitystreamsRejectMember = v +} + +// SetActivityStreamsRelationship sets the value of this property. Calling +// IsActivityStreamsRelationship afterwards returns true. +func (this *ForgeFedEarlyItemsPropertyIterator) SetActivityStreamsRelationship(v vocab.ActivityStreamsRelationship) { + this.clear() + this.activitystreamsRelationshipMember = v +} + +// SetActivityStreamsRemove sets the value of this property. Calling +// IsActivityStreamsRemove afterwards returns true. +func (this *ForgeFedEarlyItemsPropertyIterator) SetActivityStreamsRemove(v vocab.ActivityStreamsRemove) { + this.clear() + this.activitystreamsRemoveMember = v +} + +// SetActivityStreamsService sets the value of this property. Calling +// IsActivityStreamsService afterwards returns true. +func (this *ForgeFedEarlyItemsPropertyIterator) SetActivityStreamsService(v vocab.ActivityStreamsService) { + this.clear() + this.activitystreamsServiceMember = v +} + +// SetActivityStreamsTentativeAccept sets the value of this property. Calling +// IsActivityStreamsTentativeAccept afterwards returns true. +func (this *ForgeFedEarlyItemsPropertyIterator) SetActivityStreamsTentativeAccept(v vocab.ActivityStreamsTentativeAccept) { + this.clear() + this.activitystreamsTentativeAcceptMember = v +} + +// SetActivityStreamsTentativeReject sets the value of this property. Calling +// IsActivityStreamsTentativeReject afterwards returns true. +func (this *ForgeFedEarlyItemsPropertyIterator) SetActivityStreamsTentativeReject(v vocab.ActivityStreamsTentativeReject) { + this.clear() + this.activitystreamsTentativeRejectMember = v +} + +// SetActivityStreamsTombstone sets the value of this property. Calling +// IsActivityStreamsTombstone afterwards returns true. +func (this *ForgeFedEarlyItemsPropertyIterator) SetActivityStreamsTombstone(v vocab.ActivityStreamsTombstone) { + this.clear() + this.activitystreamsTombstoneMember = v +} + +// SetActivityStreamsTravel sets the value of this property. Calling +// IsActivityStreamsTravel afterwards returns true. +func (this *ForgeFedEarlyItemsPropertyIterator) SetActivityStreamsTravel(v vocab.ActivityStreamsTravel) { + this.clear() + this.activitystreamsTravelMember = v +} + +// SetActivityStreamsUndo sets the value of this property. Calling +// IsActivityStreamsUndo afterwards returns true. +func (this *ForgeFedEarlyItemsPropertyIterator) SetActivityStreamsUndo(v vocab.ActivityStreamsUndo) { + this.clear() + this.activitystreamsUndoMember = v +} + +// SetActivityStreamsUpdate sets the value of this property. Calling +// IsActivityStreamsUpdate afterwards returns true. +func (this *ForgeFedEarlyItemsPropertyIterator) SetActivityStreamsUpdate(v vocab.ActivityStreamsUpdate) { + this.clear() + this.activitystreamsUpdateMember = v +} + +// SetActivityStreamsVideo sets the value of this property. Calling +// IsActivityStreamsVideo afterwards returns true. +func (this *ForgeFedEarlyItemsPropertyIterator) SetActivityStreamsVideo(v vocab.ActivityStreamsVideo) { + this.clear() + this.activitystreamsVideoMember = v +} + +// SetActivityStreamsView sets the value of this property. Calling +// IsActivityStreamsView afterwards returns true. +func (this *ForgeFedEarlyItemsPropertyIterator) SetActivityStreamsView(v vocab.ActivityStreamsView) { + this.clear() + this.activitystreamsViewMember = v +} + +// SetForgeFedBranch sets the value of this property. Calling IsForgeFedBranch +// afterwards returns true. +func (this *ForgeFedEarlyItemsPropertyIterator) SetForgeFedBranch(v vocab.ForgeFedBranch) { + this.clear() + this.forgefedBranchMember = v +} + +// SetForgeFedCommit sets the value of this property. Calling IsForgeFedCommit +// afterwards returns true. +func (this *ForgeFedEarlyItemsPropertyIterator) SetForgeFedCommit(v vocab.ForgeFedCommit) { + this.clear() + this.forgefedCommitMember = v +} + +// SetForgeFedPush sets the value of this property. Calling IsForgeFedPush +// afterwards returns true. +func (this *ForgeFedEarlyItemsPropertyIterator) SetForgeFedPush(v vocab.ForgeFedPush) { + this.clear() + this.forgefedPushMember = v +} + +// SetForgeFedRepository sets the value of this property. Calling +// IsForgeFedRepository afterwards returns true. +func (this *ForgeFedEarlyItemsPropertyIterator) SetForgeFedRepository(v vocab.ForgeFedRepository) { + this.clear() + this.forgefedRepositoryMember = v +} + +// SetForgeFedTicket sets the value of this property. Calling IsForgeFedTicket +// afterwards returns true. +func (this *ForgeFedEarlyItemsPropertyIterator) SetForgeFedTicket(v vocab.ForgeFedTicket) { + this.clear() + this.forgefedTicketMember = v +} + +// SetForgeFedTicketDependency sets the value of this property. Calling +// IsForgeFedTicketDependency afterwards returns true. +func (this *ForgeFedEarlyItemsPropertyIterator) SetForgeFedTicketDependency(v vocab.ForgeFedTicketDependency) { + this.clear() + this.forgefedTicketDependencyMember = v +} + +// SetIRI sets the value of this property. Calling IsIRI afterwards returns true. +func (this *ForgeFedEarlyItemsPropertyIterator) SetIRI(v *url.URL) { + this.clear() + this.iri = v +} + +// SetTootEmoji sets the value of this property. Calling IsTootEmoji afterwards +// returns true. +func (this *ForgeFedEarlyItemsPropertyIterator) SetTootEmoji(v vocab.TootEmoji) { + this.clear() + this.tootEmojiMember = v +} + +// SetTootIdentityProof sets the value of this property. Calling +// IsTootIdentityProof afterwards returns true. +func (this *ForgeFedEarlyItemsPropertyIterator) SetTootIdentityProof(v vocab.TootIdentityProof) { + this.clear() + this.tootIdentityProofMember = v +} + +// SetType attempts to set the property for the arbitrary type. Returns an error +// if it is not a valid type to set on this property. +func (this *ForgeFedEarlyItemsPropertyIterator) SetType(t vocab.Type) error { + if v, ok := t.(vocab.ActivityStreamsObject); ok { + this.SetActivityStreamsObject(v) + return nil + } + if v, ok := t.(vocab.ActivityStreamsLink); ok { + this.SetActivityStreamsLink(v) + return nil + } + if v, ok := t.(vocab.ActivityStreamsAccept); ok { + this.SetActivityStreamsAccept(v) + return nil + } + if v, ok := t.(vocab.ActivityStreamsActivity); ok { + this.SetActivityStreamsActivity(v) + return nil + } + if v, ok := t.(vocab.ActivityStreamsAdd); ok { + this.SetActivityStreamsAdd(v) + return nil + } + if v, ok := t.(vocab.ActivityStreamsAnnounce); ok { + this.SetActivityStreamsAnnounce(v) + return nil + } + if v, ok := t.(vocab.ActivityStreamsApplication); ok { + this.SetActivityStreamsApplication(v) + return nil + } + if v, ok := t.(vocab.ActivityStreamsArrive); ok { + this.SetActivityStreamsArrive(v) + return nil + } + if v, ok := t.(vocab.ActivityStreamsArticle); ok { + this.SetActivityStreamsArticle(v) + return nil + } + if v, ok := t.(vocab.ActivityStreamsAudio); ok { + this.SetActivityStreamsAudio(v) + return nil + } + if v, ok := t.(vocab.ActivityStreamsBlock); ok { + this.SetActivityStreamsBlock(v) + return nil + } + if v, ok := t.(vocab.ForgeFedBranch); ok { + this.SetForgeFedBranch(v) + return nil + } + if v, ok := t.(vocab.ActivityStreamsCollection); ok { + this.SetActivityStreamsCollection(v) + return nil + } + if v, ok := t.(vocab.ActivityStreamsCollectionPage); ok { + this.SetActivityStreamsCollectionPage(v) + return nil + } + if v, ok := t.(vocab.ForgeFedCommit); ok { + this.SetForgeFedCommit(v) + return nil + } + if v, ok := t.(vocab.ActivityStreamsCreate); ok { + this.SetActivityStreamsCreate(v) + return nil + } + if v, ok := t.(vocab.ActivityStreamsDelete); ok { + this.SetActivityStreamsDelete(v) + return nil + } + if v, ok := t.(vocab.ActivityStreamsDislike); ok { + this.SetActivityStreamsDislike(v) + return nil + } + if v, ok := t.(vocab.ActivityStreamsDocument); ok { + this.SetActivityStreamsDocument(v) + return nil + } + if v, ok := t.(vocab.TootEmoji); ok { + this.SetTootEmoji(v) + return nil + } + if v, ok := t.(vocab.ActivityStreamsEvent); ok { + this.SetActivityStreamsEvent(v) + return nil + } + if v, ok := t.(vocab.ActivityStreamsFlag); ok { + this.SetActivityStreamsFlag(v) + return nil + } + if v, ok := t.(vocab.ActivityStreamsFollow); ok { + this.SetActivityStreamsFollow(v) + return nil + } + if v, ok := t.(vocab.ActivityStreamsGroup); ok { + this.SetActivityStreamsGroup(v) + return nil + } + if v, ok := t.(vocab.TootIdentityProof); ok { + this.SetTootIdentityProof(v) + return nil + } + if v, ok := t.(vocab.ActivityStreamsIgnore); ok { + this.SetActivityStreamsIgnore(v) + return nil + } + if v, ok := t.(vocab.ActivityStreamsImage); ok { + this.SetActivityStreamsImage(v) + return nil + } + if v, ok := t.(vocab.ActivityStreamsIntransitiveActivity); ok { + this.SetActivityStreamsIntransitiveActivity(v) + return nil + } + if v, ok := t.(vocab.ActivityStreamsInvite); ok { + this.SetActivityStreamsInvite(v) + return nil + } + if v, ok := t.(vocab.ActivityStreamsJoin); ok { + this.SetActivityStreamsJoin(v) + return nil + } + if v, ok := t.(vocab.ActivityStreamsLeave); ok { + this.SetActivityStreamsLeave(v) + return nil + } + if v, ok := t.(vocab.ActivityStreamsLike); ok { + this.SetActivityStreamsLike(v) + return nil + } + if v, ok := t.(vocab.ActivityStreamsListen); ok { + this.SetActivityStreamsListen(v) + return nil + } + if v, ok := t.(vocab.ActivityStreamsMention); ok { + this.SetActivityStreamsMention(v) + return nil + } + if v, ok := t.(vocab.ActivityStreamsMove); ok { + this.SetActivityStreamsMove(v) + return nil + } + if v, ok := t.(vocab.ActivityStreamsNote); ok { + this.SetActivityStreamsNote(v) + return nil + } + if v, ok := t.(vocab.ActivityStreamsOffer); ok { + this.SetActivityStreamsOffer(v) + return nil + } + if v, ok := t.(vocab.ActivityStreamsOrderedCollection); ok { + this.SetActivityStreamsOrderedCollection(v) + return nil + } + if v, ok := t.(vocab.ActivityStreamsOrderedCollectionPage); ok { + this.SetActivityStreamsOrderedCollectionPage(v) + return nil + } + if v, ok := t.(vocab.ActivityStreamsOrganization); ok { + this.SetActivityStreamsOrganization(v) + return nil + } + if v, ok := t.(vocab.ActivityStreamsPage); ok { + this.SetActivityStreamsPage(v) + return nil + } + if v, ok := t.(vocab.ActivityStreamsPerson); ok { + this.SetActivityStreamsPerson(v) + return nil + } + if v, ok := t.(vocab.ActivityStreamsPlace); ok { + this.SetActivityStreamsPlace(v) + return nil + } + if v, ok := t.(vocab.ActivityStreamsProfile); ok { + this.SetActivityStreamsProfile(v) + return nil + } + if v, ok := t.(vocab.ForgeFedPush); ok { + this.SetForgeFedPush(v) + return nil + } + if v, ok := t.(vocab.ActivityStreamsQuestion); ok { + this.SetActivityStreamsQuestion(v) + return nil + } + if v, ok := t.(vocab.ActivityStreamsRead); ok { + this.SetActivityStreamsRead(v) + return nil + } + if v, ok := t.(vocab.ActivityStreamsReject); ok { + this.SetActivityStreamsReject(v) + return nil + } + if v, ok := t.(vocab.ActivityStreamsRelationship); ok { + this.SetActivityStreamsRelationship(v) + return nil + } + if v, ok := t.(vocab.ActivityStreamsRemove); ok { + this.SetActivityStreamsRemove(v) + return nil + } + if v, ok := t.(vocab.ForgeFedRepository); ok { + this.SetForgeFedRepository(v) + return nil + } + if v, ok := t.(vocab.ActivityStreamsService); ok { + this.SetActivityStreamsService(v) + return nil + } + if v, ok := t.(vocab.ActivityStreamsTentativeAccept); ok { + this.SetActivityStreamsTentativeAccept(v) + return nil + } + if v, ok := t.(vocab.ActivityStreamsTentativeReject); ok { + this.SetActivityStreamsTentativeReject(v) + return nil + } + if v, ok := t.(vocab.ForgeFedTicket); ok { + this.SetForgeFedTicket(v) + return nil + } + if v, ok := t.(vocab.ForgeFedTicketDependency); ok { + this.SetForgeFedTicketDependency(v) + return nil + } + if v, ok := t.(vocab.ActivityStreamsTombstone); ok { + this.SetActivityStreamsTombstone(v) + return nil + } + if v, ok := t.(vocab.ActivityStreamsTravel); ok { + this.SetActivityStreamsTravel(v) + return nil + } + if v, ok := t.(vocab.ActivityStreamsUndo); ok { + this.SetActivityStreamsUndo(v) + return nil + } + if v, ok := t.(vocab.ActivityStreamsUpdate); ok { + this.SetActivityStreamsUpdate(v) + return nil + } + if v, ok := t.(vocab.ActivityStreamsVideo); ok { + this.SetActivityStreamsVideo(v) + return nil + } + if v, ok := t.(vocab.ActivityStreamsView); ok { + this.SetActivityStreamsView(v) + return nil + } + + return fmt.Errorf("illegal type to set on ForgeFedEarlyItems property: %T", t) +} + +// clear ensures no value of this property is set. Calling HasAny or any of the +// 'Is' methods afterwards will return false. +func (this *ForgeFedEarlyItemsPropertyIterator) clear() { + this.activitystreamsObjectMember = nil + this.activitystreamsLinkMember = nil + this.activitystreamsAcceptMember = nil + this.activitystreamsActivityMember = nil + this.activitystreamsAddMember = nil + this.activitystreamsAnnounceMember = nil + this.activitystreamsApplicationMember = nil + this.activitystreamsArriveMember = nil + this.activitystreamsArticleMember = nil + this.activitystreamsAudioMember = nil + this.activitystreamsBlockMember = nil + this.forgefedBranchMember = nil + this.activitystreamsCollectionMember = nil + this.activitystreamsCollectionPageMember = nil + this.forgefedCommitMember = nil + this.activitystreamsCreateMember = nil + this.activitystreamsDeleteMember = nil + this.activitystreamsDislikeMember = nil + this.activitystreamsDocumentMember = nil + this.tootEmojiMember = nil + this.activitystreamsEventMember = nil + this.activitystreamsFlagMember = nil + this.activitystreamsFollowMember = nil + this.activitystreamsGroupMember = nil + this.tootIdentityProofMember = nil + this.activitystreamsIgnoreMember = nil + this.activitystreamsImageMember = nil + this.activitystreamsIntransitiveActivityMember = nil + this.activitystreamsInviteMember = nil + this.activitystreamsJoinMember = nil + this.activitystreamsLeaveMember = nil + this.activitystreamsLikeMember = nil + this.activitystreamsListenMember = nil + this.activitystreamsMentionMember = nil + this.activitystreamsMoveMember = nil + this.activitystreamsNoteMember = nil + this.activitystreamsOfferMember = nil + this.activitystreamsOrderedCollectionMember = nil + this.activitystreamsOrderedCollectionPageMember = nil + this.activitystreamsOrganizationMember = nil + this.activitystreamsPageMember = nil + this.activitystreamsPersonMember = nil + this.activitystreamsPlaceMember = nil + this.activitystreamsProfileMember = nil + this.forgefedPushMember = nil + this.activitystreamsQuestionMember = nil + this.activitystreamsReadMember = nil + this.activitystreamsRejectMember = nil + this.activitystreamsRelationshipMember = nil + this.activitystreamsRemoveMember = nil + this.forgefedRepositoryMember = nil + this.activitystreamsServiceMember = nil + this.activitystreamsTentativeAcceptMember = nil + this.activitystreamsTentativeRejectMember = nil + this.forgefedTicketMember = nil + this.forgefedTicketDependencyMember = nil + this.activitystreamsTombstoneMember = nil + this.activitystreamsTravelMember = nil + this.activitystreamsUndoMember = nil + this.activitystreamsUpdateMember = nil + this.activitystreamsVideoMember = nil + this.activitystreamsViewMember = nil + this.unknown = nil + this.iri = nil +} + +// serialize converts this into an interface representation suitable for +// marshalling into a text or binary format. Applications should not need this +// function as most typical use cases serialize types instead of individual +// properties. It is exposed for alternatives to go-fed implementations to use. +func (this ForgeFedEarlyItemsPropertyIterator) serialize() (interface{}, error) { + if this.IsActivityStreamsObject() { + return this.GetActivityStreamsObject().Serialize() + } else if this.IsActivityStreamsLink() { + return this.GetActivityStreamsLink().Serialize() + } else if this.IsActivityStreamsAccept() { + return this.GetActivityStreamsAccept().Serialize() + } else if this.IsActivityStreamsActivity() { + return this.GetActivityStreamsActivity().Serialize() + } else if this.IsActivityStreamsAdd() { + return this.GetActivityStreamsAdd().Serialize() + } else if this.IsActivityStreamsAnnounce() { + return this.GetActivityStreamsAnnounce().Serialize() + } else if this.IsActivityStreamsApplication() { + return this.GetActivityStreamsApplication().Serialize() + } else if this.IsActivityStreamsArrive() { + return this.GetActivityStreamsArrive().Serialize() + } else if this.IsActivityStreamsArticle() { + return this.GetActivityStreamsArticle().Serialize() + } else if this.IsActivityStreamsAudio() { + return this.GetActivityStreamsAudio().Serialize() + } else if this.IsActivityStreamsBlock() { + return this.GetActivityStreamsBlock().Serialize() + } else if this.IsForgeFedBranch() { + return this.GetForgeFedBranch().Serialize() + } else if this.IsActivityStreamsCollection() { + return this.GetActivityStreamsCollection().Serialize() + } else if this.IsActivityStreamsCollectionPage() { + return this.GetActivityStreamsCollectionPage().Serialize() + } else if this.IsForgeFedCommit() { + return this.GetForgeFedCommit().Serialize() + } else if this.IsActivityStreamsCreate() { + return this.GetActivityStreamsCreate().Serialize() + } else if this.IsActivityStreamsDelete() { + return this.GetActivityStreamsDelete().Serialize() + } else if this.IsActivityStreamsDislike() { + return this.GetActivityStreamsDislike().Serialize() + } else if this.IsActivityStreamsDocument() { + return this.GetActivityStreamsDocument().Serialize() + } else if this.IsTootEmoji() { + return this.GetTootEmoji().Serialize() + } else if this.IsActivityStreamsEvent() { + return this.GetActivityStreamsEvent().Serialize() + } else if this.IsActivityStreamsFlag() { + return this.GetActivityStreamsFlag().Serialize() + } else if this.IsActivityStreamsFollow() { + return this.GetActivityStreamsFollow().Serialize() + } else if this.IsActivityStreamsGroup() { + return this.GetActivityStreamsGroup().Serialize() + } else if this.IsTootIdentityProof() { + return this.GetTootIdentityProof().Serialize() + } else if this.IsActivityStreamsIgnore() { + return this.GetActivityStreamsIgnore().Serialize() + } else if this.IsActivityStreamsImage() { + return this.GetActivityStreamsImage().Serialize() + } else if this.IsActivityStreamsIntransitiveActivity() { + return this.GetActivityStreamsIntransitiveActivity().Serialize() + } else if this.IsActivityStreamsInvite() { + return this.GetActivityStreamsInvite().Serialize() + } else if this.IsActivityStreamsJoin() { + return this.GetActivityStreamsJoin().Serialize() + } else if this.IsActivityStreamsLeave() { + return this.GetActivityStreamsLeave().Serialize() + } else if this.IsActivityStreamsLike() { + return this.GetActivityStreamsLike().Serialize() + } else if this.IsActivityStreamsListen() { + return this.GetActivityStreamsListen().Serialize() + } else if this.IsActivityStreamsMention() { + return this.GetActivityStreamsMention().Serialize() + } else if this.IsActivityStreamsMove() { + return this.GetActivityStreamsMove().Serialize() + } else if this.IsActivityStreamsNote() { + return this.GetActivityStreamsNote().Serialize() + } else if this.IsActivityStreamsOffer() { + return this.GetActivityStreamsOffer().Serialize() + } else if this.IsActivityStreamsOrderedCollection() { + return this.GetActivityStreamsOrderedCollection().Serialize() + } else if this.IsActivityStreamsOrderedCollectionPage() { + return this.GetActivityStreamsOrderedCollectionPage().Serialize() + } else if this.IsActivityStreamsOrganization() { + return this.GetActivityStreamsOrganization().Serialize() + } else if this.IsActivityStreamsPage() { + return this.GetActivityStreamsPage().Serialize() + } else if this.IsActivityStreamsPerson() { + return this.GetActivityStreamsPerson().Serialize() + } else if this.IsActivityStreamsPlace() { + return this.GetActivityStreamsPlace().Serialize() + } else if this.IsActivityStreamsProfile() { + return this.GetActivityStreamsProfile().Serialize() + } else if this.IsForgeFedPush() { + return this.GetForgeFedPush().Serialize() + } else if this.IsActivityStreamsQuestion() { + return this.GetActivityStreamsQuestion().Serialize() + } else if this.IsActivityStreamsRead() { + return this.GetActivityStreamsRead().Serialize() + } else if this.IsActivityStreamsReject() { + return this.GetActivityStreamsReject().Serialize() + } else if this.IsActivityStreamsRelationship() { + return this.GetActivityStreamsRelationship().Serialize() + } else if this.IsActivityStreamsRemove() { + return this.GetActivityStreamsRemove().Serialize() + } else if this.IsForgeFedRepository() { + return this.GetForgeFedRepository().Serialize() + } else if this.IsActivityStreamsService() { + return this.GetActivityStreamsService().Serialize() + } else if this.IsActivityStreamsTentativeAccept() { + return this.GetActivityStreamsTentativeAccept().Serialize() + } else if this.IsActivityStreamsTentativeReject() { + return this.GetActivityStreamsTentativeReject().Serialize() + } else if this.IsForgeFedTicket() { + return this.GetForgeFedTicket().Serialize() + } else if this.IsForgeFedTicketDependency() { + return this.GetForgeFedTicketDependency().Serialize() + } else if this.IsActivityStreamsTombstone() { + return this.GetActivityStreamsTombstone().Serialize() + } else if this.IsActivityStreamsTravel() { + return this.GetActivityStreamsTravel().Serialize() + } else if this.IsActivityStreamsUndo() { + return this.GetActivityStreamsUndo().Serialize() + } else if this.IsActivityStreamsUpdate() { + return this.GetActivityStreamsUpdate().Serialize() + } else if this.IsActivityStreamsVideo() { + return this.GetActivityStreamsVideo().Serialize() + } else if this.IsActivityStreamsView() { + return this.GetActivityStreamsView().Serialize() + } else if this.IsIRI() { + return this.iri.String(), nil + } + return this.unknown, nil +} + +// ForgeFedEarlyItemsProperty is the non-functional property "earlyItems". It is +// permitted to have one or more values, and of different value types. +type ForgeFedEarlyItemsProperty struct { + properties []*ForgeFedEarlyItemsPropertyIterator + alias string +} + +// DeserializeEarlyItemsProperty creates a "earlyItems" property from an interface +// representation that has been unmarshalled from a text or binary format. +func DeserializeEarlyItemsProperty(m map[string]interface{}, aliasMap map[string]string) (vocab.ForgeFedEarlyItemsProperty, error) { + alias := "" + if a, ok := aliasMap["https://forgefed.peers.community/ns"]; ok { + alias = a + } + propName := "earlyItems" + if len(alias) > 0 { + propName = fmt.Sprintf("%s:%s", alias, "earlyItems") + } + i, ok := m[propName] + + if ok { + this := &ForgeFedEarlyItemsProperty{ + alias: alias, + properties: []*ForgeFedEarlyItemsPropertyIterator{}, + } + if list, ok := i.([]interface{}); ok { + for _, iterator := range list { + if p, err := deserializeForgeFedEarlyItemsPropertyIterator(iterator, aliasMap); err != nil { + return this, err + } else if p != nil { + this.properties = append(this.properties, p) + } + } + } else { + if p, err := deserializeForgeFedEarlyItemsPropertyIterator(i, aliasMap); err != nil { + return this, err + } else if p != nil { + this.properties = append(this.properties, p) + } + } + // Set up the properties for iteration. + for idx, ele := range this.properties { + ele.parent = this + ele.myIdx = idx + } + return this, nil + } + return nil, nil +} + +// NewForgeFedEarlyItemsProperty creates a new earlyItems property. +func NewForgeFedEarlyItemsProperty() *ForgeFedEarlyItemsProperty { + return &ForgeFedEarlyItemsProperty{alias: ""} +} + +// AppendActivityStreamsAccept appends a Accept value to the back of a list of the +// property "earlyItems". Invalidates iterators that are traversing using Prev. +func (this *ForgeFedEarlyItemsProperty) AppendActivityStreamsAccept(v vocab.ActivityStreamsAccept) { + this.properties = append(this.properties, &ForgeFedEarlyItemsPropertyIterator{ + activitystreamsAcceptMember: v, + alias: this.alias, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendActivityStreamsActivity appends a Activity value to the back of a list of +// the property "earlyItems". Invalidates iterators that are traversing using +// Prev. +func (this *ForgeFedEarlyItemsProperty) AppendActivityStreamsActivity(v vocab.ActivityStreamsActivity) { + this.properties = append(this.properties, &ForgeFedEarlyItemsPropertyIterator{ + activitystreamsActivityMember: v, + alias: this.alias, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendActivityStreamsAdd appends a Add value to the back of a list of the +// property "earlyItems". Invalidates iterators that are traversing using Prev. +func (this *ForgeFedEarlyItemsProperty) AppendActivityStreamsAdd(v vocab.ActivityStreamsAdd) { + this.properties = append(this.properties, &ForgeFedEarlyItemsPropertyIterator{ + activitystreamsAddMember: v, + alias: this.alias, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendActivityStreamsAnnounce appends a Announce value to the back of a list of +// the property "earlyItems". Invalidates iterators that are traversing using +// Prev. +func (this *ForgeFedEarlyItemsProperty) AppendActivityStreamsAnnounce(v vocab.ActivityStreamsAnnounce) { + this.properties = append(this.properties, &ForgeFedEarlyItemsPropertyIterator{ + activitystreamsAnnounceMember: v, + alias: this.alias, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendActivityStreamsApplication appends a Application value to the back of a +// list of the property "earlyItems". Invalidates iterators that are +// traversing using Prev. +func (this *ForgeFedEarlyItemsProperty) AppendActivityStreamsApplication(v vocab.ActivityStreamsApplication) { + this.properties = append(this.properties, &ForgeFedEarlyItemsPropertyIterator{ + activitystreamsApplicationMember: v, + alias: this.alias, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendActivityStreamsArrive appends a Arrive value to the back of a list of the +// property "earlyItems". Invalidates iterators that are traversing using Prev. +func (this *ForgeFedEarlyItemsProperty) AppendActivityStreamsArrive(v vocab.ActivityStreamsArrive) { + this.properties = append(this.properties, &ForgeFedEarlyItemsPropertyIterator{ + activitystreamsArriveMember: v, + alias: this.alias, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendActivityStreamsArticle appends a Article value to the back of a list of +// the property "earlyItems". Invalidates iterators that are traversing using +// Prev. +func (this *ForgeFedEarlyItemsProperty) AppendActivityStreamsArticle(v vocab.ActivityStreamsArticle) { + this.properties = append(this.properties, &ForgeFedEarlyItemsPropertyIterator{ + activitystreamsArticleMember: v, + alias: this.alias, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendActivityStreamsAudio appends a Audio value to the back of a list of the +// property "earlyItems". Invalidates iterators that are traversing using Prev. +func (this *ForgeFedEarlyItemsProperty) AppendActivityStreamsAudio(v vocab.ActivityStreamsAudio) { + this.properties = append(this.properties, &ForgeFedEarlyItemsPropertyIterator{ + activitystreamsAudioMember: v, + alias: this.alias, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendActivityStreamsBlock appends a Block value to the back of a list of the +// property "earlyItems". Invalidates iterators that are traversing using Prev. +func (this *ForgeFedEarlyItemsProperty) AppendActivityStreamsBlock(v vocab.ActivityStreamsBlock) { + this.properties = append(this.properties, &ForgeFedEarlyItemsPropertyIterator{ + activitystreamsBlockMember: v, + alias: this.alias, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendActivityStreamsCollection appends a Collection value to the back of a +// list of the property "earlyItems". Invalidates iterators that are +// traversing using Prev. +func (this *ForgeFedEarlyItemsProperty) AppendActivityStreamsCollection(v vocab.ActivityStreamsCollection) { + this.properties = append(this.properties, &ForgeFedEarlyItemsPropertyIterator{ + activitystreamsCollectionMember: v, + alias: this.alias, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendActivityStreamsCollectionPage appends a CollectionPage value to the back +// of a list of the property "earlyItems". Invalidates iterators that are +// traversing using Prev. +func (this *ForgeFedEarlyItemsProperty) AppendActivityStreamsCollectionPage(v vocab.ActivityStreamsCollectionPage) { + this.properties = append(this.properties, &ForgeFedEarlyItemsPropertyIterator{ + activitystreamsCollectionPageMember: v, + alias: this.alias, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendActivityStreamsCreate appends a Create value to the back of a list of the +// property "earlyItems". Invalidates iterators that are traversing using Prev. +func (this *ForgeFedEarlyItemsProperty) AppendActivityStreamsCreate(v vocab.ActivityStreamsCreate) { + this.properties = append(this.properties, &ForgeFedEarlyItemsPropertyIterator{ + activitystreamsCreateMember: v, + alias: this.alias, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendActivityStreamsDelete appends a Delete value to the back of a list of the +// property "earlyItems". Invalidates iterators that are traversing using Prev. +func (this *ForgeFedEarlyItemsProperty) AppendActivityStreamsDelete(v vocab.ActivityStreamsDelete) { + this.properties = append(this.properties, &ForgeFedEarlyItemsPropertyIterator{ + activitystreamsDeleteMember: v, + alias: this.alias, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendActivityStreamsDislike appends a Dislike value to the back of a list of +// the property "earlyItems". Invalidates iterators that are traversing using +// Prev. +func (this *ForgeFedEarlyItemsProperty) AppendActivityStreamsDislike(v vocab.ActivityStreamsDislike) { + this.properties = append(this.properties, &ForgeFedEarlyItemsPropertyIterator{ + activitystreamsDislikeMember: v, + alias: this.alias, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendActivityStreamsDocument appends a Document value to the back of a list of +// the property "earlyItems". Invalidates iterators that are traversing using +// Prev. +func (this *ForgeFedEarlyItemsProperty) AppendActivityStreamsDocument(v vocab.ActivityStreamsDocument) { + this.properties = append(this.properties, &ForgeFedEarlyItemsPropertyIterator{ + activitystreamsDocumentMember: v, + alias: this.alias, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendActivityStreamsEvent appends a Event value to the back of a list of the +// property "earlyItems". Invalidates iterators that are traversing using Prev. +func (this *ForgeFedEarlyItemsProperty) AppendActivityStreamsEvent(v vocab.ActivityStreamsEvent) { + this.properties = append(this.properties, &ForgeFedEarlyItemsPropertyIterator{ + activitystreamsEventMember: v, + alias: this.alias, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendActivityStreamsFlag appends a Flag value to the back of a list of the +// property "earlyItems". Invalidates iterators that are traversing using Prev. +func (this *ForgeFedEarlyItemsProperty) AppendActivityStreamsFlag(v vocab.ActivityStreamsFlag) { + this.properties = append(this.properties, &ForgeFedEarlyItemsPropertyIterator{ + activitystreamsFlagMember: v, + alias: this.alias, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendActivityStreamsFollow appends a Follow value to the back of a list of the +// property "earlyItems". Invalidates iterators that are traversing using Prev. +func (this *ForgeFedEarlyItemsProperty) AppendActivityStreamsFollow(v vocab.ActivityStreamsFollow) { + this.properties = append(this.properties, &ForgeFedEarlyItemsPropertyIterator{ + activitystreamsFollowMember: v, + alias: this.alias, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendActivityStreamsGroup appends a Group value to the back of a list of the +// property "earlyItems". Invalidates iterators that are traversing using Prev. +func (this *ForgeFedEarlyItemsProperty) AppendActivityStreamsGroup(v vocab.ActivityStreamsGroup) { + this.properties = append(this.properties, &ForgeFedEarlyItemsPropertyIterator{ + activitystreamsGroupMember: v, + alias: this.alias, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendActivityStreamsIgnore appends a Ignore value to the back of a list of the +// property "earlyItems". Invalidates iterators that are traversing using Prev. +func (this *ForgeFedEarlyItemsProperty) AppendActivityStreamsIgnore(v vocab.ActivityStreamsIgnore) { + this.properties = append(this.properties, &ForgeFedEarlyItemsPropertyIterator{ + activitystreamsIgnoreMember: v, + alias: this.alias, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendActivityStreamsImage appends a Image value to the back of a list of the +// property "earlyItems". Invalidates iterators that are traversing using Prev. +func (this *ForgeFedEarlyItemsProperty) AppendActivityStreamsImage(v vocab.ActivityStreamsImage) { + this.properties = append(this.properties, &ForgeFedEarlyItemsPropertyIterator{ + activitystreamsImageMember: v, + alias: this.alias, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendActivityStreamsIntransitiveActivity appends a IntransitiveActivity value +// to the back of a list of the property "earlyItems". Invalidates iterators +// that are traversing using Prev. +func (this *ForgeFedEarlyItemsProperty) AppendActivityStreamsIntransitiveActivity(v vocab.ActivityStreamsIntransitiveActivity) { + this.properties = append(this.properties, &ForgeFedEarlyItemsPropertyIterator{ + activitystreamsIntransitiveActivityMember: v, + alias: this.alias, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendActivityStreamsInvite appends a Invite value to the back of a list of the +// property "earlyItems". Invalidates iterators that are traversing using Prev. +func (this *ForgeFedEarlyItemsProperty) AppendActivityStreamsInvite(v vocab.ActivityStreamsInvite) { + this.properties = append(this.properties, &ForgeFedEarlyItemsPropertyIterator{ + activitystreamsInviteMember: v, + alias: this.alias, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendActivityStreamsJoin appends a Join value to the back of a list of the +// property "earlyItems". Invalidates iterators that are traversing using Prev. +func (this *ForgeFedEarlyItemsProperty) AppendActivityStreamsJoin(v vocab.ActivityStreamsJoin) { + this.properties = append(this.properties, &ForgeFedEarlyItemsPropertyIterator{ + activitystreamsJoinMember: v, + alias: this.alias, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendActivityStreamsLeave appends a Leave value to the back of a list of the +// property "earlyItems". Invalidates iterators that are traversing using Prev. +func (this *ForgeFedEarlyItemsProperty) AppendActivityStreamsLeave(v vocab.ActivityStreamsLeave) { + this.properties = append(this.properties, &ForgeFedEarlyItemsPropertyIterator{ + activitystreamsLeaveMember: v, + alias: this.alias, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendActivityStreamsLike appends a Like value to the back of a list of the +// property "earlyItems". Invalidates iterators that are traversing using Prev. +func (this *ForgeFedEarlyItemsProperty) AppendActivityStreamsLike(v vocab.ActivityStreamsLike) { + this.properties = append(this.properties, &ForgeFedEarlyItemsPropertyIterator{ + activitystreamsLikeMember: v, + alias: this.alias, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendActivityStreamsLink appends a Link value to the back of a list of the +// property "earlyItems". Invalidates iterators that are traversing using Prev. +func (this *ForgeFedEarlyItemsProperty) AppendActivityStreamsLink(v vocab.ActivityStreamsLink) { + this.properties = append(this.properties, &ForgeFedEarlyItemsPropertyIterator{ + activitystreamsLinkMember: v, + alias: this.alias, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendActivityStreamsListen appends a Listen value to the back of a list of the +// property "earlyItems". Invalidates iterators that are traversing using Prev. +func (this *ForgeFedEarlyItemsProperty) AppendActivityStreamsListen(v vocab.ActivityStreamsListen) { + this.properties = append(this.properties, &ForgeFedEarlyItemsPropertyIterator{ + activitystreamsListenMember: v, + alias: this.alias, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendActivityStreamsMention appends a Mention value to the back of a list of +// the property "earlyItems". Invalidates iterators that are traversing using +// Prev. +func (this *ForgeFedEarlyItemsProperty) AppendActivityStreamsMention(v vocab.ActivityStreamsMention) { + this.properties = append(this.properties, &ForgeFedEarlyItemsPropertyIterator{ + activitystreamsMentionMember: v, + alias: this.alias, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendActivityStreamsMove appends a Move value to the back of a list of the +// property "earlyItems". Invalidates iterators that are traversing using Prev. +func (this *ForgeFedEarlyItemsProperty) AppendActivityStreamsMove(v vocab.ActivityStreamsMove) { + this.properties = append(this.properties, &ForgeFedEarlyItemsPropertyIterator{ + activitystreamsMoveMember: v, + alias: this.alias, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendActivityStreamsNote appends a Note value to the back of a list of the +// property "earlyItems". Invalidates iterators that are traversing using Prev. +func (this *ForgeFedEarlyItemsProperty) AppendActivityStreamsNote(v vocab.ActivityStreamsNote) { + this.properties = append(this.properties, &ForgeFedEarlyItemsPropertyIterator{ + activitystreamsNoteMember: v, + alias: this.alias, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendActivityStreamsObject appends a Object value to the back of a list of the +// property "earlyItems". Invalidates iterators that are traversing using Prev. +func (this *ForgeFedEarlyItemsProperty) AppendActivityStreamsObject(v vocab.ActivityStreamsObject) { + this.properties = append(this.properties, &ForgeFedEarlyItemsPropertyIterator{ + activitystreamsObjectMember: v, + alias: this.alias, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendActivityStreamsOffer appends a Offer value to the back of a list of the +// property "earlyItems". Invalidates iterators that are traversing using Prev. +func (this *ForgeFedEarlyItemsProperty) AppendActivityStreamsOffer(v vocab.ActivityStreamsOffer) { + this.properties = append(this.properties, &ForgeFedEarlyItemsPropertyIterator{ + activitystreamsOfferMember: v, + alias: this.alias, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendActivityStreamsOrderedCollection appends a OrderedCollection value to the +// back of a list of the property "earlyItems". Invalidates iterators that are +// traversing using Prev. +func (this *ForgeFedEarlyItemsProperty) AppendActivityStreamsOrderedCollection(v vocab.ActivityStreamsOrderedCollection) { + this.properties = append(this.properties, &ForgeFedEarlyItemsPropertyIterator{ + activitystreamsOrderedCollectionMember: v, + alias: this.alias, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendActivityStreamsOrderedCollectionPage appends a OrderedCollectionPage +// value to the back of a list of the property "earlyItems". Invalidates +// iterators that are traversing using Prev. +func (this *ForgeFedEarlyItemsProperty) AppendActivityStreamsOrderedCollectionPage(v vocab.ActivityStreamsOrderedCollectionPage) { + this.properties = append(this.properties, &ForgeFedEarlyItemsPropertyIterator{ + activitystreamsOrderedCollectionPageMember: v, + alias: this.alias, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendActivityStreamsOrganization appends a Organization value to the back of a +// list of the property "earlyItems". Invalidates iterators that are +// traversing using Prev. +func (this *ForgeFedEarlyItemsProperty) AppendActivityStreamsOrganization(v vocab.ActivityStreamsOrganization) { + this.properties = append(this.properties, &ForgeFedEarlyItemsPropertyIterator{ + activitystreamsOrganizationMember: v, + alias: this.alias, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendActivityStreamsPage appends a Page value to the back of a list of the +// property "earlyItems". Invalidates iterators that are traversing using Prev. +func (this *ForgeFedEarlyItemsProperty) AppendActivityStreamsPage(v vocab.ActivityStreamsPage) { + this.properties = append(this.properties, &ForgeFedEarlyItemsPropertyIterator{ + activitystreamsPageMember: v, + alias: this.alias, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendActivityStreamsPerson appends a Person value to the back of a list of the +// property "earlyItems". Invalidates iterators that are traversing using Prev. +func (this *ForgeFedEarlyItemsProperty) AppendActivityStreamsPerson(v vocab.ActivityStreamsPerson) { + this.properties = append(this.properties, &ForgeFedEarlyItemsPropertyIterator{ + activitystreamsPersonMember: v, + alias: this.alias, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendActivityStreamsPlace appends a Place value to the back of a list of the +// property "earlyItems". Invalidates iterators that are traversing using Prev. +func (this *ForgeFedEarlyItemsProperty) AppendActivityStreamsPlace(v vocab.ActivityStreamsPlace) { + this.properties = append(this.properties, &ForgeFedEarlyItemsPropertyIterator{ + activitystreamsPlaceMember: v, + alias: this.alias, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendActivityStreamsProfile appends a Profile value to the back of a list of +// the property "earlyItems". Invalidates iterators that are traversing using +// Prev. +func (this *ForgeFedEarlyItemsProperty) AppendActivityStreamsProfile(v vocab.ActivityStreamsProfile) { + this.properties = append(this.properties, &ForgeFedEarlyItemsPropertyIterator{ + activitystreamsProfileMember: v, + alias: this.alias, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendActivityStreamsQuestion appends a Question value to the back of a list of +// the property "earlyItems". Invalidates iterators that are traversing using +// Prev. +func (this *ForgeFedEarlyItemsProperty) AppendActivityStreamsQuestion(v vocab.ActivityStreamsQuestion) { + this.properties = append(this.properties, &ForgeFedEarlyItemsPropertyIterator{ + activitystreamsQuestionMember: v, + alias: this.alias, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendActivityStreamsRead appends a Read value to the back of a list of the +// property "earlyItems". Invalidates iterators that are traversing using Prev. +func (this *ForgeFedEarlyItemsProperty) AppendActivityStreamsRead(v vocab.ActivityStreamsRead) { + this.properties = append(this.properties, &ForgeFedEarlyItemsPropertyIterator{ + activitystreamsReadMember: v, + alias: this.alias, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendActivityStreamsReject appends a Reject value to the back of a list of the +// property "earlyItems". Invalidates iterators that are traversing using Prev. +func (this *ForgeFedEarlyItemsProperty) AppendActivityStreamsReject(v vocab.ActivityStreamsReject) { + this.properties = append(this.properties, &ForgeFedEarlyItemsPropertyIterator{ + activitystreamsRejectMember: v, + alias: this.alias, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendActivityStreamsRelationship appends a Relationship value to the back of a +// list of the property "earlyItems". Invalidates iterators that are +// traversing using Prev. +func (this *ForgeFedEarlyItemsProperty) AppendActivityStreamsRelationship(v vocab.ActivityStreamsRelationship) { + this.properties = append(this.properties, &ForgeFedEarlyItemsPropertyIterator{ + activitystreamsRelationshipMember: v, + alias: this.alias, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendActivityStreamsRemove appends a Remove value to the back of a list of the +// property "earlyItems". Invalidates iterators that are traversing using Prev. +func (this *ForgeFedEarlyItemsProperty) AppendActivityStreamsRemove(v vocab.ActivityStreamsRemove) { + this.properties = append(this.properties, &ForgeFedEarlyItemsPropertyIterator{ + activitystreamsRemoveMember: v, + alias: this.alias, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendActivityStreamsService appends a Service value to the back of a list of +// the property "earlyItems". Invalidates iterators that are traversing using +// Prev. +func (this *ForgeFedEarlyItemsProperty) AppendActivityStreamsService(v vocab.ActivityStreamsService) { + this.properties = append(this.properties, &ForgeFedEarlyItemsPropertyIterator{ + activitystreamsServiceMember: v, + alias: this.alias, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendActivityStreamsTentativeAccept appends a TentativeAccept value to the +// back of a list of the property "earlyItems". Invalidates iterators that are +// traversing using Prev. +func (this *ForgeFedEarlyItemsProperty) AppendActivityStreamsTentativeAccept(v vocab.ActivityStreamsTentativeAccept) { + this.properties = append(this.properties, &ForgeFedEarlyItemsPropertyIterator{ + activitystreamsTentativeAcceptMember: v, + alias: this.alias, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendActivityStreamsTentativeReject appends a TentativeReject value to the +// back of a list of the property "earlyItems". Invalidates iterators that are +// traversing using Prev. +func (this *ForgeFedEarlyItemsProperty) AppendActivityStreamsTentativeReject(v vocab.ActivityStreamsTentativeReject) { + this.properties = append(this.properties, &ForgeFedEarlyItemsPropertyIterator{ + activitystreamsTentativeRejectMember: v, + alias: this.alias, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendActivityStreamsTombstone appends a Tombstone value to the back of a list +// of the property "earlyItems". Invalidates iterators that are traversing +// using Prev. +func (this *ForgeFedEarlyItemsProperty) AppendActivityStreamsTombstone(v vocab.ActivityStreamsTombstone) { + this.properties = append(this.properties, &ForgeFedEarlyItemsPropertyIterator{ + activitystreamsTombstoneMember: v, + alias: this.alias, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendActivityStreamsTravel appends a Travel value to the back of a list of the +// property "earlyItems". Invalidates iterators that are traversing using Prev. +func (this *ForgeFedEarlyItemsProperty) AppendActivityStreamsTravel(v vocab.ActivityStreamsTravel) { + this.properties = append(this.properties, &ForgeFedEarlyItemsPropertyIterator{ + activitystreamsTravelMember: v, + alias: this.alias, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendActivityStreamsUndo appends a Undo value to the back of a list of the +// property "earlyItems". Invalidates iterators that are traversing using Prev. +func (this *ForgeFedEarlyItemsProperty) AppendActivityStreamsUndo(v vocab.ActivityStreamsUndo) { + this.properties = append(this.properties, &ForgeFedEarlyItemsPropertyIterator{ + activitystreamsUndoMember: v, + alias: this.alias, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendActivityStreamsUpdate appends a Update value to the back of a list of the +// property "earlyItems". Invalidates iterators that are traversing using Prev. +func (this *ForgeFedEarlyItemsProperty) AppendActivityStreamsUpdate(v vocab.ActivityStreamsUpdate) { + this.properties = append(this.properties, &ForgeFedEarlyItemsPropertyIterator{ + activitystreamsUpdateMember: v, + alias: this.alias, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendActivityStreamsVideo appends a Video value to the back of a list of the +// property "earlyItems". Invalidates iterators that are traversing using Prev. +func (this *ForgeFedEarlyItemsProperty) AppendActivityStreamsVideo(v vocab.ActivityStreamsVideo) { + this.properties = append(this.properties, &ForgeFedEarlyItemsPropertyIterator{ + activitystreamsVideoMember: v, + alias: this.alias, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendActivityStreamsView appends a View value to the back of a list of the +// property "earlyItems". Invalidates iterators that are traversing using Prev. +func (this *ForgeFedEarlyItemsProperty) AppendActivityStreamsView(v vocab.ActivityStreamsView) { + this.properties = append(this.properties, &ForgeFedEarlyItemsPropertyIterator{ + activitystreamsViewMember: v, + alias: this.alias, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendForgeFedBranch appends a Branch value to the back of a list of the +// property "earlyItems". Invalidates iterators that are traversing using Prev. +func (this *ForgeFedEarlyItemsProperty) AppendForgeFedBranch(v vocab.ForgeFedBranch) { + this.properties = append(this.properties, &ForgeFedEarlyItemsPropertyIterator{ + alias: this.alias, + forgefedBranchMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendForgeFedCommit appends a Commit value to the back of a list of the +// property "earlyItems". Invalidates iterators that are traversing using Prev. +func (this *ForgeFedEarlyItemsProperty) AppendForgeFedCommit(v vocab.ForgeFedCommit) { + this.properties = append(this.properties, &ForgeFedEarlyItemsPropertyIterator{ + alias: this.alias, + forgefedCommitMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendForgeFedPush appends a Push value to the back of a list of the property +// "earlyItems". Invalidates iterators that are traversing using Prev. +func (this *ForgeFedEarlyItemsProperty) AppendForgeFedPush(v vocab.ForgeFedPush) { + this.properties = append(this.properties, &ForgeFedEarlyItemsPropertyIterator{ + alias: this.alias, + forgefedPushMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendForgeFedRepository appends a Repository value to the back of a list of +// the property "earlyItems". Invalidates iterators that are traversing using +// Prev. +func (this *ForgeFedEarlyItemsProperty) AppendForgeFedRepository(v vocab.ForgeFedRepository) { + this.properties = append(this.properties, &ForgeFedEarlyItemsPropertyIterator{ + alias: this.alias, + forgefedRepositoryMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendForgeFedTicket appends a Ticket value to the back of a list of the +// property "earlyItems". Invalidates iterators that are traversing using Prev. +func (this *ForgeFedEarlyItemsProperty) AppendForgeFedTicket(v vocab.ForgeFedTicket) { + this.properties = append(this.properties, &ForgeFedEarlyItemsPropertyIterator{ + alias: this.alias, + forgefedTicketMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendForgeFedTicketDependency appends a TicketDependency value to the back of +// a list of the property "earlyItems". Invalidates iterators that are +// traversing using Prev. +func (this *ForgeFedEarlyItemsProperty) AppendForgeFedTicketDependency(v vocab.ForgeFedTicketDependency) { + this.properties = append(this.properties, &ForgeFedEarlyItemsPropertyIterator{ + alias: this.alias, + forgefedTicketDependencyMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendIRI appends an IRI value to the back of a list of the property +// "earlyItems" +func (this *ForgeFedEarlyItemsProperty) AppendIRI(v *url.URL) { + this.properties = append(this.properties, &ForgeFedEarlyItemsPropertyIterator{ + alias: this.alias, + iri: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendTootEmoji appends a Emoji value to the back of a list of the property +// "earlyItems". Invalidates iterators that are traversing using Prev. +func (this *ForgeFedEarlyItemsProperty) AppendTootEmoji(v vocab.TootEmoji) { + this.properties = append(this.properties, &ForgeFedEarlyItemsPropertyIterator{ + alias: this.alias, + myIdx: this.Len(), + parent: this, + tootEmojiMember: v, + }) +} + +// AppendTootIdentityProof appends a IdentityProof value to the back of a list of +// the property "earlyItems". Invalidates iterators that are traversing using +// Prev. +func (this *ForgeFedEarlyItemsProperty) AppendTootIdentityProof(v vocab.TootIdentityProof) { + this.properties = append(this.properties, &ForgeFedEarlyItemsPropertyIterator{ + alias: this.alias, + myIdx: this.Len(), + parent: this, + tootIdentityProofMember: v, + }) +} + +// PrependType prepends an arbitrary type value to the front of a list of the +// property "earlyItems". Invalidates iterators that are traversing using +// Prev. Returns an error if the type is not a valid one to set for this +// property. +func (this *ForgeFedEarlyItemsProperty) AppendType(t vocab.Type) error { + n := &ForgeFedEarlyItemsPropertyIterator{ + alias: this.alias, + myIdx: this.Len(), + parent: this, + } + if err := n.SetType(t); err != nil { + return err + } + this.properties = append(this.properties, n) + return nil +} + +// At returns the property value for the specified index. Panics if the index is +// out of bounds. +func (this ForgeFedEarlyItemsProperty) At(index int) vocab.ForgeFedEarlyItemsPropertyIterator { + return this.properties[index] +} + +// Begin returns the first iterator, or nil if empty. Can be used with the +// iterator's Next method and this property's End method to iterate from front +// to back through all values. +func (this ForgeFedEarlyItemsProperty) Begin() vocab.ForgeFedEarlyItemsPropertyIterator { + if this.Empty() { + return nil + } else { + return this.properties[0] + } +} + +// Empty returns returns true if there are no elements. +func (this ForgeFedEarlyItemsProperty) Empty() bool { + return this.Len() == 0 +} + +// End returns beyond-the-last iterator, which is nil. Can be used with the +// iterator's Next method and this property's Begin method to iterate from +// front to back through all values. +func (this ForgeFedEarlyItemsProperty) End() vocab.ForgeFedEarlyItemsPropertyIterator { + return nil +} + +// InsertActivityStreamsAccept inserts a Accept value at the specified index for a +// property "earlyItems". Existing elements at that index and higher are +// shifted back once. Invalidates all iterators. +func (this *ForgeFedEarlyItemsProperty) InsertActivityStreamsAccept(idx int, v vocab.ActivityStreamsAccept) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ForgeFedEarlyItemsPropertyIterator{ + activitystreamsAcceptMember: v, + alias: this.alias, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertActivityStreamsActivity inserts a Activity value at the specified index +// for a property "earlyItems". Existing elements at that index and higher are +// shifted back once. Invalidates all iterators. +func (this *ForgeFedEarlyItemsProperty) InsertActivityStreamsActivity(idx int, v vocab.ActivityStreamsActivity) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ForgeFedEarlyItemsPropertyIterator{ + activitystreamsActivityMember: v, + alias: this.alias, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertActivityStreamsAdd inserts a Add value at the specified index for a +// property "earlyItems". Existing elements at that index and higher are +// shifted back once. Invalidates all iterators. +func (this *ForgeFedEarlyItemsProperty) InsertActivityStreamsAdd(idx int, v vocab.ActivityStreamsAdd) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ForgeFedEarlyItemsPropertyIterator{ + activitystreamsAddMember: v, + alias: this.alias, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertActivityStreamsAnnounce inserts a Announce value at the specified index +// for a property "earlyItems". Existing elements at that index and higher are +// shifted back once. Invalidates all iterators. +func (this *ForgeFedEarlyItemsProperty) InsertActivityStreamsAnnounce(idx int, v vocab.ActivityStreamsAnnounce) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ForgeFedEarlyItemsPropertyIterator{ + activitystreamsAnnounceMember: v, + alias: this.alias, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertActivityStreamsApplication inserts a Application value at the specified +// index for a property "earlyItems". Existing elements at that index and +// higher are shifted back once. Invalidates all iterators. +func (this *ForgeFedEarlyItemsProperty) InsertActivityStreamsApplication(idx int, v vocab.ActivityStreamsApplication) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ForgeFedEarlyItemsPropertyIterator{ + activitystreamsApplicationMember: v, + alias: this.alias, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertActivityStreamsArrive inserts a Arrive value at the specified index for a +// property "earlyItems". Existing elements at that index and higher are +// shifted back once. Invalidates all iterators. +func (this *ForgeFedEarlyItemsProperty) InsertActivityStreamsArrive(idx int, v vocab.ActivityStreamsArrive) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ForgeFedEarlyItemsPropertyIterator{ + activitystreamsArriveMember: v, + alias: this.alias, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertActivityStreamsArticle inserts a Article value at the specified index for +// a property "earlyItems". Existing elements at that index and higher are +// shifted back once. Invalidates all iterators. +func (this *ForgeFedEarlyItemsProperty) InsertActivityStreamsArticle(idx int, v vocab.ActivityStreamsArticle) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ForgeFedEarlyItemsPropertyIterator{ + activitystreamsArticleMember: v, + alias: this.alias, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertActivityStreamsAudio inserts a Audio value at the specified index for a +// property "earlyItems". Existing elements at that index and higher are +// shifted back once. Invalidates all iterators. +func (this *ForgeFedEarlyItemsProperty) InsertActivityStreamsAudio(idx int, v vocab.ActivityStreamsAudio) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ForgeFedEarlyItemsPropertyIterator{ + activitystreamsAudioMember: v, + alias: this.alias, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertActivityStreamsBlock inserts a Block value at the specified index for a +// property "earlyItems". Existing elements at that index and higher are +// shifted back once. Invalidates all iterators. +func (this *ForgeFedEarlyItemsProperty) InsertActivityStreamsBlock(idx int, v vocab.ActivityStreamsBlock) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ForgeFedEarlyItemsPropertyIterator{ + activitystreamsBlockMember: v, + alias: this.alias, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertActivityStreamsCollection inserts a Collection value at the specified +// index for a property "earlyItems". Existing elements at that index and +// higher are shifted back once. Invalidates all iterators. +func (this *ForgeFedEarlyItemsProperty) InsertActivityStreamsCollection(idx int, v vocab.ActivityStreamsCollection) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ForgeFedEarlyItemsPropertyIterator{ + activitystreamsCollectionMember: v, + alias: this.alias, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertActivityStreamsCollectionPage inserts a CollectionPage value at the +// specified index for a property "earlyItems". Existing elements at that +// index and higher are shifted back once. Invalidates all iterators. +func (this *ForgeFedEarlyItemsProperty) InsertActivityStreamsCollectionPage(idx int, v vocab.ActivityStreamsCollectionPage) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ForgeFedEarlyItemsPropertyIterator{ + activitystreamsCollectionPageMember: v, + alias: this.alias, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertActivityStreamsCreate inserts a Create value at the specified index for a +// property "earlyItems". Existing elements at that index and higher are +// shifted back once. Invalidates all iterators. +func (this *ForgeFedEarlyItemsProperty) InsertActivityStreamsCreate(idx int, v vocab.ActivityStreamsCreate) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ForgeFedEarlyItemsPropertyIterator{ + activitystreamsCreateMember: v, + alias: this.alias, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertActivityStreamsDelete inserts a Delete value at the specified index for a +// property "earlyItems". Existing elements at that index and higher are +// shifted back once. Invalidates all iterators. +func (this *ForgeFedEarlyItemsProperty) InsertActivityStreamsDelete(idx int, v vocab.ActivityStreamsDelete) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ForgeFedEarlyItemsPropertyIterator{ + activitystreamsDeleteMember: v, + alias: this.alias, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertActivityStreamsDislike inserts a Dislike value at the specified index for +// a property "earlyItems". Existing elements at that index and higher are +// shifted back once. Invalidates all iterators. +func (this *ForgeFedEarlyItemsProperty) InsertActivityStreamsDislike(idx int, v vocab.ActivityStreamsDislike) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ForgeFedEarlyItemsPropertyIterator{ + activitystreamsDislikeMember: v, + alias: this.alias, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertActivityStreamsDocument inserts a Document value at the specified index +// for a property "earlyItems". Existing elements at that index and higher are +// shifted back once. Invalidates all iterators. +func (this *ForgeFedEarlyItemsProperty) InsertActivityStreamsDocument(idx int, v vocab.ActivityStreamsDocument) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ForgeFedEarlyItemsPropertyIterator{ + activitystreamsDocumentMember: v, + alias: this.alias, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertActivityStreamsEvent inserts a Event value at the specified index for a +// property "earlyItems". Existing elements at that index and higher are +// shifted back once. Invalidates all iterators. +func (this *ForgeFedEarlyItemsProperty) InsertActivityStreamsEvent(idx int, v vocab.ActivityStreamsEvent) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ForgeFedEarlyItemsPropertyIterator{ + activitystreamsEventMember: v, + alias: this.alias, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertActivityStreamsFlag inserts a Flag value at the specified index for a +// property "earlyItems". Existing elements at that index and higher are +// shifted back once. Invalidates all iterators. +func (this *ForgeFedEarlyItemsProperty) InsertActivityStreamsFlag(idx int, v vocab.ActivityStreamsFlag) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ForgeFedEarlyItemsPropertyIterator{ + activitystreamsFlagMember: v, + alias: this.alias, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertActivityStreamsFollow inserts a Follow value at the specified index for a +// property "earlyItems". Existing elements at that index and higher are +// shifted back once. Invalidates all iterators. +func (this *ForgeFedEarlyItemsProperty) InsertActivityStreamsFollow(idx int, v vocab.ActivityStreamsFollow) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ForgeFedEarlyItemsPropertyIterator{ + activitystreamsFollowMember: v, + alias: this.alias, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertActivityStreamsGroup inserts a Group value at the specified index for a +// property "earlyItems". Existing elements at that index and higher are +// shifted back once. Invalidates all iterators. +func (this *ForgeFedEarlyItemsProperty) InsertActivityStreamsGroup(idx int, v vocab.ActivityStreamsGroup) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ForgeFedEarlyItemsPropertyIterator{ + activitystreamsGroupMember: v, + alias: this.alias, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertActivityStreamsIgnore inserts a Ignore value at the specified index for a +// property "earlyItems". Existing elements at that index and higher are +// shifted back once. Invalidates all iterators. +func (this *ForgeFedEarlyItemsProperty) InsertActivityStreamsIgnore(idx int, v vocab.ActivityStreamsIgnore) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ForgeFedEarlyItemsPropertyIterator{ + activitystreamsIgnoreMember: v, + alias: this.alias, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertActivityStreamsImage inserts a Image value at the specified index for a +// property "earlyItems". Existing elements at that index and higher are +// shifted back once. Invalidates all iterators. +func (this *ForgeFedEarlyItemsProperty) InsertActivityStreamsImage(idx int, v vocab.ActivityStreamsImage) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ForgeFedEarlyItemsPropertyIterator{ + activitystreamsImageMember: v, + alias: this.alias, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertActivityStreamsIntransitiveActivity inserts a IntransitiveActivity value +// at the specified index for a property "earlyItems". Existing elements at +// that index and higher are shifted back once. Invalidates all iterators. +func (this *ForgeFedEarlyItemsProperty) InsertActivityStreamsIntransitiveActivity(idx int, v vocab.ActivityStreamsIntransitiveActivity) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ForgeFedEarlyItemsPropertyIterator{ + activitystreamsIntransitiveActivityMember: v, + alias: this.alias, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertActivityStreamsInvite inserts a Invite value at the specified index for a +// property "earlyItems". Existing elements at that index and higher are +// shifted back once. Invalidates all iterators. +func (this *ForgeFedEarlyItemsProperty) InsertActivityStreamsInvite(idx int, v vocab.ActivityStreamsInvite) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ForgeFedEarlyItemsPropertyIterator{ + activitystreamsInviteMember: v, + alias: this.alias, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertActivityStreamsJoin inserts a Join value at the specified index for a +// property "earlyItems". Existing elements at that index and higher are +// shifted back once. Invalidates all iterators. +func (this *ForgeFedEarlyItemsProperty) InsertActivityStreamsJoin(idx int, v vocab.ActivityStreamsJoin) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ForgeFedEarlyItemsPropertyIterator{ + activitystreamsJoinMember: v, + alias: this.alias, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertActivityStreamsLeave inserts a Leave value at the specified index for a +// property "earlyItems". Existing elements at that index and higher are +// shifted back once. Invalidates all iterators. +func (this *ForgeFedEarlyItemsProperty) InsertActivityStreamsLeave(idx int, v vocab.ActivityStreamsLeave) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ForgeFedEarlyItemsPropertyIterator{ + activitystreamsLeaveMember: v, + alias: this.alias, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertActivityStreamsLike inserts a Like value at the specified index for a +// property "earlyItems". Existing elements at that index and higher are +// shifted back once. Invalidates all iterators. +func (this *ForgeFedEarlyItemsProperty) InsertActivityStreamsLike(idx int, v vocab.ActivityStreamsLike) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ForgeFedEarlyItemsPropertyIterator{ + activitystreamsLikeMember: v, + alias: this.alias, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertActivityStreamsLink inserts a Link value at the specified index for a +// property "earlyItems". Existing elements at that index and higher are +// shifted back once. Invalidates all iterators. +func (this *ForgeFedEarlyItemsProperty) InsertActivityStreamsLink(idx int, v vocab.ActivityStreamsLink) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ForgeFedEarlyItemsPropertyIterator{ + activitystreamsLinkMember: v, + alias: this.alias, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertActivityStreamsListen inserts a Listen value at the specified index for a +// property "earlyItems". Existing elements at that index and higher are +// shifted back once. Invalidates all iterators. +func (this *ForgeFedEarlyItemsProperty) InsertActivityStreamsListen(idx int, v vocab.ActivityStreamsListen) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ForgeFedEarlyItemsPropertyIterator{ + activitystreamsListenMember: v, + alias: this.alias, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertActivityStreamsMention inserts a Mention value at the specified index for +// a property "earlyItems". Existing elements at that index and higher are +// shifted back once. Invalidates all iterators. +func (this *ForgeFedEarlyItemsProperty) InsertActivityStreamsMention(idx int, v vocab.ActivityStreamsMention) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ForgeFedEarlyItemsPropertyIterator{ + activitystreamsMentionMember: v, + alias: this.alias, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertActivityStreamsMove inserts a Move value at the specified index for a +// property "earlyItems". Existing elements at that index and higher are +// shifted back once. Invalidates all iterators. +func (this *ForgeFedEarlyItemsProperty) InsertActivityStreamsMove(idx int, v vocab.ActivityStreamsMove) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ForgeFedEarlyItemsPropertyIterator{ + activitystreamsMoveMember: v, + alias: this.alias, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertActivityStreamsNote inserts a Note value at the specified index for a +// property "earlyItems". Existing elements at that index and higher are +// shifted back once. Invalidates all iterators. +func (this *ForgeFedEarlyItemsProperty) InsertActivityStreamsNote(idx int, v vocab.ActivityStreamsNote) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ForgeFedEarlyItemsPropertyIterator{ + activitystreamsNoteMember: v, + alias: this.alias, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertActivityStreamsObject inserts a Object value at the specified index for a +// property "earlyItems". Existing elements at that index and higher are +// shifted back once. Invalidates all iterators. +func (this *ForgeFedEarlyItemsProperty) InsertActivityStreamsObject(idx int, v vocab.ActivityStreamsObject) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ForgeFedEarlyItemsPropertyIterator{ + activitystreamsObjectMember: v, + alias: this.alias, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertActivityStreamsOffer inserts a Offer value at the specified index for a +// property "earlyItems". Existing elements at that index and higher are +// shifted back once. Invalidates all iterators. +func (this *ForgeFedEarlyItemsProperty) InsertActivityStreamsOffer(idx int, v vocab.ActivityStreamsOffer) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ForgeFedEarlyItemsPropertyIterator{ + activitystreamsOfferMember: v, + alias: this.alias, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertActivityStreamsOrderedCollection inserts a OrderedCollection value at the +// specified index for a property "earlyItems". Existing elements at that +// index and higher are shifted back once. Invalidates all iterators. +func (this *ForgeFedEarlyItemsProperty) InsertActivityStreamsOrderedCollection(idx int, v vocab.ActivityStreamsOrderedCollection) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ForgeFedEarlyItemsPropertyIterator{ + activitystreamsOrderedCollectionMember: v, + alias: this.alias, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertActivityStreamsOrderedCollectionPage inserts a OrderedCollectionPage +// value at the specified index for a property "earlyItems". Existing elements +// at that index and higher are shifted back once. Invalidates all iterators. +func (this *ForgeFedEarlyItemsProperty) InsertActivityStreamsOrderedCollectionPage(idx int, v vocab.ActivityStreamsOrderedCollectionPage) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ForgeFedEarlyItemsPropertyIterator{ + activitystreamsOrderedCollectionPageMember: v, + alias: this.alias, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertActivityStreamsOrganization inserts a Organization value at the specified +// index for a property "earlyItems". Existing elements at that index and +// higher are shifted back once. Invalidates all iterators. +func (this *ForgeFedEarlyItemsProperty) InsertActivityStreamsOrganization(idx int, v vocab.ActivityStreamsOrganization) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ForgeFedEarlyItemsPropertyIterator{ + activitystreamsOrganizationMember: v, + alias: this.alias, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertActivityStreamsPage inserts a Page value at the specified index for a +// property "earlyItems". Existing elements at that index and higher are +// shifted back once. Invalidates all iterators. +func (this *ForgeFedEarlyItemsProperty) InsertActivityStreamsPage(idx int, v vocab.ActivityStreamsPage) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ForgeFedEarlyItemsPropertyIterator{ + activitystreamsPageMember: v, + alias: this.alias, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertActivityStreamsPerson inserts a Person value at the specified index for a +// property "earlyItems". Existing elements at that index and higher are +// shifted back once. Invalidates all iterators. +func (this *ForgeFedEarlyItemsProperty) InsertActivityStreamsPerson(idx int, v vocab.ActivityStreamsPerson) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ForgeFedEarlyItemsPropertyIterator{ + activitystreamsPersonMember: v, + alias: this.alias, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertActivityStreamsPlace inserts a Place value at the specified index for a +// property "earlyItems". Existing elements at that index and higher are +// shifted back once. Invalidates all iterators. +func (this *ForgeFedEarlyItemsProperty) InsertActivityStreamsPlace(idx int, v vocab.ActivityStreamsPlace) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ForgeFedEarlyItemsPropertyIterator{ + activitystreamsPlaceMember: v, + alias: this.alias, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertActivityStreamsProfile inserts a Profile value at the specified index for +// a property "earlyItems". Existing elements at that index and higher are +// shifted back once. Invalidates all iterators. +func (this *ForgeFedEarlyItemsProperty) InsertActivityStreamsProfile(idx int, v vocab.ActivityStreamsProfile) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ForgeFedEarlyItemsPropertyIterator{ + activitystreamsProfileMember: v, + alias: this.alias, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertActivityStreamsQuestion inserts a Question value at the specified index +// for a property "earlyItems". Existing elements at that index and higher are +// shifted back once. Invalidates all iterators. +func (this *ForgeFedEarlyItemsProperty) InsertActivityStreamsQuestion(idx int, v vocab.ActivityStreamsQuestion) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ForgeFedEarlyItemsPropertyIterator{ + activitystreamsQuestionMember: v, + alias: this.alias, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertActivityStreamsRead inserts a Read value at the specified index for a +// property "earlyItems". Existing elements at that index and higher are +// shifted back once. Invalidates all iterators. +func (this *ForgeFedEarlyItemsProperty) InsertActivityStreamsRead(idx int, v vocab.ActivityStreamsRead) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ForgeFedEarlyItemsPropertyIterator{ + activitystreamsReadMember: v, + alias: this.alias, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertActivityStreamsReject inserts a Reject value at the specified index for a +// property "earlyItems". Existing elements at that index and higher are +// shifted back once. Invalidates all iterators. +func (this *ForgeFedEarlyItemsProperty) InsertActivityStreamsReject(idx int, v vocab.ActivityStreamsReject) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ForgeFedEarlyItemsPropertyIterator{ + activitystreamsRejectMember: v, + alias: this.alias, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertActivityStreamsRelationship inserts a Relationship value at the specified +// index for a property "earlyItems". Existing elements at that index and +// higher are shifted back once. Invalidates all iterators. +func (this *ForgeFedEarlyItemsProperty) InsertActivityStreamsRelationship(idx int, v vocab.ActivityStreamsRelationship) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ForgeFedEarlyItemsPropertyIterator{ + activitystreamsRelationshipMember: v, + alias: this.alias, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertActivityStreamsRemove inserts a Remove value at the specified index for a +// property "earlyItems". Existing elements at that index and higher are +// shifted back once. Invalidates all iterators. +func (this *ForgeFedEarlyItemsProperty) InsertActivityStreamsRemove(idx int, v vocab.ActivityStreamsRemove) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ForgeFedEarlyItemsPropertyIterator{ + activitystreamsRemoveMember: v, + alias: this.alias, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertActivityStreamsService inserts a Service value at the specified index for +// a property "earlyItems". Existing elements at that index and higher are +// shifted back once. Invalidates all iterators. +func (this *ForgeFedEarlyItemsProperty) InsertActivityStreamsService(idx int, v vocab.ActivityStreamsService) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ForgeFedEarlyItemsPropertyIterator{ + activitystreamsServiceMember: v, + alias: this.alias, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertActivityStreamsTentativeAccept inserts a TentativeAccept value at the +// specified index for a property "earlyItems". Existing elements at that +// index and higher are shifted back once. Invalidates all iterators. +func (this *ForgeFedEarlyItemsProperty) InsertActivityStreamsTentativeAccept(idx int, v vocab.ActivityStreamsTentativeAccept) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ForgeFedEarlyItemsPropertyIterator{ + activitystreamsTentativeAcceptMember: v, + alias: this.alias, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertActivityStreamsTentativeReject inserts a TentativeReject value at the +// specified index for a property "earlyItems". Existing elements at that +// index and higher are shifted back once. Invalidates all iterators. +func (this *ForgeFedEarlyItemsProperty) InsertActivityStreamsTentativeReject(idx int, v vocab.ActivityStreamsTentativeReject) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ForgeFedEarlyItemsPropertyIterator{ + activitystreamsTentativeRejectMember: v, + alias: this.alias, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertActivityStreamsTombstone inserts a Tombstone value at the specified index +// for a property "earlyItems". Existing elements at that index and higher are +// shifted back once. Invalidates all iterators. +func (this *ForgeFedEarlyItemsProperty) InsertActivityStreamsTombstone(idx int, v vocab.ActivityStreamsTombstone) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ForgeFedEarlyItemsPropertyIterator{ + activitystreamsTombstoneMember: v, + alias: this.alias, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertActivityStreamsTravel inserts a Travel value at the specified index for a +// property "earlyItems". Existing elements at that index and higher are +// shifted back once. Invalidates all iterators. +func (this *ForgeFedEarlyItemsProperty) InsertActivityStreamsTravel(idx int, v vocab.ActivityStreamsTravel) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ForgeFedEarlyItemsPropertyIterator{ + activitystreamsTravelMember: v, + alias: this.alias, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertActivityStreamsUndo inserts a Undo value at the specified index for a +// property "earlyItems". Existing elements at that index and higher are +// shifted back once. Invalidates all iterators. +func (this *ForgeFedEarlyItemsProperty) InsertActivityStreamsUndo(idx int, v vocab.ActivityStreamsUndo) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ForgeFedEarlyItemsPropertyIterator{ + activitystreamsUndoMember: v, + alias: this.alias, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertActivityStreamsUpdate inserts a Update value at the specified index for a +// property "earlyItems". Existing elements at that index and higher are +// shifted back once. Invalidates all iterators. +func (this *ForgeFedEarlyItemsProperty) InsertActivityStreamsUpdate(idx int, v vocab.ActivityStreamsUpdate) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ForgeFedEarlyItemsPropertyIterator{ + activitystreamsUpdateMember: v, + alias: this.alias, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertActivityStreamsVideo inserts a Video value at the specified index for a +// property "earlyItems". Existing elements at that index and higher are +// shifted back once. Invalidates all iterators. +func (this *ForgeFedEarlyItemsProperty) InsertActivityStreamsVideo(idx int, v vocab.ActivityStreamsVideo) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ForgeFedEarlyItemsPropertyIterator{ + activitystreamsVideoMember: v, + alias: this.alias, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertActivityStreamsView inserts a View value at the specified index for a +// property "earlyItems". Existing elements at that index and higher are +// shifted back once. Invalidates all iterators. +func (this *ForgeFedEarlyItemsProperty) InsertActivityStreamsView(idx int, v vocab.ActivityStreamsView) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ForgeFedEarlyItemsPropertyIterator{ + activitystreamsViewMember: v, + alias: this.alias, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertForgeFedBranch inserts a Branch value at the specified index for a +// property "earlyItems". Existing elements at that index and higher are +// shifted back once. Invalidates all iterators. +func (this *ForgeFedEarlyItemsProperty) InsertForgeFedBranch(idx int, v vocab.ForgeFedBranch) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ForgeFedEarlyItemsPropertyIterator{ + alias: this.alias, + forgefedBranchMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertForgeFedCommit inserts a Commit value at the specified index for a +// property "earlyItems". Existing elements at that index and higher are +// shifted back once. Invalidates all iterators. +func (this *ForgeFedEarlyItemsProperty) InsertForgeFedCommit(idx int, v vocab.ForgeFedCommit) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ForgeFedEarlyItemsPropertyIterator{ + alias: this.alias, + forgefedCommitMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertForgeFedPush inserts a Push value at the specified index for a property +// "earlyItems". Existing elements at that index and higher are shifted back +// once. Invalidates all iterators. +func (this *ForgeFedEarlyItemsProperty) InsertForgeFedPush(idx int, v vocab.ForgeFedPush) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ForgeFedEarlyItemsPropertyIterator{ + alias: this.alias, + forgefedPushMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertForgeFedRepository inserts a Repository value at the specified index for +// a property "earlyItems". Existing elements at that index and higher are +// shifted back once. Invalidates all iterators. +func (this *ForgeFedEarlyItemsProperty) InsertForgeFedRepository(idx int, v vocab.ForgeFedRepository) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ForgeFedEarlyItemsPropertyIterator{ + alias: this.alias, + forgefedRepositoryMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertForgeFedTicket inserts a Ticket value at the specified index for a +// property "earlyItems". Existing elements at that index and higher are +// shifted back once. Invalidates all iterators. +func (this *ForgeFedEarlyItemsProperty) InsertForgeFedTicket(idx int, v vocab.ForgeFedTicket) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ForgeFedEarlyItemsPropertyIterator{ + alias: this.alias, + forgefedTicketMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertForgeFedTicketDependency inserts a TicketDependency value at the +// specified index for a property "earlyItems". Existing elements at that +// index and higher are shifted back once. Invalidates all iterators. +func (this *ForgeFedEarlyItemsProperty) InsertForgeFedTicketDependency(idx int, v vocab.ForgeFedTicketDependency) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ForgeFedEarlyItemsPropertyIterator{ + alias: this.alias, + forgefedTicketDependencyMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// Insert inserts an IRI value at the specified index for a property "earlyItems". +// Existing elements at that index and higher are shifted back once. +// Invalidates all iterators. +func (this *ForgeFedEarlyItemsProperty) InsertIRI(idx int, v *url.URL) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ForgeFedEarlyItemsPropertyIterator{ + alias: this.alias, + iri: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertTootEmoji inserts a Emoji value at the specified index for a property +// "earlyItems". Existing elements at that index and higher are shifted back +// once. Invalidates all iterators. +func (this *ForgeFedEarlyItemsProperty) InsertTootEmoji(idx int, v vocab.TootEmoji) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ForgeFedEarlyItemsPropertyIterator{ + alias: this.alias, + myIdx: idx, + parent: this, + tootEmojiMember: v, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertTootIdentityProof inserts a IdentityProof value at the specified index +// for a property "earlyItems". Existing elements at that index and higher are +// shifted back once. Invalidates all iterators. +func (this *ForgeFedEarlyItemsProperty) InsertTootIdentityProof(idx int, v vocab.TootIdentityProof) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ForgeFedEarlyItemsPropertyIterator{ + alias: this.alias, + myIdx: idx, + parent: this, + tootIdentityProofMember: v, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependType prepends an arbitrary type value to the front of a list of the +// property "earlyItems". Invalidates all iterators. Returns an error if the +// type is not a valid one to set for this property. +func (this *ForgeFedEarlyItemsProperty) InsertType(idx int, t vocab.Type) error { + n := &ForgeFedEarlyItemsPropertyIterator{ + alias: this.alias, + myIdx: idx, + parent: this, + } + if err := n.SetType(t); err != nil { + return err + } + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = n + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } + return nil +} + +// JSONLDContext returns the JSONLD URIs required in the context string for this +// property and the specific values that are set. The value in the map is the +// alias used to import the property's value or values. +func (this ForgeFedEarlyItemsProperty) JSONLDContext() map[string]string { + m := map[string]string{"https://forgefed.peers.community/ns": this.alias} + for _, elem := range this.properties { + child := elem.JSONLDContext() + /* + Since the literal maps in this function are determined at + code-generation time, this loop should not overwrite an existing key with a + new value. + */ + for k, v := range child { + m[k] = v + } + } + return m +} + +// KindIndex computes an arbitrary value for indexing this kind of value. This is +// a leaky API method specifically needed only for alternate implementations +// for go-fed. Applications should not use this method. Panics if the index is +// out of bounds. +func (this ForgeFedEarlyItemsProperty) KindIndex(idx int) int { + return this.properties[idx].KindIndex() +} + +// Len returns the number of values that exist for the "earlyItems" property. +func (this ForgeFedEarlyItemsProperty) Len() (length int) { + return len(this.properties) +} + +// Less computes whether another property is less than this one. Mixing types +// results in a consistent but arbitrary ordering +func (this ForgeFedEarlyItemsProperty) Less(i, j int) bool { + idx1 := this.KindIndex(i) + idx2 := this.KindIndex(j) + if idx1 < idx2 { + return true + } else if idx1 == idx2 { + if idx1 == 0 { + lhs := this.properties[i].GetActivityStreamsObject() + rhs := this.properties[j].GetActivityStreamsObject() + return lhs.LessThan(rhs) + } else if idx1 == 1 { + lhs := this.properties[i].GetActivityStreamsLink() + rhs := this.properties[j].GetActivityStreamsLink() + return lhs.LessThan(rhs) + } else if idx1 == 2 { + lhs := this.properties[i].GetActivityStreamsAccept() + rhs := this.properties[j].GetActivityStreamsAccept() + return lhs.LessThan(rhs) + } else if idx1 == 3 { + lhs := this.properties[i].GetActivityStreamsActivity() + rhs := this.properties[j].GetActivityStreamsActivity() + return lhs.LessThan(rhs) + } else if idx1 == 4 { + lhs := this.properties[i].GetActivityStreamsAdd() + rhs := this.properties[j].GetActivityStreamsAdd() + return lhs.LessThan(rhs) + } else if idx1 == 5 { + lhs := this.properties[i].GetActivityStreamsAnnounce() + rhs := this.properties[j].GetActivityStreamsAnnounce() + return lhs.LessThan(rhs) + } else if idx1 == 6 { + lhs := this.properties[i].GetActivityStreamsApplication() + rhs := this.properties[j].GetActivityStreamsApplication() + return lhs.LessThan(rhs) + } else if idx1 == 7 { + lhs := this.properties[i].GetActivityStreamsArrive() + rhs := this.properties[j].GetActivityStreamsArrive() + return lhs.LessThan(rhs) + } else if idx1 == 8 { + lhs := this.properties[i].GetActivityStreamsArticle() + rhs := this.properties[j].GetActivityStreamsArticle() + return lhs.LessThan(rhs) + } else if idx1 == 9 { + lhs := this.properties[i].GetActivityStreamsAudio() + rhs := this.properties[j].GetActivityStreamsAudio() + return lhs.LessThan(rhs) + } else if idx1 == 10 { + lhs := this.properties[i].GetActivityStreamsBlock() + rhs := this.properties[j].GetActivityStreamsBlock() + return lhs.LessThan(rhs) + } else if idx1 == 11 { + lhs := this.properties[i].GetForgeFedBranch() + rhs := this.properties[j].GetForgeFedBranch() + return lhs.LessThan(rhs) + } else if idx1 == 12 { + lhs := this.properties[i].GetActivityStreamsCollection() + rhs := this.properties[j].GetActivityStreamsCollection() + return lhs.LessThan(rhs) + } else if idx1 == 13 { + lhs := this.properties[i].GetActivityStreamsCollectionPage() + rhs := this.properties[j].GetActivityStreamsCollectionPage() + return lhs.LessThan(rhs) + } else if idx1 == 14 { + lhs := this.properties[i].GetForgeFedCommit() + rhs := this.properties[j].GetForgeFedCommit() + return lhs.LessThan(rhs) + } else if idx1 == 15 { + lhs := this.properties[i].GetActivityStreamsCreate() + rhs := this.properties[j].GetActivityStreamsCreate() + return lhs.LessThan(rhs) + } else if idx1 == 16 { + lhs := this.properties[i].GetActivityStreamsDelete() + rhs := this.properties[j].GetActivityStreamsDelete() + return lhs.LessThan(rhs) + } else if idx1 == 17 { + lhs := this.properties[i].GetActivityStreamsDislike() + rhs := this.properties[j].GetActivityStreamsDislike() + return lhs.LessThan(rhs) + } else if idx1 == 18 { + lhs := this.properties[i].GetActivityStreamsDocument() + rhs := this.properties[j].GetActivityStreamsDocument() + return lhs.LessThan(rhs) + } else if idx1 == 19 { + lhs := this.properties[i].GetTootEmoji() + rhs := this.properties[j].GetTootEmoji() + return lhs.LessThan(rhs) + } else if idx1 == 20 { + lhs := this.properties[i].GetActivityStreamsEvent() + rhs := this.properties[j].GetActivityStreamsEvent() + return lhs.LessThan(rhs) + } else if idx1 == 21 { + lhs := this.properties[i].GetActivityStreamsFlag() + rhs := this.properties[j].GetActivityStreamsFlag() + return lhs.LessThan(rhs) + } else if idx1 == 22 { + lhs := this.properties[i].GetActivityStreamsFollow() + rhs := this.properties[j].GetActivityStreamsFollow() + return lhs.LessThan(rhs) + } else if idx1 == 23 { + lhs := this.properties[i].GetActivityStreamsGroup() + rhs := this.properties[j].GetActivityStreamsGroup() + return lhs.LessThan(rhs) + } else if idx1 == 24 { + lhs := this.properties[i].GetTootIdentityProof() + rhs := this.properties[j].GetTootIdentityProof() + return lhs.LessThan(rhs) + } else if idx1 == 25 { + lhs := this.properties[i].GetActivityStreamsIgnore() + rhs := this.properties[j].GetActivityStreamsIgnore() + return lhs.LessThan(rhs) + } else if idx1 == 26 { + lhs := this.properties[i].GetActivityStreamsImage() + rhs := this.properties[j].GetActivityStreamsImage() + return lhs.LessThan(rhs) + } else if idx1 == 27 { + lhs := this.properties[i].GetActivityStreamsIntransitiveActivity() + rhs := this.properties[j].GetActivityStreamsIntransitiveActivity() + return lhs.LessThan(rhs) + } else if idx1 == 28 { + lhs := this.properties[i].GetActivityStreamsInvite() + rhs := this.properties[j].GetActivityStreamsInvite() + return lhs.LessThan(rhs) + } else if idx1 == 29 { + lhs := this.properties[i].GetActivityStreamsJoin() + rhs := this.properties[j].GetActivityStreamsJoin() + return lhs.LessThan(rhs) + } else if idx1 == 30 { + lhs := this.properties[i].GetActivityStreamsLeave() + rhs := this.properties[j].GetActivityStreamsLeave() + return lhs.LessThan(rhs) + } else if idx1 == 31 { + lhs := this.properties[i].GetActivityStreamsLike() + rhs := this.properties[j].GetActivityStreamsLike() + return lhs.LessThan(rhs) + } else if idx1 == 32 { + lhs := this.properties[i].GetActivityStreamsListen() + rhs := this.properties[j].GetActivityStreamsListen() + return lhs.LessThan(rhs) + } else if idx1 == 33 { + lhs := this.properties[i].GetActivityStreamsMention() + rhs := this.properties[j].GetActivityStreamsMention() + return lhs.LessThan(rhs) + } else if idx1 == 34 { + lhs := this.properties[i].GetActivityStreamsMove() + rhs := this.properties[j].GetActivityStreamsMove() + return lhs.LessThan(rhs) + } else if idx1 == 35 { + lhs := this.properties[i].GetActivityStreamsNote() + rhs := this.properties[j].GetActivityStreamsNote() + return lhs.LessThan(rhs) + } else if idx1 == 36 { + lhs := this.properties[i].GetActivityStreamsOffer() + rhs := this.properties[j].GetActivityStreamsOffer() + return lhs.LessThan(rhs) + } else if idx1 == 37 { + lhs := this.properties[i].GetActivityStreamsOrderedCollection() + rhs := this.properties[j].GetActivityStreamsOrderedCollection() + return lhs.LessThan(rhs) + } else if idx1 == 38 { + lhs := this.properties[i].GetActivityStreamsOrderedCollectionPage() + rhs := this.properties[j].GetActivityStreamsOrderedCollectionPage() + return lhs.LessThan(rhs) + } else if idx1 == 39 { + lhs := this.properties[i].GetActivityStreamsOrganization() + rhs := this.properties[j].GetActivityStreamsOrganization() + return lhs.LessThan(rhs) + } else if idx1 == 40 { + lhs := this.properties[i].GetActivityStreamsPage() + rhs := this.properties[j].GetActivityStreamsPage() + return lhs.LessThan(rhs) + } else if idx1 == 41 { + lhs := this.properties[i].GetActivityStreamsPerson() + rhs := this.properties[j].GetActivityStreamsPerson() + return lhs.LessThan(rhs) + } else if idx1 == 42 { + lhs := this.properties[i].GetActivityStreamsPlace() + rhs := this.properties[j].GetActivityStreamsPlace() + return lhs.LessThan(rhs) + } else if idx1 == 43 { + lhs := this.properties[i].GetActivityStreamsProfile() + rhs := this.properties[j].GetActivityStreamsProfile() + return lhs.LessThan(rhs) + } else if idx1 == 44 { + lhs := this.properties[i].GetForgeFedPush() + rhs := this.properties[j].GetForgeFedPush() + return lhs.LessThan(rhs) + } else if idx1 == 45 { + lhs := this.properties[i].GetActivityStreamsQuestion() + rhs := this.properties[j].GetActivityStreamsQuestion() + return lhs.LessThan(rhs) + } else if idx1 == 46 { + lhs := this.properties[i].GetActivityStreamsRead() + rhs := this.properties[j].GetActivityStreamsRead() + return lhs.LessThan(rhs) + } else if idx1 == 47 { + lhs := this.properties[i].GetActivityStreamsReject() + rhs := this.properties[j].GetActivityStreamsReject() + return lhs.LessThan(rhs) + } else if idx1 == 48 { + lhs := this.properties[i].GetActivityStreamsRelationship() + rhs := this.properties[j].GetActivityStreamsRelationship() + return lhs.LessThan(rhs) + } else if idx1 == 49 { + lhs := this.properties[i].GetActivityStreamsRemove() + rhs := this.properties[j].GetActivityStreamsRemove() + return lhs.LessThan(rhs) + } else if idx1 == 50 { + lhs := this.properties[i].GetForgeFedRepository() + rhs := this.properties[j].GetForgeFedRepository() + return lhs.LessThan(rhs) + } else if idx1 == 51 { + lhs := this.properties[i].GetActivityStreamsService() + rhs := this.properties[j].GetActivityStreamsService() + return lhs.LessThan(rhs) + } else if idx1 == 52 { + lhs := this.properties[i].GetActivityStreamsTentativeAccept() + rhs := this.properties[j].GetActivityStreamsTentativeAccept() + return lhs.LessThan(rhs) + } else if idx1 == 53 { + lhs := this.properties[i].GetActivityStreamsTentativeReject() + rhs := this.properties[j].GetActivityStreamsTentativeReject() + return lhs.LessThan(rhs) + } else if idx1 == 54 { + lhs := this.properties[i].GetForgeFedTicket() + rhs := this.properties[j].GetForgeFedTicket() + return lhs.LessThan(rhs) + } else if idx1 == 55 { + lhs := this.properties[i].GetForgeFedTicketDependency() + rhs := this.properties[j].GetForgeFedTicketDependency() + return lhs.LessThan(rhs) + } else if idx1 == 56 { + lhs := this.properties[i].GetActivityStreamsTombstone() + rhs := this.properties[j].GetActivityStreamsTombstone() + return lhs.LessThan(rhs) + } else if idx1 == 57 { + lhs := this.properties[i].GetActivityStreamsTravel() + rhs := this.properties[j].GetActivityStreamsTravel() + return lhs.LessThan(rhs) + } else if idx1 == 58 { + lhs := this.properties[i].GetActivityStreamsUndo() + rhs := this.properties[j].GetActivityStreamsUndo() + return lhs.LessThan(rhs) + } else if idx1 == 59 { + lhs := this.properties[i].GetActivityStreamsUpdate() + rhs := this.properties[j].GetActivityStreamsUpdate() + return lhs.LessThan(rhs) + } else if idx1 == 60 { + lhs := this.properties[i].GetActivityStreamsVideo() + rhs := this.properties[j].GetActivityStreamsVideo() + return lhs.LessThan(rhs) + } else if idx1 == 61 { + lhs := this.properties[i].GetActivityStreamsView() + rhs := this.properties[j].GetActivityStreamsView() + return lhs.LessThan(rhs) + } else if idx1 == -2 { + lhs := this.properties[i].GetIRI() + rhs := this.properties[j].GetIRI() + return lhs.String() < rhs.String() + } + } + return false +} + +// LessThan compares two instances of this property with an arbitrary but stable +// comparison. Applications should not use this because it is only meant to +// help alternative implementations to go-fed to be able to normalize +// nonfunctional properties. +func (this ForgeFedEarlyItemsProperty) LessThan(o vocab.ForgeFedEarlyItemsProperty) bool { + l1 := this.Len() + l2 := o.Len() + l := l1 + if l2 < l1 { + l = l2 + } + for i := 0; i < l; i++ { + if this.properties[i].LessThan(o.At(i)) { + return true + } else if o.At(i).LessThan(this.properties[i]) { + return false + } + } + return l1 < l2 +} + +// Name returns the name of this property ("earlyItems") with any alias. +func (this ForgeFedEarlyItemsProperty) Name() string { + if len(this.alias) > 0 { + return this.alias + ":" + "earlyItems" + } else { + return "earlyItems" + } +} + +// PrependActivityStreamsAccept prepends a Accept value to the front of a list of +// the property "earlyItems". Invalidates all iterators. +func (this *ForgeFedEarlyItemsProperty) PrependActivityStreamsAccept(v vocab.ActivityStreamsAccept) { + this.properties = append([]*ForgeFedEarlyItemsPropertyIterator{{ + activitystreamsAcceptMember: v, + alias: this.alias, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependActivityStreamsActivity prepends a Activity value to the front of a list +// of the property "earlyItems". Invalidates all iterators. +func (this *ForgeFedEarlyItemsProperty) PrependActivityStreamsActivity(v vocab.ActivityStreamsActivity) { + this.properties = append([]*ForgeFedEarlyItemsPropertyIterator{{ + activitystreamsActivityMember: v, + alias: this.alias, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependActivityStreamsAdd prepends a Add value to the front of a list of the +// property "earlyItems". Invalidates all iterators. +func (this *ForgeFedEarlyItemsProperty) PrependActivityStreamsAdd(v vocab.ActivityStreamsAdd) { + this.properties = append([]*ForgeFedEarlyItemsPropertyIterator{{ + activitystreamsAddMember: v, + alias: this.alias, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependActivityStreamsAnnounce prepends a Announce value to the front of a list +// of the property "earlyItems". Invalidates all iterators. +func (this *ForgeFedEarlyItemsProperty) PrependActivityStreamsAnnounce(v vocab.ActivityStreamsAnnounce) { + this.properties = append([]*ForgeFedEarlyItemsPropertyIterator{{ + activitystreamsAnnounceMember: v, + alias: this.alias, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependActivityStreamsApplication prepends a Application value to the front of +// a list of the property "earlyItems". Invalidates all iterators. +func (this *ForgeFedEarlyItemsProperty) PrependActivityStreamsApplication(v vocab.ActivityStreamsApplication) { + this.properties = append([]*ForgeFedEarlyItemsPropertyIterator{{ + activitystreamsApplicationMember: v, + alias: this.alias, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependActivityStreamsArrive prepends a Arrive value to the front of a list of +// the property "earlyItems". Invalidates all iterators. +func (this *ForgeFedEarlyItemsProperty) PrependActivityStreamsArrive(v vocab.ActivityStreamsArrive) { + this.properties = append([]*ForgeFedEarlyItemsPropertyIterator{{ + activitystreamsArriveMember: v, + alias: this.alias, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependActivityStreamsArticle prepends a Article value to the front of a list +// of the property "earlyItems". Invalidates all iterators. +func (this *ForgeFedEarlyItemsProperty) PrependActivityStreamsArticle(v vocab.ActivityStreamsArticle) { + this.properties = append([]*ForgeFedEarlyItemsPropertyIterator{{ + activitystreamsArticleMember: v, + alias: this.alias, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependActivityStreamsAudio prepends a Audio value to the front of a list of +// the property "earlyItems". Invalidates all iterators. +func (this *ForgeFedEarlyItemsProperty) PrependActivityStreamsAudio(v vocab.ActivityStreamsAudio) { + this.properties = append([]*ForgeFedEarlyItemsPropertyIterator{{ + activitystreamsAudioMember: v, + alias: this.alias, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependActivityStreamsBlock prepends a Block value to the front of a list of +// the property "earlyItems". Invalidates all iterators. +func (this *ForgeFedEarlyItemsProperty) PrependActivityStreamsBlock(v vocab.ActivityStreamsBlock) { + this.properties = append([]*ForgeFedEarlyItemsPropertyIterator{{ + activitystreamsBlockMember: v, + alias: this.alias, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependActivityStreamsCollection prepends a Collection value to the front of a +// list of the property "earlyItems". Invalidates all iterators. +func (this *ForgeFedEarlyItemsProperty) PrependActivityStreamsCollection(v vocab.ActivityStreamsCollection) { + this.properties = append([]*ForgeFedEarlyItemsPropertyIterator{{ + activitystreamsCollectionMember: v, + alias: this.alias, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependActivityStreamsCollectionPage prepends a CollectionPage value to the +// front of a list of the property "earlyItems". Invalidates all iterators. +func (this *ForgeFedEarlyItemsProperty) PrependActivityStreamsCollectionPage(v vocab.ActivityStreamsCollectionPage) { + this.properties = append([]*ForgeFedEarlyItemsPropertyIterator{{ + activitystreamsCollectionPageMember: v, + alias: this.alias, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependActivityStreamsCreate prepends a Create value to the front of a list of +// the property "earlyItems". Invalidates all iterators. +func (this *ForgeFedEarlyItemsProperty) PrependActivityStreamsCreate(v vocab.ActivityStreamsCreate) { + this.properties = append([]*ForgeFedEarlyItemsPropertyIterator{{ + activitystreamsCreateMember: v, + alias: this.alias, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependActivityStreamsDelete prepends a Delete value to the front of a list of +// the property "earlyItems". Invalidates all iterators. +func (this *ForgeFedEarlyItemsProperty) PrependActivityStreamsDelete(v vocab.ActivityStreamsDelete) { + this.properties = append([]*ForgeFedEarlyItemsPropertyIterator{{ + activitystreamsDeleteMember: v, + alias: this.alias, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependActivityStreamsDislike prepends a Dislike value to the front of a list +// of the property "earlyItems". Invalidates all iterators. +func (this *ForgeFedEarlyItemsProperty) PrependActivityStreamsDislike(v vocab.ActivityStreamsDislike) { + this.properties = append([]*ForgeFedEarlyItemsPropertyIterator{{ + activitystreamsDislikeMember: v, + alias: this.alias, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependActivityStreamsDocument prepends a Document value to the front of a list +// of the property "earlyItems". Invalidates all iterators. +func (this *ForgeFedEarlyItemsProperty) PrependActivityStreamsDocument(v vocab.ActivityStreamsDocument) { + this.properties = append([]*ForgeFedEarlyItemsPropertyIterator{{ + activitystreamsDocumentMember: v, + alias: this.alias, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependActivityStreamsEvent prepends a Event value to the front of a list of +// the property "earlyItems". Invalidates all iterators. +func (this *ForgeFedEarlyItemsProperty) PrependActivityStreamsEvent(v vocab.ActivityStreamsEvent) { + this.properties = append([]*ForgeFedEarlyItemsPropertyIterator{{ + activitystreamsEventMember: v, + alias: this.alias, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependActivityStreamsFlag prepends a Flag value to the front of a list of the +// property "earlyItems". Invalidates all iterators. +func (this *ForgeFedEarlyItemsProperty) PrependActivityStreamsFlag(v vocab.ActivityStreamsFlag) { + this.properties = append([]*ForgeFedEarlyItemsPropertyIterator{{ + activitystreamsFlagMember: v, + alias: this.alias, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependActivityStreamsFollow prepends a Follow value to the front of a list of +// the property "earlyItems". Invalidates all iterators. +func (this *ForgeFedEarlyItemsProperty) PrependActivityStreamsFollow(v vocab.ActivityStreamsFollow) { + this.properties = append([]*ForgeFedEarlyItemsPropertyIterator{{ + activitystreamsFollowMember: v, + alias: this.alias, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependActivityStreamsGroup prepends a Group value to the front of a list of +// the property "earlyItems". Invalidates all iterators. +func (this *ForgeFedEarlyItemsProperty) PrependActivityStreamsGroup(v vocab.ActivityStreamsGroup) { + this.properties = append([]*ForgeFedEarlyItemsPropertyIterator{{ + activitystreamsGroupMember: v, + alias: this.alias, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependActivityStreamsIgnore prepends a Ignore value to the front of a list of +// the property "earlyItems". Invalidates all iterators. +func (this *ForgeFedEarlyItemsProperty) PrependActivityStreamsIgnore(v vocab.ActivityStreamsIgnore) { + this.properties = append([]*ForgeFedEarlyItemsPropertyIterator{{ + activitystreamsIgnoreMember: v, + alias: this.alias, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependActivityStreamsImage prepends a Image value to the front of a list of +// the property "earlyItems". Invalidates all iterators. +func (this *ForgeFedEarlyItemsProperty) PrependActivityStreamsImage(v vocab.ActivityStreamsImage) { + this.properties = append([]*ForgeFedEarlyItemsPropertyIterator{{ + activitystreamsImageMember: v, + alias: this.alias, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependActivityStreamsIntransitiveActivity prepends a IntransitiveActivity +// value to the front of a list of the property "earlyItems". Invalidates all +// iterators. +func (this *ForgeFedEarlyItemsProperty) PrependActivityStreamsIntransitiveActivity(v vocab.ActivityStreamsIntransitiveActivity) { + this.properties = append([]*ForgeFedEarlyItemsPropertyIterator{{ + activitystreamsIntransitiveActivityMember: v, + alias: this.alias, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependActivityStreamsInvite prepends a Invite value to the front of a list of +// the property "earlyItems". Invalidates all iterators. +func (this *ForgeFedEarlyItemsProperty) PrependActivityStreamsInvite(v vocab.ActivityStreamsInvite) { + this.properties = append([]*ForgeFedEarlyItemsPropertyIterator{{ + activitystreamsInviteMember: v, + alias: this.alias, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependActivityStreamsJoin prepends a Join value to the front of a list of the +// property "earlyItems". Invalidates all iterators. +func (this *ForgeFedEarlyItemsProperty) PrependActivityStreamsJoin(v vocab.ActivityStreamsJoin) { + this.properties = append([]*ForgeFedEarlyItemsPropertyIterator{{ + activitystreamsJoinMember: v, + alias: this.alias, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependActivityStreamsLeave prepends a Leave value to the front of a list of +// the property "earlyItems". Invalidates all iterators. +func (this *ForgeFedEarlyItemsProperty) PrependActivityStreamsLeave(v vocab.ActivityStreamsLeave) { + this.properties = append([]*ForgeFedEarlyItemsPropertyIterator{{ + activitystreamsLeaveMember: v, + alias: this.alias, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependActivityStreamsLike prepends a Like value to the front of a list of the +// property "earlyItems". Invalidates all iterators. +func (this *ForgeFedEarlyItemsProperty) PrependActivityStreamsLike(v vocab.ActivityStreamsLike) { + this.properties = append([]*ForgeFedEarlyItemsPropertyIterator{{ + activitystreamsLikeMember: v, + alias: this.alias, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependActivityStreamsLink prepends a Link value to the front of a list of the +// property "earlyItems". Invalidates all iterators. +func (this *ForgeFedEarlyItemsProperty) PrependActivityStreamsLink(v vocab.ActivityStreamsLink) { + this.properties = append([]*ForgeFedEarlyItemsPropertyIterator{{ + activitystreamsLinkMember: v, + alias: this.alias, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependActivityStreamsListen prepends a Listen value to the front of a list of +// the property "earlyItems". Invalidates all iterators. +func (this *ForgeFedEarlyItemsProperty) PrependActivityStreamsListen(v vocab.ActivityStreamsListen) { + this.properties = append([]*ForgeFedEarlyItemsPropertyIterator{{ + activitystreamsListenMember: v, + alias: this.alias, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependActivityStreamsMention prepends a Mention value to the front of a list +// of the property "earlyItems". Invalidates all iterators. +func (this *ForgeFedEarlyItemsProperty) PrependActivityStreamsMention(v vocab.ActivityStreamsMention) { + this.properties = append([]*ForgeFedEarlyItemsPropertyIterator{{ + activitystreamsMentionMember: v, + alias: this.alias, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependActivityStreamsMove prepends a Move value to the front of a list of the +// property "earlyItems". Invalidates all iterators. +func (this *ForgeFedEarlyItemsProperty) PrependActivityStreamsMove(v vocab.ActivityStreamsMove) { + this.properties = append([]*ForgeFedEarlyItemsPropertyIterator{{ + activitystreamsMoveMember: v, + alias: this.alias, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependActivityStreamsNote prepends a Note value to the front of a list of the +// property "earlyItems". Invalidates all iterators. +func (this *ForgeFedEarlyItemsProperty) PrependActivityStreamsNote(v vocab.ActivityStreamsNote) { + this.properties = append([]*ForgeFedEarlyItemsPropertyIterator{{ + activitystreamsNoteMember: v, + alias: this.alias, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependActivityStreamsObject prepends a Object value to the front of a list of +// the property "earlyItems". Invalidates all iterators. +func (this *ForgeFedEarlyItemsProperty) PrependActivityStreamsObject(v vocab.ActivityStreamsObject) { + this.properties = append([]*ForgeFedEarlyItemsPropertyIterator{{ + activitystreamsObjectMember: v, + alias: this.alias, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependActivityStreamsOffer prepends a Offer value to the front of a list of +// the property "earlyItems". Invalidates all iterators. +func (this *ForgeFedEarlyItemsProperty) PrependActivityStreamsOffer(v vocab.ActivityStreamsOffer) { + this.properties = append([]*ForgeFedEarlyItemsPropertyIterator{{ + activitystreamsOfferMember: v, + alias: this.alias, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependActivityStreamsOrderedCollection prepends a OrderedCollection value to +// the front of a list of the property "earlyItems". Invalidates all iterators. +func (this *ForgeFedEarlyItemsProperty) PrependActivityStreamsOrderedCollection(v vocab.ActivityStreamsOrderedCollection) { + this.properties = append([]*ForgeFedEarlyItemsPropertyIterator{{ + activitystreamsOrderedCollectionMember: v, + alias: this.alias, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependActivityStreamsOrderedCollectionPage prepends a OrderedCollectionPage +// value to the front of a list of the property "earlyItems". Invalidates all +// iterators. +func (this *ForgeFedEarlyItemsProperty) PrependActivityStreamsOrderedCollectionPage(v vocab.ActivityStreamsOrderedCollectionPage) { + this.properties = append([]*ForgeFedEarlyItemsPropertyIterator{{ + activitystreamsOrderedCollectionPageMember: v, + alias: this.alias, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependActivityStreamsOrganization prepends a Organization value to the front +// of a list of the property "earlyItems". Invalidates all iterators. +func (this *ForgeFedEarlyItemsProperty) PrependActivityStreamsOrganization(v vocab.ActivityStreamsOrganization) { + this.properties = append([]*ForgeFedEarlyItemsPropertyIterator{{ + activitystreamsOrganizationMember: v, + alias: this.alias, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependActivityStreamsPage prepends a Page value to the front of a list of the +// property "earlyItems". Invalidates all iterators. +func (this *ForgeFedEarlyItemsProperty) PrependActivityStreamsPage(v vocab.ActivityStreamsPage) { + this.properties = append([]*ForgeFedEarlyItemsPropertyIterator{{ + activitystreamsPageMember: v, + alias: this.alias, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependActivityStreamsPerson prepends a Person value to the front of a list of +// the property "earlyItems". Invalidates all iterators. +func (this *ForgeFedEarlyItemsProperty) PrependActivityStreamsPerson(v vocab.ActivityStreamsPerson) { + this.properties = append([]*ForgeFedEarlyItemsPropertyIterator{{ + activitystreamsPersonMember: v, + alias: this.alias, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependActivityStreamsPlace prepends a Place value to the front of a list of +// the property "earlyItems". Invalidates all iterators. +func (this *ForgeFedEarlyItemsProperty) PrependActivityStreamsPlace(v vocab.ActivityStreamsPlace) { + this.properties = append([]*ForgeFedEarlyItemsPropertyIterator{{ + activitystreamsPlaceMember: v, + alias: this.alias, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependActivityStreamsProfile prepends a Profile value to the front of a list +// of the property "earlyItems". Invalidates all iterators. +func (this *ForgeFedEarlyItemsProperty) PrependActivityStreamsProfile(v vocab.ActivityStreamsProfile) { + this.properties = append([]*ForgeFedEarlyItemsPropertyIterator{{ + activitystreamsProfileMember: v, + alias: this.alias, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependActivityStreamsQuestion prepends a Question value to the front of a list +// of the property "earlyItems". Invalidates all iterators. +func (this *ForgeFedEarlyItemsProperty) PrependActivityStreamsQuestion(v vocab.ActivityStreamsQuestion) { + this.properties = append([]*ForgeFedEarlyItemsPropertyIterator{{ + activitystreamsQuestionMember: v, + alias: this.alias, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependActivityStreamsRead prepends a Read value to the front of a list of the +// property "earlyItems". Invalidates all iterators. +func (this *ForgeFedEarlyItemsProperty) PrependActivityStreamsRead(v vocab.ActivityStreamsRead) { + this.properties = append([]*ForgeFedEarlyItemsPropertyIterator{{ + activitystreamsReadMember: v, + alias: this.alias, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependActivityStreamsReject prepends a Reject value to the front of a list of +// the property "earlyItems". Invalidates all iterators. +func (this *ForgeFedEarlyItemsProperty) PrependActivityStreamsReject(v vocab.ActivityStreamsReject) { + this.properties = append([]*ForgeFedEarlyItemsPropertyIterator{{ + activitystreamsRejectMember: v, + alias: this.alias, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependActivityStreamsRelationship prepends a Relationship value to the front +// of a list of the property "earlyItems". Invalidates all iterators. +func (this *ForgeFedEarlyItemsProperty) PrependActivityStreamsRelationship(v vocab.ActivityStreamsRelationship) { + this.properties = append([]*ForgeFedEarlyItemsPropertyIterator{{ + activitystreamsRelationshipMember: v, + alias: this.alias, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependActivityStreamsRemove prepends a Remove value to the front of a list of +// the property "earlyItems". Invalidates all iterators. +func (this *ForgeFedEarlyItemsProperty) PrependActivityStreamsRemove(v vocab.ActivityStreamsRemove) { + this.properties = append([]*ForgeFedEarlyItemsPropertyIterator{{ + activitystreamsRemoveMember: v, + alias: this.alias, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependActivityStreamsService prepends a Service value to the front of a list +// of the property "earlyItems". Invalidates all iterators. +func (this *ForgeFedEarlyItemsProperty) PrependActivityStreamsService(v vocab.ActivityStreamsService) { + this.properties = append([]*ForgeFedEarlyItemsPropertyIterator{{ + activitystreamsServiceMember: v, + alias: this.alias, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependActivityStreamsTentativeAccept prepends a TentativeAccept value to the +// front of a list of the property "earlyItems". Invalidates all iterators. +func (this *ForgeFedEarlyItemsProperty) PrependActivityStreamsTentativeAccept(v vocab.ActivityStreamsTentativeAccept) { + this.properties = append([]*ForgeFedEarlyItemsPropertyIterator{{ + activitystreamsTentativeAcceptMember: v, + alias: this.alias, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependActivityStreamsTentativeReject prepends a TentativeReject value to the +// front of a list of the property "earlyItems". Invalidates all iterators. +func (this *ForgeFedEarlyItemsProperty) PrependActivityStreamsTentativeReject(v vocab.ActivityStreamsTentativeReject) { + this.properties = append([]*ForgeFedEarlyItemsPropertyIterator{{ + activitystreamsTentativeRejectMember: v, + alias: this.alias, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependActivityStreamsTombstone prepends a Tombstone value to the front of a +// list of the property "earlyItems". Invalidates all iterators. +func (this *ForgeFedEarlyItemsProperty) PrependActivityStreamsTombstone(v vocab.ActivityStreamsTombstone) { + this.properties = append([]*ForgeFedEarlyItemsPropertyIterator{{ + activitystreamsTombstoneMember: v, + alias: this.alias, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependActivityStreamsTravel prepends a Travel value to the front of a list of +// the property "earlyItems". Invalidates all iterators. +func (this *ForgeFedEarlyItemsProperty) PrependActivityStreamsTravel(v vocab.ActivityStreamsTravel) { + this.properties = append([]*ForgeFedEarlyItemsPropertyIterator{{ + activitystreamsTravelMember: v, + alias: this.alias, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependActivityStreamsUndo prepends a Undo value to the front of a list of the +// property "earlyItems". Invalidates all iterators. +func (this *ForgeFedEarlyItemsProperty) PrependActivityStreamsUndo(v vocab.ActivityStreamsUndo) { + this.properties = append([]*ForgeFedEarlyItemsPropertyIterator{{ + activitystreamsUndoMember: v, + alias: this.alias, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependActivityStreamsUpdate prepends a Update value to the front of a list of +// the property "earlyItems". Invalidates all iterators. +func (this *ForgeFedEarlyItemsProperty) PrependActivityStreamsUpdate(v vocab.ActivityStreamsUpdate) { + this.properties = append([]*ForgeFedEarlyItemsPropertyIterator{{ + activitystreamsUpdateMember: v, + alias: this.alias, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependActivityStreamsVideo prepends a Video value to the front of a list of +// the property "earlyItems". Invalidates all iterators. +func (this *ForgeFedEarlyItemsProperty) PrependActivityStreamsVideo(v vocab.ActivityStreamsVideo) { + this.properties = append([]*ForgeFedEarlyItemsPropertyIterator{{ + activitystreamsVideoMember: v, + alias: this.alias, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependActivityStreamsView prepends a View value to the front of a list of the +// property "earlyItems". Invalidates all iterators. +func (this *ForgeFedEarlyItemsProperty) PrependActivityStreamsView(v vocab.ActivityStreamsView) { + this.properties = append([]*ForgeFedEarlyItemsPropertyIterator{{ + activitystreamsViewMember: v, + alias: this.alias, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependForgeFedBranch prepends a Branch value to the front of a list of the +// property "earlyItems". Invalidates all iterators. +func (this *ForgeFedEarlyItemsProperty) PrependForgeFedBranch(v vocab.ForgeFedBranch) { + this.properties = append([]*ForgeFedEarlyItemsPropertyIterator{{ + alias: this.alias, + forgefedBranchMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependForgeFedCommit prepends a Commit value to the front of a list of the +// property "earlyItems". Invalidates all iterators. +func (this *ForgeFedEarlyItemsProperty) PrependForgeFedCommit(v vocab.ForgeFedCommit) { + this.properties = append([]*ForgeFedEarlyItemsPropertyIterator{{ + alias: this.alias, + forgefedCommitMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependForgeFedPush prepends a Push value to the front of a list of the +// property "earlyItems". Invalidates all iterators. +func (this *ForgeFedEarlyItemsProperty) PrependForgeFedPush(v vocab.ForgeFedPush) { + this.properties = append([]*ForgeFedEarlyItemsPropertyIterator{{ + alias: this.alias, + forgefedPushMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependForgeFedRepository prepends a Repository value to the front of a list of +// the property "earlyItems". Invalidates all iterators. +func (this *ForgeFedEarlyItemsProperty) PrependForgeFedRepository(v vocab.ForgeFedRepository) { + this.properties = append([]*ForgeFedEarlyItemsPropertyIterator{{ + alias: this.alias, + forgefedRepositoryMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependForgeFedTicket prepends a Ticket value to the front of a list of the +// property "earlyItems". Invalidates all iterators. +func (this *ForgeFedEarlyItemsProperty) PrependForgeFedTicket(v vocab.ForgeFedTicket) { + this.properties = append([]*ForgeFedEarlyItemsPropertyIterator{{ + alias: this.alias, + forgefedTicketMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependForgeFedTicketDependency prepends a TicketDependency value to the front +// of a list of the property "earlyItems". Invalidates all iterators. +func (this *ForgeFedEarlyItemsProperty) PrependForgeFedTicketDependency(v vocab.ForgeFedTicketDependency) { + this.properties = append([]*ForgeFedEarlyItemsPropertyIterator{{ + alias: this.alias, + forgefedTicketDependencyMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependIRI prepends an IRI value to the front of a list of the property +// "earlyItems". +func (this *ForgeFedEarlyItemsProperty) PrependIRI(v *url.URL) { + this.properties = append([]*ForgeFedEarlyItemsPropertyIterator{{ + alias: this.alias, + iri: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependTootEmoji prepends a Emoji value to the front of a list of the property +// "earlyItems". Invalidates all iterators. +func (this *ForgeFedEarlyItemsProperty) PrependTootEmoji(v vocab.TootEmoji) { + this.properties = append([]*ForgeFedEarlyItemsPropertyIterator{{ + alias: this.alias, + myIdx: 0, + parent: this, + tootEmojiMember: v, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependTootIdentityProof prepends a IdentityProof value to the front of a list +// of the property "earlyItems". Invalidates all iterators. +func (this *ForgeFedEarlyItemsProperty) PrependTootIdentityProof(v vocab.TootIdentityProof) { + this.properties = append([]*ForgeFedEarlyItemsPropertyIterator{{ + alias: this.alias, + myIdx: 0, + parent: this, + tootIdentityProofMember: v, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependType prepends an arbitrary type value to the front of a list of the +// property "earlyItems". Invalidates all iterators. Returns an error if the +// type is not a valid one to set for this property. +func (this *ForgeFedEarlyItemsProperty) PrependType(t vocab.Type) error { + n := &ForgeFedEarlyItemsPropertyIterator{ + alias: this.alias, + myIdx: 0, + parent: this, + } + if err := n.SetType(t); err != nil { + return err + } + this.properties = append([]*ForgeFedEarlyItemsPropertyIterator{n}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } + return nil +} + +// Remove deletes an element at the specified index from a list of the property +// "earlyItems", regardless of its type. Panics if the index is out of bounds. +// Invalidates all iterators. +func (this *ForgeFedEarlyItemsProperty) Remove(idx int) { + (this.properties)[idx].parent = nil + copy((this.properties)[idx:], (this.properties)[idx+1:]) + (this.properties)[len(this.properties)-1] = &ForgeFedEarlyItemsPropertyIterator{} + this.properties = (this.properties)[:len(this.properties)-1] + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// Serialize converts this into an interface representation suitable for +// marshalling into a text or binary format. Applications should not need this +// function as most typical use cases serialize types instead of individual +// properties. It is exposed for alternatives to go-fed implementations to use. +func (this ForgeFedEarlyItemsProperty) Serialize() (interface{}, error) { + s := make([]interface{}, 0, len(this.properties)) + for _, iterator := range this.properties { + if b, err := iterator.serialize(); err != nil { + return s, err + } else { + s = append(s, b) + } + } + // Shortcut: if serializing one value, don't return an array -- pretty sure other Fediverse software would choke on a "type" value with array, for example. + if len(s) == 1 { + return s[0], nil + } + return s, nil +} + +// SetActivityStreamsAccept sets a Accept value to be at the specified index for +// the property "earlyItems". Panics if the index is out of bounds. +// Invalidates all iterators. +func (this *ForgeFedEarlyItemsProperty) SetActivityStreamsAccept(idx int, v vocab.ActivityStreamsAccept) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ForgeFedEarlyItemsPropertyIterator{ + activitystreamsAcceptMember: v, + alias: this.alias, + myIdx: idx, + parent: this, + } +} + +// SetActivityStreamsActivity sets a Activity value to be at the specified index +// for the property "earlyItems". Panics if the index is out of bounds. +// Invalidates all iterators. +func (this *ForgeFedEarlyItemsProperty) SetActivityStreamsActivity(idx int, v vocab.ActivityStreamsActivity) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ForgeFedEarlyItemsPropertyIterator{ + activitystreamsActivityMember: v, + alias: this.alias, + myIdx: idx, + parent: this, + } +} + +// SetActivityStreamsAdd sets a Add value to be at the specified index for the +// property "earlyItems". Panics if the index is out of bounds. Invalidates +// all iterators. +func (this *ForgeFedEarlyItemsProperty) SetActivityStreamsAdd(idx int, v vocab.ActivityStreamsAdd) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ForgeFedEarlyItemsPropertyIterator{ + activitystreamsAddMember: v, + alias: this.alias, + myIdx: idx, + parent: this, + } +} + +// SetActivityStreamsAnnounce sets a Announce value to be at the specified index +// for the property "earlyItems". Panics if the index is out of bounds. +// Invalidates all iterators. +func (this *ForgeFedEarlyItemsProperty) SetActivityStreamsAnnounce(idx int, v vocab.ActivityStreamsAnnounce) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ForgeFedEarlyItemsPropertyIterator{ + activitystreamsAnnounceMember: v, + alias: this.alias, + myIdx: idx, + parent: this, + } +} + +// SetActivityStreamsApplication sets a Application value to be at the specified +// index for the property "earlyItems". Panics if the index is out of bounds. +// Invalidates all iterators. +func (this *ForgeFedEarlyItemsProperty) SetActivityStreamsApplication(idx int, v vocab.ActivityStreamsApplication) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ForgeFedEarlyItemsPropertyIterator{ + activitystreamsApplicationMember: v, + alias: this.alias, + myIdx: idx, + parent: this, + } +} + +// SetActivityStreamsArrive sets a Arrive value to be at the specified index for +// the property "earlyItems". Panics if the index is out of bounds. +// Invalidates all iterators. +func (this *ForgeFedEarlyItemsProperty) SetActivityStreamsArrive(idx int, v vocab.ActivityStreamsArrive) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ForgeFedEarlyItemsPropertyIterator{ + activitystreamsArriveMember: v, + alias: this.alias, + myIdx: idx, + parent: this, + } +} + +// SetActivityStreamsArticle sets a Article value to be at the specified index for +// the property "earlyItems". Panics if the index is out of bounds. +// Invalidates all iterators. +func (this *ForgeFedEarlyItemsProperty) SetActivityStreamsArticle(idx int, v vocab.ActivityStreamsArticle) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ForgeFedEarlyItemsPropertyIterator{ + activitystreamsArticleMember: v, + alias: this.alias, + myIdx: idx, + parent: this, + } +} + +// SetActivityStreamsAudio sets a Audio value to be at the specified index for the +// property "earlyItems". Panics if the index is out of bounds. Invalidates +// all iterators. +func (this *ForgeFedEarlyItemsProperty) SetActivityStreamsAudio(idx int, v vocab.ActivityStreamsAudio) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ForgeFedEarlyItemsPropertyIterator{ + activitystreamsAudioMember: v, + alias: this.alias, + myIdx: idx, + parent: this, + } +} + +// SetActivityStreamsBlock sets a Block value to be at the specified index for the +// property "earlyItems". Panics if the index is out of bounds. Invalidates +// all iterators. +func (this *ForgeFedEarlyItemsProperty) SetActivityStreamsBlock(idx int, v vocab.ActivityStreamsBlock) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ForgeFedEarlyItemsPropertyIterator{ + activitystreamsBlockMember: v, + alias: this.alias, + myIdx: idx, + parent: this, + } +} + +// SetActivityStreamsCollection sets a Collection value to be at the specified +// index for the property "earlyItems". Panics if the index is out of bounds. +// Invalidates all iterators. +func (this *ForgeFedEarlyItemsProperty) SetActivityStreamsCollection(idx int, v vocab.ActivityStreamsCollection) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ForgeFedEarlyItemsPropertyIterator{ + activitystreamsCollectionMember: v, + alias: this.alias, + myIdx: idx, + parent: this, + } +} + +// SetActivityStreamsCollectionPage sets a CollectionPage value to be at the +// specified index for the property "earlyItems". Panics if the index is out +// of bounds. Invalidates all iterators. +func (this *ForgeFedEarlyItemsProperty) SetActivityStreamsCollectionPage(idx int, v vocab.ActivityStreamsCollectionPage) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ForgeFedEarlyItemsPropertyIterator{ + activitystreamsCollectionPageMember: v, + alias: this.alias, + myIdx: idx, + parent: this, + } +} + +// SetActivityStreamsCreate sets a Create value to be at the specified index for +// the property "earlyItems". Panics if the index is out of bounds. +// Invalidates all iterators. +func (this *ForgeFedEarlyItemsProperty) SetActivityStreamsCreate(idx int, v vocab.ActivityStreamsCreate) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ForgeFedEarlyItemsPropertyIterator{ + activitystreamsCreateMember: v, + alias: this.alias, + myIdx: idx, + parent: this, + } +} + +// SetActivityStreamsDelete sets a Delete value to be at the specified index for +// the property "earlyItems". Panics if the index is out of bounds. +// Invalidates all iterators. +func (this *ForgeFedEarlyItemsProperty) SetActivityStreamsDelete(idx int, v vocab.ActivityStreamsDelete) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ForgeFedEarlyItemsPropertyIterator{ + activitystreamsDeleteMember: v, + alias: this.alias, + myIdx: idx, + parent: this, + } +} + +// SetActivityStreamsDislike sets a Dislike value to be at the specified index for +// the property "earlyItems". Panics if the index is out of bounds. +// Invalidates all iterators. +func (this *ForgeFedEarlyItemsProperty) SetActivityStreamsDislike(idx int, v vocab.ActivityStreamsDislike) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ForgeFedEarlyItemsPropertyIterator{ + activitystreamsDislikeMember: v, + alias: this.alias, + myIdx: idx, + parent: this, + } +} + +// SetActivityStreamsDocument sets a Document value to be at the specified index +// for the property "earlyItems". Panics if the index is out of bounds. +// Invalidates all iterators. +func (this *ForgeFedEarlyItemsProperty) SetActivityStreamsDocument(idx int, v vocab.ActivityStreamsDocument) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ForgeFedEarlyItemsPropertyIterator{ + activitystreamsDocumentMember: v, + alias: this.alias, + myIdx: idx, + parent: this, + } +} + +// SetActivityStreamsEvent sets a Event value to be at the specified index for the +// property "earlyItems". Panics if the index is out of bounds. Invalidates +// all iterators. +func (this *ForgeFedEarlyItemsProperty) SetActivityStreamsEvent(idx int, v vocab.ActivityStreamsEvent) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ForgeFedEarlyItemsPropertyIterator{ + activitystreamsEventMember: v, + alias: this.alias, + myIdx: idx, + parent: this, + } +} + +// SetActivityStreamsFlag sets a Flag value to be at the specified index for the +// property "earlyItems". Panics if the index is out of bounds. Invalidates +// all iterators. +func (this *ForgeFedEarlyItemsProperty) SetActivityStreamsFlag(idx int, v vocab.ActivityStreamsFlag) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ForgeFedEarlyItemsPropertyIterator{ + activitystreamsFlagMember: v, + alias: this.alias, + myIdx: idx, + parent: this, + } +} + +// SetActivityStreamsFollow sets a Follow value to be at the specified index for +// the property "earlyItems". Panics if the index is out of bounds. +// Invalidates all iterators. +func (this *ForgeFedEarlyItemsProperty) SetActivityStreamsFollow(idx int, v vocab.ActivityStreamsFollow) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ForgeFedEarlyItemsPropertyIterator{ + activitystreamsFollowMember: v, + alias: this.alias, + myIdx: idx, + parent: this, + } +} + +// SetActivityStreamsGroup sets a Group value to be at the specified index for the +// property "earlyItems". Panics if the index is out of bounds. Invalidates +// all iterators. +func (this *ForgeFedEarlyItemsProperty) SetActivityStreamsGroup(idx int, v vocab.ActivityStreamsGroup) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ForgeFedEarlyItemsPropertyIterator{ + activitystreamsGroupMember: v, + alias: this.alias, + myIdx: idx, + parent: this, + } +} + +// SetActivityStreamsIgnore sets a Ignore value to be at the specified index for +// the property "earlyItems". Panics if the index is out of bounds. +// Invalidates all iterators. +func (this *ForgeFedEarlyItemsProperty) SetActivityStreamsIgnore(idx int, v vocab.ActivityStreamsIgnore) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ForgeFedEarlyItemsPropertyIterator{ + activitystreamsIgnoreMember: v, + alias: this.alias, + myIdx: idx, + parent: this, + } +} + +// SetActivityStreamsImage sets a Image value to be at the specified index for the +// property "earlyItems". Panics if the index is out of bounds. Invalidates +// all iterators. +func (this *ForgeFedEarlyItemsProperty) SetActivityStreamsImage(idx int, v vocab.ActivityStreamsImage) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ForgeFedEarlyItemsPropertyIterator{ + activitystreamsImageMember: v, + alias: this.alias, + myIdx: idx, + parent: this, + } +} + +// SetActivityStreamsIntransitiveActivity sets a IntransitiveActivity value to be +// at the specified index for the property "earlyItems". Panics if the index +// is out of bounds. Invalidates all iterators. +func (this *ForgeFedEarlyItemsProperty) SetActivityStreamsIntransitiveActivity(idx int, v vocab.ActivityStreamsIntransitiveActivity) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ForgeFedEarlyItemsPropertyIterator{ + activitystreamsIntransitiveActivityMember: v, + alias: this.alias, + myIdx: idx, + parent: this, + } +} + +// SetActivityStreamsInvite sets a Invite value to be at the specified index for +// the property "earlyItems". Panics if the index is out of bounds. +// Invalidates all iterators. +func (this *ForgeFedEarlyItemsProperty) SetActivityStreamsInvite(idx int, v vocab.ActivityStreamsInvite) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ForgeFedEarlyItemsPropertyIterator{ + activitystreamsInviteMember: v, + alias: this.alias, + myIdx: idx, + parent: this, + } +} + +// SetActivityStreamsJoin sets a Join value to be at the specified index for the +// property "earlyItems". Panics if the index is out of bounds. Invalidates +// all iterators. +func (this *ForgeFedEarlyItemsProperty) SetActivityStreamsJoin(idx int, v vocab.ActivityStreamsJoin) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ForgeFedEarlyItemsPropertyIterator{ + activitystreamsJoinMember: v, + alias: this.alias, + myIdx: idx, + parent: this, + } +} + +// SetActivityStreamsLeave sets a Leave value to be at the specified index for the +// property "earlyItems". Panics if the index is out of bounds. Invalidates +// all iterators. +func (this *ForgeFedEarlyItemsProperty) SetActivityStreamsLeave(idx int, v vocab.ActivityStreamsLeave) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ForgeFedEarlyItemsPropertyIterator{ + activitystreamsLeaveMember: v, + alias: this.alias, + myIdx: idx, + parent: this, + } +} + +// SetActivityStreamsLike sets a Like value to be at the specified index for the +// property "earlyItems". Panics if the index is out of bounds. Invalidates +// all iterators. +func (this *ForgeFedEarlyItemsProperty) SetActivityStreamsLike(idx int, v vocab.ActivityStreamsLike) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ForgeFedEarlyItemsPropertyIterator{ + activitystreamsLikeMember: v, + alias: this.alias, + myIdx: idx, + parent: this, + } +} + +// SetActivityStreamsLink sets a Link value to be at the specified index for the +// property "earlyItems". Panics if the index is out of bounds. Invalidates +// all iterators. +func (this *ForgeFedEarlyItemsProperty) SetActivityStreamsLink(idx int, v vocab.ActivityStreamsLink) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ForgeFedEarlyItemsPropertyIterator{ + activitystreamsLinkMember: v, + alias: this.alias, + myIdx: idx, + parent: this, + } +} + +// SetActivityStreamsListen sets a Listen value to be at the specified index for +// the property "earlyItems". Panics if the index is out of bounds. +// Invalidates all iterators. +func (this *ForgeFedEarlyItemsProperty) SetActivityStreamsListen(idx int, v vocab.ActivityStreamsListen) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ForgeFedEarlyItemsPropertyIterator{ + activitystreamsListenMember: v, + alias: this.alias, + myIdx: idx, + parent: this, + } +} + +// SetActivityStreamsMention sets a Mention value to be at the specified index for +// the property "earlyItems". Panics if the index is out of bounds. +// Invalidates all iterators. +func (this *ForgeFedEarlyItemsProperty) SetActivityStreamsMention(idx int, v vocab.ActivityStreamsMention) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ForgeFedEarlyItemsPropertyIterator{ + activitystreamsMentionMember: v, + alias: this.alias, + myIdx: idx, + parent: this, + } +} + +// SetActivityStreamsMove sets a Move value to be at the specified index for the +// property "earlyItems". Panics if the index is out of bounds. Invalidates +// all iterators. +func (this *ForgeFedEarlyItemsProperty) SetActivityStreamsMove(idx int, v vocab.ActivityStreamsMove) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ForgeFedEarlyItemsPropertyIterator{ + activitystreamsMoveMember: v, + alias: this.alias, + myIdx: idx, + parent: this, + } +} + +// SetActivityStreamsNote sets a Note value to be at the specified index for the +// property "earlyItems". Panics if the index is out of bounds. Invalidates +// all iterators. +func (this *ForgeFedEarlyItemsProperty) SetActivityStreamsNote(idx int, v vocab.ActivityStreamsNote) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ForgeFedEarlyItemsPropertyIterator{ + activitystreamsNoteMember: v, + alias: this.alias, + myIdx: idx, + parent: this, + } +} + +// SetActivityStreamsObject sets a Object value to be at the specified index for +// the property "earlyItems". Panics if the index is out of bounds. +// Invalidates all iterators. +func (this *ForgeFedEarlyItemsProperty) SetActivityStreamsObject(idx int, v vocab.ActivityStreamsObject) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ForgeFedEarlyItemsPropertyIterator{ + activitystreamsObjectMember: v, + alias: this.alias, + myIdx: idx, + parent: this, + } +} + +// SetActivityStreamsOffer sets a Offer value to be at the specified index for the +// property "earlyItems". Panics if the index is out of bounds. Invalidates +// all iterators. +func (this *ForgeFedEarlyItemsProperty) SetActivityStreamsOffer(idx int, v vocab.ActivityStreamsOffer) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ForgeFedEarlyItemsPropertyIterator{ + activitystreamsOfferMember: v, + alias: this.alias, + myIdx: idx, + parent: this, + } +} + +// SetActivityStreamsOrderedCollection sets a OrderedCollection value to be at the +// specified index for the property "earlyItems". Panics if the index is out +// of bounds. Invalidates all iterators. +func (this *ForgeFedEarlyItemsProperty) SetActivityStreamsOrderedCollection(idx int, v vocab.ActivityStreamsOrderedCollection) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ForgeFedEarlyItemsPropertyIterator{ + activitystreamsOrderedCollectionMember: v, + alias: this.alias, + myIdx: idx, + parent: this, + } +} + +// SetActivityStreamsOrderedCollectionPage sets a OrderedCollectionPage value to +// be at the specified index for the property "earlyItems". Panics if the +// index is out of bounds. Invalidates all iterators. +func (this *ForgeFedEarlyItemsProperty) SetActivityStreamsOrderedCollectionPage(idx int, v vocab.ActivityStreamsOrderedCollectionPage) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ForgeFedEarlyItemsPropertyIterator{ + activitystreamsOrderedCollectionPageMember: v, + alias: this.alias, + myIdx: idx, + parent: this, + } +} + +// SetActivityStreamsOrganization sets a Organization value to be at the specified +// index for the property "earlyItems". Panics if the index is out of bounds. +// Invalidates all iterators. +func (this *ForgeFedEarlyItemsProperty) SetActivityStreamsOrganization(idx int, v vocab.ActivityStreamsOrganization) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ForgeFedEarlyItemsPropertyIterator{ + activitystreamsOrganizationMember: v, + alias: this.alias, + myIdx: idx, + parent: this, + } +} + +// SetActivityStreamsPage sets a Page value to be at the specified index for the +// property "earlyItems". Panics if the index is out of bounds. Invalidates +// all iterators. +func (this *ForgeFedEarlyItemsProperty) SetActivityStreamsPage(idx int, v vocab.ActivityStreamsPage) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ForgeFedEarlyItemsPropertyIterator{ + activitystreamsPageMember: v, + alias: this.alias, + myIdx: idx, + parent: this, + } +} + +// SetActivityStreamsPerson sets a Person value to be at the specified index for +// the property "earlyItems". Panics if the index is out of bounds. +// Invalidates all iterators. +func (this *ForgeFedEarlyItemsProperty) SetActivityStreamsPerson(idx int, v vocab.ActivityStreamsPerson) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ForgeFedEarlyItemsPropertyIterator{ + activitystreamsPersonMember: v, + alias: this.alias, + myIdx: idx, + parent: this, + } +} + +// SetActivityStreamsPlace sets a Place value to be at the specified index for the +// property "earlyItems". Panics if the index is out of bounds. Invalidates +// all iterators. +func (this *ForgeFedEarlyItemsProperty) SetActivityStreamsPlace(idx int, v vocab.ActivityStreamsPlace) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ForgeFedEarlyItemsPropertyIterator{ + activitystreamsPlaceMember: v, + alias: this.alias, + myIdx: idx, + parent: this, + } +} + +// SetActivityStreamsProfile sets a Profile value to be at the specified index for +// the property "earlyItems". Panics if the index is out of bounds. +// Invalidates all iterators. +func (this *ForgeFedEarlyItemsProperty) SetActivityStreamsProfile(idx int, v vocab.ActivityStreamsProfile) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ForgeFedEarlyItemsPropertyIterator{ + activitystreamsProfileMember: v, + alias: this.alias, + myIdx: idx, + parent: this, + } +} + +// SetActivityStreamsQuestion sets a Question value to be at the specified index +// for the property "earlyItems". Panics if the index is out of bounds. +// Invalidates all iterators. +func (this *ForgeFedEarlyItemsProperty) SetActivityStreamsQuestion(idx int, v vocab.ActivityStreamsQuestion) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ForgeFedEarlyItemsPropertyIterator{ + activitystreamsQuestionMember: v, + alias: this.alias, + myIdx: idx, + parent: this, + } +} + +// SetActivityStreamsRead sets a Read value to be at the specified index for the +// property "earlyItems". Panics if the index is out of bounds. Invalidates +// all iterators. +func (this *ForgeFedEarlyItemsProperty) SetActivityStreamsRead(idx int, v vocab.ActivityStreamsRead) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ForgeFedEarlyItemsPropertyIterator{ + activitystreamsReadMember: v, + alias: this.alias, + myIdx: idx, + parent: this, + } +} + +// SetActivityStreamsReject sets a Reject value to be at the specified index for +// the property "earlyItems". Panics if the index is out of bounds. +// Invalidates all iterators. +func (this *ForgeFedEarlyItemsProperty) SetActivityStreamsReject(idx int, v vocab.ActivityStreamsReject) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ForgeFedEarlyItemsPropertyIterator{ + activitystreamsRejectMember: v, + alias: this.alias, + myIdx: idx, + parent: this, + } +} + +// SetActivityStreamsRelationship sets a Relationship value to be at the specified +// index for the property "earlyItems". Panics if the index is out of bounds. +// Invalidates all iterators. +func (this *ForgeFedEarlyItemsProperty) SetActivityStreamsRelationship(idx int, v vocab.ActivityStreamsRelationship) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ForgeFedEarlyItemsPropertyIterator{ + activitystreamsRelationshipMember: v, + alias: this.alias, + myIdx: idx, + parent: this, + } +} + +// SetActivityStreamsRemove sets a Remove value to be at the specified index for +// the property "earlyItems". Panics if the index is out of bounds. +// Invalidates all iterators. +func (this *ForgeFedEarlyItemsProperty) SetActivityStreamsRemove(idx int, v vocab.ActivityStreamsRemove) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ForgeFedEarlyItemsPropertyIterator{ + activitystreamsRemoveMember: v, + alias: this.alias, + myIdx: idx, + parent: this, + } +} + +// SetActivityStreamsService sets a Service value to be at the specified index for +// the property "earlyItems". Panics if the index is out of bounds. +// Invalidates all iterators. +func (this *ForgeFedEarlyItemsProperty) SetActivityStreamsService(idx int, v vocab.ActivityStreamsService) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ForgeFedEarlyItemsPropertyIterator{ + activitystreamsServiceMember: v, + alias: this.alias, + myIdx: idx, + parent: this, + } +} + +// SetActivityStreamsTentativeAccept sets a TentativeAccept value to be at the +// specified index for the property "earlyItems". Panics if the index is out +// of bounds. Invalidates all iterators. +func (this *ForgeFedEarlyItemsProperty) SetActivityStreamsTentativeAccept(idx int, v vocab.ActivityStreamsTentativeAccept) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ForgeFedEarlyItemsPropertyIterator{ + activitystreamsTentativeAcceptMember: v, + alias: this.alias, + myIdx: idx, + parent: this, + } +} + +// SetActivityStreamsTentativeReject sets a TentativeReject value to be at the +// specified index for the property "earlyItems". Panics if the index is out +// of bounds. Invalidates all iterators. +func (this *ForgeFedEarlyItemsProperty) SetActivityStreamsTentativeReject(idx int, v vocab.ActivityStreamsTentativeReject) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ForgeFedEarlyItemsPropertyIterator{ + activitystreamsTentativeRejectMember: v, + alias: this.alias, + myIdx: idx, + parent: this, + } +} + +// SetActivityStreamsTombstone sets a Tombstone value to be at the specified index +// for the property "earlyItems". Panics if the index is out of bounds. +// Invalidates all iterators. +func (this *ForgeFedEarlyItemsProperty) SetActivityStreamsTombstone(idx int, v vocab.ActivityStreamsTombstone) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ForgeFedEarlyItemsPropertyIterator{ + activitystreamsTombstoneMember: v, + alias: this.alias, + myIdx: idx, + parent: this, + } +} + +// SetActivityStreamsTravel sets a Travel value to be at the specified index for +// the property "earlyItems". Panics if the index is out of bounds. +// Invalidates all iterators. +func (this *ForgeFedEarlyItemsProperty) SetActivityStreamsTravel(idx int, v vocab.ActivityStreamsTravel) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ForgeFedEarlyItemsPropertyIterator{ + activitystreamsTravelMember: v, + alias: this.alias, + myIdx: idx, + parent: this, + } +} + +// SetActivityStreamsUndo sets a Undo value to be at the specified index for the +// property "earlyItems". Panics if the index is out of bounds. Invalidates +// all iterators. +func (this *ForgeFedEarlyItemsProperty) SetActivityStreamsUndo(idx int, v vocab.ActivityStreamsUndo) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ForgeFedEarlyItemsPropertyIterator{ + activitystreamsUndoMember: v, + alias: this.alias, + myIdx: idx, + parent: this, + } +} + +// SetActivityStreamsUpdate sets a Update value to be at the specified index for +// the property "earlyItems". Panics if the index is out of bounds. +// Invalidates all iterators. +func (this *ForgeFedEarlyItemsProperty) SetActivityStreamsUpdate(idx int, v vocab.ActivityStreamsUpdate) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ForgeFedEarlyItemsPropertyIterator{ + activitystreamsUpdateMember: v, + alias: this.alias, + myIdx: idx, + parent: this, + } +} + +// SetActivityStreamsVideo sets a Video value to be at the specified index for the +// property "earlyItems". Panics if the index is out of bounds. Invalidates +// all iterators. +func (this *ForgeFedEarlyItemsProperty) SetActivityStreamsVideo(idx int, v vocab.ActivityStreamsVideo) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ForgeFedEarlyItemsPropertyIterator{ + activitystreamsVideoMember: v, + alias: this.alias, + myIdx: idx, + parent: this, + } +} + +// SetActivityStreamsView sets a View value to be at the specified index for the +// property "earlyItems". Panics if the index is out of bounds. Invalidates +// all iterators. +func (this *ForgeFedEarlyItemsProperty) SetActivityStreamsView(idx int, v vocab.ActivityStreamsView) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ForgeFedEarlyItemsPropertyIterator{ + activitystreamsViewMember: v, + alias: this.alias, + myIdx: idx, + parent: this, + } +} + +// SetForgeFedBranch sets a Branch value to be at the specified index for the +// property "earlyItems". Panics if the index is out of bounds. Invalidates +// all iterators. +func (this *ForgeFedEarlyItemsProperty) SetForgeFedBranch(idx int, v vocab.ForgeFedBranch) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ForgeFedEarlyItemsPropertyIterator{ + alias: this.alias, + forgefedBranchMember: v, + myIdx: idx, + parent: this, + } +} + +// SetForgeFedCommit sets a Commit value to be at the specified index for the +// property "earlyItems". Panics if the index is out of bounds. Invalidates +// all iterators. +func (this *ForgeFedEarlyItemsProperty) SetForgeFedCommit(idx int, v vocab.ForgeFedCommit) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ForgeFedEarlyItemsPropertyIterator{ + alias: this.alias, + forgefedCommitMember: v, + myIdx: idx, + parent: this, + } +} + +// SetForgeFedPush sets a Push value to be at the specified index for the property +// "earlyItems". Panics if the index is out of bounds. Invalidates all +// iterators. +func (this *ForgeFedEarlyItemsProperty) SetForgeFedPush(idx int, v vocab.ForgeFedPush) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ForgeFedEarlyItemsPropertyIterator{ + alias: this.alias, + forgefedPushMember: v, + myIdx: idx, + parent: this, + } +} + +// SetForgeFedRepository sets a Repository value to be at the specified index for +// the property "earlyItems". Panics if the index is out of bounds. +// Invalidates all iterators. +func (this *ForgeFedEarlyItemsProperty) SetForgeFedRepository(idx int, v vocab.ForgeFedRepository) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ForgeFedEarlyItemsPropertyIterator{ + alias: this.alias, + forgefedRepositoryMember: v, + myIdx: idx, + parent: this, + } +} + +// SetForgeFedTicket sets a Ticket value to be at the specified index for the +// property "earlyItems". Panics if the index is out of bounds. Invalidates +// all iterators. +func (this *ForgeFedEarlyItemsProperty) SetForgeFedTicket(idx int, v vocab.ForgeFedTicket) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ForgeFedEarlyItemsPropertyIterator{ + alias: this.alias, + forgefedTicketMember: v, + myIdx: idx, + parent: this, + } +} + +// SetForgeFedTicketDependency sets a TicketDependency value to be at the +// specified index for the property "earlyItems". Panics if the index is out +// of bounds. Invalidates all iterators. +func (this *ForgeFedEarlyItemsProperty) SetForgeFedTicketDependency(idx int, v vocab.ForgeFedTicketDependency) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ForgeFedEarlyItemsPropertyIterator{ + alias: this.alias, + forgefedTicketDependencyMember: v, + myIdx: idx, + parent: this, + } +} + +// SetIRI sets an IRI value to be at the specified index for the property +// "earlyItems". Panics if the index is out of bounds. +func (this *ForgeFedEarlyItemsProperty) SetIRI(idx int, v *url.URL) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ForgeFedEarlyItemsPropertyIterator{ + alias: this.alias, + iri: v, + myIdx: idx, + parent: this, + } +} + +// SetTootEmoji sets a Emoji value to be at the specified index for the property +// "earlyItems". Panics if the index is out of bounds. Invalidates all +// iterators. +func (this *ForgeFedEarlyItemsProperty) SetTootEmoji(idx int, v vocab.TootEmoji) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ForgeFedEarlyItemsPropertyIterator{ + alias: this.alias, + myIdx: idx, + parent: this, + tootEmojiMember: v, + } +} + +// SetTootIdentityProof sets a IdentityProof value to be at the specified index +// for the property "earlyItems". Panics if the index is out of bounds. +// Invalidates all iterators. +func (this *ForgeFedEarlyItemsProperty) SetTootIdentityProof(idx int, v vocab.TootIdentityProof) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ForgeFedEarlyItemsPropertyIterator{ + alias: this.alias, + myIdx: idx, + parent: this, + tootIdentityProofMember: v, + } +} + +// SetType sets an arbitrary type value to the specified index of the property +// "earlyItems". Invalidates all iterators. Returns an error if the type is +// not a valid one to set for this property. Panics if the index is out of +// bounds. +func (this *ForgeFedEarlyItemsProperty) SetType(idx int, t vocab.Type) error { + n := &ForgeFedEarlyItemsPropertyIterator{ + alias: this.alias, + myIdx: idx, + parent: this, + } + if err := n.SetType(t); err != nil { + return err + } + (this.properties)[idx] = n + return nil +} + +// Swap swaps the location of values at two indices for the "earlyItems" property. +func (this ForgeFedEarlyItemsProperty) Swap(i, j int) { + this.properties[i], this.properties[j] = this.properties[j], this.properties[i] +} diff --git a/streams/impl/forgefed/property_filesadded/gen_doc.go b/streams/impl/forgefed/property_filesadded/gen_doc.go new file mode 100644 index 0000000..5edf4df --- /dev/null +++ b/streams/impl/forgefed/property_filesadded/gen_doc.go @@ -0,0 +1,17 @@ +// Code generated by astool. DO NOT EDIT. + +// Package propertyfilesadded contains the implementation for the filesAdded +// property. All applications are strongly encouraged to use the interface +// instead of this concrete definition. The interfaces allow applications to +// consume only the types and properties needed and be independent of the +// go-fed implementation if another alternative implementation is created. +// This package is code-generated and subject to the same license as the +// go-fed tool used to generate it. +// +// This package is independent of other types' and properties' implementations +// by having a Manager injected into it to act as a factory for the concrete +// implementations. The implementations have been generated into their own +// separate subpackages for each vocabulary. +// +// Strongly consider using the interfaces instead of this package. +package propertyfilesadded diff --git a/streams/impl/forgefed/property_filesadded/gen_pkg.go b/streams/impl/forgefed/property_filesadded/gen_pkg.go new file mode 100644 index 0000000..b8295e7 --- /dev/null +++ b/streams/impl/forgefed/property_filesadded/gen_pkg.go @@ -0,0 +1,15 @@ +// Code generated by astool. DO NOT EDIT. + +package propertyfilesadded + +var mgr privateManager + +// privateManager abstracts the code-generated manager that provides access to +// concrete implementations. +type privateManager interface{} + +// SetManager sets the manager package-global variable. For internal use only, do +// not use as part of Application behavior. Must be called at golang init time. +func SetManager(m privateManager) { + mgr = m +} diff --git a/streams/impl/forgefed/property_filesadded/gen_property_forgefed_filesAdded.go b/streams/impl/forgefed/property_filesadded/gen_property_forgefed_filesAdded.go new file mode 100644 index 0000000..9aa31f1 --- /dev/null +++ b/streams/impl/forgefed/property_filesadded/gen_property_forgefed_filesAdded.go @@ -0,0 +1,531 @@ +// Code generated by astool. DO NOT EDIT. + +package propertyfilesadded + +import ( + "fmt" + string1 "github.com/go-fed/activity/streams/values/string" + vocab "github.com/go-fed/activity/streams/vocab" + "net/url" +) + +// ForgeFedFilesAddedPropertyIterator is an iterator for a property. It is +// permitted to be a single default-valued value type. +type ForgeFedFilesAddedPropertyIterator struct { + xmlschemaStringMember string + hasStringMember bool + unknown interface{} + iri *url.URL + alias string + myIdx int + parent vocab.ForgeFedFilesAddedProperty +} + +// NewForgeFedFilesAddedPropertyIterator creates a new ForgeFedFilesAdded property. +func NewForgeFedFilesAddedPropertyIterator() *ForgeFedFilesAddedPropertyIterator { + return &ForgeFedFilesAddedPropertyIterator{alias: ""} +} + +// deserializeForgeFedFilesAddedPropertyIterator creates an iterator from an +// element that has been unmarshalled from a text or binary format. +func deserializeForgeFedFilesAddedPropertyIterator(i interface{}, aliasMap map[string]string) (*ForgeFedFilesAddedPropertyIterator, error) { + alias := "" + if a, ok := aliasMap["https://forgefed.peers.community/ns"]; ok { + alias = a + } + if s, ok := i.(string); ok { + u, err := url.Parse(s) + // If error exists, don't error out -- skip this and treat as unknown string ([]byte) at worst + // Also, if no scheme exists, don't treat it as a URL -- net/url is greedy + if err == nil && len(u.Scheme) > 0 { + this := &ForgeFedFilesAddedPropertyIterator{ + alias: alias, + iri: u, + } + return this, nil + } + } + if v, err := string1.DeserializeString(i); err == nil { + this := &ForgeFedFilesAddedPropertyIterator{ + alias: alias, + hasStringMember: true, + xmlschemaStringMember: v, + } + return this, nil + } + this := &ForgeFedFilesAddedPropertyIterator{ + alias: alias, + unknown: i, + } + return this, nil +} + +// Get returns the value of this property. When IsXMLSchemaString returns false, +// Get will return any arbitrary value. +func (this ForgeFedFilesAddedPropertyIterator) Get() string { + return this.xmlschemaStringMember +} + +// GetIRI returns the IRI of this property. When IsIRI returns false, GetIRI will +// return any arbitrary value. +func (this ForgeFedFilesAddedPropertyIterator) GetIRI() *url.URL { + return this.iri +} + +// HasAny returns true if the value or IRI is set. +func (this ForgeFedFilesAddedPropertyIterator) HasAny() bool { + return this.IsXMLSchemaString() || this.iri != nil +} + +// IsIRI returns true if this property is an IRI. +func (this ForgeFedFilesAddedPropertyIterator) IsIRI() bool { + return this.iri != nil +} + +// IsXMLSchemaString returns true if this property is set and not an IRI. +func (this ForgeFedFilesAddedPropertyIterator) IsXMLSchemaString() bool { + return this.hasStringMember +} + +// JSONLDContext returns the JSONLD URIs required in the context string for this +// property and the specific values that are set. The value in the map is the +// alias used to import the property's value or values. +func (this ForgeFedFilesAddedPropertyIterator) JSONLDContext() map[string]string { + m := map[string]string{"https://forgefed.peers.community/ns": this.alias} + var child map[string]string + + /* + Since the literal maps in this function are determined at + code-generation time, this loop should not overwrite an existing key with a + new value. + */ + for k, v := range child { + m[k] = v + } + return m +} + +// KindIndex computes an arbitrary value for indexing this kind of value. This is +// a leaky API detail only for folks looking to replace the go-fed +// implementation. Applications should not use this method. +func (this ForgeFedFilesAddedPropertyIterator) KindIndex() int { + if this.IsXMLSchemaString() { + return 0 + } + if this.IsIRI() { + return -2 + } + return -1 +} + +// LessThan compares two instances of this property with an arbitrary but stable +// comparison. Applications should not use this because it is only meant to +// help alternative implementations to go-fed to be able to normalize +// nonfunctional properties. +func (this ForgeFedFilesAddedPropertyIterator) LessThan(o vocab.ForgeFedFilesAddedPropertyIterator) bool { + // LessThan comparison for if either or both are IRIs. + if this.IsIRI() && o.IsIRI() { + return this.iri.String() < o.GetIRI().String() + } else if this.IsIRI() { + // IRIs are always less than other values, none, or unknowns + return true + } else if o.IsIRI() { + // This other, none, or unknown value is always greater than IRIs + return false + } + // LessThan comparison for the single value or unknown value. + if !this.IsXMLSchemaString() && !o.IsXMLSchemaString() { + // Both are unknowns. + return false + } else if this.IsXMLSchemaString() && !o.IsXMLSchemaString() { + // Values are always greater than unknown values. + return false + } else if !this.IsXMLSchemaString() && o.IsXMLSchemaString() { + // Unknowns are always less than known values. + return true + } else { + // Actual comparison. + return string1.LessString(this.Get(), o.Get()) + } +} + +// Name returns the name of this property: "ForgeFedFilesAdded". +func (this ForgeFedFilesAddedPropertyIterator) Name() string { + if len(this.alias) > 0 { + return this.alias + ":" + "ForgeFedFilesAdded" + } else { + return "ForgeFedFilesAdded" + } +} + +// Next returns the next iterator, or nil if there is no next iterator. +func (this ForgeFedFilesAddedPropertyIterator) Next() vocab.ForgeFedFilesAddedPropertyIterator { + if this.myIdx+1 >= this.parent.Len() { + return nil + } else { + return this.parent.At(this.myIdx + 1) + } +} + +// Prev returns the previous iterator, or nil if there is no previous iterator. +func (this ForgeFedFilesAddedPropertyIterator) Prev() vocab.ForgeFedFilesAddedPropertyIterator { + if this.myIdx-1 < 0 { + return nil + } else { + return this.parent.At(this.myIdx - 1) + } +} + +// Set sets the value of this property. Calling IsXMLSchemaString afterwards will +// return true. +func (this *ForgeFedFilesAddedPropertyIterator) Set(v string) { + this.clear() + this.xmlschemaStringMember = v + this.hasStringMember = true +} + +// SetIRI sets the value of this property. Calling IsIRI afterwards will return +// true. +func (this *ForgeFedFilesAddedPropertyIterator) SetIRI(v *url.URL) { + this.clear() + this.iri = v +} + +// clear ensures no value of this property is set. Calling IsXMLSchemaString +// afterwards will return false. +func (this *ForgeFedFilesAddedPropertyIterator) clear() { + this.unknown = nil + this.iri = nil + this.hasStringMember = false +} + +// serialize converts this into an interface representation suitable for +// marshalling into a text or binary format. Applications should not need this +// function as most typical use cases serialize types instead of individual +// properties. It is exposed for alternatives to go-fed implementations to use. +func (this ForgeFedFilesAddedPropertyIterator) serialize() (interface{}, error) { + if this.IsXMLSchemaString() { + return string1.SerializeString(this.Get()) + } else if this.IsIRI() { + return this.iri.String(), nil + } + return this.unknown, nil +} + +// ForgeFedFilesAddedProperty is the non-functional property "filesAdded". It is +// permitted to have one or more values, and of different value types. +type ForgeFedFilesAddedProperty struct { + properties []*ForgeFedFilesAddedPropertyIterator + alias string +} + +// DeserializeFilesAddedProperty creates a "filesAdded" property from an interface +// representation that has been unmarshalled from a text or binary format. +func DeserializeFilesAddedProperty(m map[string]interface{}, aliasMap map[string]string) (vocab.ForgeFedFilesAddedProperty, error) { + alias := "" + if a, ok := aliasMap["https://forgefed.peers.community/ns"]; ok { + alias = a + } + propName := "filesAdded" + if len(alias) > 0 { + propName = fmt.Sprintf("%s:%s", alias, "filesAdded") + } + i, ok := m[propName] + + if ok { + this := &ForgeFedFilesAddedProperty{ + alias: alias, + properties: []*ForgeFedFilesAddedPropertyIterator{}, + } + if list, ok := i.([]interface{}); ok { + for _, iterator := range list { + if p, err := deserializeForgeFedFilesAddedPropertyIterator(iterator, aliasMap); err != nil { + return this, err + } else if p != nil { + this.properties = append(this.properties, p) + } + } + } else { + if p, err := deserializeForgeFedFilesAddedPropertyIterator(i, aliasMap); err != nil { + return this, err + } else if p != nil { + this.properties = append(this.properties, p) + } + } + // Set up the properties for iteration. + for idx, ele := range this.properties { + ele.parent = this + ele.myIdx = idx + } + return this, nil + } + return nil, nil +} + +// NewForgeFedFilesAddedProperty creates a new filesAdded property. +func NewForgeFedFilesAddedProperty() *ForgeFedFilesAddedProperty { + return &ForgeFedFilesAddedProperty{alias: ""} +} + +// AppendIRI appends an IRI value to the back of a list of the property +// "filesAdded" +func (this *ForgeFedFilesAddedProperty) AppendIRI(v *url.URL) { + this.properties = append(this.properties, &ForgeFedFilesAddedPropertyIterator{ + alias: this.alias, + iri: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendXMLSchemaString appends a string value to the back of a list of the +// property "filesAdded". Invalidates iterators that are traversing using Prev. +func (this *ForgeFedFilesAddedProperty) AppendXMLSchemaString(v string) { + this.properties = append(this.properties, &ForgeFedFilesAddedPropertyIterator{ + alias: this.alias, + hasStringMember: true, + myIdx: this.Len(), + parent: this, + xmlschemaStringMember: v, + }) +} + +// At returns the property value for the specified index. Panics if the index is +// out of bounds. +func (this ForgeFedFilesAddedProperty) At(index int) vocab.ForgeFedFilesAddedPropertyIterator { + return this.properties[index] +} + +// Begin returns the first iterator, or nil if empty. Can be used with the +// iterator's Next method and this property's End method to iterate from front +// to back through all values. +func (this ForgeFedFilesAddedProperty) Begin() vocab.ForgeFedFilesAddedPropertyIterator { + if this.Empty() { + return nil + } else { + return this.properties[0] + } +} + +// Empty returns returns true if there are no elements. +func (this ForgeFedFilesAddedProperty) Empty() bool { + return this.Len() == 0 +} + +// End returns beyond-the-last iterator, which is nil. Can be used with the +// iterator's Next method and this property's Begin method to iterate from +// front to back through all values. +func (this ForgeFedFilesAddedProperty) End() vocab.ForgeFedFilesAddedPropertyIterator { + return nil +} + +// Insert inserts an IRI value at the specified index for a property "filesAdded". +// Existing elements at that index and higher are shifted back once. +// Invalidates all iterators. +func (this *ForgeFedFilesAddedProperty) InsertIRI(idx int, v *url.URL) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ForgeFedFilesAddedPropertyIterator{ + alias: this.alias, + iri: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertXMLSchemaString inserts a string value at the specified index for a +// property "filesAdded". Existing elements at that index and higher are +// shifted back once. Invalidates all iterators. +func (this *ForgeFedFilesAddedProperty) InsertXMLSchemaString(idx int, v string) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ForgeFedFilesAddedPropertyIterator{ + alias: this.alias, + hasStringMember: true, + myIdx: idx, + parent: this, + xmlschemaStringMember: v, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// JSONLDContext returns the JSONLD URIs required in the context string for this +// property and the specific values that are set. The value in the map is the +// alias used to import the property's value or values. +func (this ForgeFedFilesAddedProperty) JSONLDContext() map[string]string { + m := map[string]string{"https://forgefed.peers.community/ns": this.alias} + for _, elem := range this.properties { + child := elem.JSONLDContext() + /* + Since the literal maps in this function are determined at + code-generation time, this loop should not overwrite an existing key with a + new value. + */ + for k, v := range child { + m[k] = v + } + } + return m +} + +// KindIndex computes an arbitrary value for indexing this kind of value. This is +// a leaky API method specifically needed only for alternate implementations +// for go-fed. Applications should not use this method. Panics if the index is +// out of bounds. +func (this ForgeFedFilesAddedProperty) KindIndex(idx int) int { + return this.properties[idx].KindIndex() +} + +// Len returns the number of values that exist for the "filesAdded" property. +func (this ForgeFedFilesAddedProperty) Len() (length int) { + return len(this.properties) +} + +// Less computes whether another property is less than this one. Mixing types +// results in a consistent but arbitrary ordering +func (this ForgeFedFilesAddedProperty) Less(i, j int) bool { + idx1 := this.KindIndex(i) + idx2 := this.KindIndex(j) + if idx1 < idx2 { + return true + } else if idx1 == idx2 { + if idx1 == 0 { + lhs := this.properties[i].Get() + rhs := this.properties[j].Get() + return string1.LessString(lhs, rhs) + } else if idx1 == -2 { + lhs := this.properties[i].GetIRI() + rhs := this.properties[j].GetIRI() + return lhs.String() < rhs.String() + } + } + return false +} + +// LessThan compares two instances of this property with an arbitrary but stable +// comparison. Applications should not use this because it is only meant to +// help alternative implementations to go-fed to be able to normalize +// nonfunctional properties. +func (this ForgeFedFilesAddedProperty) LessThan(o vocab.ForgeFedFilesAddedProperty) bool { + l1 := this.Len() + l2 := o.Len() + l := l1 + if l2 < l1 { + l = l2 + } + for i := 0; i < l; i++ { + if this.properties[i].LessThan(o.At(i)) { + return true + } else if o.At(i).LessThan(this.properties[i]) { + return false + } + } + return l1 < l2 +} + +// Name returns the name of this property ("filesAdded") with any alias. +func (this ForgeFedFilesAddedProperty) Name() string { + if len(this.alias) > 0 { + return this.alias + ":" + "filesAdded" + } else { + return "filesAdded" + } +} + +// PrependIRI prepends an IRI value to the front of a list of the property +// "filesAdded". +func (this *ForgeFedFilesAddedProperty) PrependIRI(v *url.URL) { + this.properties = append([]*ForgeFedFilesAddedPropertyIterator{{ + alias: this.alias, + iri: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependXMLSchemaString prepends a string value to the front of a list of the +// property "filesAdded". Invalidates all iterators. +func (this *ForgeFedFilesAddedProperty) PrependXMLSchemaString(v string) { + this.properties = append([]*ForgeFedFilesAddedPropertyIterator{{ + alias: this.alias, + hasStringMember: true, + myIdx: 0, + parent: this, + xmlschemaStringMember: v, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// Remove deletes an element at the specified index from a list of the property +// "filesAdded", regardless of its type. Panics if the index is out of bounds. +// Invalidates all iterators. +func (this *ForgeFedFilesAddedProperty) Remove(idx int) { + (this.properties)[idx].parent = nil + copy((this.properties)[idx:], (this.properties)[idx+1:]) + (this.properties)[len(this.properties)-1] = &ForgeFedFilesAddedPropertyIterator{} + this.properties = (this.properties)[:len(this.properties)-1] + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// Serialize converts this into an interface representation suitable for +// marshalling into a text or binary format. Applications should not need this +// function as most typical use cases serialize types instead of individual +// properties. It is exposed for alternatives to go-fed implementations to use. +func (this ForgeFedFilesAddedProperty) Serialize() (interface{}, error) { + s := make([]interface{}, 0, len(this.properties)) + for _, iterator := range this.properties { + if b, err := iterator.serialize(); err != nil { + return s, err + } else { + s = append(s, b) + } + } + // Shortcut: if serializing one value, don't return an array -- pretty sure other Fediverse software would choke on a "type" value with array, for example. + if len(s) == 1 { + return s[0], nil + } + return s, nil +} + +// Set sets a string value to be at the specified index for the property +// "filesAdded". Panics if the index is out of bounds. Invalidates all +// iterators. +func (this *ForgeFedFilesAddedProperty) Set(idx int, v string) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ForgeFedFilesAddedPropertyIterator{ + alias: this.alias, + hasStringMember: true, + myIdx: idx, + parent: this, + xmlschemaStringMember: v, + } +} + +// SetIRI sets an IRI value to be at the specified index for the property +// "filesAdded". Panics if the index is out of bounds. +func (this *ForgeFedFilesAddedProperty) SetIRI(idx int, v *url.URL) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ForgeFedFilesAddedPropertyIterator{ + alias: this.alias, + iri: v, + myIdx: idx, + parent: this, + } +} + +// Swap swaps the location of values at two indices for the "filesAdded" property. +func (this ForgeFedFilesAddedProperty) Swap(i, j int) { + this.properties[i], this.properties[j] = this.properties[j], this.properties[i] +} diff --git a/streams/impl/forgefed/property_filesmodified/gen_doc.go b/streams/impl/forgefed/property_filesmodified/gen_doc.go new file mode 100644 index 0000000..1a1e972 --- /dev/null +++ b/streams/impl/forgefed/property_filesmodified/gen_doc.go @@ -0,0 +1,17 @@ +// Code generated by astool. DO NOT EDIT. + +// Package propertyfilesmodified contains the implementation for the filesModified +// property. All applications are strongly encouraged to use the interface +// instead of this concrete definition. The interfaces allow applications to +// consume only the types and properties needed and be independent of the +// go-fed implementation if another alternative implementation is created. +// This package is code-generated and subject to the same license as the +// go-fed tool used to generate it. +// +// This package is independent of other types' and properties' implementations +// by having a Manager injected into it to act as a factory for the concrete +// implementations. The implementations have been generated into their own +// separate subpackages for each vocabulary. +// +// Strongly consider using the interfaces instead of this package. +package propertyfilesmodified diff --git a/streams/impl/forgefed/property_filesmodified/gen_pkg.go b/streams/impl/forgefed/property_filesmodified/gen_pkg.go new file mode 100644 index 0000000..e8e2adf --- /dev/null +++ b/streams/impl/forgefed/property_filesmodified/gen_pkg.go @@ -0,0 +1,15 @@ +// Code generated by astool. DO NOT EDIT. + +package propertyfilesmodified + +var mgr privateManager + +// privateManager abstracts the code-generated manager that provides access to +// concrete implementations. +type privateManager interface{} + +// SetManager sets the manager package-global variable. For internal use only, do +// not use as part of Application behavior. Must be called at golang init time. +func SetManager(m privateManager) { + mgr = m +} diff --git a/streams/impl/forgefed/property_filesmodified/gen_property_forgefed_filesModified.go b/streams/impl/forgefed/property_filesmodified/gen_property_forgefed_filesModified.go new file mode 100644 index 0000000..a0537d1 --- /dev/null +++ b/streams/impl/forgefed/property_filesmodified/gen_property_forgefed_filesModified.go @@ -0,0 +1,535 @@ +// Code generated by astool. DO NOT EDIT. + +package propertyfilesmodified + +import ( + "fmt" + string1 "github.com/go-fed/activity/streams/values/string" + vocab "github.com/go-fed/activity/streams/vocab" + "net/url" +) + +// ForgeFedFilesModifiedPropertyIterator is an iterator for a property. It is +// permitted to be a single default-valued value type. +type ForgeFedFilesModifiedPropertyIterator struct { + xmlschemaStringMember string + hasStringMember bool + unknown interface{} + iri *url.URL + alias string + myIdx int + parent vocab.ForgeFedFilesModifiedProperty +} + +// NewForgeFedFilesModifiedPropertyIterator creates a new ForgeFedFilesModified +// property. +func NewForgeFedFilesModifiedPropertyIterator() *ForgeFedFilesModifiedPropertyIterator { + return &ForgeFedFilesModifiedPropertyIterator{alias: ""} +} + +// deserializeForgeFedFilesModifiedPropertyIterator creates an iterator from an +// element that has been unmarshalled from a text or binary format. +func deserializeForgeFedFilesModifiedPropertyIterator(i interface{}, aliasMap map[string]string) (*ForgeFedFilesModifiedPropertyIterator, error) { + alias := "" + if a, ok := aliasMap["https://forgefed.peers.community/ns"]; ok { + alias = a + } + if s, ok := i.(string); ok { + u, err := url.Parse(s) + // If error exists, don't error out -- skip this and treat as unknown string ([]byte) at worst + // Also, if no scheme exists, don't treat it as a URL -- net/url is greedy + if err == nil && len(u.Scheme) > 0 { + this := &ForgeFedFilesModifiedPropertyIterator{ + alias: alias, + iri: u, + } + return this, nil + } + } + if v, err := string1.DeserializeString(i); err == nil { + this := &ForgeFedFilesModifiedPropertyIterator{ + alias: alias, + hasStringMember: true, + xmlschemaStringMember: v, + } + return this, nil + } + this := &ForgeFedFilesModifiedPropertyIterator{ + alias: alias, + unknown: i, + } + return this, nil +} + +// Get returns the value of this property. When IsXMLSchemaString returns false, +// Get will return any arbitrary value. +func (this ForgeFedFilesModifiedPropertyIterator) Get() string { + return this.xmlschemaStringMember +} + +// GetIRI returns the IRI of this property. When IsIRI returns false, GetIRI will +// return any arbitrary value. +func (this ForgeFedFilesModifiedPropertyIterator) GetIRI() *url.URL { + return this.iri +} + +// HasAny returns true if the value or IRI is set. +func (this ForgeFedFilesModifiedPropertyIterator) HasAny() bool { + return this.IsXMLSchemaString() || this.iri != nil +} + +// IsIRI returns true if this property is an IRI. +func (this ForgeFedFilesModifiedPropertyIterator) IsIRI() bool { + return this.iri != nil +} + +// IsXMLSchemaString returns true if this property is set and not an IRI. +func (this ForgeFedFilesModifiedPropertyIterator) IsXMLSchemaString() bool { + return this.hasStringMember +} + +// JSONLDContext returns the JSONLD URIs required in the context string for this +// property and the specific values that are set. The value in the map is the +// alias used to import the property's value or values. +func (this ForgeFedFilesModifiedPropertyIterator) JSONLDContext() map[string]string { + m := map[string]string{"https://forgefed.peers.community/ns": this.alias} + var child map[string]string + + /* + Since the literal maps in this function are determined at + code-generation time, this loop should not overwrite an existing key with a + new value. + */ + for k, v := range child { + m[k] = v + } + return m +} + +// KindIndex computes an arbitrary value for indexing this kind of value. This is +// a leaky API detail only for folks looking to replace the go-fed +// implementation. Applications should not use this method. +func (this ForgeFedFilesModifiedPropertyIterator) KindIndex() int { + if this.IsXMLSchemaString() { + return 0 + } + if this.IsIRI() { + return -2 + } + return -1 +} + +// LessThan compares two instances of this property with an arbitrary but stable +// comparison. Applications should not use this because it is only meant to +// help alternative implementations to go-fed to be able to normalize +// nonfunctional properties. +func (this ForgeFedFilesModifiedPropertyIterator) LessThan(o vocab.ForgeFedFilesModifiedPropertyIterator) bool { + // LessThan comparison for if either or both are IRIs. + if this.IsIRI() && o.IsIRI() { + return this.iri.String() < o.GetIRI().String() + } else if this.IsIRI() { + // IRIs are always less than other values, none, or unknowns + return true + } else if o.IsIRI() { + // This other, none, or unknown value is always greater than IRIs + return false + } + // LessThan comparison for the single value or unknown value. + if !this.IsXMLSchemaString() && !o.IsXMLSchemaString() { + // Both are unknowns. + return false + } else if this.IsXMLSchemaString() && !o.IsXMLSchemaString() { + // Values are always greater than unknown values. + return false + } else if !this.IsXMLSchemaString() && o.IsXMLSchemaString() { + // Unknowns are always less than known values. + return true + } else { + // Actual comparison. + return string1.LessString(this.Get(), o.Get()) + } +} + +// Name returns the name of this property: "ForgeFedFilesModified". +func (this ForgeFedFilesModifiedPropertyIterator) Name() string { + if len(this.alias) > 0 { + return this.alias + ":" + "ForgeFedFilesModified" + } else { + return "ForgeFedFilesModified" + } +} + +// Next returns the next iterator, or nil if there is no next iterator. +func (this ForgeFedFilesModifiedPropertyIterator) Next() vocab.ForgeFedFilesModifiedPropertyIterator { + if this.myIdx+1 >= this.parent.Len() { + return nil + } else { + return this.parent.At(this.myIdx + 1) + } +} + +// Prev returns the previous iterator, or nil if there is no previous iterator. +func (this ForgeFedFilesModifiedPropertyIterator) Prev() vocab.ForgeFedFilesModifiedPropertyIterator { + if this.myIdx-1 < 0 { + return nil + } else { + return this.parent.At(this.myIdx - 1) + } +} + +// Set sets the value of this property. Calling IsXMLSchemaString afterwards will +// return true. +func (this *ForgeFedFilesModifiedPropertyIterator) Set(v string) { + this.clear() + this.xmlschemaStringMember = v + this.hasStringMember = true +} + +// SetIRI sets the value of this property. Calling IsIRI afterwards will return +// true. +func (this *ForgeFedFilesModifiedPropertyIterator) SetIRI(v *url.URL) { + this.clear() + this.iri = v +} + +// clear ensures no value of this property is set. Calling IsXMLSchemaString +// afterwards will return false. +func (this *ForgeFedFilesModifiedPropertyIterator) clear() { + this.unknown = nil + this.iri = nil + this.hasStringMember = false +} + +// serialize converts this into an interface representation suitable for +// marshalling into a text or binary format. Applications should not need this +// function as most typical use cases serialize types instead of individual +// properties. It is exposed for alternatives to go-fed implementations to use. +func (this ForgeFedFilesModifiedPropertyIterator) serialize() (interface{}, error) { + if this.IsXMLSchemaString() { + return string1.SerializeString(this.Get()) + } else if this.IsIRI() { + return this.iri.String(), nil + } + return this.unknown, nil +} + +// ForgeFedFilesModifiedProperty is the non-functional property "filesModified". +// It is permitted to have one or more values, and of different value types. +type ForgeFedFilesModifiedProperty struct { + properties []*ForgeFedFilesModifiedPropertyIterator + alias string +} + +// DeserializeFilesModifiedProperty creates a "filesModified" property from an +// interface representation that has been unmarshalled from a text or binary +// format. +func DeserializeFilesModifiedProperty(m map[string]interface{}, aliasMap map[string]string) (vocab.ForgeFedFilesModifiedProperty, error) { + alias := "" + if a, ok := aliasMap["https://forgefed.peers.community/ns"]; ok { + alias = a + } + propName := "filesModified" + if len(alias) > 0 { + propName = fmt.Sprintf("%s:%s", alias, "filesModified") + } + i, ok := m[propName] + + if ok { + this := &ForgeFedFilesModifiedProperty{ + alias: alias, + properties: []*ForgeFedFilesModifiedPropertyIterator{}, + } + if list, ok := i.([]interface{}); ok { + for _, iterator := range list { + if p, err := deserializeForgeFedFilesModifiedPropertyIterator(iterator, aliasMap); err != nil { + return this, err + } else if p != nil { + this.properties = append(this.properties, p) + } + } + } else { + if p, err := deserializeForgeFedFilesModifiedPropertyIterator(i, aliasMap); err != nil { + return this, err + } else if p != nil { + this.properties = append(this.properties, p) + } + } + // Set up the properties for iteration. + for idx, ele := range this.properties { + ele.parent = this + ele.myIdx = idx + } + return this, nil + } + return nil, nil +} + +// NewForgeFedFilesModifiedProperty creates a new filesModified property. +func NewForgeFedFilesModifiedProperty() *ForgeFedFilesModifiedProperty { + return &ForgeFedFilesModifiedProperty{alias: ""} +} + +// AppendIRI appends an IRI value to the back of a list of the property +// "filesModified" +func (this *ForgeFedFilesModifiedProperty) AppendIRI(v *url.URL) { + this.properties = append(this.properties, &ForgeFedFilesModifiedPropertyIterator{ + alias: this.alias, + iri: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendXMLSchemaString appends a string value to the back of a list of the +// property "filesModified". Invalidates iterators that are traversing using +// Prev. +func (this *ForgeFedFilesModifiedProperty) AppendXMLSchemaString(v string) { + this.properties = append(this.properties, &ForgeFedFilesModifiedPropertyIterator{ + alias: this.alias, + hasStringMember: true, + myIdx: this.Len(), + parent: this, + xmlschemaStringMember: v, + }) +} + +// At returns the property value for the specified index. Panics if the index is +// out of bounds. +func (this ForgeFedFilesModifiedProperty) At(index int) vocab.ForgeFedFilesModifiedPropertyIterator { + return this.properties[index] +} + +// Begin returns the first iterator, or nil if empty. Can be used with the +// iterator's Next method and this property's End method to iterate from front +// to back through all values. +func (this ForgeFedFilesModifiedProperty) Begin() vocab.ForgeFedFilesModifiedPropertyIterator { + if this.Empty() { + return nil + } else { + return this.properties[0] + } +} + +// Empty returns returns true if there are no elements. +func (this ForgeFedFilesModifiedProperty) Empty() bool { + return this.Len() == 0 +} + +// End returns beyond-the-last iterator, which is nil. Can be used with the +// iterator's Next method and this property's Begin method to iterate from +// front to back through all values. +func (this ForgeFedFilesModifiedProperty) End() vocab.ForgeFedFilesModifiedPropertyIterator { + return nil +} + +// Insert inserts an IRI value at the specified index for a property +// "filesModified". Existing elements at that index and higher are shifted +// back once. Invalidates all iterators. +func (this *ForgeFedFilesModifiedProperty) InsertIRI(idx int, v *url.URL) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ForgeFedFilesModifiedPropertyIterator{ + alias: this.alias, + iri: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertXMLSchemaString inserts a string value at the specified index for a +// property "filesModified". Existing elements at that index and higher are +// shifted back once. Invalidates all iterators. +func (this *ForgeFedFilesModifiedProperty) InsertXMLSchemaString(idx int, v string) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ForgeFedFilesModifiedPropertyIterator{ + alias: this.alias, + hasStringMember: true, + myIdx: idx, + parent: this, + xmlschemaStringMember: v, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// JSONLDContext returns the JSONLD URIs required in the context string for this +// property and the specific values that are set. The value in the map is the +// alias used to import the property's value or values. +func (this ForgeFedFilesModifiedProperty) JSONLDContext() map[string]string { + m := map[string]string{"https://forgefed.peers.community/ns": this.alias} + for _, elem := range this.properties { + child := elem.JSONLDContext() + /* + Since the literal maps in this function are determined at + code-generation time, this loop should not overwrite an existing key with a + new value. + */ + for k, v := range child { + m[k] = v + } + } + return m +} + +// KindIndex computes an arbitrary value for indexing this kind of value. This is +// a leaky API method specifically needed only for alternate implementations +// for go-fed. Applications should not use this method. Panics if the index is +// out of bounds. +func (this ForgeFedFilesModifiedProperty) KindIndex(idx int) int { + return this.properties[idx].KindIndex() +} + +// Len returns the number of values that exist for the "filesModified" property. +func (this ForgeFedFilesModifiedProperty) Len() (length int) { + return len(this.properties) +} + +// Less computes whether another property is less than this one. Mixing types +// results in a consistent but arbitrary ordering +func (this ForgeFedFilesModifiedProperty) Less(i, j int) bool { + idx1 := this.KindIndex(i) + idx2 := this.KindIndex(j) + if idx1 < idx2 { + return true + } else if idx1 == idx2 { + if idx1 == 0 { + lhs := this.properties[i].Get() + rhs := this.properties[j].Get() + return string1.LessString(lhs, rhs) + } else if idx1 == -2 { + lhs := this.properties[i].GetIRI() + rhs := this.properties[j].GetIRI() + return lhs.String() < rhs.String() + } + } + return false +} + +// LessThan compares two instances of this property with an arbitrary but stable +// comparison. Applications should not use this because it is only meant to +// help alternative implementations to go-fed to be able to normalize +// nonfunctional properties. +func (this ForgeFedFilesModifiedProperty) LessThan(o vocab.ForgeFedFilesModifiedProperty) bool { + l1 := this.Len() + l2 := o.Len() + l := l1 + if l2 < l1 { + l = l2 + } + for i := 0; i < l; i++ { + if this.properties[i].LessThan(o.At(i)) { + return true + } else if o.At(i).LessThan(this.properties[i]) { + return false + } + } + return l1 < l2 +} + +// Name returns the name of this property ("filesModified") with any alias. +func (this ForgeFedFilesModifiedProperty) Name() string { + if len(this.alias) > 0 { + return this.alias + ":" + "filesModified" + } else { + return "filesModified" + } +} + +// PrependIRI prepends an IRI value to the front of a list of the property +// "filesModified". +func (this *ForgeFedFilesModifiedProperty) PrependIRI(v *url.URL) { + this.properties = append([]*ForgeFedFilesModifiedPropertyIterator{{ + alias: this.alias, + iri: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependXMLSchemaString prepends a string value to the front of a list of the +// property "filesModified". Invalidates all iterators. +func (this *ForgeFedFilesModifiedProperty) PrependXMLSchemaString(v string) { + this.properties = append([]*ForgeFedFilesModifiedPropertyIterator{{ + alias: this.alias, + hasStringMember: true, + myIdx: 0, + parent: this, + xmlschemaStringMember: v, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// Remove deletes an element at the specified index from a list of the property +// "filesModified", regardless of its type. Panics if the index is out of +// bounds. Invalidates all iterators. +func (this *ForgeFedFilesModifiedProperty) Remove(idx int) { + (this.properties)[idx].parent = nil + copy((this.properties)[idx:], (this.properties)[idx+1:]) + (this.properties)[len(this.properties)-1] = &ForgeFedFilesModifiedPropertyIterator{} + this.properties = (this.properties)[:len(this.properties)-1] + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// Serialize converts this into an interface representation suitable for +// marshalling into a text or binary format. Applications should not need this +// function as most typical use cases serialize types instead of individual +// properties. It is exposed for alternatives to go-fed implementations to use. +func (this ForgeFedFilesModifiedProperty) Serialize() (interface{}, error) { + s := make([]interface{}, 0, len(this.properties)) + for _, iterator := range this.properties { + if b, err := iterator.serialize(); err != nil { + return s, err + } else { + s = append(s, b) + } + } + // Shortcut: if serializing one value, don't return an array -- pretty sure other Fediverse software would choke on a "type" value with array, for example. + if len(s) == 1 { + return s[0], nil + } + return s, nil +} + +// Set sets a string value to be at the specified index for the property +// "filesModified". Panics if the index is out of bounds. Invalidates all +// iterators. +func (this *ForgeFedFilesModifiedProperty) Set(idx int, v string) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ForgeFedFilesModifiedPropertyIterator{ + alias: this.alias, + hasStringMember: true, + myIdx: idx, + parent: this, + xmlschemaStringMember: v, + } +} + +// SetIRI sets an IRI value to be at the specified index for the property +// "filesModified". Panics if the index is out of bounds. +func (this *ForgeFedFilesModifiedProperty) SetIRI(idx int, v *url.URL) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ForgeFedFilesModifiedPropertyIterator{ + alias: this.alias, + iri: v, + myIdx: idx, + parent: this, + } +} + +// Swap swaps the location of values at two indices for the "filesModified" +// property. +func (this ForgeFedFilesModifiedProperty) Swap(i, j int) { + this.properties[i], this.properties[j] = this.properties[j], this.properties[i] +} diff --git a/streams/impl/forgefed/property_filesremoved/gen_doc.go b/streams/impl/forgefed/property_filesremoved/gen_doc.go new file mode 100644 index 0000000..b7a0f32 --- /dev/null +++ b/streams/impl/forgefed/property_filesremoved/gen_doc.go @@ -0,0 +1,17 @@ +// Code generated by astool. DO NOT EDIT. + +// Package propertyfilesremoved contains the implementation for the filesRemoved +// property. All applications are strongly encouraged to use the interface +// instead of this concrete definition. The interfaces allow applications to +// consume only the types and properties needed and be independent of the +// go-fed implementation if another alternative implementation is created. +// This package is code-generated and subject to the same license as the +// go-fed tool used to generate it. +// +// This package is independent of other types' and properties' implementations +// by having a Manager injected into it to act as a factory for the concrete +// implementations. The implementations have been generated into their own +// separate subpackages for each vocabulary. +// +// Strongly consider using the interfaces instead of this package. +package propertyfilesremoved diff --git a/streams/impl/forgefed/property_filesremoved/gen_pkg.go b/streams/impl/forgefed/property_filesremoved/gen_pkg.go new file mode 100644 index 0000000..c0b64e6 --- /dev/null +++ b/streams/impl/forgefed/property_filesremoved/gen_pkg.go @@ -0,0 +1,15 @@ +// Code generated by astool. DO NOT EDIT. + +package propertyfilesremoved + +var mgr privateManager + +// privateManager abstracts the code-generated manager that provides access to +// concrete implementations. +type privateManager interface{} + +// SetManager sets the manager package-global variable. For internal use only, do +// not use as part of Application behavior. Must be called at golang init time. +func SetManager(m privateManager) { + mgr = m +} diff --git a/streams/impl/forgefed/property_filesremoved/gen_property_forgefed_filesRemoved.go b/streams/impl/forgefed/property_filesremoved/gen_property_forgefed_filesRemoved.go new file mode 100644 index 0000000..48478c1 --- /dev/null +++ b/streams/impl/forgefed/property_filesremoved/gen_property_forgefed_filesRemoved.go @@ -0,0 +1,535 @@ +// Code generated by astool. DO NOT EDIT. + +package propertyfilesremoved + +import ( + "fmt" + string1 "github.com/go-fed/activity/streams/values/string" + vocab "github.com/go-fed/activity/streams/vocab" + "net/url" +) + +// ForgeFedFilesRemovedPropertyIterator is an iterator for a property. It is +// permitted to be a single default-valued value type. +type ForgeFedFilesRemovedPropertyIterator struct { + xmlschemaStringMember string + hasStringMember bool + unknown interface{} + iri *url.URL + alias string + myIdx int + parent vocab.ForgeFedFilesRemovedProperty +} + +// NewForgeFedFilesRemovedPropertyIterator creates a new ForgeFedFilesRemoved +// property. +func NewForgeFedFilesRemovedPropertyIterator() *ForgeFedFilesRemovedPropertyIterator { + return &ForgeFedFilesRemovedPropertyIterator{alias: ""} +} + +// deserializeForgeFedFilesRemovedPropertyIterator creates an iterator from an +// element that has been unmarshalled from a text or binary format. +func deserializeForgeFedFilesRemovedPropertyIterator(i interface{}, aliasMap map[string]string) (*ForgeFedFilesRemovedPropertyIterator, error) { + alias := "" + if a, ok := aliasMap["https://forgefed.peers.community/ns"]; ok { + alias = a + } + if s, ok := i.(string); ok { + u, err := url.Parse(s) + // If error exists, don't error out -- skip this and treat as unknown string ([]byte) at worst + // Also, if no scheme exists, don't treat it as a URL -- net/url is greedy + if err == nil && len(u.Scheme) > 0 { + this := &ForgeFedFilesRemovedPropertyIterator{ + alias: alias, + iri: u, + } + return this, nil + } + } + if v, err := string1.DeserializeString(i); err == nil { + this := &ForgeFedFilesRemovedPropertyIterator{ + alias: alias, + hasStringMember: true, + xmlschemaStringMember: v, + } + return this, nil + } + this := &ForgeFedFilesRemovedPropertyIterator{ + alias: alias, + unknown: i, + } + return this, nil +} + +// Get returns the value of this property. When IsXMLSchemaString returns false, +// Get will return any arbitrary value. +func (this ForgeFedFilesRemovedPropertyIterator) Get() string { + return this.xmlschemaStringMember +} + +// GetIRI returns the IRI of this property. When IsIRI returns false, GetIRI will +// return any arbitrary value. +func (this ForgeFedFilesRemovedPropertyIterator) GetIRI() *url.URL { + return this.iri +} + +// HasAny returns true if the value or IRI is set. +func (this ForgeFedFilesRemovedPropertyIterator) HasAny() bool { + return this.IsXMLSchemaString() || this.iri != nil +} + +// IsIRI returns true if this property is an IRI. +func (this ForgeFedFilesRemovedPropertyIterator) IsIRI() bool { + return this.iri != nil +} + +// IsXMLSchemaString returns true if this property is set and not an IRI. +func (this ForgeFedFilesRemovedPropertyIterator) IsXMLSchemaString() bool { + return this.hasStringMember +} + +// JSONLDContext returns the JSONLD URIs required in the context string for this +// property and the specific values that are set. The value in the map is the +// alias used to import the property's value or values. +func (this ForgeFedFilesRemovedPropertyIterator) JSONLDContext() map[string]string { + m := map[string]string{"https://forgefed.peers.community/ns": this.alias} + var child map[string]string + + /* + Since the literal maps in this function are determined at + code-generation time, this loop should not overwrite an existing key with a + new value. + */ + for k, v := range child { + m[k] = v + } + return m +} + +// KindIndex computes an arbitrary value for indexing this kind of value. This is +// a leaky API detail only for folks looking to replace the go-fed +// implementation. Applications should not use this method. +func (this ForgeFedFilesRemovedPropertyIterator) KindIndex() int { + if this.IsXMLSchemaString() { + return 0 + } + if this.IsIRI() { + return -2 + } + return -1 +} + +// LessThan compares two instances of this property with an arbitrary but stable +// comparison. Applications should not use this because it is only meant to +// help alternative implementations to go-fed to be able to normalize +// nonfunctional properties. +func (this ForgeFedFilesRemovedPropertyIterator) LessThan(o vocab.ForgeFedFilesRemovedPropertyIterator) bool { + // LessThan comparison for if either or both are IRIs. + if this.IsIRI() && o.IsIRI() { + return this.iri.String() < o.GetIRI().String() + } else if this.IsIRI() { + // IRIs are always less than other values, none, or unknowns + return true + } else if o.IsIRI() { + // This other, none, or unknown value is always greater than IRIs + return false + } + // LessThan comparison for the single value or unknown value. + if !this.IsXMLSchemaString() && !o.IsXMLSchemaString() { + // Both are unknowns. + return false + } else if this.IsXMLSchemaString() && !o.IsXMLSchemaString() { + // Values are always greater than unknown values. + return false + } else if !this.IsXMLSchemaString() && o.IsXMLSchemaString() { + // Unknowns are always less than known values. + return true + } else { + // Actual comparison. + return string1.LessString(this.Get(), o.Get()) + } +} + +// Name returns the name of this property: "ForgeFedFilesRemoved". +func (this ForgeFedFilesRemovedPropertyIterator) Name() string { + if len(this.alias) > 0 { + return this.alias + ":" + "ForgeFedFilesRemoved" + } else { + return "ForgeFedFilesRemoved" + } +} + +// Next returns the next iterator, or nil if there is no next iterator. +func (this ForgeFedFilesRemovedPropertyIterator) Next() vocab.ForgeFedFilesRemovedPropertyIterator { + if this.myIdx+1 >= this.parent.Len() { + return nil + } else { + return this.parent.At(this.myIdx + 1) + } +} + +// Prev returns the previous iterator, or nil if there is no previous iterator. +func (this ForgeFedFilesRemovedPropertyIterator) Prev() vocab.ForgeFedFilesRemovedPropertyIterator { + if this.myIdx-1 < 0 { + return nil + } else { + return this.parent.At(this.myIdx - 1) + } +} + +// Set sets the value of this property. Calling IsXMLSchemaString afterwards will +// return true. +func (this *ForgeFedFilesRemovedPropertyIterator) Set(v string) { + this.clear() + this.xmlschemaStringMember = v + this.hasStringMember = true +} + +// SetIRI sets the value of this property. Calling IsIRI afterwards will return +// true. +func (this *ForgeFedFilesRemovedPropertyIterator) SetIRI(v *url.URL) { + this.clear() + this.iri = v +} + +// clear ensures no value of this property is set. Calling IsXMLSchemaString +// afterwards will return false. +func (this *ForgeFedFilesRemovedPropertyIterator) clear() { + this.unknown = nil + this.iri = nil + this.hasStringMember = false +} + +// serialize converts this into an interface representation suitable for +// marshalling into a text or binary format. Applications should not need this +// function as most typical use cases serialize types instead of individual +// properties. It is exposed for alternatives to go-fed implementations to use. +func (this ForgeFedFilesRemovedPropertyIterator) serialize() (interface{}, error) { + if this.IsXMLSchemaString() { + return string1.SerializeString(this.Get()) + } else if this.IsIRI() { + return this.iri.String(), nil + } + return this.unknown, nil +} + +// ForgeFedFilesRemovedProperty is the non-functional property "filesRemoved". It +// is permitted to have one or more values, and of different value types. +type ForgeFedFilesRemovedProperty struct { + properties []*ForgeFedFilesRemovedPropertyIterator + alias string +} + +// DeserializeFilesRemovedProperty creates a "filesRemoved" property from an +// interface representation that has been unmarshalled from a text or binary +// format. +func DeserializeFilesRemovedProperty(m map[string]interface{}, aliasMap map[string]string) (vocab.ForgeFedFilesRemovedProperty, error) { + alias := "" + if a, ok := aliasMap["https://forgefed.peers.community/ns"]; ok { + alias = a + } + propName := "filesRemoved" + if len(alias) > 0 { + propName = fmt.Sprintf("%s:%s", alias, "filesRemoved") + } + i, ok := m[propName] + + if ok { + this := &ForgeFedFilesRemovedProperty{ + alias: alias, + properties: []*ForgeFedFilesRemovedPropertyIterator{}, + } + if list, ok := i.([]interface{}); ok { + for _, iterator := range list { + if p, err := deserializeForgeFedFilesRemovedPropertyIterator(iterator, aliasMap); err != nil { + return this, err + } else if p != nil { + this.properties = append(this.properties, p) + } + } + } else { + if p, err := deserializeForgeFedFilesRemovedPropertyIterator(i, aliasMap); err != nil { + return this, err + } else if p != nil { + this.properties = append(this.properties, p) + } + } + // Set up the properties for iteration. + for idx, ele := range this.properties { + ele.parent = this + ele.myIdx = idx + } + return this, nil + } + return nil, nil +} + +// NewForgeFedFilesRemovedProperty creates a new filesRemoved property. +func NewForgeFedFilesRemovedProperty() *ForgeFedFilesRemovedProperty { + return &ForgeFedFilesRemovedProperty{alias: ""} +} + +// AppendIRI appends an IRI value to the back of a list of the property +// "filesRemoved" +func (this *ForgeFedFilesRemovedProperty) AppendIRI(v *url.URL) { + this.properties = append(this.properties, &ForgeFedFilesRemovedPropertyIterator{ + alias: this.alias, + iri: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendXMLSchemaString appends a string value to the back of a list of the +// property "filesRemoved". Invalidates iterators that are traversing using +// Prev. +func (this *ForgeFedFilesRemovedProperty) AppendXMLSchemaString(v string) { + this.properties = append(this.properties, &ForgeFedFilesRemovedPropertyIterator{ + alias: this.alias, + hasStringMember: true, + myIdx: this.Len(), + parent: this, + xmlschemaStringMember: v, + }) +} + +// At returns the property value for the specified index. Panics if the index is +// out of bounds. +func (this ForgeFedFilesRemovedProperty) At(index int) vocab.ForgeFedFilesRemovedPropertyIterator { + return this.properties[index] +} + +// Begin returns the first iterator, or nil if empty. Can be used with the +// iterator's Next method and this property's End method to iterate from front +// to back through all values. +func (this ForgeFedFilesRemovedProperty) Begin() vocab.ForgeFedFilesRemovedPropertyIterator { + if this.Empty() { + return nil + } else { + return this.properties[0] + } +} + +// Empty returns returns true if there are no elements. +func (this ForgeFedFilesRemovedProperty) Empty() bool { + return this.Len() == 0 +} + +// End returns beyond-the-last iterator, which is nil. Can be used with the +// iterator's Next method and this property's Begin method to iterate from +// front to back through all values. +func (this ForgeFedFilesRemovedProperty) End() vocab.ForgeFedFilesRemovedPropertyIterator { + return nil +} + +// Insert inserts an IRI value at the specified index for a property +// "filesRemoved". Existing elements at that index and higher are shifted back +// once. Invalidates all iterators. +func (this *ForgeFedFilesRemovedProperty) InsertIRI(idx int, v *url.URL) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ForgeFedFilesRemovedPropertyIterator{ + alias: this.alias, + iri: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertXMLSchemaString inserts a string value at the specified index for a +// property "filesRemoved". Existing elements at that index and higher are +// shifted back once. Invalidates all iterators. +func (this *ForgeFedFilesRemovedProperty) InsertXMLSchemaString(idx int, v string) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ForgeFedFilesRemovedPropertyIterator{ + alias: this.alias, + hasStringMember: true, + myIdx: idx, + parent: this, + xmlschemaStringMember: v, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// JSONLDContext returns the JSONLD URIs required in the context string for this +// property and the specific values that are set. The value in the map is the +// alias used to import the property's value or values. +func (this ForgeFedFilesRemovedProperty) JSONLDContext() map[string]string { + m := map[string]string{"https://forgefed.peers.community/ns": this.alias} + for _, elem := range this.properties { + child := elem.JSONLDContext() + /* + Since the literal maps in this function are determined at + code-generation time, this loop should not overwrite an existing key with a + new value. + */ + for k, v := range child { + m[k] = v + } + } + return m +} + +// KindIndex computes an arbitrary value for indexing this kind of value. This is +// a leaky API method specifically needed only for alternate implementations +// for go-fed. Applications should not use this method. Panics if the index is +// out of bounds. +func (this ForgeFedFilesRemovedProperty) KindIndex(idx int) int { + return this.properties[idx].KindIndex() +} + +// Len returns the number of values that exist for the "filesRemoved" property. +func (this ForgeFedFilesRemovedProperty) Len() (length int) { + return len(this.properties) +} + +// Less computes whether another property is less than this one. Mixing types +// results in a consistent but arbitrary ordering +func (this ForgeFedFilesRemovedProperty) Less(i, j int) bool { + idx1 := this.KindIndex(i) + idx2 := this.KindIndex(j) + if idx1 < idx2 { + return true + } else if idx1 == idx2 { + if idx1 == 0 { + lhs := this.properties[i].Get() + rhs := this.properties[j].Get() + return string1.LessString(lhs, rhs) + } else if idx1 == -2 { + lhs := this.properties[i].GetIRI() + rhs := this.properties[j].GetIRI() + return lhs.String() < rhs.String() + } + } + return false +} + +// LessThan compares two instances of this property with an arbitrary but stable +// comparison. Applications should not use this because it is only meant to +// help alternative implementations to go-fed to be able to normalize +// nonfunctional properties. +func (this ForgeFedFilesRemovedProperty) LessThan(o vocab.ForgeFedFilesRemovedProperty) bool { + l1 := this.Len() + l2 := o.Len() + l := l1 + if l2 < l1 { + l = l2 + } + for i := 0; i < l; i++ { + if this.properties[i].LessThan(o.At(i)) { + return true + } else if o.At(i).LessThan(this.properties[i]) { + return false + } + } + return l1 < l2 +} + +// Name returns the name of this property ("filesRemoved") with any alias. +func (this ForgeFedFilesRemovedProperty) Name() string { + if len(this.alias) > 0 { + return this.alias + ":" + "filesRemoved" + } else { + return "filesRemoved" + } +} + +// PrependIRI prepends an IRI value to the front of a list of the property +// "filesRemoved". +func (this *ForgeFedFilesRemovedProperty) PrependIRI(v *url.URL) { + this.properties = append([]*ForgeFedFilesRemovedPropertyIterator{{ + alias: this.alias, + iri: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependXMLSchemaString prepends a string value to the front of a list of the +// property "filesRemoved". Invalidates all iterators. +func (this *ForgeFedFilesRemovedProperty) PrependXMLSchemaString(v string) { + this.properties = append([]*ForgeFedFilesRemovedPropertyIterator{{ + alias: this.alias, + hasStringMember: true, + myIdx: 0, + parent: this, + xmlschemaStringMember: v, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// Remove deletes an element at the specified index from a list of the property +// "filesRemoved", regardless of its type. Panics if the index is out of +// bounds. Invalidates all iterators. +func (this *ForgeFedFilesRemovedProperty) Remove(idx int) { + (this.properties)[idx].parent = nil + copy((this.properties)[idx:], (this.properties)[idx+1:]) + (this.properties)[len(this.properties)-1] = &ForgeFedFilesRemovedPropertyIterator{} + this.properties = (this.properties)[:len(this.properties)-1] + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// Serialize converts this into an interface representation suitable for +// marshalling into a text or binary format. Applications should not need this +// function as most typical use cases serialize types instead of individual +// properties. It is exposed for alternatives to go-fed implementations to use. +func (this ForgeFedFilesRemovedProperty) Serialize() (interface{}, error) { + s := make([]interface{}, 0, len(this.properties)) + for _, iterator := range this.properties { + if b, err := iterator.serialize(); err != nil { + return s, err + } else { + s = append(s, b) + } + } + // Shortcut: if serializing one value, don't return an array -- pretty sure other Fediverse software would choke on a "type" value with array, for example. + if len(s) == 1 { + return s[0], nil + } + return s, nil +} + +// Set sets a string value to be at the specified index for the property +// "filesRemoved". Panics if the index is out of bounds. Invalidates all +// iterators. +func (this *ForgeFedFilesRemovedProperty) Set(idx int, v string) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ForgeFedFilesRemovedPropertyIterator{ + alias: this.alias, + hasStringMember: true, + myIdx: idx, + parent: this, + xmlschemaStringMember: v, + } +} + +// SetIRI sets an IRI value to be at the specified index for the property +// "filesRemoved". Panics if the index is out of bounds. +func (this *ForgeFedFilesRemovedProperty) SetIRI(idx int, v *url.URL) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ForgeFedFilesRemovedPropertyIterator{ + alias: this.alias, + iri: v, + myIdx: idx, + parent: this, + } +} + +// Swap swaps the location of values at two indices for the "filesRemoved" +// property. +func (this ForgeFedFilesRemovedProperty) Swap(i, j int) { + this.properties[i], this.properties[j] = this.properties[j], this.properties[i] +} diff --git a/streams/impl/forgefed/property_forks/gen_doc.go b/streams/impl/forgefed/property_forks/gen_doc.go new file mode 100644 index 0000000..b78bc1d --- /dev/null +++ b/streams/impl/forgefed/property_forks/gen_doc.go @@ -0,0 +1,17 @@ +// Code generated by astool. DO NOT EDIT. + +// Package propertyforks contains the implementation for the forks property. All +// applications are strongly encouraged to use the interface instead of this +// concrete definition. The interfaces allow applications to consume only the +// types and properties needed and be independent of the go-fed implementation +// if another alternative implementation is created. This package is +// code-generated and subject to the same license as the go-fed tool used to +// generate it. +// +// This package is independent of other types' and properties' implementations +// by having a Manager injected into it to act as a factory for the concrete +// implementations. The implementations have been generated into their own +// separate subpackages for each vocabulary. +// +// Strongly consider using the interfaces instead of this package. +package propertyforks diff --git a/streams/impl/forgefed/property_forks/gen_pkg.go b/streams/impl/forgefed/property_forks/gen_pkg.go new file mode 100644 index 0000000..dae869a --- /dev/null +++ b/streams/impl/forgefed/property_forks/gen_pkg.go @@ -0,0 +1,27 @@ +// Code generated by astool. DO NOT EDIT. + +package propertyforks + +import vocab "github.com/go-fed/activity/streams/vocab" + +var mgr privateManager + +// privateManager abstracts the code-generated manager that provides access to +// concrete implementations. +type privateManager interface { + // DeserializeOrderedCollectionActivityStreams returns the deserialization + // method for the "ActivityStreamsOrderedCollection" non-functional + // property in the vocabulary "ActivityStreams" + DeserializeOrderedCollectionActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsOrderedCollection, error) + // DeserializeOrderedCollectionPageActivityStreams returns the + // deserialization method for the + // "ActivityStreamsOrderedCollectionPage" non-functional property in + // the vocabulary "ActivityStreams" + DeserializeOrderedCollectionPageActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsOrderedCollectionPage, error) +} + +// SetManager sets the manager package-global variable. For internal use only, do +// not use as part of Application behavior. Must be called at golang init time. +func SetManager(m privateManager) { + mgr = m +} diff --git a/streams/impl/forgefed/property_forks/gen_property_forgefed_forks.go b/streams/impl/forgefed/property_forks/gen_property_forgefed_forks.go new file mode 100644 index 0000000..adc5bcb --- /dev/null +++ b/streams/impl/forgefed/property_forks/gen_property_forgefed_forks.go @@ -0,0 +1,268 @@ +// Code generated by astool. DO NOT EDIT. + +package propertyforks + +import ( + "fmt" + vocab "github.com/go-fed/activity/streams/vocab" + "net/url" +) + +// ForgeFedForksProperty is the functional property "forks". It is permitted to be +// one of multiple value types. At most, one type of value can be present, or +// none at all. Setting a value will clear the other types of values so that +// only one of the 'Is' methods will return true. It is possible to clear all +// values, so that this property is empty. +type ForgeFedForksProperty struct { + activitystreamsOrderedCollectionMember vocab.ActivityStreamsOrderedCollection + activitystreamsOrderedCollectionPageMember vocab.ActivityStreamsOrderedCollectionPage + unknown interface{} + iri *url.URL + alias string +} + +// DeserializeForksProperty creates a "forks" property from an interface +// representation that has been unmarshalled from a text or binary format. +func DeserializeForksProperty(m map[string]interface{}, aliasMap map[string]string) (*ForgeFedForksProperty, error) { + alias := "" + if a, ok := aliasMap["https://forgefed.peers.community/ns"]; ok { + alias = a + } + propName := "forks" + if len(alias) > 0 { + // Use alias both to find the property, and set within the property. + propName = fmt.Sprintf("%s:%s", alias, "forks") + } + i, ok := m[propName] + + if ok { + if s, ok := i.(string); ok { + u, err := url.Parse(s) + // If error exists, don't error out -- skip this and treat as unknown string ([]byte) at worst + // Also, if no scheme exists, don't treat it as a URL -- net/url is greedy + if err == nil && len(u.Scheme) > 0 { + this := &ForgeFedForksProperty{ + alias: alias, + iri: u, + } + return this, nil + } + } + if m, ok := i.(map[string]interface{}); ok { + if v, err := mgr.DeserializeOrderedCollectionActivityStreams()(m, aliasMap); err == nil { + this := &ForgeFedForksProperty{ + activitystreamsOrderedCollectionMember: v, + alias: alias, + } + return this, nil + } else if v, err := mgr.DeserializeOrderedCollectionPageActivityStreams()(m, aliasMap); err == nil { + this := &ForgeFedForksProperty{ + activitystreamsOrderedCollectionPageMember: v, + alias: alias, + } + return this, nil + } + } + this := &ForgeFedForksProperty{ + alias: alias, + unknown: i, + } + return this, nil + } + return nil, nil +} + +// NewForgeFedForksProperty creates a new forks property. +func NewForgeFedForksProperty() *ForgeFedForksProperty { + return &ForgeFedForksProperty{alias: ""} +} + +// Clear ensures no value of this property is set. Calling HasAny or any of the +// 'Is' methods afterwards will return false. +func (this *ForgeFedForksProperty) Clear() { + this.activitystreamsOrderedCollectionMember = nil + this.activitystreamsOrderedCollectionPageMember = nil + this.unknown = nil + this.iri = nil +} + +// GetActivityStreamsOrderedCollection returns the value of this property. When +// IsActivityStreamsOrderedCollection returns false, +// GetActivityStreamsOrderedCollection will return an arbitrary value. +func (this ForgeFedForksProperty) GetActivityStreamsOrderedCollection() vocab.ActivityStreamsOrderedCollection { + return this.activitystreamsOrderedCollectionMember +} + +// GetActivityStreamsOrderedCollectionPage returns the value of this property. +// When IsActivityStreamsOrderedCollectionPage returns false, +// GetActivityStreamsOrderedCollectionPage will return an arbitrary value. +func (this ForgeFedForksProperty) GetActivityStreamsOrderedCollectionPage() vocab.ActivityStreamsOrderedCollectionPage { + return this.activitystreamsOrderedCollectionPageMember +} + +// GetIRI returns the IRI of this property. When IsIRI returns false, GetIRI will +// return an arbitrary value. +func (this ForgeFedForksProperty) GetIRI() *url.URL { + return this.iri +} + +// GetType returns the value in this property as a Type. Returns nil if the value +// is not an ActivityStreams type, such as an IRI or another value. +func (this ForgeFedForksProperty) GetType() vocab.Type { + if this.IsActivityStreamsOrderedCollection() { + return this.GetActivityStreamsOrderedCollection() + } + if this.IsActivityStreamsOrderedCollectionPage() { + return this.GetActivityStreamsOrderedCollectionPage() + } + + return nil +} + +// HasAny returns true if any of the different values is set. +func (this ForgeFedForksProperty) HasAny() bool { + return this.IsActivityStreamsOrderedCollection() || + this.IsActivityStreamsOrderedCollectionPage() || + this.iri != nil +} + +// IsActivityStreamsOrderedCollection returns true if this property has a type of +// "OrderedCollection". When true, use the GetActivityStreamsOrderedCollection +// and SetActivityStreamsOrderedCollection methods to access and set this +// property. +func (this ForgeFedForksProperty) IsActivityStreamsOrderedCollection() bool { + return this.activitystreamsOrderedCollectionMember != nil +} + +// IsActivityStreamsOrderedCollectionPage returns true if this property has a type +// of "OrderedCollectionPage". When true, use the +// GetActivityStreamsOrderedCollectionPage and +// SetActivityStreamsOrderedCollectionPage methods to access and set this +// property. +func (this ForgeFedForksProperty) IsActivityStreamsOrderedCollectionPage() bool { + return this.activitystreamsOrderedCollectionPageMember != nil +} + +// IsIRI returns true if this property is an IRI. When true, use GetIRI and SetIRI +// to access and set this property +func (this ForgeFedForksProperty) IsIRI() bool { + return this.iri != nil +} + +// JSONLDContext returns the JSONLD URIs required in the context string for this +// property and the specific values that are set. The value in the map is the +// alias used to import the property's value or values. +func (this ForgeFedForksProperty) JSONLDContext() map[string]string { + m := map[string]string{"https://forgefed.peers.community/ns": this.alias} + var child map[string]string + if this.IsActivityStreamsOrderedCollection() { + child = this.GetActivityStreamsOrderedCollection().JSONLDContext() + } else if this.IsActivityStreamsOrderedCollectionPage() { + child = this.GetActivityStreamsOrderedCollectionPage().JSONLDContext() + } + /* + Since the literal maps in this function are determined at + code-generation time, this loop should not overwrite an existing key with a + new value. + */ + for k, v := range child { + m[k] = v + } + return m +} + +// KindIndex computes an arbitrary value for indexing this kind of value. This is +// a leaky API detail only for folks looking to replace the go-fed +// implementation. Applications should not use this method. +func (this ForgeFedForksProperty) KindIndex() int { + if this.IsActivityStreamsOrderedCollection() { + return 0 + } + if this.IsActivityStreamsOrderedCollectionPage() { + return 1 + } + if this.IsIRI() { + return -2 + } + return -1 +} + +// LessThan compares two instances of this property with an arbitrary but stable +// comparison. Applications should not use this because it is only meant to +// help alternative implementations to go-fed to be able to normalize +// nonfunctional properties. +func (this ForgeFedForksProperty) LessThan(o vocab.ForgeFedForksProperty) bool { + idx1 := this.KindIndex() + idx2 := o.KindIndex() + if idx1 < idx2 { + return true + } else if idx1 > idx2 { + return false + } else if this.IsActivityStreamsOrderedCollection() { + return this.GetActivityStreamsOrderedCollection().LessThan(o.GetActivityStreamsOrderedCollection()) + } else if this.IsActivityStreamsOrderedCollectionPage() { + return this.GetActivityStreamsOrderedCollectionPage().LessThan(o.GetActivityStreamsOrderedCollectionPage()) + } else if this.IsIRI() { + return this.iri.String() < o.GetIRI().String() + } + return false +} + +// Name returns the name of this property: "forks". +func (this ForgeFedForksProperty) Name() string { + if len(this.alias) > 0 { + return this.alias + ":" + "forks" + } else { + return "forks" + } +} + +// Serialize converts this into an interface representation suitable for +// marshalling into a text or binary format. Applications should not need this +// function as most typical use cases serialize types instead of individual +// properties. It is exposed for alternatives to go-fed implementations to use. +func (this ForgeFedForksProperty) Serialize() (interface{}, error) { + if this.IsActivityStreamsOrderedCollection() { + return this.GetActivityStreamsOrderedCollection().Serialize() + } else if this.IsActivityStreamsOrderedCollectionPage() { + return this.GetActivityStreamsOrderedCollectionPage().Serialize() + } else if this.IsIRI() { + return this.iri.String(), nil + } + return this.unknown, nil +} + +// SetActivityStreamsOrderedCollection sets the value of this property. Calling +// IsActivityStreamsOrderedCollection afterwards returns true. +func (this *ForgeFedForksProperty) SetActivityStreamsOrderedCollection(v vocab.ActivityStreamsOrderedCollection) { + this.Clear() + this.activitystreamsOrderedCollectionMember = v +} + +// SetActivityStreamsOrderedCollectionPage sets the value of this property. +// Calling IsActivityStreamsOrderedCollectionPage afterwards returns true. +func (this *ForgeFedForksProperty) SetActivityStreamsOrderedCollectionPage(v vocab.ActivityStreamsOrderedCollectionPage) { + this.Clear() + this.activitystreamsOrderedCollectionPageMember = v +} + +// SetIRI sets the value of this property. Calling IsIRI afterwards returns true. +func (this *ForgeFedForksProperty) SetIRI(v *url.URL) { + this.Clear() + this.iri = v +} + +// SetType attempts to set the property for the arbitrary type. Returns an error +// if it is not a valid type to set on this property. +func (this *ForgeFedForksProperty) SetType(t vocab.Type) error { + if v, ok := t.(vocab.ActivityStreamsOrderedCollection); ok { + this.SetActivityStreamsOrderedCollection(v) + return nil + } + if v, ok := t.(vocab.ActivityStreamsOrderedCollectionPage); ok { + this.SetActivityStreamsOrderedCollectionPage(v) + return nil + } + + return fmt.Errorf("illegal type to set on forks property: %T", t) +} diff --git a/streams/impl/forgefed/property_hash/gen_doc.go b/streams/impl/forgefed/property_hash/gen_doc.go new file mode 100644 index 0000000..b2b3cf1 --- /dev/null +++ b/streams/impl/forgefed/property_hash/gen_doc.go @@ -0,0 +1,17 @@ +// Code generated by astool. DO NOT EDIT. + +// Package propertyhash contains the implementation for the hash property. All +// applications are strongly encouraged to use the interface instead of this +// concrete definition. The interfaces allow applications to consume only the +// types and properties needed and be independent of the go-fed implementation +// if another alternative implementation is created. This package is +// code-generated and subject to the same license as the go-fed tool used to +// generate it. +// +// This package is independent of other types' and properties' implementations +// by having a Manager injected into it to act as a factory for the concrete +// implementations. The implementations have been generated into their own +// separate subpackages for each vocabulary. +// +// Strongly consider using the interfaces instead of this package. +package propertyhash diff --git a/streams/impl/forgefed/property_hash/gen_pkg.go b/streams/impl/forgefed/property_hash/gen_pkg.go new file mode 100644 index 0000000..b0d3d5e --- /dev/null +++ b/streams/impl/forgefed/property_hash/gen_pkg.go @@ -0,0 +1,15 @@ +// Code generated by astool. DO NOT EDIT. + +package propertyhash + +var mgr privateManager + +// privateManager abstracts the code-generated manager that provides access to +// concrete implementations. +type privateManager interface{} + +// SetManager sets the manager package-global variable. For internal use only, do +// not use as part of Application behavior. Must be called at golang init time. +func SetManager(m privateManager) { + mgr = m +} diff --git a/streams/impl/forgefed/property_hash/gen_property_forgefed_hash.go b/streams/impl/forgefed/property_hash/gen_property_forgefed_hash.go new file mode 100644 index 0000000..cae2c47 --- /dev/null +++ b/streams/impl/forgefed/property_hash/gen_property_forgefed_hash.go @@ -0,0 +1,203 @@ +// Code generated by astool. DO NOT EDIT. + +package propertyhash + +import ( + "fmt" + string1 "github.com/go-fed/activity/streams/values/string" + vocab "github.com/go-fed/activity/streams/vocab" + "net/url" +) + +// ForgeFedHashProperty is the functional property "hash". It is permitted to be a +// single default-valued value type. +type ForgeFedHashProperty struct { + xmlschemaStringMember string + hasStringMember bool + unknown interface{} + iri *url.URL + alias string +} + +// DeserializeHashProperty creates a "hash" property from an interface +// representation that has been unmarshalled from a text or binary format. +func DeserializeHashProperty(m map[string]interface{}, aliasMap map[string]string) (*ForgeFedHashProperty, error) { + alias := "" + if a, ok := aliasMap["https://forgefed.peers.community/ns"]; ok { + alias = a + } + propName := "hash" + if len(alias) > 0 { + // Use alias both to find the property, and set within the property. + propName = fmt.Sprintf("%s:%s", alias, "hash") + } + i, ok := m[propName] + + if ok { + if s, ok := i.(string); ok { + u, err := url.Parse(s) + // If error exists, don't error out -- skip this and treat as unknown string ([]byte) at worst + // Also, if no scheme exists, don't treat it as a URL -- net/url is greedy + if err == nil && len(u.Scheme) > 0 { + this := &ForgeFedHashProperty{ + alias: alias, + iri: u, + } + return this, nil + } + } + if v, err := string1.DeserializeString(i); err == nil { + this := &ForgeFedHashProperty{ + alias: alias, + hasStringMember: true, + xmlschemaStringMember: v, + } + return this, nil + } + this := &ForgeFedHashProperty{ + alias: alias, + unknown: i, + } + return this, nil + } + return nil, nil +} + +// NewForgeFedHashProperty creates a new hash property. +func NewForgeFedHashProperty() *ForgeFedHashProperty { + return &ForgeFedHashProperty{alias: ""} +} + +// Clear ensures no value of this property is set. Calling IsXMLSchemaString +// afterwards will return false. +func (this *ForgeFedHashProperty) Clear() { + this.unknown = nil + this.iri = nil + this.hasStringMember = false +} + +// Get returns the value of this property. When IsXMLSchemaString returns false, +// Get will return any arbitrary value. +func (this ForgeFedHashProperty) Get() string { + return this.xmlschemaStringMember +} + +// GetIRI returns the IRI of this property. When IsIRI returns false, GetIRI will +// return any arbitrary value. +func (this ForgeFedHashProperty) GetIRI() *url.URL { + return this.iri +} + +// HasAny returns true if the value or IRI is set. +func (this ForgeFedHashProperty) HasAny() bool { + return this.IsXMLSchemaString() || this.iri != nil +} + +// IsIRI returns true if this property is an IRI. +func (this ForgeFedHashProperty) IsIRI() bool { + return this.iri != nil +} + +// IsXMLSchemaString returns true if this property is set and not an IRI. +func (this ForgeFedHashProperty) IsXMLSchemaString() bool { + return this.hasStringMember +} + +// JSONLDContext returns the JSONLD URIs required in the context string for this +// property and the specific values that are set. The value in the map is the +// alias used to import the property's value or values. +func (this ForgeFedHashProperty) JSONLDContext() map[string]string { + m := map[string]string{"https://forgefed.peers.community/ns": this.alias} + var child map[string]string + + /* + Since the literal maps in this function are determined at + code-generation time, this loop should not overwrite an existing key with a + new value. + */ + for k, v := range child { + m[k] = v + } + return m +} + +// KindIndex computes an arbitrary value for indexing this kind of value. This is +// a leaky API detail only for folks looking to replace the go-fed +// implementation. Applications should not use this method. +func (this ForgeFedHashProperty) KindIndex() int { + if this.IsXMLSchemaString() { + return 0 + } + if this.IsIRI() { + return -2 + } + return -1 +} + +// LessThan compares two instances of this property with an arbitrary but stable +// comparison. Applications should not use this because it is only meant to +// help alternative implementations to go-fed to be able to normalize +// nonfunctional properties. +func (this ForgeFedHashProperty) LessThan(o vocab.ForgeFedHashProperty) bool { + // LessThan comparison for if either or both are IRIs. + if this.IsIRI() && o.IsIRI() { + return this.iri.String() < o.GetIRI().String() + } else if this.IsIRI() { + // IRIs are always less than other values, none, or unknowns + return true + } else if o.IsIRI() { + // This other, none, or unknown value is always greater than IRIs + return false + } + // LessThan comparison for the single value or unknown value. + if !this.IsXMLSchemaString() && !o.IsXMLSchemaString() { + // Both are unknowns. + return false + } else if this.IsXMLSchemaString() && !o.IsXMLSchemaString() { + // Values are always greater than unknown values. + return false + } else if !this.IsXMLSchemaString() && o.IsXMLSchemaString() { + // Unknowns are always less than known values. + return true + } else { + // Actual comparison. + return string1.LessString(this.Get(), o.Get()) + } +} + +// Name returns the name of this property: "hash". +func (this ForgeFedHashProperty) Name() string { + if len(this.alias) > 0 { + return this.alias + ":" + "hash" + } else { + return "hash" + } +} + +// Serialize converts this into an interface representation suitable for +// marshalling into a text or binary format. Applications should not need this +// function as most typical use cases serialize types instead of individual +// properties. It is exposed for alternatives to go-fed implementations to use. +func (this ForgeFedHashProperty) Serialize() (interface{}, error) { + if this.IsXMLSchemaString() { + return string1.SerializeString(this.Get()) + } else if this.IsIRI() { + return this.iri.String(), nil + } + return this.unknown, nil +} + +// Set sets the value of this property. Calling IsXMLSchemaString afterwards will +// return true. +func (this *ForgeFedHashProperty) Set(v string) { + this.Clear() + this.xmlschemaStringMember = v + this.hasStringMember = true +} + +// SetIRI sets the value of this property. Calling IsIRI afterwards will return +// true. +func (this *ForgeFedHashProperty) SetIRI(v *url.URL) { + this.Clear() + this.iri = v +} diff --git a/streams/impl/forgefed/property_isresolved/gen_doc.go b/streams/impl/forgefed/property_isresolved/gen_doc.go new file mode 100644 index 0000000..bd88e00 --- /dev/null +++ b/streams/impl/forgefed/property_isresolved/gen_doc.go @@ -0,0 +1,17 @@ +// Code generated by astool. DO NOT EDIT. + +// Package propertyisresolved contains the implementation for the isResolved +// property. All applications are strongly encouraged to use the interface +// instead of this concrete definition. The interfaces allow applications to +// consume only the types and properties needed and be independent of the +// go-fed implementation if another alternative implementation is created. +// This package is code-generated and subject to the same license as the +// go-fed tool used to generate it. +// +// This package is independent of other types' and properties' implementations +// by having a Manager injected into it to act as a factory for the concrete +// implementations. The implementations have been generated into their own +// separate subpackages for each vocabulary. +// +// Strongly consider using the interfaces instead of this package. +package propertyisresolved diff --git a/streams/impl/forgefed/property_isresolved/gen_pkg.go b/streams/impl/forgefed/property_isresolved/gen_pkg.go new file mode 100644 index 0000000..33f271d --- /dev/null +++ b/streams/impl/forgefed/property_isresolved/gen_pkg.go @@ -0,0 +1,15 @@ +// Code generated by astool. DO NOT EDIT. + +package propertyisresolved + +var mgr privateManager + +// privateManager abstracts the code-generated manager that provides access to +// concrete implementations. +type privateManager interface{} + +// SetManager sets the manager package-global variable. For internal use only, do +// not use as part of Application behavior. Must be called at golang init time. +func SetManager(m privateManager) { + mgr = m +} diff --git a/streams/impl/forgefed/property_isresolved/gen_property_forgefed_isResolved.go b/streams/impl/forgefed/property_isresolved/gen_property_forgefed_isResolved.go new file mode 100644 index 0000000..625fcb9 --- /dev/null +++ b/streams/impl/forgefed/property_isresolved/gen_property_forgefed_isResolved.go @@ -0,0 +1,203 @@ +// Code generated by astool. DO NOT EDIT. + +package propertyisresolved + +import ( + "fmt" + boolean "github.com/go-fed/activity/streams/values/boolean" + vocab "github.com/go-fed/activity/streams/vocab" + "net/url" +) + +// ForgeFedIsResolvedProperty is the functional property "isResolved". It is +// permitted to be a single default-valued value type. +type ForgeFedIsResolvedProperty struct { + xmlschemaBooleanMember bool + hasBooleanMember bool + unknown interface{} + iri *url.URL + alias string +} + +// DeserializeIsResolvedProperty creates a "isResolved" property from an interface +// representation that has been unmarshalled from a text or binary format. +func DeserializeIsResolvedProperty(m map[string]interface{}, aliasMap map[string]string) (*ForgeFedIsResolvedProperty, error) { + alias := "" + if a, ok := aliasMap["https://forgefed.peers.community/ns"]; ok { + alias = a + } + propName := "isResolved" + if len(alias) > 0 { + // Use alias both to find the property, and set within the property. + propName = fmt.Sprintf("%s:%s", alias, "isResolved") + } + i, ok := m[propName] + + if ok { + if s, ok := i.(string); ok { + u, err := url.Parse(s) + // If error exists, don't error out -- skip this and treat as unknown string ([]byte) at worst + // Also, if no scheme exists, don't treat it as a URL -- net/url is greedy + if err == nil && len(u.Scheme) > 0 { + this := &ForgeFedIsResolvedProperty{ + alias: alias, + iri: u, + } + return this, nil + } + } + if v, err := boolean.DeserializeBoolean(i); err == nil { + this := &ForgeFedIsResolvedProperty{ + alias: alias, + hasBooleanMember: true, + xmlschemaBooleanMember: v, + } + return this, nil + } + this := &ForgeFedIsResolvedProperty{ + alias: alias, + unknown: i, + } + return this, nil + } + return nil, nil +} + +// NewForgeFedIsResolvedProperty creates a new isResolved property. +func NewForgeFedIsResolvedProperty() *ForgeFedIsResolvedProperty { + return &ForgeFedIsResolvedProperty{alias: ""} +} + +// Clear ensures no value of this property is set. Calling IsXMLSchemaBoolean +// afterwards will return false. +func (this *ForgeFedIsResolvedProperty) Clear() { + this.unknown = nil + this.iri = nil + this.hasBooleanMember = false +} + +// Get returns the value of this property. When IsXMLSchemaBoolean returns false, +// Get will return any arbitrary value. +func (this ForgeFedIsResolvedProperty) Get() bool { + return this.xmlschemaBooleanMember +} + +// GetIRI returns the IRI of this property. When IsIRI returns false, GetIRI will +// return any arbitrary value. +func (this ForgeFedIsResolvedProperty) GetIRI() *url.URL { + return this.iri +} + +// HasAny returns true if the value or IRI is set. +func (this ForgeFedIsResolvedProperty) HasAny() bool { + return this.IsXMLSchemaBoolean() || this.iri != nil +} + +// IsIRI returns true if this property is an IRI. +func (this ForgeFedIsResolvedProperty) IsIRI() bool { + return this.iri != nil +} + +// IsXMLSchemaBoolean returns true if this property is set and not an IRI. +func (this ForgeFedIsResolvedProperty) IsXMLSchemaBoolean() bool { + return this.hasBooleanMember +} + +// JSONLDContext returns the JSONLD URIs required in the context string for this +// property and the specific values that are set. The value in the map is the +// alias used to import the property's value or values. +func (this ForgeFedIsResolvedProperty) JSONLDContext() map[string]string { + m := map[string]string{"https://forgefed.peers.community/ns": this.alias} + var child map[string]string + + /* + Since the literal maps in this function are determined at + code-generation time, this loop should not overwrite an existing key with a + new value. + */ + for k, v := range child { + m[k] = v + } + return m +} + +// KindIndex computes an arbitrary value for indexing this kind of value. This is +// a leaky API detail only for folks looking to replace the go-fed +// implementation. Applications should not use this method. +func (this ForgeFedIsResolvedProperty) KindIndex() int { + if this.IsXMLSchemaBoolean() { + return 0 + } + if this.IsIRI() { + return -2 + } + return -1 +} + +// LessThan compares two instances of this property with an arbitrary but stable +// comparison. Applications should not use this because it is only meant to +// help alternative implementations to go-fed to be able to normalize +// nonfunctional properties. +func (this ForgeFedIsResolvedProperty) LessThan(o vocab.ForgeFedIsResolvedProperty) bool { + // LessThan comparison for if either or both are IRIs. + if this.IsIRI() && o.IsIRI() { + return this.iri.String() < o.GetIRI().String() + } else if this.IsIRI() { + // IRIs are always less than other values, none, or unknowns + return true + } else if o.IsIRI() { + // This other, none, or unknown value is always greater than IRIs + return false + } + // LessThan comparison for the single value or unknown value. + if !this.IsXMLSchemaBoolean() && !o.IsXMLSchemaBoolean() { + // Both are unknowns. + return false + } else if this.IsXMLSchemaBoolean() && !o.IsXMLSchemaBoolean() { + // Values are always greater than unknown values. + return false + } else if !this.IsXMLSchemaBoolean() && o.IsXMLSchemaBoolean() { + // Unknowns are always less than known values. + return true + } else { + // Actual comparison. + return boolean.LessBoolean(this.Get(), o.Get()) + } +} + +// Name returns the name of this property: "isResolved". +func (this ForgeFedIsResolvedProperty) Name() string { + if len(this.alias) > 0 { + return this.alias + ":" + "isResolved" + } else { + return "isResolved" + } +} + +// Serialize converts this into an interface representation suitable for +// marshalling into a text or binary format. Applications should not need this +// function as most typical use cases serialize types instead of individual +// properties. It is exposed for alternatives to go-fed implementations to use. +func (this ForgeFedIsResolvedProperty) Serialize() (interface{}, error) { + if this.IsXMLSchemaBoolean() { + return boolean.SerializeBoolean(this.Get()) + } else if this.IsIRI() { + return this.iri.String(), nil + } + return this.unknown, nil +} + +// Set sets the value of this property. Calling IsXMLSchemaBoolean afterwards will +// return true. +func (this *ForgeFedIsResolvedProperty) Set(v bool) { + this.Clear() + this.xmlschemaBooleanMember = v + this.hasBooleanMember = true +} + +// SetIRI sets the value of this property. Calling IsIRI afterwards will return +// true. +func (this *ForgeFedIsResolvedProperty) SetIRI(v *url.URL) { + this.Clear() + this.iri = v +} diff --git a/streams/impl/forgefed/property_ref/gen_doc.go b/streams/impl/forgefed/property_ref/gen_doc.go new file mode 100644 index 0000000..db28dfa --- /dev/null +++ b/streams/impl/forgefed/property_ref/gen_doc.go @@ -0,0 +1,17 @@ +// Code generated by astool. DO NOT EDIT. + +// Package propertyref contains the implementation for the ref property. All +// applications are strongly encouraged to use the interface instead of this +// concrete definition. The interfaces allow applications to consume only the +// types and properties needed and be independent of the go-fed implementation +// if another alternative implementation is created. This package is +// code-generated and subject to the same license as the go-fed tool used to +// generate it. +// +// This package is independent of other types' and properties' implementations +// by having a Manager injected into it to act as a factory for the concrete +// implementations. The implementations have been generated into their own +// separate subpackages for each vocabulary. +// +// Strongly consider using the interfaces instead of this package. +package propertyref diff --git a/streams/impl/forgefed/property_ref/gen_pkg.go b/streams/impl/forgefed/property_ref/gen_pkg.go new file mode 100644 index 0000000..27120c4 --- /dev/null +++ b/streams/impl/forgefed/property_ref/gen_pkg.go @@ -0,0 +1,15 @@ +// Code generated by astool. DO NOT EDIT. + +package propertyref + +var mgr privateManager + +// privateManager abstracts the code-generated manager that provides access to +// concrete implementations. +type privateManager interface{} + +// SetManager sets the manager package-global variable. For internal use only, do +// not use as part of Application behavior. Must be called at golang init time. +func SetManager(m privateManager) { + mgr = m +} diff --git a/streams/impl/forgefed/property_ref/gen_property_forgefed_ref.go b/streams/impl/forgefed/property_ref/gen_property_forgefed_ref.go new file mode 100644 index 0000000..3fe0e50 --- /dev/null +++ b/streams/impl/forgefed/property_ref/gen_property_forgefed_ref.go @@ -0,0 +1,203 @@ +// Code generated by astool. DO NOT EDIT. + +package propertyref + +import ( + "fmt" + string1 "github.com/go-fed/activity/streams/values/string" + vocab "github.com/go-fed/activity/streams/vocab" + "net/url" +) + +// ForgeFedRefProperty is the functional property "ref". It is permitted to be a +// single default-valued value type. +type ForgeFedRefProperty struct { + xmlschemaStringMember string + hasStringMember bool + unknown interface{} + iri *url.URL + alias string +} + +// DeserializeRefProperty creates a "ref" property from an interface +// representation that has been unmarshalled from a text or binary format. +func DeserializeRefProperty(m map[string]interface{}, aliasMap map[string]string) (*ForgeFedRefProperty, error) { + alias := "" + if a, ok := aliasMap["https://forgefed.peers.community/ns"]; ok { + alias = a + } + propName := "ref" + if len(alias) > 0 { + // Use alias both to find the property, and set within the property. + propName = fmt.Sprintf("%s:%s", alias, "ref") + } + i, ok := m[propName] + + if ok { + if s, ok := i.(string); ok { + u, err := url.Parse(s) + // If error exists, don't error out -- skip this and treat as unknown string ([]byte) at worst + // Also, if no scheme exists, don't treat it as a URL -- net/url is greedy + if err == nil && len(u.Scheme) > 0 { + this := &ForgeFedRefProperty{ + alias: alias, + iri: u, + } + return this, nil + } + } + if v, err := string1.DeserializeString(i); err == nil { + this := &ForgeFedRefProperty{ + alias: alias, + hasStringMember: true, + xmlschemaStringMember: v, + } + return this, nil + } + this := &ForgeFedRefProperty{ + alias: alias, + unknown: i, + } + return this, nil + } + return nil, nil +} + +// NewForgeFedRefProperty creates a new ref property. +func NewForgeFedRefProperty() *ForgeFedRefProperty { + return &ForgeFedRefProperty{alias: ""} +} + +// Clear ensures no value of this property is set. Calling IsXMLSchemaString +// afterwards will return false. +func (this *ForgeFedRefProperty) Clear() { + this.unknown = nil + this.iri = nil + this.hasStringMember = false +} + +// Get returns the value of this property. When IsXMLSchemaString returns false, +// Get will return any arbitrary value. +func (this ForgeFedRefProperty) Get() string { + return this.xmlschemaStringMember +} + +// GetIRI returns the IRI of this property. When IsIRI returns false, GetIRI will +// return any arbitrary value. +func (this ForgeFedRefProperty) GetIRI() *url.URL { + return this.iri +} + +// HasAny returns true if the value or IRI is set. +func (this ForgeFedRefProperty) HasAny() bool { + return this.IsXMLSchemaString() || this.iri != nil +} + +// IsIRI returns true if this property is an IRI. +func (this ForgeFedRefProperty) IsIRI() bool { + return this.iri != nil +} + +// IsXMLSchemaString returns true if this property is set and not an IRI. +func (this ForgeFedRefProperty) IsXMLSchemaString() bool { + return this.hasStringMember +} + +// JSONLDContext returns the JSONLD URIs required in the context string for this +// property and the specific values that are set. The value in the map is the +// alias used to import the property's value or values. +func (this ForgeFedRefProperty) JSONLDContext() map[string]string { + m := map[string]string{"https://forgefed.peers.community/ns": this.alias} + var child map[string]string + + /* + Since the literal maps in this function are determined at + code-generation time, this loop should not overwrite an existing key with a + new value. + */ + for k, v := range child { + m[k] = v + } + return m +} + +// KindIndex computes an arbitrary value for indexing this kind of value. This is +// a leaky API detail only for folks looking to replace the go-fed +// implementation. Applications should not use this method. +func (this ForgeFedRefProperty) KindIndex() int { + if this.IsXMLSchemaString() { + return 0 + } + if this.IsIRI() { + return -2 + } + return -1 +} + +// LessThan compares two instances of this property with an arbitrary but stable +// comparison. Applications should not use this because it is only meant to +// help alternative implementations to go-fed to be able to normalize +// nonfunctional properties. +func (this ForgeFedRefProperty) LessThan(o vocab.ForgeFedRefProperty) bool { + // LessThan comparison for if either or both are IRIs. + if this.IsIRI() && o.IsIRI() { + return this.iri.String() < o.GetIRI().String() + } else if this.IsIRI() { + // IRIs are always less than other values, none, or unknowns + return true + } else if o.IsIRI() { + // This other, none, or unknown value is always greater than IRIs + return false + } + // LessThan comparison for the single value or unknown value. + if !this.IsXMLSchemaString() && !o.IsXMLSchemaString() { + // Both are unknowns. + return false + } else if this.IsXMLSchemaString() && !o.IsXMLSchemaString() { + // Values are always greater than unknown values. + return false + } else if !this.IsXMLSchemaString() && o.IsXMLSchemaString() { + // Unknowns are always less than known values. + return true + } else { + // Actual comparison. + return string1.LessString(this.Get(), o.Get()) + } +} + +// Name returns the name of this property: "ref". +func (this ForgeFedRefProperty) Name() string { + if len(this.alias) > 0 { + return this.alias + ":" + "ref" + } else { + return "ref" + } +} + +// Serialize converts this into an interface representation suitable for +// marshalling into a text or binary format. Applications should not need this +// function as most typical use cases serialize types instead of individual +// properties. It is exposed for alternatives to go-fed implementations to use. +func (this ForgeFedRefProperty) Serialize() (interface{}, error) { + if this.IsXMLSchemaString() { + return string1.SerializeString(this.Get()) + } else if this.IsIRI() { + return this.iri.String(), nil + } + return this.unknown, nil +} + +// Set sets the value of this property. Calling IsXMLSchemaString afterwards will +// return true. +func (this *ForgeFedRefProperty) Set(v string) { + this.Clear() + this.xmlschemaStringMember = v + this.hasStringMember = true +} + +// SetIRI sets the value of this property. Calling IsIRI afterwards will return +// true. +func (this *ForgeFedRefProperty) SetIRI(v *url.URL) { + this.Clear() + this.iri = v +} diff --git a/streams/impl/forgefed/property_team/gen_doc.go b/streams/impl/forgefed/property_team/gen_doc.go new file mode 100644 index 0000000..7ce672b --- /dev/null +++ b/streams/impl/forgefed/property_team/gen_doc.go @@ -0,0 +1,17 @@ +// Code generated by astool. DO NOT EDIT. + +// Package propertyteam contains the implementation for the team property. All +// applications are strongly encouraged to use the interface instead of this +// concrete definition. The interfaces allow applications to consume only the +// types and properties needed and be independent of the go-fed implementation +// if another alternative implementation is created. This package is +// code-generated and subject to the same license as the go-fed tool used to +// generate it. +// +// This package is independent of other types' and properties' implementations +// by having a Manager injected into it to act as a factory for the concrete +// implementations. The implementations have been generated into their own +// separate subpackages for each vocabulary. +// +// Strongly consider using the interfaces instead of this package. +package propertyteam diff --git a/streams/impl/forgefed/property_team/gen_pkg.go b/streams/impl/forgefed/property_team/gen_pkg.go new file mode 100644 index 0000000..8e16843 --- /dev/null +++ b/streams/impl/forgefed/property_team/gen_pkg.go @@ -0,0 +1,35 @@ +// Code generated by astool. DO NOT EDIT. + +package propertyteam + +import vocab "github.com/go-fed/activity/streams/vocab" + +var mgr privateManager + +// privateManager abstracts the code-generated manager that provides access to +// concrete implementations. +type privateManager interface { + // DeserializeCollectionActivityStreams returns the deserialization method + // for the "ActivityStreamsCollection" non-functional property in the + // vocabulary "ActivityStreams" + DeserializeCollectionActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsCollection, error) + // DeserializeCollectionPageActivityStreams returns the deserialization + // method for the "ActivityStreamsCollectionPage" non-functional + // property in the vocabulary "ActivityStreams" + DeserializeCollectionPageActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsCollectionPage, error) + // DeserializeOrderedCollectionActivityStreams returns the deserialization + // method for the "ActivityStreamsOrderedCollection" non-functional + // property in the vocabulary "ActivityStreams" + DeserializeOrderedCollectionActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsOrderedCollection, error) + // DeserializeOrderedCollectionPageActivityStreams returns the + // deserialization method for the + // "ActivityStreamsOrderedCollectionPage" non-functional property in + // the vocabulary "ActivityStreams" + DeserializeOrderedCollectionPageActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsOrderedCollectionPage, error) +} + +// SetManager sets the manager package-global variable. For internal use only, do +// not use as part of Application behavior. Must be called at golang init time. +func SetManager(m privateManager) { + mgr = m +} diff --git a/streams/impl/forgefed/property_team/gen_property_forgefed_team.go b/streams/impl/forgefed/property_team/gen_property_forgefed_team.go new file mode 100644 index 0000000..56670c3 --- /dev/null +++ b/streams/impl/forgefed/property_team/gen_property_forgefed_team.go @@ -0,0 +1,360 @@ +// Code generated by astool. DO NOT EDIT. + +package propertyteam + +import ( + "fmt" + vocab "github.com/go-fed/activity/streams/vocab" + "net/url" +) + +// ForgeFedTeamProperty is the functional property "team". It is permitted to be +// one of multiple value types. At most, one type of value can be present, or +// none at all. Setting a value will clear the other types of values so that +// only one of the 'Is' methods will return true. It is possible to clear all +// values, so that this property is empty. +type ForgeFedTeamProperty struct { + activitystreamsCollectionMember vocab.ActivityStreamsCollection + activitystreamsCollectionPageMember vocab.ActivityStreamsCollectionPage + activitystreamsOrderedCollectionMember vocab.ActivityStreamsOrderedCollection + activitystreamsOrderedCollectionPageMember vocab.ActivityStreamsOrderedCollectionPage + unknown interface{} + iri *url.URL + alias string +} + +// DeserializeTeamProperty creates a "team" property from an interface +// representation that has been unmarshalled from a text or binary format. +func DeserializeTeamProperty(m map[string]interface{}, aliasMap map[string]string) (*ForgeFedTeamProperty, error) { + alias := "" + if a, ok := aliasMap["https://forgefed.peers.community/ns"]; ok { + alias = a + } + propName := "team" + if len(alias) > 0 { + // Use alias both to find the property, and set within the property. + propName = fmt.Sprintf("%s:%s", alias, "team") + } + i, ok := m[propName] + + if ok { + if s, ok := i.(string); ok { + u, err := url.Parse(s) + // If error exists, don't error out -- skip this and treat as unknown string ([]byte) at worst + // Also, if no scheme exists, don't treat it as a URL -- net/url is greedy + if err == nil && len(u.Scheme) > 0 { + this := &ForgeFedTeamProperty{ + alias: alias, + iri: u, + } + return this, nil + } + } + if m, ok := i.(map[string]interface{}); ok { + if v, err := mgr.DeserializeCollectionActivityStreams()(m, aliasMap); err == nil { + this := &ForgeFedTeamProperty{ + activitystreamsCollectionMember: v, + alias: alias, + } + return this, nil + } else if v, err := mgr.DeserializeCollectionPageActivityStreams()(m, aliasMap); err == nil { + this := &ForgeFedTeamProperty{ + activitystreamsCollectionPageMember: v, + alias: alias, + } + return this, nil + } else if v, err := mgr.DeserializeOrderedCollectionActivityStreams()(m, aliasMap); err == nil { + this := &ForgeFedTeamProperty{ + activitystreamsOrderedCollectionMember: v, + alias: alias, + } + return this, nil + } else if v, err := mgr.DeserializeOrderedCollectionPageActivityStreams()(m, aliasMap); err == nil { + this := &ForgeFedTeamProperty{ + activitystreamsOrderedCollectionPageMember: v, + alias: alias, + } + return this, nil + } + } + this := &ForgeFedTeamProperty{ + alias: alias, + unknown: i, + } + return this, nil + } + return nil, nil +} + +// NewForgeFedTeamProperty creates a new team property. +func NewForgeFedTeamProperty() *ForgeFedTeamProperty { + return &ForgeFedTeamProperty{alias: ""} +} + +// Clear ensures no value of this property is set. Calling HasAny or any of the +// 'Is' methods afterwards will return false. +func (this *ForgeFedTeamProperty) Clear() { + this.activitystreamsCollectionMember = nil + this.activitystreamsCollectionPageMember = nil + this.activitystreamsOrderedCollectionMember = nil + this.activitystreamsOrderedCollectionPageMember = nil + this.unknown = nil + this.iri = nil +} + +// GetActivityStreamsCollection returns the value of this property. When +// IsActivityStreamsCollection returns false, GetActivityStreamsCollection +// will return an arbitrary value. +func (this ForgeFedTeamProperty) GetActivityStreamsCollection() vocab.ActivityStreamsCollection { + return this.activitystreamsCollectionMember +} + +// GetActivityStreamsCollectionPage returns the value of this property. When +// IsActivityStreamsCollectionPage returns false, +// GetActivityStreamsCollectionPage will return an arbitrary value. +func (this ForgeFedTeamProperty) GetActivityStreamsCollectionPage() vocab.ActivityStreamsCollectionPage { + return this.activitystreamsCollectionPageMember +} + +// GetActivityStreamsOrderedCollection returns the value of this property. When +// IsActivityStreamsOrderedCollection returns false, +// GetActivityStreamsOrderedCollection will return an arbitrary value. +func (this ForgeFedTeamProperty) GetActivityStreamsOrderedCollection() vocab.ActivityStreamsOrderedCollection { + return this.activitystreamsOrderedCollectionMember +} + +// GetActivityStreamsOrderedCollectionPage returns the value of this property. +// When IsActivityStreamsOrderedCollectionPage returns false, +// GetActivityStreamsOrderedCollectionPage will return an arbitrary value. +func (this ForgeFedTeamProperty) GetActivityStreamsOrderedCollectionPage() vocab.ActivityStreamsOrderedCollectionPage { + return this.activitystreamsOrderedCollectionPageMember +} + +// GetIRI returns the IRI of this property. When IsIRI returns false, GetIRI will +// return an arbitrary value. +func (this ForgeFedTeamProperty) GetIRI() *url.URL { + return this.iri +} + +// GetType returns the value in this property as a Type. Returns nil if the value +// is not an ActivityStreams type, such as an IRI or another value. +func (this ForgeFedTeamProperty) GetType() vocab.Type { + if this.IsActivityStreamsCollection() { + return this.GetActivityStreamsCollection() + } + if this.IsActivityStreamsCollectionPage() { + return this.GetActivityStreamsCollectionPage() + } + if this.IsActivityStreamsOrderedCollection() { + return this.GetActivityStreamsOrderedCollection() + } + if this.IsActivityStreamsOrderedCollectionPage() { + return this.GetActivityStreamsOrderedCollectionPage() + } + + return nil +} + +// HasAny returns true if any of the different values is set. +func (this ForgeFedTeamProperty) HasAny() bool { + return this.IsActivityStreamsCollection() || + this.IsActivityStreamsCollectionPage() || + this.IsActivityStreamsOrderedCollection() || + this.IsActivityStreamsOrderedCollectionPage() || + this.iri != nil +} + +// IsActivityStreamsCollection returns true if this property has a type of +// "Collection". When true, use the GetActivityStreamsCollection and +// SetActivityStreamsCollection methods to access and set this property. +func (this ForgeFedTeamProperty) IsActivityStreamsCollection() bool { + return this.activitystreamsCollectionMember != nil +} + +// IsActivityStreamsCollectionPage returns true if this property has a type of +// "CollectionPage". When true, use the GetActivityStreamsCollectionPage and +// SetActivityStreamsCollectionPage methods to access and set this property. +func (this ForgeFedTeamProperty) IsActivityStreamsCollectionPage() bool { + return this.activitystreamsCollectionPageMember != nil +} + +// IsActivityStreamsOrderedCollection returns true if this property has a type of +// "OrderedCollection". When true, use the GetActivityStreamsOrderedCollection +// and SetActivityStreamsOrderedCollection methods to access and set this +// property. +func (this ForgeFedTeamProperty) IsActivityStreamsOrderedCollection() bool { + return this.activitystreamsOrderedCollectionMember != nil +} + +// IsActivityStreamsOrderedCollectionPage returns true if this property has a type +// of "OrderedCollectionPage". When true, use the +// GetActivityStreamsOrderedCollectionPage and +// SetActivityStreamsOrderedCollectionPage methods to access and set this +// property. +func (this ForgeFedTeamProperty) IsActivityStreamsOrderedCollectionPage() bool { + return this.activitystreamsOrderedCollectionPageMember != nil +} + +// IsIRI returns true if this property is an IRI. When true, use GetIRI and SetIRI +// to access and set this property +func (this ForgeFedTeamProperty) IsIRI() bool { + return this.iri != nil +} + +// JSONLDContext returns the JSONLD URIs required in the context string for this +// property and the specific values that are set. The value in the map is the +// alias used to import the property's value or values. +func (this ForgeFedTeamProperty) JSONLDContext() map[string]string { + m := map[string]string{"https://forgefed.peers.community/ns": this.alias} + var child map[string]string + if this.IsActivityStreamsCollection() { + child = this.GetActivityStreamsCollection().JSONLDContext() + } else if this.IsActivityStreamsCollectionPage() { + child = this.GetActivityStreamsCollectionPage().JSONLDContext() + } else if this.IsActivityStreamsOrderedCollection() { + child = this.GetActivityStreamsOrderedCollection().JSONLDContext() + } else if this.IsActivityStreamsOrderedCollectionPage() { + child = this.GetActivityStreamsOrderedCollectionPage().JSONLDContext() + } + /* + Since the literal maps in this function are determined at + code-generation time, this loop should not overwrite an existing key with a + new value. + */ + for k, v := range child { + m[k] = v + } + return m +} + +// KindIndex computes an arbitrary value for indexing this kind of value. This is +// a leaky API detail only for folks looking to replace the go-fed +// implementation. Applications should not use this method. +func (this ForgeFedTeamProperty) KindIndex() int { + if this.IsActivityStreamsCollection() { + return 0 + } + if this.IsActivityStreamsCollectionPage() { + return 1 + } + if this.IsActivityStreamsOrderedCollection() { + return 2 + } + if this.IsActivityStreamsOrderedCollectionPage() { + return 3 + } + if this.IsIRI() { + return -2 + } + return -1 +} + +// LessThan compares two instances of this property with an arbitrary but stable +// comparison. Applications should not use this because it is only meant to +// help alternative implementations to go-fed to be able to normalize +// nonfunctional properties. +func (this ForgeFedTeamProperty) LessThan(o vocab.ForgeFedTeamProperty) bool { + idx1 := this.KindIndex() + idx2 := o.KindIndex() + if idx1 < idx2 { + return true + } else if idx1 > idx2 { + return false + } else if this.IsActivityStreamsCollection() { + return this.GetActivityStreamsCollection().LessThan(o.GetActivityStreamsCollection()) + } else if this.IsActivityStreamsCollectionPage() { + return this.GetActivityStreamsCollectionPage().LessThan(o.GetActivityStreamsCollectionPage()) + } else if this.IsActivityStreamsOrderedCollection() { + return this.GetActivityStreamsOrderedCollection().LessThan(o.GetActivityStreamsOrderedCollection()) + } else if this.IsActivityStreamsOrderedCollectionPage() { + return this.GetActivityStreamsOrderedCollectionPage().LessThan(o.GetActivityStreamsOrderedCollectionPage()) + } else if this.IsIRI() { + return this.iri.String() < o.GetIRI().String() + } + return false +} + +// Name returns the name of this property: "team". +func (this ForgeFedTeamProperty) Name() string { + if len(this.alias) > 0 { + return this.alias + ":" + "team" + } else { + return "team" + } +} + +// Serialize converts this into an interface representation suitable for +// marshalling into a text or binary format. Applications should not need this +// function as most typical use cases serialize types instead of individual +// properties. It is exposed for alternatives to go-fed implementations to use. +func (this ForgeFedTeamProperty) Serialize() (interface{}, error) { + if this.IsActivityStreamsCollection() { + return this.GetActivityStreamsCollection().Serialize() + } else if this.IsActivityStreamsCollectionPage() { + return this.GetActivityStreamsCollectionPage().Serialize() + } else if this.IsActivityStreamsOrderedCollection() { + return this.GetActivityStreamsOrderedCollection().Serialize() + } else if this.IsActivityStreamsOrderedCollectionPage() { + return this.GetActivityStreamsOrderedCollectionPage().Serialize() + } else if this.IsIRI() { + return this.iri.String(), nil + } + return this.unknown, nil +} + +// SetActivityStreamsCollection sets the value of this property. Calling +// IsActivityStreamsCollection afterwards returns true. +func (this *ForgeFedTeamProperty) SetActivityStreamsCollection(v vocab.ActivityStreamsCollection) { + this.Clear() + this.activitystreamsCollectionMember = v +} + +// SetActivityStreamsCollectionPage sets the value of this property. Calling +// IsActivityStreamsCollectionPage afterwards returns true. +func (this *ForgeFedTeamProperty) SetActivityStreamsCollectionPage(v vocab.ActivityStreamsCollectionPage) { + this.Clear() + this.activitystreamsCollectionPageMember = v +} + +// SetActivityStreamsOrderedCollection sets the value of this property. Calling +// IsActivityStreamsOrderedCollection afterwards returns true. +func (this *ForgeFedTeamProperty) SetActivityStreamsOrderedCollection(v vocab.ActivityStreamsOrderedCollection) { + this.Clear() + this.activitystreamsOrderedCollectionMember = v +} + +// SetActivityStreamsOrderedCollectionPage sets the value of this property. +// Calling IsActivityStreamsOrderedCollectionPage afterwards returns true. +func (this *ForgeFedTeamProperty) SetActivityStreamsOrderedCollectionPage(v vocab.ActivityStreamsOrderedCollectionPage) { + this.Clear() + this.activitystreamsOrderedCollectionPageMember = v +} + +// SetIRI sets the value of this property. Calling IsIRI afterwards returns true. +func (this *ForgeFedTeamProperty) SetIRI(v *url.URL) { + this.Clear() + this.iri = v +} + +// SetType attempts to set the property for the arbitrary type. Returns an error +// if it is not a valid type to set on this property. +func (this *ForgeFedTeamProperty) SetType(t vocab.Type) error { + if v, ok := t.(vocab.ActivityStreamsCollection); ok { + this.SetActivityStreamsCollection(v) + return nil + } + if v, ok := t.(vocab.ActivityStreamsCollectionPage); ok { + this.SetActivityStreamsCollectionPage(v) + return nil + } + if v, ok := t.(vocab.ActivityStreamsOrderedCollection); ok { + this.SetActivityStreamsOrderedCollection(v) + return nil + } + if v, ok := t.(vocab.ActivityStreamsOrderedCollectionPage); ok { + this.SetActivityStreamsOrderedCollectionPage(v) + return nil + } + + return fmt.Errorf("illegal type to set on team property: %T", t) +} diff --git a/streams/impl/forgefed/property_ticketstrackedby/gen_doc.go b/streams/impl/forgefed/property_ticketstrackedby/gen_doc.go new file mode 100644 index 0000000..c05d81c --- /dev/null +++ b/streams/impl/forgefed/property_ticketstrackedby/gen_doc.go @@ -0,0 +1,17 @@ +// Code generated by astool. DO NOT EDIT. + +// Package propertyticketstrackedby contains the implementation for the +// ticketsTrackedBy property. All applications are strongly encouraged to use +// the interface instead of this concrete definition. The interfaces allow +// applications to consume only the types and properties needed and be +// independent of the go-fed implementation if another alternative +// implementation is created. This package is code-generated and subject to +// the same license as the go-fed tool used to generate it. +// +// This package is independent of other types' and properties' implementations +// by having a Manager injected into it to act as a factory for the concrete +// implementations. The implementations have been generated into their own +// separate subpackages for each vocabulary. +// +// Strongly consider using the interfaces instead of this package. +package propertyticketstrackedby diff --git a/streams/impl/forgefed/property_ticketstrackedby/gen_pkg.go b/streams/impl/forgefed/property_ticketstrackedby/gen_pkg.go new file mode 100644 index 0000000..b4215e8 --- /dev/null +++ b/streams/impl/forgefed/property_ticketstrackedby/gen_pkg.go @@ -0,0 +1,257 @@ +// Code generated by astool. DO NOT EDIT. + +package propertyticketstrackedby + +import vocab "github.com/go-fed/activity/streams/vocab" + +var mgr privateManager + +// privateManager abstracts the code-generated manager that provides access to +// concrete implementations. +type privateManager interface { + // DeserializeAcceptActivityStreams returns the deserialization method for + // the "ActivityStreamsAccept" non-functional property in the + // vocabulary "ActivityStreams" + DeserializeAcceptActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAccept, error) + // DeserializeActivityActivityStreams returns the deserialization method + // for the "ActivityStreamsActivity" non-functional property in the + // vocabulary "ActivityStreams" + DeserializeActivityActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsActivity, error) + // DeserializeAddActivityStreams returns the deserialization method for + // the "ActivityStreamsAdd" non-functional property in the vocabulary + // "ActivityStreams" + DeserializeAddActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAdd, error) + // DeserializeAnnounceActivityStreams returns the deserialization method + // for the "ActivityStreamsAnnounce" non-functional property in the + // vocabulary "ActivityStreams" + DeserializeAnnounceActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAnnounce, error) + // DeserializeApplicationActivityStreams returns the deserialization + // method for the "ActivityStreamsApplication" non-functional property + // in the vocabulary "ActivityStreams" + DeserializeApplicationActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsApplication, error) + // DeserializeArriveActivityStreams returns the deserialization method for + // the "ActivityStreamsArrive" non-functional property in the + // vocabulary "ActivityStreams" + DeserializeArriveActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsArrive, error) + // DeserializeArticleActivityStreams returns the deserialization method + // for the "ActivityStreamsArticle" non-functional property in the + // vocabulary "ActivityStreams" + DeserializeArticleActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsArticle, error) + // DeserializeAudioActivityStreams returns the deserialization method for + // the "ActivityStreamsAudio" non-functional property in the + // vocabulary "ActivityStreams" + DeserializeAudioActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAudio, error) + // DeserializeBlockActivityStreams returns the deserialization method for + // the "ActivityStreamsBlock" non-functional property in the + // vocabulary "ActivityStreams" + DeserializeBlockActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsBlock, error) + // DeserializeBranchForgeFed returns the deserialization method for the + // "ForgeFedBranch" non-functional property in the vocabulary + // "ForgeFed" + DeserializeBranchForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedBranch, error) + // DeserializeCollectionActivityStreams returns the deserialization method + // for the "ActivityStreamsCollection" non-functional property in the + // vocabulary "ActivityStreams" + DeserializeCollectionActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsCollection, error) + // DeserializeCollectionPageActivityStreams returns the deserialization + // method for the "ActivityStreamsCollectionPage" non-functional + // property in the vocabulary "ActivityStreams" + DeserializeCollectionPageActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsCollectionPage, error) + // DeserializeCommitForgeFed returns the deserialization method for the + // "ForgeFedCommit" non-functional property in the vocabulary + // "ForgeFed" + DeserializeCommitForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedCommit, error) + // DeserializeCreateActivityStreams returns the deserialization method for + // the "ActivityStreamsCreate" non-functional property in the + // vocabulary "ActivityStreams" + DeserializeCreateActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsCreate, error) + // DeserializeDeleteActivityStreams returns the deserialization method for + // the "ActivityStreamsDelete" non-functional property in the + // vocabulary "ActivityStreams" + DeserializeDeleteActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsDelete, error) + // DeserializeDislikeActivityStreams returns the deserialization method + // for the "ActivityStreamsDislike" non-functional property in the + // vocabulary "ActivityStreams" + DeserializeDislikeActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsDislike, error) + // DeserializeDocumentActivityStreams returns the deserialization method + // for the "ActivityStreamsDocument" non-functional property in the + // vocabulary "ActivityStreams" + DeserializeDocumentActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsDocument, error) + // DeserializeEmojiToot returns the deserialization method for the + // "TootEmoji" non-functional property in the vocabulary "Toot" + DeserializeEmojiToot() func(map[string]interface{}, map[string]string) (vocab.TootEmoji, error) + // DeserializeEventActivityStreams returns the deserialization method for + // the "ActivityStreamsEvent" non-functional property in the + // vocabulary "ActivityStreams" + DeserializeEventActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsEvent, error) + // DeserializeFlagActivityStreams returns the deserialization method for + // the "ActivityStreamsFlag" non-functional property in the vocabulary + // "ActivityStreams" + DeserializeFlagActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsFlag, error) + // DeserializeFollowActivityStreams returns the deserialization method for + // the "ActivityStreamsFollow" non-functional property in the + // vocabulary "ActivityStreams" + DeserializeFollowActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsFollow, error) + // DeserializeGroupActivityStreams returns the deserialization method for + // the "ActivityStreamsGroup" non-functional property in the + // vocabulary "ActivityStreams" + DeserializeGroupActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsGroup, error) + // DeserializeIdentityProofToot returns the deserialization method for the + // "TootIdentityProof" non-functional property in the vocabulary "Toot" + DeserializeIdentityProofToot() func(map[string]interface{}, map[string]string) (vocab.TootIdentityProof, error) + // DeserializeIgnoreActivityStreams returns the deserialization method for + // the "ActivityStreamsIgnore" non-functional property in the + // vocabulary "ActivityStreams" + DeserializeIgnoreActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsIgnore, error) + // DeserializeImageActivityStreams returns the deserialization method for + // the "ActivityStreamsImage" non-functional property in the + // vocabulary "ActivityStreams" + DeserializeImageActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsImage, error) + // DeserializeIntransitiveActivityActivityStreams returns the + // deserialization method for the + // "ActivityStreamsIntransitiveActivity" non-functional property in + // the vocabulary "ActivityStreams" + DeserializeIntransitiveActivityActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsIntransitiveActivity, error) + // DeserializeInviteActivityStreams returns the deserialization method for + // the "ActivityStreamsInvite" non-functional property in the + // vocabulary "ActivityStreams" + DeserializeInviteActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsInvite, error) + // DeserializeJoinActivityStreams returns the deserialization method for + // the "ActivityStreamsJoin" non-functional property in the vocabulary + // "ActivityStreams" + DeserializeJoinActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsJoin, error) + // DeserializeLeaveActivityStreams returns the deserialization method for + // the "ActivityStreamsLeave" non-functional property in the + // vocabulary "ActivityStreams" + DeserializeLeaveActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLeave, error) + // DeserializeLikeActivityStreams returns the deserialization method for + // the "ActivityStreamsLike" non-functional property in the vocabulary + // "ActivityStreams" + DeserializeLikeActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLike, error) + // DeserializeListenActivityStreams returns the deserialization method for + // the "ActivityStreamsListen" non-functional property in the + // vocabulary "ActivityStreams" + DeserializeListenActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsListen, error) + // DeserializeMoveActivityStreams returns the deserialization method for + // the "ActivityStreamsMove" non-functional property in the vocabulary + // "ActivityStreams" + DeserializeMoveActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsMove, error) + // DeserializeNoteActivityStreams returns the deserialization method for + // the "ActivityStreamsNote" non-functional property in the vocabulary + // "ActivityStreams" + DeserializeNoteActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsNote, error) + // DeserializeObjectActivityStreams returns the deserialization method for + // the "ActivityStreamsObject" non-functional property in the + // vocabulary "ActivityStreams" + DeserializeObjectActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsObject, error) + // DeserializeOfferActivityStreams returns the deserialization method for + // the "ActivityStreamsOffer" non-functional property in the + // vocabulary "ActivityStreams" + DeserializeOfferActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsOffer, error) + // DeserializeOrderedCollectionActivityStreams returns the deserialization + // method for the "ActivityStreamsOrderedCollection" non-functional + // property in the vocabulary "ActivityStreams" + DeserializeOrderedCollectionActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsOrderedCollection, error) + // DeserializeOrderedCollectionPageActivityStreams returns the + // deserialization method for the + // "ActivityStreamsOrderedCollectionPage" non-functional property in + // the vocabulary "ActivityStreams" + DeserializeOrderedCollectionPageActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsOrderedCollectionPage, error) + // DeserializeOrganizationActivityStreams returns the deserialization + // method for the "ActivityStreamsOrganization" non-functional + // property in the vocabulary "ActivityStreams" + DeserializeOrganizationActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsOrganization, error) + // DeserializePageActivityStreams returns the deserialization method for + // the "ActivityStreamsPage" non-functional property in the vocabulary + // "ActivityStreams" + DeserializePageActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsPage, error) + // DeserializePersonActivityStreams returns the deserialization method for + // the "ActivityStreamsPerson" non-functional property in the + // vocabulary "ActivityStreams" + DeserializePersonActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsPerson, error) + // DeserializePlaceActivityStreams returns the deserialization method for + // the "ActivityStreamsPlace" non-functional property in the + // vocabulary "ActivityStreams" + DeserializePlaceActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsPlace, error) + // DeserializeProfileActivityStreams returns the deserialization method + // for the "ActivityStreamsProfile" non-functional property in the + // vocabulary "ActivityStreams" + DeserializeProfileActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsProfile, error) + // DeserializePushForgeFed returns the deserialization method for the + // "ForgeFedPush" non-functional property in the vocabulary "ForgeFed" + DeserializePushForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedPush, error) + // DeserializeQuestionActivityStreams returns the deserialization method + // for the "ActivityStreamsQuestion" non-functional property in the + // vocabulary "ActivityStreams" + DeserializeQuestionActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsQuestion, error) + // DeserializeReadActivityStreams returns the deserialization method for + // the "ActivityStreamsRead" non-functional property in the vocabulary + // "ActivityStreams" + DeserializeReadActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsRead, error) + // DeserializeRejectActivityStreams returns the deserialization method for + // the "ActivityStreamsReject" non-functional property in the + // vocabulary "ActivityStreams" + DeserializeRejectActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsReject, error) + // DeserializeRelationshipActivityStreams returns the deserialization + // method for the "ActivityStreamsRelationship" non-functional + // property in the vocabulary "ActivityStreams" + DeserializeRelationshipActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsRelationship, error) + // DeserializeRemoveActivityStreams returns the deserialization method for + // the "ActivityStreamsRemove" non-functional property in the + // vocabulary "ActivityStreams" + DeserializeRemoveActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsRemove, error) + // DeserializeRepositoryForgeFed returns the deserialization method for + // the "ForgeFedRepository" non-functional property in the vocabulary + // "ForgeFed" + DeserializeRepositoryForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedRepository, error) + // DeserializeServiceActivityStreams returns the deserialization method + // for the "ActivityStreamsService" non-functional property in the + // vocabulary "ActivityStreams" + DeserializeServiceActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsService, error) + // DeserializeTentativeAcceptActivityStreams returns the deserialization + // method for the "ActivityStreamsTentativeAccept" non-functional + // property in the vocabulary "ActivityStreams" + DeserializeTentativeAcceptActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTentativeAccept, error) + // DeserializeTentativeRejectActivityStreams returns the deserialization + // method for the "ActivityStreamsTentativeReject" non-functional + // property in the vocabulary "ActivityStreams" + DeserializeTentativeRejectActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTentativeReject, error) + // DeserializeTicketDependencyForgeFed returns the deserialization method + // for the "ForgeFedTicketDependency" non-functional property in the + // vocabulary "ForgeFed" + DeserializeTicketDependencyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTicketDependency, error) + // DeserializeTicketForgeFed returns the deserialization method for the + // "ForgeFedTicket" non-functional property in the vocabulary + // "ForgeFed" + DeserializeTicketForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTicket, error) + // DeserializeTombstoneActivityStreams returns the deserialization method + // for the "ActivityStreamsTombstone" non-functional property in the + // vocabulary "ActivityStreams" + DeserializeTombstoneActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTombstone, error) + // DeserializeTravelActivityStreams returns the deserialization method for + // the "ActivityStreamsTravel" non-functional property in the + // vocabulary "ActivityStreams" + DeserializeTravelActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTravel, error) + // DeserializeUndoActivityStreams returns the deserialization method for + // the "ActivityStreamsUndo" non-functional property in the vocabulary + // "ActivityStreams" + DeserializeUndoActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsUndo, error) + // DeserializeUpdateActivityStreams returns the deserialization method for + // the "ActivityStreamsUpdate" non-functional property in the + // vocabulary "ActivityStreams" + DeserializeUpdateActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsUpdate, error) + // DeserializeVideoActivityStreams returns the deserialization method for + // the "ActivityStreamsVideo" non-functional property in the + // vocabulary "ActivityStreams" + DeserializeVideoActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsVideo, error) + // DeserializeViewActivityStreams returns the deserialization method for + // the "ActivityStreamsView" non-functional property in the vocabulary + // "ActivityStreams" + DeserializeViewActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsView, error) +} + +// SetManager sets the manager package-global variable. For internal use only, do +// not use as part of Application behavior. Must be called at golang init time. +func SetManager(m privateManager) { + mgr = m +} diff --git a/streams/impl/forgefed/property_ticketstrackedby/gen_property_forgefed_ticketsTrackedBy.go b/streams/impl/forgefed/property_ticketstrackedby/gen_property_forgefed_ticketsTrackedBy.go new file mode 100644 index 0000000..9020342 --- /dev/null +++ b/streams/impl/forgefed/property_ticketstrackedby/gen_property_forgefed_ticketsTrackedBy.go @@ -0,0 +1,2933 @@ +// Code generated by astool. DO NOT EDIT. + +package propertyticketstrackedby + +import ( + "fmt" + vocab "github.com/go-fed/activity/streams/vocab" + "net/url" +) + +// ForgeFedTicketsTrackedByProperty is the functional property "ticketsTrackedBy". +// It is permitted to be one of multiple value types. At most, one type of +// value can be present, or none at all. Setting a value will clear the other +// types of values so that only one of the 'Is' methods will return true. It +// is possible to clear all values, so that this property is empty. +type ForgeFedTicketsTrackedByProperty struct { + activitystreamsObjectMember vocab.ActivityStreamsObject + activitystreamsAcceptMember vocab.ActivityStreamsAccept + activitystreamsActivityMember vocab.ActivityStreamsActivity + activitystreamsAddMember vocab.ActivityStreamsAdd + activitystreamsAnnounceMember vocab.ActivityStreamsAnnounce + activitystreamsApplicationMember vocab.ActivityStreamsApplication + activitystreamsArriveMember vocab.ActivityStreamsArrive + activitystreamsArticleMember vocab.ActivityStreamsArticle + activitystreamsAudioMember vocab.ActivityStreamsAudio + activitystreamsBlockMember vocab.ActivityStreamsBlock + forgefedBranchMember vocab.ForgeFedBranch + activitystreamsCollectionMember vocab.ActivityStreamsCollection + activitystreamsCollectionPageMember vocab.ActivityStreamsCollectionPage + forgefedCommitMember vocab.ForgeFedCommit + activitystreamsCreateMember vocab.ActivityStreamsCreate + activitystreamsDeleteMember vocab.ActivityStreamsDelete + activitystreamsDislikeMember vocab.ActivityStreamsDislike + activitystreamsDocumentMember vocab.ActivityStreamsDocument + tootEmojiMember vocab.TootEmoji + activitystreamsEventMember vocab.ActivityStreamsEvent + activitystreamsFlagMember vocab.ActivityStreamsFlag + activitystreamsFollowMember vocab.ActivityStreamsFollow + activitystreamsGroupMember vocab.ActivityStreamsGroup + tootIdentityProofMember vocab.TootIdentityProof + activitystreamsIgnoreMember vocab.ActivityStreamsIgnore + activitystreamsImageMember vocab.ActivityStreamsImage + activitystreamsIntransitiveActivityMember vocab.ActivityStreamsIntransitiveActivity + activitystreamsInviteMember vocab.ActivityStreamsInvite + activitystreamsJoinMember vocab.ActivityStreamsJoin + activitystreamsLeaveMember vocab.ActivityStreamsLeave + activitystreamsLikeMember vocab.ActivityStreamsLike + activitystreamsListenMember vocab.ActivityStreamsListen + activitystreamsMoveMember vocab.ActivityStreamsMove + activitystreamsNoteMember vocab.ActivityStreamsNote + activitystreamsOfferMember vocab.ActivityStreamsOffer + activitystreamsOrderedCollectionMember vocab.ActivityStreamsOrderedCollection + activitystreamsOrderedCollectionPageMember vocab.ActivityStreamsOrderedCollectionPage + activitystreamsOrganizationMember vocab.ActivityStreamsOrganization + activitystreamsPageMember vocab.ActivityStreamsPage + activitystreamsPersonMember vocab.ActivityStreamsPerson + activitystreamsPlaceMember vocab.ActivityStreamsPlace + activitystreamsProfileMember vocab.ActivityStreamsProfile + forgefedPushMember vocab.ForgeFedPush + activitystreamsQuestionMember vocab.ActivityStreamsQuestion + activitystreamsReadMember vocab.ActivityStreamsRead + activitystreamsRejectMember vocab.ActivityStreamsReject + activitystreamsRelationshipMember vocab.ActivityStreamsRelationship + activitystreamsRemoveMember vocab.ActivityStreamsRemove + forgefedRepositoryMember vocab.ForgeFedRepository + activitystreamsServiceMember vocab.ActivityStreamsService + activitystreamsTentativeAcceptMember vocab.ActivityStreamsTentativeAccept + activitystreamsTentativeRejectMember vocab.ActivityStreamsTentativeReject + forgefedTicketMember vocab.ForgeFedTicket + forgefedTicketDependencyMember vocab.ForgeFedTicketDependency + activitystreamsTombstoneMember vocab.ActivityStreamsTombstone + activitystreamsTravelMember vocab.ActivityStreamsTravel + activitystreamsUndoMember vocab.ActivityStreamsUndo + activitystreamsUpdateMember vocab.ActivityStreamsUpdate + activitystreamsVideoMember vocab.ActivityStreamsVideo + activitystreamsViewMember vocab.ActivityStreamsView + unknown interface{} + iri *url.URL + alias string +} + +// DeserializeTicketsTrackedByProperty creates a "ticketsTrackedBy" property from +// an interface representation that has been unmarshalled from a text or +// binary format. +func DeserializeTicketsTrackedByProperty(m map[string]interface{}, aliasMap map[string]string) (*ForgeFedTicketsTrackedByProperty, error) { + alias := "" + if a, ok := aliasMap["https://forgefed.peers.community/ns"]; ok { + alias = a + } + propName := "ticketsTrackedBy" + if len(alias) > 0 { + // Use alias both to find the property, and set within the property. + propName = fmt.Sprintf("%s:%s", alias, "ticketsTrackedBy") + } + i, ok := m[propName] + + if ok { + if s, ok := i.(string); ok { + u, err := url.Parse(s) + // If error exists, don't error out -- skip this and treat as unknown string ([]byte) at worst + // Also, if no scheme exists, don't treat it as a URL -- net/url is greedy + if err == nil && len(u.Scheme) > 0 { + this := &ForgeFedTicketsTrackedByProperty{ + alias: alias, + iri: u, + } + return this, nil + } + } + if m, ok := i.(map[string]interface{}); ok { + if v, err := mgr.DeserializeObjectActivityStreams()(m, aliasMap); err == nil { + this := &ForgeFedTicketsTrackedByProperty{ + activitystreamsObjectMember: v, + alias: alias, + } + return this, nil + } else if v, err := mgr.DeserializeAcceptActivityStreams()(m, aliasMap); err == nil { + this := &ForgeFedTicketsTrackedByProperty{ + activitystreamsAcceptMember: v, + alias: alias, + } + return this, nil + } else if v, err := mgr.DeserializeActivityActivityStreams()(m, aliasMap); err == nil { + this := &ForgeFedTicketsTrackedByProperty{ + activitystreamsActivityMember: v, + alias: alias, + } + return this, nil + } else if v, err := mgr.DeserializeAddActivityStreams()(m, aliasMap); err == nil { + this := &ForgeFedTicketsTrackedByProperty{ + activitystreamsAddMember: v, + alias: alias, + } + return this, nil + } else if v, err := mgr.DeserializeAnnounceActivityStreams()(m, aliasMap); err == nil { + this := &ForgeFedTicketsTrackedByProperty{ + activitystreamsAnnounceMember: v, + alias: alias, + } + return this, nil + } else if v, err := mgr.DeserializeApplicationActivityStreams()(m, aliasMap); err == nil { + this := &ForgeFedTicketsTrackedByProperty{ + activitystreamsApplicationMember: v, + alias: alias, + } + return this, nil + } else if v, err := mgr.DeserializeArriveActivityStreams()(m, aliasMap); err == nil { + this := &ForgeFedTicketsTrackedByProperty{ + activitystreamsArriveMember: v, + alias: alias, + } + return this, nil + } else if v, err := mgr.DeserializeArticleActivityStreams()(m, aliasMap); err == nil { + this := &ForgeFedTicketsTrackedByProperty{ + activitystreamsArticleMember: v, + alias: alias, + } + return this, nil + } else if v, err := mgr.DeserializeAudioActivityStreams()(m, aliasMap); err == nil { + this := &ForgeFedTicketsTrackedByProperty{ + activitystreamsAudioMember: v, + alias: alias, + } + return this, nil + } else if v, err := mgr.DeserializeBlockActivityStreams()(m, aliasMap); err == nil { + this := &ForgeFedTicketsTrackedByProperty{ + activitystreamsBlockMember: v, + alias: alias, + } + return this, nil + } else if v, err := mgr.DeserializeBranchForgeFed()(m, aliasMap); err == nil { + this := &ForgeFedTicketsTrackedByProperty{ + alias: alias, + forgefedBranchMember: v, + } + return this, nil + } else if v, err := mgr.DeserializeCollectionActivityStreams()(m, aliasMap); err == nil { + this := &ForgeFedTicketsTrackedByProperty{ + activitystreamsCollectionMember: v, + alias: alias, + } + return this, nil + } else if v, err := mgr.DeserializeCollectionPageActivityStreams()(m, aliasMap); err == nil { + this := &ForgeFedTicketsTrackedByProperty{ + activitystreamsCollectionPageMember: v, + alias: alias, + } + return this, nil + } else if v, err := mgr.DeserializeCommitForgeFed()(m, aliasMap); err == nil { + this := &ForgeFedTicketsTrackedByProperty{ + alias: alias, + forgefedCommitMember: v, + } + return this, nil + } else if v, err := mgr.DeserializeCreateActivityStreams()(m, aliasMap); err == nil { + this := &ForgeFedTicketsTrackedByProperty{ + activitystreamsCreateMember: v, + alias: alias, + } + return this, nil + } else if v, err := mgr.DeserializeDeleteActivityStreams()(m, aliasMap); err == nil { + this := &ForgeFedTicketsTrackedByProperty{ + activitystreamsDeleteMember: v, + alias: alias, + } + return this, nil + } else if v, err := mgr.DeserializeDislikeActivityStreams()(m, aliasMap); err == nil { + this := &ForgeFedTicketsTrackedByProperty{ + activitystreamsDislikeMember: v, + alias: alias, + } + return this, nil + } else if v, err := mgr.DeserializeDocumentActivityStreams()(m, aliasMap); err == nil { + this := &ForgeFedTicketsTrackedByProperty{ + activitystreamsDocumentMember: v, + alias: alias, + } + return this, nil + } else if v, err := mgr.DeserializeEmojiToot()(m, aliasMap); err == nil { + this := &ForgeFedTicketsTrackedByProperty{ + alias: alias, + tootEmojiMember: v, + } + return this, nil + } else if v, err := mgr.DeserializeEventActivityStreams()(m, aliasMap); err == nil { + this := &ForgeFedTicketsTrackedByProperty{ + activitystreamsEventMember: v, + alias: alias, + } + return this, nil + } else if v, err := mgr.DeserializeFlagActivityStreams()(m, aliasMap); err == nil { + this := &ForgeFedTicketsTrackedByProperty{ + activitystreamsFlagMember: v, + alias: alias, + } + return this, nil + } else if v, err := mgr.DeserializeFollowActivityStreams()(m, aliasMap); err == nil { + this := &ForgeFedTicketsTrackedByProperty{ + activitystreamsFollowMember: v, + alias: alias, + } + return this, nil + } else if v, err := mgr.DeserializeGroupActivityStreams()(m, aliasMap); err == nil { + this := &ForgeFedTicketsTrackedByProperty{ + activitystreamsGroupMember: v, + alias: alias, + } + return this, nil + } else if v, err := mgr.DeserializeIdentityProofToot()(m, aliasMap); err == nil { + this := &ForgeFedTicketsTrackedByProperty{ + alias: alias, + tootIdentityProofMember: v, + } + return this, nil + } else if v, err := mgr.DeserializeIgnoreActivityStreams()(m, aliasMap); err == nil { + this := &ForgeFedTicketsTrackedByProperty{ + activitystreamsIgnoreMember: v, + alias: alias, + } + return this, nil + } else if v, err := mgr.DeserializeImageActivityStreams()(m, aliasMap); err == nil { + this := &ForgeFedTicketsTrackedByProperty{ + activitystreamsImageMember: v, + alias: alias, + } + return this, nil + } else if v, err := mgr.DeserializeIntransitiveActivityActivityStreams()(m, aliasMap); err == nil { + this := &ForgeFedTicketsTrackedByProperty{ + activitystreamsIntransitiveActivityMember: v, + alias: alias, + } + return this, nil + } else if v, err := mgr.DeserializeInviteActivityStreams()(m, aliasMap); err == nil { + this := &ForgeFedTicketsTrackedByProperty{ + activitystreamsInviteMember: v, + alias: alias, + } + return this, nil + } else if v, err := mgr.DeserializeJoinActivityStreams()(m, aliasMap); err == nil { + this := &ForgeFedTicketsTrackedByProperty{ + activitystreamsJoinMember: v, + alias: alias, + } + return this, nil + } else if v, err := mgr.DeserializeLeaveActivityStreams()(m, aliasMap); err == nil { + this := &ForgeFedTicketsTrackedByProperty{ + activitystreamsLeaveMember: v, + alias: alias, + } + return this, nil + } else if v, err := mgr.DeserializeLikeActivityStreams()(m, aliasMap); err == nil { + this := &ForgeFedTicketsTrackedByProperty{ + activitystreamsLikeMember: v, + alias: alias, + } + return this, nil + } else if v, err := mgr.DeserializeListenActivityStreams()(m, aliasMap); err == nil { + this := &ForgeFedTicketsTrackedByProperty{ + activitystreamsListenMember: v, + alias: alias, + } + return this, nil + } else if v, err := mgr.DeserializeMoveActivityStreams()(m, aliasMap); err == nil { + this := &ForgeFedTicketsTrackedByProperty{ + activitystreamsMoveMember: v, + alias: alias, + } + return this, nil + } else if v, err := mgr.DeserializeNoteActivityStreams()(m, aliasMap); err == nil { + this := &ForgeFedTicketsTrackedByProperty{ + activitystreamsNoteMember: v, + alias: alias, + } + return this, nil + } else if v, err := mgr.DeserializeOfferActivityStreams()(m, aliasMap); err == nil { + this := &ForgeFedTicketsTrackedByProperty{ + activitystreamsOfferMember: v, + alias: alias, + } + return this, nil + } else if v, err := mgr.DeserializeOrderedCollectionActivityStreams()(m, aliasMap); err == nil { + this := &ForgeFedTicketsTrackedByProperty{ + activitystreamsOrderedCollectionMember: v, + alias: alias, + } + return this, nil + } else if v, err := mgr.DeserializeOrderedCollectionPageActivityStreams()(m, aliasMap); err == nil { + this := &ForgeFedTicketsTrackedByProperty{ + activitystreamsOrderedCollectionPageMember: v, + alias: alias, + } + return this, nil + } else if v, err := mgr.DeserializeOrganizationActivityStreams()(m, aliasMap); err == nil { + this := &ForgeFedTicketsTrackedByProperty{ + activitystreamsOrganizationMember: v, + alias: alias, + } + return this, nil + } else if v, err := mgr.DeserializePageActivityStreams()(m, aliasMap); err == nil { + this := &ForgeFedTicketsTrackedByProperty{ + activitystreamsPageMember: v, + alias: alias, + } + return this, nil + } else if v, err := mgr.DeserializePersonActivityStreams()(m, aliasMap); err == nil { + this := &ForgeFedTicketsTrackedByProperty{ + activitystreamsPersonMember: v, + alias: alias, + } + return this, nil + } else if v, err := mgr.DeserializePlaceActivityStreams()(m, aliasMap); err == nil { + this := &ForgeFedTicketsTrackedByProperty{ + activitystreamsPlaceMember: v, + alias: alias, + } + return this, nil + } else if v, err := mgr.DeserializeProfileActivityStreams()(m, aliasMap); err == nil { + this := &ForgeFedTicketsTrackedByProperty{ + activitystreamsProfileMember: v, + alias: alias, + } + return this, nil + } else if v, err := mgr.DeserializePushForgeFed()(m, aliasMap); err == nil { + this := &ForgeFedTicketsTrackedByProperty{ + alias: alias, + forgefedPushMember: v, + } + return this, nil + } else if v, err := mgr.DeserializeQuestionActivityStreams()(m, aliasMap); err == nil { + this := &ForgeFedTicketsTrackedByProperty{ + activitystreamsQuestionMember: v, + alias: alias, + } + return this, nil + } else if v, err := mgr.DeserializeReadActivityStreams()(m, aliasMap); err == nil { + this := &ForgeFedTicketsTrackedByProperty{ + activitystreamsReadMember: v, + alias: alias, + } + return this, nil + } else if v, err := mgr.DeserializeRejectActivityStreams()(m, aliasMap); err == nil { + this := &ForgeFedTicketsTrackedByProperty{ + activitystreamsRejectMember: v, + alias: alias, + } + return this, nil + } else if v, err := mgr.DeserializeRelationshipActivityStreams()(m, aliasMap); err == nil { + this := &ForgeFedTicketsTrackedByProperty{ + activitystreamsRelationshipMember: v, + alias: alias, + } + return this, nil + } else if v, err := mgr.DeserializeRemoveActivityStreams()(m, aliasMap); err == nil { + this := &ForgeFedTicketsTrackedByProperty{ + activitystreamsRemoveMember: v, + alias: alias, + } + return this, nil + } else if v, err := mgr.DeserializeRepositoryForgeFed()(m, aliasMap); err == nil { + this := &ForgeFedTicketsTrackedByProperty{ + alias: alias, + forgefedRepositoryMember: v, + } + return this, nil + } else if v, err := mgr.DeserializeServiceActivityStreams()(m, aliasMap); err == nil { + this := &ForgeFedTicketsTrackedByProperty{ + activitystreamsServiceMember: v, + alias: alias, + } + return this, nil + } else if v, err := mgr.DeserializeTentativeAcceptActivityStreams()(m, aliasMap); err == nil { + this := &ForgeFedTicketsTrackedByProperty{ + activitystreamsTentativeAcceptMember: v, + alias: alias, + } + return this, nil + } else if v, err := mgr.DeserializeTentativeRejectActivityStreams()(m, aliasMap); err == nil { + this := &ForgeFedTicketsTrackedByProperty{ + activitystreamsTentativeRejectMember: v, + alias: alias, + } + return this, nil + } else if v, err := mgr.DeserializeTicketForgeFed()(m, aliasMap); err == nil { + this := &ForgeFedTicketsTrackedByProperty{ + alias: alias, + forgefedTicketMember: v, + } + return this, nil + } else if v, err := mgr.DeserializeTicketDependencyForgeFed()(m, aliasMap); err == nil { + this := &ForgeFedTicketsTrackedByProperty{ + alias: alias, + forgefedTicketDependencyMember: v, + } + return this, nil + } else if v, err := mgr.DeserializeTombstoneActivityStreams()(m, aliasMap); err == nil { + this := &ForgeFedTicketsTrackedByProperty{ + activitystreamsTombstoneMember: v, + alias: alias, + } + return this, nil + } else if v, err := mgr.DeserializeTravelActivityStreams()(m, aliasMap); err == nil { + this := &ForgeFedTicketsTrackedByProperty{ + activitystreamsTravelMember: v, + alias: alias, + } + return this, nil + } else if v, err := mgr.DeserializeUndoActivityStreams()(m, aliasMap); err == nil { + this := &ForgeFedTicketsTrackedByProperty{ + activitystreamsUndoMember: v, + alias: alias, + } + return this, nil + } else if v, err := mgr.DeserializeUpdateActivityStreams()(m, aliasMap); err == nil { + this := &ForgeFedTicketsTrackedByProperty{ + activitystreamsUpdateMember: v, + alias: alias, + } + return this, nil + } else if v, err := mgr.DeserializeVideoActivityStreams()(m, aliasMap); err == nil { + this := &ForgeFedTicketsTrackedByProperty{ + activitystreamsVideoMember: v, + alias: alias, + } + return this, nil + } else if v, err := mgr.DeserializeViewActivityStreams()(m, aliasMap); err == nil { + this := &ForgeFedTicketsTrackedByProperty{ + activitystreamsViewMember: v, + alias: alias, + } + return this, nil + } + } + this := &ForgeFedTicketsTrackedByProperty{ + alias: alias, + unknown: i, + } + return this, nil + } + return nil, nil +} + +// NewForgeFedTicketsTrackedByProperty creates a new ticketsTrackedBy property. +func NewForgeFedTicketsTrackedByProperty() *ForgeFedTicketsTrackedByProperty { + return &ForgeFedTicketsTrackedByProperty{alias: ""} +} + +// Clear ensures no value of this property is set. Calling HasAny or any of the +// 'Is' methods afterwards will return false. +func (this *ForgeFedTicketsTrackedByProperty) Clear() { + this.activitystreamsObjectMember = nil + this.activitystreamsAcceptMember = nil + this.activitystreamsActivityMember = nil + this.activitystreamsAddMember = nil + this.activitystreamsAnnounceMember = nil + this.activitystreamsApplicationMember = nil + this.activitystreamsArriveMember = nil + this.activitystreamsArticleMember = nil + this.activitystreamsAudioMember = nil + this.activitystreamsBlockMember = nil + this.forgefedBranchMember = nil + this.activitystreamsCollectionMember = nil + this.activitystreamsCollectionPageMember = nil + this.forgefedCommitMember = nil + this.activitystreamsCreateMember = nil + this.activitystreamsDeleteMember = nil + this.activitystreamsDislikeMember = nil + this.activitystreamsDocumentMember = nil + this.tootEmojiMember = nil + this.activitystreamsEventMember = nil + this.activitystreamsFlagMember = nil + this.activitystreamsFollowMember = nil + this.activitystreamsGroupMember = nil + this.tootIdentityProofMember = nil + this.activitystreamsIgnoreMember = nil + this.activitystreamsImageMember = nil + this.activitystreamsIntransitiveActivityMember = nil + this.activitystreamsInviteMember = nil + this.activitystreamsJoinMember = nil + this.activitystreamsLeaveMember = nil + this.activitystreamsLikeMember = nil + this.activitystreamsListenMember = nil + this.activitystreamsMoveMember = nil + this.activitystreamsNoteMember = nil + this.activitystreamsOfferMember = nil + this.activitystreamsOrderedCollectionMember = nil + this.activitystreamsOrderedCollectionPageMember = nil + this.activitystreamsOrganizationMember = nil + this.activitystreamsPageMember = nil + this.activitystreamsPersonMember = nil + this.activitystreamsPlaceMember = nil + this.activitystreamsProfileMember = nil + this.forgefedPushMember = nil + this.activitystreamsQuestionMember = nil + this.activitystreamsReadMember = nil + this.activitystreamsRejectMember = nil + this.activitystreamsRelationshipMember = nil + this.activitystreamsRemoveMember = nil + this.forgefedRepositoryMember = nil + this.activitystreamsServiceMember = nil + this.activitystreamsTentativeAcceptMember = nil + this.activitystreamsTentativeRejectMember = nil + this.forgefedTicketMember = nil + this.forgefedTicketDependencyMember = nil + this.activitystreamsTombstoneMember = nil + this.activitystreamsTravelMember = nil + this.activitystreamsUndoMember = nil + this.activitystreamsUpdateMember = nil + this.activitystreamsVideoMember = nil + this.activitystreamsViewMember = nil + this.unknown = nil + this.iri = nil +} + +// GetActivityStreamsAccept returns the value of this property. When +// IsActivityStreamsAccept returns false, GetActivityStreamsAccept will return +// an arbitrary value. +func (this ForgeFedTicketsTrackedByProperty) GetActivityStreamsAccept() vocab.ActivityStreamsAccept { + return this.activitystreamsAcceptMember +} + +// GetActivityStreamsActivity returns the value of this property. When +// IsActivityStreamsActivity returns false, GetActivityStreamsActivity will +// return an arbitrary value. +func (this ForgeFedTicketsTrackedByProperty) GetActivityStreamsActivity() vocab.ActivityStreamsActivity { + return this.activitystreamsActivityMember +} + +// GetActivityStreamsAdd returns the value of this property. When +// IsActivityStreamsAdd returns false, GetActivityStreamsAdd will return an +// arbitrary value. +func (this ForgeFedTicketsTrackedByProperty) GetActivityStreamsAdd() vocab.ActivityStreamsAdd { + return this.activitystreamsAddMember +} + +// GetActivityStreamsAnnounce returns the value of this property. When +// IsActivityStreamsAnnounce returns false, GetActivityStreamsAnnounce will +// return an arbitrary value. +func (this ForgeFedTicketsTrackedByProperty) GetActivityStreamsAnnounce() vocab.ActivityStreamsAnnounce { + return this.activitystreamsAnnounceMember +} + +// GetActivityStreamsApplication returns the value of this property. When +// IsActivityStreamsApplication returns false, GetActivityStreamsApplication +// will return an arbitrary value. +func (this ForgeFedTicketsTrackedByProperty) GetActivityStreamsApplication() vocab.ActivityStreamsApplication { + return this.activitystreamsApplicationMember +} + +// GetActivityStreamsArrive returns the value of this property. When +// IsActivityStreamsArrive returns false, GetActivityStreamsArrive will return +// an arbitrary value. +func (this ForgeFedTicketsTrackedByProperty) GetActivityStreamsArrive() vocab.ActivityStreamsArrive { + return this.activitystreamsArriveMember +} + +// GetActivityStreamsArticle returns the value of this property. When +// IsActivityStreamsArticle returns false, GetActivityStreamsArticle will +// return an arbitrary value. +func (this ForgeFedTicketsTrackedByProperty) GetActivityStreamsArticle() vocab.ActivityStreamsArticle { + return this.activitystreamsArticleMember +} + +// GetActivityStreamsAudio returns the value of this property. When +// IsActivityStreamsAudio returns false, GetActivityStreamsAudio will return +// an arbitrary value. +func (this ForgeFedTicketsTrackedByProperty) GetActivityStreamsAudio() vocab.ActivityStreamsAudio { + return this.activitystreamsAudioMember +} + +// GetActivityStreamsBlock returns the value of this property. When +// IsActivityStreamsBlock returns false, GetActivityStreamsBlock will return +// an arbitrary value. +func (this ForgeFedTicketsTrackedByProperty) GetActivityStreamsBlock() vocab.ActivityStreamsBlock { + return this.activitystreamsBlockMember +} + +// GetActivityStreamsCollection returns the value of this property. When +// IsActivityStreamsCollection returns false, GetActivityStreamsCollection +// will return an arbitrary value. +func (this ForgeFedTicketsTrackedByProperty) GetActivityStreamsCollection() vocab.ActivityStreamsCollection { + return this.activitystreamsCollectionMember +} + +// GetActivityStreamsCollectionPage returns the value of this property. When +// IsActivityStreamsCollectionPage returns false, +// GetActivityStreamsCollectionPage will return an arbitrary value. +func (this ForgeFedTicketsTrackedByProperty) GetActivityStreamsCollectionPage() vocab.ActivityStreamsCollectionPage { + return this.activitystreamsCollectionPageMember +} + +// GetActivityStreamsCreate returns the value of this property. When +// IsActivityStreamsCreate returns false, GetActivityStreamsCreate will return +// an arbitrary value. +func (this ForgeFedTicketsTrackedByProperty) GetActivityStreamsCreate() vocab.ActivityStreamsCreate { + return this.activitystreamsCreateMember +} + +// GetActivityStreamsDelete returns the value of this property. When +// IsActivityStreamsDelete returns false, GetActivityStreamsDelete will return +// an arbitrary value. +func (this ForgeFedTicketsTrackedByProperty) GetActivityStreamsDelete() vocab.ActivityStreamsDelete { + return this.activitystreamsDeleteMember +} + +// GetActivityStreamsDislike returns the value of this property. When +// IsActivityStreamsDislike returns false, GetActivityStreamsDislike will +// return an arbitrary value. +func (this ForgeFedTicketsTrackedByProperty) GetActivityStreamsDislike() vocab.ActivityStreamsDislike { + return this.activitystreamsDislikeMember +} + +// GetActivityStreamsDocument returns the value of this property. When +// IsActivityStreamsDocument returns false, GetActivityStreamsDocument will +// return an arbitrary value. +func (this ForgeFedTicketsTrackedByProperty) GetActivityStreamsDocument() vocab.ActivityStreamsDocument { + return this.activitystreamsDocumentMember +} + +// GetActivityStreamsEvent returns the value of this property. When +// IsActivityStreamsEvent returns false, GetActivityStreamsEvent will return +// an arbitrary value. +func (this ForgeFedTicketsTrackedByProperty) GetActivityStreamsEvent() vocab.ActivityStreamsEvent { + return this.activitystreamsEventMember +} + +// GetActivityStreamsFlag returns the value of this property. When +// IsActivityStreamsFlag returns false, GetActivityStreamsFlag will return an +// arbitrary value. +func (this ForgeFedTicketsTrackedByProperty) GetActivityStreamsFlag() vocab.ActivityStreamsFlag { + return this.activitystreamsFlagMember +} + +// GetActivityStreamsFollow returns the value of this property. When +// IsActivityStreamsFollow returns false, GetActivityStreamsFollow will return +// an arbitrary value. +func (this ForgeFedTicketsTrackedByProperty) GetActivityStreamsFollow() vocab.ActivityStreamsFollow { + return this.activitystreamsFollowMember +} + +// GetActivityStreamsGroup returns the value of this property. When +// IsActivityStreamsGroup returns false, GetActivityStreamsGroup will return +// an arbitrary value. +func (this ForgeFedTicketsTrackedByProperty) GetActivityStreamsGroup() vocab.ActivityStreamsGroup { + return this.activitystreamsGroupMember +} + +// GetActivityStreamsIgnore returns the value of this property. When +// IsActivityStreamsIgnore returns false, GetActivityStreamsIgnore will return +// an arbitrary value. +func (this ForgeFedTicketsTrackedByProperty) GetActivityStreamsIgnore() vocab.ActivityStreamsIgnore { + return this.activitystreamsIgnoreMember +} + +// GetActivityStreamsImage returns the value of this property. When +// IsActivityStreamsImage returns false, GetActivityStreamsImage will return +// an arbitrary value. +func (this ForgeFedTicketsTrackedByProperty) GetActivityStreamsImage() vocab.ActivityStreamsImage { + return this.activitystreamsImageMember +} + +// GetActivityStreamsIntransitiveActivity returns the value of this property. When +// IsActivityStreamsIntransitiveActivity returns false, +// GetActivityStreamsIntransitiveActivity will return an arbitrary value. +func (this ForgeFedTicketsTrackedByProperty) GetActivityStreamsIntransitiveActivity() vocab.ActivityStreamsIntransitiveActivity { + return this.activitystreamsIntransitiveActivityMember +} + +// GetActivityStreamsInvite returns the value of this property. When +// IsActivityStreamsInvite returns false, GetActivityStreamsInvite will return +// an arbitrary value. +func (this ForgeFedTicketsTrackedByProperty) GetActivityStreamsInvite() vocab.ActivityStreamsInvite { + return this.activitystreamsInviteMember +} + +// GetActivityStreamsJoin returns the value of this property. When +// IsActivityStreamsJoin returns false, GetActivityStreamsJoin will return an +// arbitrary value. +func (this ForgeFedTicketsTrackedByProperty) GetActivityStreamsJoin() vocab.ActivityStreamsJoin { + return this.activitystreamsJoinMember +} + +// GetActivityStreamsLeave returns the value of this property. When +// IsActivityStreamsLeave returns false, GetActivityStreamsLeave will return +// an arbitrary value. +func (this ForgeFedTicketsTrackedByProperty) GetActivityStreamsLeave() vocab.ActivityStreamsLeave { + return this.activitystreamsLeaveMember +} + +// GetActivityStreamsLike returns the value of this property. When +// IsActivityStreamsLike returns false, GetActivityStreamsLike will return an +// arbitrary value. +func (this ForgeFedTicketsTrackedByProperty) GetActivityStreamsLike() vocab.ActivityStreamsLike { + return this.activitystreamsLikeMember +} + +// GetActivityStreamsListen returns the value of this property. When +// IsActivityStreamsListen returns false, GetActivityStreamsListen will return +// an arbitrary value. +func (this ForgeFedTicketsTrackedByProperty) GetActivityStreamsListen() vocab.ActivityStreamsListen { + return this.activitystreamsListenMember +} + +// GetActivityStreamsMove returns the value of this property. When +// IsActivityStreamsMove returns false, GetActivityStreamsMove will return an +// arbitrary value. +func (this ForgeFedTicketsTrackedByProperty) GetActivityStreamsMove() vocab.ActivityStreamsMove { + return this.activitystreamsMoveMember +} + +// GetActivityStreamsNote returns the value of this property. When +// IsActivityStreamsNote returns false, GetActivityStreamsNote will return an +// arbitrary value. +func (this ForgeFedTicketsTrackedByProperty) GetActivityStreamsNote() vocab.ActivityStreamsNote { + return this.activitystreamsNoteMember +} + +// GetActivityStreamsObject returns the value of this property. When +// IsActivityStreamsObject returns false, GetActivityStreamsObject will return +// an arbitrary value. +func (this ForgeFedTicketsTrackedByProperty) GetActivityStreamsObject() vocab.ActivityStreamsObject { + return this.activitystreamsObjectMember +} + +// GetActivityStreamsOffer returns the value of this property. When +// IsActivityStreamsOffer returns false, GetActivityStreamsOffer will return +// an arbitrary value. +func (this ForgeFedTicketsTrackedByProperty) GetActivityStreamsOffer() vocab.ActivityStreamsOffer { + return this.activitystreamsOfferMember +} + +// GetActivityStreamsOrderedCollection returns the value of this property. When +// IsActivityStreamsOrderedCollection returns false, +// GetActivityStreamsOrderedCollection will return an arbitrary value. +func (this ForgeFedTicketsTrackedByProperty) GetActivityStreamsOrderedCollection() vocab.ActivityStreamsOrderedCollection { + return this.activitystreamsOrderedCollectionMember +} + +// GetActivityStreamsOrderedCollectionPage returns the value of this property. +// When IsActivityStreamsOrderedCollectionPage returns false, +// GetActivityStreamsOrderedCollectionPage will return an arbitrary value. +func (this ForgeFedTicketsTrackedByProperty) GetActivityStreamsOrderedCollectionPage() vocab.ActivityStreamsOrderedCollectionPage { + return this.activitystreamsOrderedCollectionPageMember +} + +// GetActivityStreamsOrganization returns the value of this property. When +// IsActivityStreamsOrganization returns false, GetActivityStreamsOrganization +// will return an arbitrary value. +func (this ForgeFedTicketsTrackedByProperty) GetActivityStreamsOrganization() vocab.ActivityStreamsOrganization { + return this.activitystreamsOrganizationMember +} + +// GetActivityStreamsPage returns the value of this property. When +// IsActivityStreamsPage returns false, GetActivityStreamsPage will return an +// arbitrary value. +func (this ForgeFedTicketsTrackedByProperty) GetActivityStreamsPage() vocab.ActivityStreamsPage { + return this.activitystreamsPageMember +} + +// GetActivityStreamsPerson returns the value of this property. When +// IsActivityStreamsPerson returns false, GetActivityStreamsPerson will return +// an arbitrary value. +func (this ForgeFedTicketsTrackedByProperty) GetActivityStreamsPerson() vocab.ActivityStreamsPerson { + return this.activitystreamsPersonMember +} + +// GetActivityStreamsPlace returns the value of this property. When +// IsActivityStreamsPlace returns false, GetActivityStreamsPlace will return +// an arbitrary value. +func (this ForgeFedTicketsTrackedByProperty) GetActivityStreamsPlace() vocab.ActivityStreamsPlace { + return this.activitystreamsPlaceMember +} + +// GetActivityStreamsProfile returns the value of this property. When +// IsActivityStreamsProfile returns false, GetActivityStreamsProfile will +// return an arbitrary value. +func (this ForgeFedTicketsTrackedByProperty) GetActivityStreamsProfile() vocab.ActivityStreamsProfile { + return this.activitystreamsProfileMember +} + +// GetActivityStreamsQuestion returns the value of this property. When +// IsActivityStreamsQuestion returns false, GetActivityStreamsQuestion will +// return an arbitrary value. +func (this ForgeFedTicketsTrackedByProperty) GetActivityStreamsQuestion() vocab.ActivityStreamsQuestion { + return this.activitystreamsQuestionMember +} + +// GetActivityStreamsRead returns the value of this property. When +// IsActivityStreamsRead returns false, GetActivityStreamsRead will return an +// arbitrary value. +func (this ForgeFedTicketsTrackedByProperty) GetActivityStreamsRead() vocab.ActivityStreamsRead { + return this.activitystreamsReadMember +} + +// GetActivityStreamsReject returns the value of this property. When +// IsActivityStreamsReject returns false, GetActivityStreamsReject will return +// an arbitrary value. +func (this ForgeFedTicketsTrackedByProperty) GetActivityStreamsReject() vocab.ActivityStreamsReject { + return this.activitystreamsRejectMember +} + +// GetActivityStreamsRelationship returns the value of this property. When +// IsActivityStreamsRelationship returns false, GetActivityStreamsRelationship +// will return an arbitrary value. +func (this ForgeFedTicketsTrackedByProperty) GetActivityStreamsRelationship() vocab.ActivityStreamsRelationship { + return this.activitystreamsRelationshipMember +} + +// GetActivityStreamsRemove returns the value of this property. When +// IsActivityStreamsRemove returns false, GetActivityStreamsRemove will return +// an arbitrary value. +func (this ForgeFedTicketsTrackedByProperty) GetActivityStreamsRemove() vocab.ActivityStreamsRemove { + return this.activitystreamsRemoveMember +} + +// GetActivityStreamsService returns the value of this property. When +// IsActivityStreamsService returns false, GetActivityStreamsService will +// return an arbitrary value. +func (this ForgeFedTicketsTrackedByProperty) GetActivityStreamsService() vocab.ActivityStreamsService { + return this.activitystreamsServiceMember +} + +// GetActivityStreamsTentativeAccept returns the value of this property. When +// IsActivityStreamsTentativeAccept returns false, +// GetActivityStreamsTentativeAccept will return an arbitrary value. +func (this ForgeFedTicketsTrackedByProperty) GetActivityStreamsTentativeAccept() vocab.ActivityStreamsTentativeAccept { + return this.activitystreamsTentativeAcceptMember +} + +// GetActivityStreamsTentativeReject returns the value of this property. When +// IsActivityStreamsTentativeReject returns false, +// GetActivityStreamsTentativeReject will return an arbitrary value. +func (this ForgeFedTicketsTrackedByProperty) GetActivityStreamsTentativeReject() vocab.ActivityStreamsTentativeReject { + return this.activitystreamsTentativeRejectMember +} + +// GetActivityStreamsTombstone returns the value of this property. When +// IsActivityStreamsTombstone returns false, GetActivityStreamsTombstone will +// return an arbitrary value. +func (this ForgeFedTicketsTrackedByProperty) GetActivityStreamsTombstone() vocab.ActivityStreamsTombstone { + return this.activitystreamsTombstoneMember +} + +// GetActivityStreamsTravel returns the value of this property. When +// IsActivityStreamsTravel returns false, GetActivityStreamsTravel will return +// an arbitrary value. +func (this ForgeFedTicketsTrackedByProperty) GetActivityStreamsTravel() vocab.ActivityStreamsTravel { + return this.activitystreamsTravelMember +} + +// GetActivityStreamsUndo returns the value of this property. When +// IsActivityStreamsUndo returns false, GetActivityStreamsUndo will return an +// arbitrary value. +func (this ForgeFedTicketsTrackedByProperty) GetActivityStreamsUndo() vocab.ActivityStreamsUndo { + return this.activitystreamsUndoMember +} + +// GetActivityStreamsUpdate returns the value of this property. When +// IsActivityStreamsUpdate returns false, GetActivityStreamsUpdate will return +// an arbitrary value. +func (this ForgeFedTicketsTrackedByProperty) GetActivityStreamsUpdate() vocab.ActivityStreamsUpdate { + return this.activitystreamsUpdateMember +} + +// GetActivityStreamsVideo returns the value of this property. When +// IsActivityStreamsVideo returns false, GetActivityStreamsVideo will return +// an arbitrary value. +func (this ForgeFedTicketsTrackedByProperty) GetActivityStreamsVideo() vocab.ActivityStreamsVideo { + return this.activitystreamsVideoMember +} + +// GetActivityStreamsView returns the value of this property. When +// IsActivityStreamsView returns false, GetActivityStreamsView will return an +// arbitrary value. +func (this ForgeFedTicketsTrackedByProperty) GetActivityStreamsView() vocab.ActivityStreamsView { + return this.activitystreamsViewMember +} + +// GetForgeFedBranch returns the value of this property. When IsForgeFedBranch +// returns false, GetForgeFedBranch will return an arbitrary value. +func (this ForgeFedTicketsTrackedByProperty) GetForgeFedBranch() vocab.ForgeFedBranch { + return this.forgefedBranchMember +} + +// GetForgeFedCommit returns the value of this property. When IsForgeFedCommit +// returns false, GetForgeFedCommit will return an arbitrary value. +func (this ForgeFedTicketsTrackedByProperty) GetForgeFedCommit() vocab.ForgeFedCommit { + return this.forgefedCommitMember +} + +// GetForgeFedPush returns the value of this property. When IsForgeFedPush returns +// false, GetForgeFedPush will return an arbitrary value. +func (this ForgeFedTicketsTrackedByProperty) GetForgeFedPush() vocab.ForgeFedPush { + return this.forgefedPushMember +} + +// GetForgeFedRepository returns the value of this property. When +// IsForgeFedRepository returns false, GetForgeFedRepository will return an +// arbitrary value. +func (this ForgeFedTicketsTrackedByProperty) GetForgeFedRepository() vocab.ForgeFedRepository { + return this.forgefedRepositoryMember +} + +// GetForgeFedTicket returns the value of this property. When IsForgeFedTicket +// returns false, GetForgeFedTicket will return an arbitrary value. +func (this ForgeFedTicketsTrackedByProperty) GetForgeFedTicket() vocab.ForgeFedTicket { + return this.forgefedTicketMember +} + +// GetForgeFedTicketDependency returns the value of this property. When +// IsForgeFedTicketDependency returns false, GetForgeFedTicketDependency will +// return an arbitrary value. +func (this ForgeFedTicketsTrackedByProperty) GetForgeFedTicketDependency() vocab.ForgeFedTicketDependency { + return this.forgefedTicketDependencyMember +} + +// GetIRI returns the IRI of this property. When IsIRI returns false, GetIRI will +// return an arbitrary value. +func (this ForgeFedTicketsTrackedByProperty) GetIRI() *url.URL { + return this.iri +} + +// GetTootEmoji returns the value of this property. When IsTootEmoji returns +// false, GetTootEmoji will return an arbitrary value. +func (this ForgeFedTicketsTrackedByProperty) GetTootEmoji() vocab.TootEmoji { + return this.tootEmojiMember +} + +// GetTootIdentityProof returns the value of this property. When +// IsTootIdentityProof returns false, GetTootIdentityProof will return an +// arbitrary value. +func (this ForgeFedTicketsTrackedByProperty) GetTootIdentityProof() vocab.TootIdentityProof { + return this.tootIdentityProofMember +} + +// GetType returns the value in this property as a Type. Returns nil if the value +// is not an ActivityStreams type, such as an IRI or another value. +func (this ForgeFedTicketsTrackedByProperty) GetType() vocab.Type { + if this.IsActivityStreamsObject() { + return this.GetActivityStreamsObject() + } + if this.IsActivityStreamsAccept() { + return this.GetActivityStreamsAccept() + } + if this.IsActivityStreamsActivity() { + return this.GetActivityStreamsActivity() + } + if this.IsActivityStreamsAdd() { + return this.GetActivityStreamsAdd() + } + if this.IsActivityStreamsAnnounce() { + return this.GetActivityStreamsAnnounce() + } + if this.IsActivityStreamsApplication() { + return this.GetActivityStreamsApplication() + } + if this.IsActivityStreamsArrive() { + return this.GetActivityStreamsArrive() + } + if this.IsActivityStreamsArticle() { + return this.GetActivityStreamsArticle() + } + if this.IsActivityStreamsAudio() { + return this.GetActivityStreamsAudio() + } + if this.IsActivityStreamsBlock() { + return this.GetActivityStreamsBlock() + } + if this.IsForgeFedBranch() { + return this.GetForgeFedBranch() + } + if this.IsActivityStreamsCollection() { + return this.GetActivityStreamsCollection() + } + if this.IsActivityStreamsCollectionPage() { + return this.GetActivityStreamsCollectionPage() + } + if this.IsForgeFedCommit() { + return this.GetForgeFedCommit() + } + if this.IsActivityStreamsCreate() { + return this.GetActivityStreamsCreate() + } + if this.IsActivityStreamsDelete() { + return this.GetActivityStreamsDelete() + } + if this.IsActivityStreamsDislike() { + return this.GetActivityStreamsDislike() + } + if this.IsActivityStreamsDocument() { + return this.GetActivityStreamsDocument() + } + if this.IsTootEmoji() { + return this.GetTootEmoji() + } + if this.IsActivityStreamsEvent() { + return this.GetActivityStreamsEvent() + } + if this.IsActivityStreamsFlag() { + return this.GetActivityStreamsFlag() + } + if this.IsActivityStreamsFollow() { + return this.GetActivityStreamsFollow() + } + if this.IsActivityStreamsGroup() { + return this.GetActivityStreamsGroup() + } + if this.IsTootIdentityProof() { + return this.GetTootIdentityProof() + } + if this.IsActivityStreamsIgnore() { + return this.GetActivityStreamsIgnore() + } + if this.IsActivityStreamsImage() { + return this.GetActivityStreamsImage() + } + if this.IsActivityStreamsIntransitiveActivity() { + return this.GetActivityStreamsIntransitiveActivity() + } + if this.IsActivityStreamsInvite() { + return this.GetActivityStreamsInvite() + } + if this.IsActivityStreamsJoin() { + return this.GetActivityStreamsJoin() + } + if this.IsActivityStreamsLeave() { + return this.GetActivityStreamsLeave() + } + if this.IsActivityStreamsLike() { + return this.GetActivityStreamsLike() + } + if this.IsActivityStreamsListen() { + return this.GetActivityStreamsListen() + } + if this.IsActivityStreamsMove() { + return this.GetActivityStreamsMove() + } + if this.IsActivityStreamsNote() { + return this.GetActivityStreamsNote() + } + if this.IsActivityStreamsOffer() { + return this.GetActivityStreamsOffer() + } + if this.IsActivityStreamsOrderedCollection() { + return this.GetActivityStreamsOrderedCollection() + } + if this.IsActivityStreamsOrderedCollectionPage() { + return this.GetActivityStreamsOrderedCollectionPage() + } + if this.IsActivityStreamsOrganization() { + return this.GetActivityStreamsOrganization() + } + if this.IsActivityStreamsPage() { + return this.GetActivityStreamsPage() + } + if this.IsActivityStreamsPerson() { + return this.GetActivityStreamsPerson() + } + if this.IsActivityStreamsPlace() { + return this.GetActivityStreamsPlace() + } + if this.IsActivityStreamsProfile() { + return this.GetActivityStreamsProfile() + } + if this.IsForgeFedPush() { + return this.GetForgeFedPush() + } + if this.IsActivityStreamsQuestion() { + return this.GetActivityStreamsQuestion() + } + if this.IsActivityStreamsRead() { + return this.GetActivityStreamsRead() + } + if this.IsActivityStreamsReject() { + return this.GetActivityStreamsReject() + } + if this.IsActivityStreamsRelationship() { + return this.GetActivityStreamsRelationship() + } + if this.IsActivityStreamsRemove() { + return this.GetActivityStreamsRemove() + } + if this.IsForgeFedRepository() { + return this.GetForgeFedRepository() + } + if this.IsActivityStreamsService() { + return this.GetActivityStreamsService() + } + if this.IsActivityStreamsTentativeAccept() { + return this.GetActivityStreamsTentativeAccept() + } + if this.IsActivityStreamsTentativeReject() { + return this.GetActivityStreamsTentativeReject() + } + if this.IsForgeFedTicket() { + return this.GetForgeFedTicket() + } + if this.IsForgeFedTicketDependency() { + return this.GetForgeFedTicketDependency() + } + if this.IsActivityStreamsTombstone() { + return this.GetActivityStreamsTombstone() + } + if this.IsActivityStreamsTravel() { + return this.GetActivityStreamsTravel() + } + if this.IsActivityStreamsUndo() { + return this.GetActivityStreamsUndo() + } + if this.IsActivityStreamsUpdate() { + return this.GetActivityStreamsUpdate() + } + if this.IsActivityStreamsVideo() { + return this.GetActivityStreamsVideo() + } + if this.IsActivityStreamsView() { + return this.GetActivityStreamsView() + } + + return nil +} + +// HasAny returns true if any of the different values is set. +func (this ForgeFedTicketsTrackedByProperty) HasAny() bool { + return this.IsActivityStreamsObject() || + this.IsActivityStreamsAccept() || + this.IsActivityStreamsActivity() || + this.IsActivityStreamsAdd() || + this.IsActivityStreamsAnnounce() || + this.IsActivityStreamsApplication() || + this.IsActivityStreamsArrive() || + this.IsActivityStreamsArticle() || + this.IsActivityStreamsAudio() || + this.IsActivityStreamsBlock() || + this.IsForgeFedBranch() || + this.IsActivityStreamsCollection() || + this.IsActivityStreamsCollectionPage() || + this.IsForgeFedCommit() || + this.IsActivityStreamsCreate() || + this.IsActivityStreamsDelete() || + this.IsActivityStreamsDislike() || + this.IsActivityStreamsDocument() || + this.IsTootEmoji() || + this.IsActivityStreamsEvent() || + this.IsActivityStreamsFlag() || + this.IsActivityStreamsFollow() || + this.IsActivityStreamsGroup() || + this.IsTootIdentityProof() || + this.IsActivityStreamsIgnore() || + this.IsActivityStreamsImage() || + this.IsActivityStreamsIntransitiveActivity() || + this.IsActivityStreamsInvite() || + this.IsActivityStreamsJoin() || + this.IsActivityStreamsLeave() || + this.IsActivityStreamsLike() || + this.IsActivityStreamsListen() || + this.IsActivityStreamsMove() || + this.IsActivityStreamsNote() || + this.IsActivityStreamsOffer() || + this.IsActivityStreamsOrderedCollection() || + this.IsActivityStreamsOrderedCollectionPage() || + this.IsActivityStreamsOrganization() || + this.IsActivityStreamsPage() || + this.IsActivityStreamsPerson() || + this.IsActivityStreamsPlace() || + this.IsActivityStreamsProfile() || + this.IsForgeFedPush() || + this.IsActivityStreamsQuestion() || + this.IsActivityStreamsRead() || + this.IsActivityStreamsReject() || + this.IsActivityStreamsRelationship() || + this.IsActivityStreamsRemove() || + this.IsForgeFedRepository() || + this.IsActivityStreamsService() || + this.IsActivityStreamsTentativeAccept() || + this.IsActivityStreamsTentativeReject() || + this.IsForgeFedTicket() || + this.IsForgeFedTicketDependency() || + this.IsActivityStreamsTombstone() || + this.IsActivityStreamsTravel() || + this.IsActivityStreamsUndo() || + this.IsActivityStreamsUpdate() || + this.IsActivityStreamsVideo() || + this.IsActivityStreamsView() || + this.iri != nil +} + +// IsActivityStreamsAccept returns true if this property has a type of "Accept". +// When true, use the GetActivityStreamsAccept and SetActivityStreamsAccept +// methods to access and set this property. +func (this ForgeFedTicketsTrackedByProperty) IsActivityStreamsAccept() bool { + return this.activitystreamsAcceptMember != nil +} + +// IsActivityStreamsActivity returns true if this property has a type of +// "Activity". When true, use the GetActivityStreamsActivity and +// SetActivityStreamsActivity methods to access and set this property. +func (this ForgeFedTicketsTrackedByProperty) IsActivityStreamsActivity() bool { + return this.activitystreamsActivityMember != nil +} + +// IsActivityStreamsAdd returns true if this property has a type of "Add". When +// true, use the GetActivityStreamsAdd and SetActivityStreamsAdd methods to +// access and set this property. +func (this ForgeFedTicketsTrackedByProperty) IsActivityStreamsAdd() bool { + return this.activitystreamsAddMember != nil +} + +// IsActivityStreamsAnnounce returns true if this property has a type of +// "Announce". When true, use the GetActivityStreamsAnnounce and +// SetActivityStreamsAnnounce methods to access and set this property. +func (this ForgeFedTicketsTrackedByProperty) IsActivityStreamsAnnounce() bool { + return this.activitystreamsAnnounceMember != nil +} + +// IsActivityStreamsApplication returns true if this property has a type of +// "Application". When true, use the GetActivityStreamsApplication and +// SetActivityStreamsApplication methods to access and set this property. +func (this ForgeFedTicketsTrackedByProperty) IsActivityStreamsApplication() bool { + return this.activitystreamsApplicationMember != nil +} + +// IsActivityStreamsArrive returns true if this property has a type of "Arrive". +// When true, use the GetActivityStreamsArrive and SetActivityStreamsArrive +// methods to access and set this property. +func (this ForgeFedTicketsTrackedByProperty) IsActivityStreamsArrive() bool { + return this.activitystreamsArriveMember != nil +} + +// IsActivityStreamsArticle returns true if this property has a type of "Article". +// When true, use the GetActivityStreamsArticle and SetActivityStreamsArticle +// methods to access and set this property. +func (this ForgeFedTicketsTrackedByProperty) IsActivityStreamsArticle() bool { + return this.activitystreamsArticleMember != nil +} + +// IsActivityStreamsAudio returns true if this property has a type of "Audio". +// When true, use the GetActivityStreamsAudio and SetActivityStreamsAudio +// methods to access and set this property. +func (this ForgeFedTicketsTrackedByProperty) IsActivityStreamsAudio() bool { + return this.activitystreamsAudioMember != nil +} + +// IsActivityStreamsBlock returns true if this property has a type of "Block". +// When true, use the GetActivityStreamsBlock and SetActivityStreamsBlock +// methods to access and set this property. +func (this ForgeFedTicketsTrackedByProperty) IsActivityStreamsBlock() bool { + return this.activitystreamsBlockMember != nil +} + +// IsActivityStreamsCollection returns true if this property has a type of +// "Collection". When true, use the GetActivityStreamsCollection and +// SetActivityStreamsCollection methods to access and set this property. +func (this ForgeFedTicketsTrackedByProperty) IsActivityStreamsCollection() bool { + return this.activitystreamsCollectionMember != nil +} + +// IsActivityStreamsCollectionPage returns true if this property has a type of +// "CollectionPage". When true, use the GetActivityStreamsCollectionPage and +// SetActivityStreamsCollectionPage methods to access and set this property. +func (this ForgeFedTicketsTrackedByProperty) IsActivityStreamsCollectionPage() bool { + return this.activitystreamsCollectionPageMember != nil +} + +// IsActivityStreamsCreate returns true if this property has a type of "Create". +// When true, use the GetActivityStreamsCreate and SetActivityStreamsCreate +// methods to access and set this property. +func (this ForgeFedTicketsTrackedByProperty) IsActivityStreamsCreate() bool { + return this.activitystreamsCreateMember != nil +} + +// IsActivityStreamsDelete returns true if this property has a type of "Delete". +// When true, use the GetActivityStreamsDelete and SetActivityStreamsDelete +// methods to access and set this property. +func (this ForgeFedTicketsTrackedByProperty) IsActivityStreamsDelete() bool { + return this.activitystreamsDeleteMember != nil +} + +// IsActivityStreamsDislike returns true if this property has a type of "Dislike". +// When true, use the GetActivityStreamsDislike and SetActivityStreamsDislike +// methods to access and set this property. +func (this ForgeFedTicketsTrackedByProperty) IsActivityStreamsDislike() bool { + return this.activitystreamsDislikeMember != nil +} + +// IsActivityStreamsDocument returns true if this property has a type of +// "Document". When true, use the GetActivityStreamsDocument and +// SetActivityStreamsDocument methods to access and set this property. +func (this ForgeFedTicketsTrackedByProperty) IsActivityStreamsDocument() bool { + return this.activitystreamsDocumentMember != nil +} + +// IsActivityStreamsEvent returns true if this property has a type of "Event". +// When true, use the GetActivityStreamsEvent and SetActivityStreamsEvent +// methods to access and set this property. +func (this ForgeFedTicketsTrackedByProperty) IsActivityStreamsEvent() bool { + return this.activitystreamsEventMember != nil +} + +// IsActivityStreamsFlag returns true if this property has a type of "Flag". When +// true, use the GetActivityStreamsFlag and SetActivityStreamsFlag methods to +// access and set this property. +func (this ForgeFedTicketsTrackedByProperty) IsActivityStreamsFlag() bool { + return this.activitystreamsFlagMember != nil +} + +// IsActivityStreamsFollow returns true if this property has a type of "Follow". +// When true, use the GetActivityStreamsFollow and SetActivityStreamsFollow +// methods to access and set this property. +func (this ForgeFedTicketsTrackedByProperty) IsActivityStreamsFollow() bool { + return this.activitystreamsFollowMember != nil +} + +// IsActivityStreamsGroup returns true if this property has a type of "Group". +// When true, use the GetActivityStreamsGroup and SetActivityStreamsGroup +// methods to access and set this property. +func (this ForgeFedTicketsTrackedByProperty) IsActivityStreamsGroup() bool { + return this.activitystreamsGroupMember != nil +} + +// IsActivityStreamsIgnore returns true if this property has a type of "Ignore". +// When true, use the GetActivityStreamsIgnore and SetActivityStreamsIgnore +// methods to access and set this property. +func (this ForgeFedTicketsTrackedByProperty) IsActivityStreamsIgnore() bool { + return this.activitystreamsIgnoreMember != nil +} + +// IsActivityStreamsImage returns true if this property has a type of "Image". +// When true, use the GetActivityStreamsImage and SetActivityStreamsImage +// methods to access and set this property. +func (this ForgeFedTicketsTrackedByProperty) IsActivityStreamsImage() bool { + return this.activitystreamsImageMember != nil +} + +// IsActivityStreamsIntransitiveActivity returns true if this property has a type +// of "IntransitiveActivity". When true, use the +// GetActivityStreamsIntransitiveActivity and +// SetActivityStreamsIntransitiveActivity methods to access and set this +// property. +func (this ForgeFedTicketsTrackedByProperty) IsActivityStreamsIntransitiveActivity() bool { + return this.activitystreamsIntransitiveActivityMember != nil +} + +// IsActivityStreamsInvite returns true if this property has a type of "Invite". +// When true, use the GetActivityStreamsInvite and SetActivityStreamsInvite +// methods to access and set this property. +func (this ForgeFedTicketsTrackedByProperty) IsActivityStreamsInvite() bool { + return this.activitystreamsInviteMember != nil +} + +// IsActivityStreamsJoin returns true if this property has a type of "Join". When +// true, use the GetActivityStreamsJoin and SetActivityStreamsJoin methods to +// access and set this property. +func (this ForgeFedTicketsTrackedByProperty) IsActivityStreamsJoin() bool { + return this.activitystreamsJoinMember != nil +} + +// IsActivityStreamsLeave returns true if this property has a type of "Leave". +// When true, use the GetActivityStreamsLeave and SetActivityStreamsLeave +// methods to access and set this property. +func (this ForgeFedTicketsTrackedByProperty) IsActivityStreamsLeave() bool { + return this.activitystreamsLeaveMember != nil +} + +// IsActivityStreamsLike returns true if this property has a type of "Like". When +// true, use the GetActivityStreamsLike and SetActivityStreamsLike methods to +// access and set this property. +func (this ForgeFedTicketsTrackedByProperty) IsActivityStreamsLike() bool { + return this.activitystreamsLikeMember != nil +} + +// IsActivityStreamsListen returns true if this property has a type of "Listen". +// When true, use the GetActivityStreamsListen and SetActivityStreamsListen +// methods to access and set this property. +func (this ForgeFedTicketsTrackedByProperty) IsActivityStreamsListen() bool { + return this.activitystreamsListenMember != nil +} + +// IsActivityStreamsMove returns true if this property has a type of "Move". When +// true, use the GetActivityStreamsMove and SetActivityStreamsMove methods to +// access and set this property. +func (this ForgeFedTicketsTrackedByProperty) IsActivityStreamsMove() bool { + return this.activitystreamsMoveMember != nil +} + +// IsActivityStreamsNote returns true if this property has a type of "Note". When +// true, use the GetActivityStreamsNote and SetActivityStreamsNote methods to +// access and set this property. +func (this ForgeFedTicketsTrackedByProperty) IsActivityStreamsNote() bool { + return this.activitystreamsNoteMember != nil +} + +// IsActivityStreamsObject returns true if this property has a type of "Object". +// When true, use the GetActivityStreamsObject and SetActivityStreamsObject +// methods to access and set this property. +func (this ForgeFedTicketsTrackedByProperty) IsActivityStreamsObject() bool { + return this.activitystreamsObjectMember != nil +} + +// IsActivityStreamsOffer returns true if this property has a type of "Offer". +// When true, use the GetActivityStreamsOffer and SetActivityStreamsOffer +// methods to access and set this property. +func (this ForgeFedTicketsTrackedByProperty) IsActivityStreamsOffer() bool { + return this.activitystreamsOfferMember != nil +} + +// IsActivityStreamsOrderedCollection returns true if this property has a type of +// "OrderedCollection". When true, use the GetActivityStreamsOrderedCollection +// and SetActivityStreamsOrderedCollection methods to access and set this +// property. +func (this ForgeFedTicketsTrackedByProperty) IsActivityStreamsOrderedCollection() bool { + return this.activitystreamsOrderedCollectionMember != nil +} + +// IsActivityStreamsOrderedCollectionPage returns true if this property has a type +// of "OrderedCollectionPage". When true, use the +// GetActivityStreamsOrderedCollectionPage and +// SetActivityStreamsOrderedCollectionPage methods to access and set this +// property. +func (this ForgeFedTicketsTrackedByProperty) IsActivityStreamsOrderedCollectionPage() bool { + return this.activitystreamsOrderedCollectionPageMember != nil +} + +// IsActivityStreamsOrganization returns true if this property has a type of +// "Organization". When true, use the GetActivityStreamsOrganization and +// SetActivityStreamsOrganization methods to access and set this property. +func (this ForgeFedTicketsTrackedByProperty) IsActivityStreamsOrganization() bool { + return this.activitystreamsOrganizationMember != nil +} + +// IsActivityStreamsPage returns true if this property has a type of "Page". When +// true, use the GetActivityStreamsPage and SetActivityStreamsPage methods to +// access and set this property. +func (this ForgeFedTicketsTrackedByProperty) IsActivityStreamsPage() bool { + return this.activitystreamsPageMember != nil +} + +// IsActivityStreamsPerson returns true if this property has a type of "Person". +// When true, use the GetActivityStreamsPerson and SetActivityStreamsPerson +// methods to access and set this property. +func (this ForgeFedTicketsTrackedByProperty) IsActivityStreamsPerson() bool { + return this.activitystreamsPersonMember != nil +} + +// IsActivityStreamsPlace returns true if this property has a type of "Place". +// When true, use the GetActivityStreamsPlace and SetActivityStreamsPlace +// methods to access and set this property. +func (this ForgeFedTicketsTrackedByProperty) IsActivityStreamsPlace() bool { + return this.activitystreamsPlaceMember != nil +} + +// IsActivityStreamsProfile returns true if this property has a type of "Profile". +// When true, use the GetActivityStreamsProfile and SetActivityStreamsProfile +// methods to access and set this property. +func (this ForgeFedTicketsTrackedByProperty) IsActivityStreamsProfile() bool { + return this.activitystreamsProfileMember != nil +} + +// IsActivityStreamsQuestion returns true if this property has a type of +// "Question". When true, use the GetActivityStreamsQuestion and +// SetActivityStreamsQuestion methods to access and set this property. +func (this ForgeFedTicketsTrackedByProperty) IsActivityStreamsQuestion() bool { + return this.activitystreamsQuestionMember != nil +} + +// IsActivityStreamsRead returns true if this property has a type of "Read". When +// true, use the GetActivityStreamsRead and SetActivityStreamsRead methods to +// access and set this property. +func (this ForgeFedTicketsTrackedByProperty) IsActivityStreamsRead() bool { + return this.activitystreamsReadMember != nil +} + +// IsActivityStreamsReject returns true if this property has a type of "Reject". +// When true, use the GetActivityStreamsReject and SetActivityStreamsReject +// methods to access and set this property. +func (this ForgeFedTicketsTrackedByProperty) IsActivityStreamsReject() bool { + return this.activitystreamsRejectMember != nil +} + +// IsActivityStreamsRelationship returns true if this property has a type of +// "Relationship". When true, use the GetActivityStreamsRelationship and +// SetActivityStreamsRelationship methods to access and set this property. +func (this ForgeFedTicketsTrackedByProperty) IsActivityStreamsRelationship() bool { + return this.activitystreamsRelationshipMember != nil +} + +// IsActivityStreamsRemove returns true if this property has a type of "Remove". +// When true, use the GetActivityStreamsRemove and SetActivityStreamsRemove +// methods to access and set this property. +func (this ForgeFedTicketsTrackedByProperty) IsActivityStreamsRemove() bool { + return this.activitystreamsRemoveMember != nil +} + +// IsActivityStreamsService returns true if this property has a type of "Service". +// When true, use the GetActivityStreamsService and SetActivityStreamsService +// methods to access and set this property. +func (this ForgeFedTicketsTrackedByProperty) IsActivityStreamsService() bool { + return this.activitystreamsServiceMember != nil +} + +// IsActivityStreamsTentativeAccept returns true if this property has a type of +// "TentativeAccept". When true, use the GetActivityStreamsTentativeAccept and +// SetActivityStreamsTentativeAccept methods to access and set this property. +func (this ForgeFedTicketsTrackedByProperty) IsActivityStreamsTentativeAccept() bool { + return this.activitystreamsTentativeAcceptMember != nil +} + +// IsActivityStreamsTentativeReject returns true if this property has a type of +// "TentativeReject". When true, use the GetActivityStreamsTentativeReject and +// SetActivityStreamsTentativeReject methods to access and set this property. +func (this ForgeFedTicketsTrackedByProperty) IsActivityStreamsTentativeReject() bool { + return this.activitystreamsTentativeRejectMember != nil +} + +// IsActivityStreamsTombstone returns true if this property has a type of +// "Tombstone". When true, use the GetActivityStreamsTombstone and +// SetActivityStreamsTombstone methods to access and set this property. +func (this ForgeFedTicketsTrackedByProperty) IsActivityStreamsTombstone() bool { + return this.activitystreamsTombstoneMember != nil +} + +// IsActivityStreamsTravel returns true if this property has a type of "Travel". +// When true, use the GetActivityStreamsTravel and SetActivityStreamsTravel +// methods to access and set this property. +func (this ForgeFedTicketsTrackedByProperty) IsActivityStreamsTravel() bool { + return this.activitystreamsTravelMember != nil +} + +// IsActivityStreamsUndo returns true if this property has a type of "Undo". When +// true, use the GetActivityStreamsUndo and SetActivityStreamsUndo methods to +// access and set this property. +func (this ForgeFedTicketsTrackedByProperty) IsActivityStreamsUndo() bool { + return this.activitystreamsUndoMember != nil +} + +// IsActivityStreamsUpdate returns true if this property has a type of "Update". +// When true, use the GetActivityStreamsUpdate and SetActivityStreamsUpdate +// methods to access and set this property. +func (this ForgeFedTicketsTrackedByProperty) IsActivityStreamsUpdate() bool { + return this.activitystreamsUpdateMember != nil +} + +// IsActivityStreamsVideo returns true if this property has a type of "Video". +// When true, use the GetActivityStreamsVideo and SetActivityStreamsVideo +// methods to access and set this property. +func (this ForgeFedTicketsTrackedByProperty) IsActivityStreamsVideo() bool { + return this.activitystreamsVideoMember != nil +} + +// IsActivityStreamsView returns true if this property has a type of "View". When +// true, use the GetActivityStreamsView and SetActivityStreamsView methods to +// access and set this property. +func (this ForgeFedTicketsTrackedByProperty) IsActivityStreamsView() bool { + return this.activitystreamsViewMember != nil +} + +// IsForgeFedBranch returns true if this property has a type of "Branch". When +// true, use the GetForgeFedBranch and SetForgeFedBranch methods to access and +// set this property. +func (this ForgeFedTicketsTrackedByProperty) IsForgeFedBranch() bool { + return this.forgefedBranchMember != nil +} + +// IsForgeFedCommit returns true if this property has a type of "Commit". When +// true, use the GetForgeFedCommit and SetForgeFedCommit methods to access and +// set this property. +func (this ForgeFedTicketsTrackedByProperty) IsForgeFedCommit() bool { + return this.forgefedCommitMember != nil +} + +// IsForgeFedPush returns true if this property has a type of "Push". When true, +// use the GetForgeFedPush and SetForgeFedPush methods to access and set this +// property. +func (this ForgeFedTicketsTrackedByProperty) IsForgeFedPush() bool { + return this.forgefedPushMember != nil +} + +// IsForgeFedRepository returns true if this property has a type of "Repository". +// When true, use the GetForgeFedRepository and SetForgeFedRepository methods +// to access and set this property. +func (this ForgeFedTicketsTrackedByProperty) IsForgeFedRepository() bool { + return this.forgefedRepositoryMember != nil +} + +// IsForgeFedTicket returns true if this property has a type of "Ticket". When +// true, use the GetForgeFedTicket and SetForgeFedTicket methods to access and +// set this property. +func (this ForgeFedTicketsTrackedByProperty) IsForgeFedTicket() bool { + return this.forgefedTicketMember != nil +} + +// IsForgeFedTicketDependency returns true if this property has a type of +// "TicketDependency". When true, use the GetForgeFedTicketDependency and +// SetForgeFedTicketDependency methods to access and set this property. +func (this ForgeFedTicketsTrackedByProperty) IsForgeFedTicketDependency() bool { + return this.forgefedTicketDependencyMember != nil +} + +// IsIRI returns true if this property is an IRI. When true, use GetIRI and SetIRI +// to access and set this property +func (this ForgeFedTicketsTrackedByProperty) IsIRI() bool { + return this.iri != nil +} + +// IsTootEmoji returns true if this property has a type of "Emoji". When true, use +// the GetTootEmoji and SetTootEmoji methods to access and set this property. +func (this ForgeFedTicketsTrackedByProperty) IsTootEmoji() bool { + return this.tootEmojiMember != nil +} + +// IsTootIdentityProof returns true if this property has a type of +// "IdentityProof". When true, use the GetTootIdentityProof and +// SetTootIdentityProof methods to access and set this property. +func (this ForgeFedTicketsTrackedByProperty) IsTootIdentityProof() bool { + return this.tootIdentityProofMember != nil +} + +// JSONLDContext returns the JSONLD URIs required in the context string for this +// property and the specific values that are set. The value in the map is the +// alias used to import the property's value or values. +func (this ForgeFedTicketsTrackedByProperty) JSONLDContext() map[string]string { + m := map[string]string{"https://forgefed.peers.community/ns": this.alias} + var child map[string]string + if this.IsActivityStreamsObject() { + child = this.GetActivityStreamsObject().JSONLDContext() + } else if this.IsActivityStreamsAccept() { + child = this.GetActivityStreamsAccept().JSONLDContext() + } else if this.IsActivityStreamsActivity() { + child = this.GetActivityStreamsActivity().JSONLDContext() + } else if this.IsActivityStreamsAdd() { + child = this.GetActivityStreamsAdd().JSONLDContext() + } else if this.IsActivityStreamsAnnounce() { + child = this.GetActivityStreamsAnnounce().JSONLDContext() + } else if this.IsActivityStreamsApplication() { + child = this.GetActivityStreamsApplication().JSONLDContext() + } else if this.IsActivityStreamsArrive() { + child = this.GetActivityStreamsArrive().JSONLDContext() + } else if this.IsActivityStreamsArticle() { + child = this.GetActivityStreamsArticle().JSONLDContext() + } else if this.IsActivityStreamsAudio() { + child = this.GetActivityStreamsAudio().JSONLDContext() + } else if this.IsActivityStreamsBlock() { + child = this.GetActivityStreamsBlock().JSONLDContext() + } else if this.IsForgeFedBranch() { + child = this.GetForgeFedBranch().JSONLDContext() + } else if this.IsActivityStreamsCollection() { + child = this.GetActivityStreamsCollection().JSONLDContext() + } else if this.IsActivityStreamsCollectionPage() { + child = this.GetActivityStreamsCollectionPage().JSONLDContext() + } else if this.IsForgeFedCommit() { + child = this.GetForgeFedCommit().JSONLDContext() + } else if this.IsActivityStreamsCreate() { + child = this.GetActivityStreamsCreate().JSONLDContext() + } else if this.IsActivityStreamsDelete() { + child = this.GetActivityStreamsDelete().JSONLDContext() + } else if this.IsActivityStreamsDislike() { + child = this.GetActivityStreamsDislike().JSONLDContext() + } else if this.IsActivityStreamsDocument() { + child = this.GetActivityStreamsDocument().JSONLDContext() + } else if this.IsTootEmoji() { + child = this.GetTootEmoji().JSONLDContext() + } else if this.IsActivityStreamsEvent() { + child = this.GetActivityStreamsEvent().JSONLDContext() + } else if this.IsActivityStreamsFlag() { + child = this.GetActivityStreamsFlag().JSONLDContext() + } else if this.IsActivityStreamsFollow() { + child = this.GetActivityStreamsFollow().JSONLDContext() + } else if this.IsActivityStreamsGroup() { + child = this.GetActivityStreamsGroup().JSONLDContext() + } else if this.IsTootIdentityProof() { + child = this.GetTootIdentityProof().JSONLDContext() + } else if this.IsActivityStreamsIgnore() { + child = this.GetActivityStreamsIgnore().JSONLDContext() + } else if this.IsActivityStreamsImage() { + child = this.GetActivityStreamsImage().JSONLDContext() + } else if this.IsActivityStreamsIntransitiveActivity() { + child = this.GetActivityStreamsIntransitiveActivity().JSONLDContext() + } else if this.IsActivityStreamsInvite() { + child = this.GetActivityStreamsInvite().JSONLDContext() + } else if this.IsActivityStreamsJoin() { + child = this.GetActivityStreamsJoin().JSONLDContext() + } else if this.IsActivityStreamsLeave() { + child = this.GetActivityStreamsLeave().JSONLDContext() + } else if this.IsActivityStreamsLike() { + child = this.GetActivityStreamsLike().JSONLDContext() + } else if this.IsActivityStreamsListen() { + child = this.GetActivityStreamsListen().JSONLDContext() + } else if this.IsActivityStreamsMove() { + child = this.GetActivityStreamsMove().JSONLDContext() + } else if this.IsActivityStreamsNote() { + child = this.GetActivityStreamsNote().JSONLDContext() + } else if this.IsActivityStreamsOffer() { + child = this.GetActivityStreamsOffer().JSONLDContext() + } else if this.IsActivityStreamsOrderedCollection() { + child = this.GetActivityStreamsOrderedCollection().JSONLDContext() + } else if this.IsActivityStreamsOrderedCollectionPage() { + child = this.GetActivityStreamsOrderedCollectionPage().JSONLDContext() + } else if this.IsActivityStreamsOrganization() { + child = this.GetActivityStreamsOrganization().JSONLDContext() + } else if this.IsActivityStreamsPage() { + child = this.GetActivityStreamsPage().JSONLDContext() + } else if this.IsActivityStreamsPerson() { + child = this.GetActivityStreamsPerson().JSONLDContext() + } else if this.IsActivityStreamsPlace() { + child = this.GetActivityStreamsPlace().JSONLDContext() + } else if this.IsActivityStreamsProfile() { + child = this.GetActivityStreamsProfile().JSONLDContext() + } else if this.IsForgeFedPush() { + child = this.GetForgeFedPush().JSONLDContext() + } else if this.IsActivityStreamsQuestion() { + child = this.GetActivityStreamsQuestion().JSONLDContext() + } else if this.IsActivityStreamsRead() { + child = this.GetActivityStreamsRead().JSONLDContext() + } else if this.IsActivityStreamsReject() { + child = this.GetActivityStreamsReject().JSONLDContext() + } else if this.IsActivityStreamsRelationship() { + child = this.GetActivityStreamsRelationship().JSONLDContext() + } else if this.IsActivityStreamsRemove() { + child = this.GetActivityStreamsRemove().JSONLDContext() + } else if this.IsForgeFedRepository() { + child = this.GetForgeFedRepository().JSONLDContext() + } else if this.IsActivityStreamsService() { + child = this.GetActivityStreamsService().JSONLDContext() + } else if this.IsActivityStreamsTentativeAccept() { + child = this.GetActivityStreamsTentativeAccept().JSONLDContext() + } else if this.IsActivityStreamsTentativeReject() { + child = this.GetActivityStreamsTentativeReject().JSONLDContext() + } else if this.IsForgeFedTicket() { + child = this.GetForgeFedTicket().JSONLDContext() + } else if this.IsForgeFedTicketDependency() { + child = this.GetForgeFedTicketDependency().JSONLDContext() + } else if this.IsActivityStreamsTombstone() { + child = this.GetActivityStreamsTombstone().JSONLDContext() + } else if this.IsActivityStreamsTravel() { + child = this.GetActivityStreamsTravel().JSONLDContext() + } else if this.IsActivityStreamsUndo() { + child = this.GetActivityStreamsUndo().JSONLDContext() + } else if this.IsActivityStreamsUpdate() { + child = this.GetActivityStreamsUpdate().JSONLDContext() + } else if this.IsActivityStreamsVideo() { + child = this.GetActivityStreamsVideo().JSONLDContext() + } else if this.IsActivityStreamsView() { + child = this.GetActivityStreamsView().JSONLDContext() + } + /* + Since the literal maps in this function are determined at + code-generation time, this loop should not overwrite an existing key with a + new value. + */ + for k, v := range child { + m[k] = v + } + return m +} + +// KindIndex computes an arbitrary value for indexing this kind of value. This is +// a leaky API detail only for folks looking to replace the go-fed +// implementation. Applications should not use this method. +func (this ForgeFedTicketsTrackedByProperty) KindIndex() int { + if this.IsActivityStreamsObject() { + return 0 + } + if this.IsActivityStreamsAccept() { + return 1 + } + if this.IsActivityStreamsActivity() { + return 2 + } + if this.IsActivityStreamsAdd() { + return 3 + } + if this.IsActivityStreamsAnnounce() { + return 4 + } + if this.IsActivityStreamsApplication() { + return 5 + } + if this.IsActivityStreamsArrive() { + return 6 + } + if this.IsActivityStreamsArticle() { + return 7 + } + if this.IsActivityStreamsAudio() { + return 8 + } + if this.IsActivityStreamsBlock() { + return 9 + } + if this.IsForgeFedBranch() { + return 10 + } + if this.IsActivityStreamsCollection() { + return 11 + } + if this.IsActivityStreamsCollectionPage() { + return 12 + } + if this.IsForgeFedCommit() { + return 13 + } + if this.IsActivityStreamsCreate() { + return 14 + } + if this.IsActivityStreamsDelete() { + return 15 + } + if this.IsActivityStreamsDislike() { + return 16 + } + if this.IsActivityStreamsDocument() { + return 17 + } + if this.IsTootEmoji() { + return 18 + } + if this.IsActivityStreamsEvent() { + return 19 + } + if this.IsActivityStreamsFlag() { + return 20 + } + if this.IsActivityStreamsFollow() { + return 21 + } + if this.IsActivityStreamsGroup() { + return 22 + } + if this.IsTootIdentityProof() { + return 23 + } + if this.IsActivityStreamsIgnore() { + return 24 + } + if this.IsActivityStreamsImage() { + return 25 + } + if this.IsActivityStreamsIntransitiveActivity() { + return 26 + } + if this.IsActivityStreamsInvite() { + return 27 + } + if this.IsActivityStreamsJoin() { + return 28 + } + if this.IsActivityStreamsLeave() { + return 29 + } + if this.IsActivityStreamsLike() { + return 30 + } + if this.IsActivityStreamsListen() { + return 31 + } + if this.IsActivityStreamsMove() { + return 32 + } + if this.IsActivityStreamsNote() { + return 33 + } + if this.IsActivityStreamsOffer() { + return 34 + } + if this.IsActivityStreamsOrderedCollection() { + return 35 + } + if this.IsActivityStreamsOrderedCollectionPage() { + return 36 + } + if this.IsActivityStreamsOrganization() { + return 37 + } + if this.IsActivityStreamsPage() { + return 38 + } + if this.IsActivityStreamsPerson() { + return 39 + } + if this.IsActivityStreamsPlace() { + return 40 + } + if this.IsActivityStreamsProfile() { + return 41 + } + if this.IsForgeFedPush() { + return 42 + } + if this.IsActivityStreamsQuestion() { + return 43 + } + if this.IsActivityStreamsRead() { + return 44 + } + if this.IsActivityStreamsReject() { + return 45 + } + if this.IsActivityStreamsRelationship() { + return 46 + } + if this.IsActivityStreamsRemove() { + return 47 + } + if this.IsForgeFedRepository() { + return 48 + } + if this.IsActivityStreamsService() { + return 49 + } + if this.IsActivityStreamsTentativeAccept() { + return 50 + } + if this.IsActivityStreamsTentativeReject() { + return 51 + } + if this.IsForgeFedTicket() { + return 52 + } + if this.IsForgeFedTicketDependency() { + return 53 + } + if this.IsActivityStreamsTombstone() { + return 54 + } + if this.IsActivityStreamsTravel() { + return 55 + } + if this.IsActivityStreamsUndo() { + return 56 + } + if this.IsActivityStreamsUpdate() { + return 57 + } + if this.IsActivityStreamsVideo() { + return 58 + } + if this.IsActivityStreamsView() { + return 59 + } + if this.IsIRI() { + return -2 + } + return -1 +} + +// LessThan compares two instances of this property with an arbitrary but stable +// comparison. Applications should not use this because it is only meant to +// help alternative implementations to go-fed to be able to normalize +// nonfunctional properties. +func (this ForgeFedTicketsTrackedByProperty) LessThan(o vocab.ForgeFedTicketsTrackedByProperty) bool { + idx1 := this.KindIndex() + idx2 := o.KindIndex() + if idx1 < idx2 { + return true + } else if idx1 > idx2 { + return false + } else if this.IsActivityStreamsObject() { + return this.GetActivityStreamsObject().LessThan(o.GetActivityStreamsObject()) + } else if this.IsActivityStreamsAccept() { + return this.GetActivityStreamsAccept().LessThan(o.GetActivityStreamsAccept()) + } else if this.IsActivityStreamsActivity() { + return this.GetActivityStreamsActivity().LessThan(o.GetActivityStreamsActivity()) + } else if this.IsActivityStreamsAdd() { + return this.GetActivityStreamsAdd().LessThan(o.GetActivityStreamsAdd()) + } else if this.IsActivityStreamsAnnounce() { + return this.GetActivityStreamsAnnounce().LessThan(o.GetActivityStreamsAnnounce()) + } else if this.IsActivityStreamsApplication() { + return this.GetActivityStreamsApplication().LessThan(o.GetActivityStreamsApplication()) + } else if this.IsActivityStreamsArrive() { + return this.GetActivityStreamsArrive().LessThan(o.GetActivityStreamsArrive()) + } else if this.IsActivityStreamsArticle() { + return this.GetActivityStreamsArticle().LessThan(o.GetActivityStreamsArticle()) + } else if this.IsActivityStreamsAudio() { + return this.GetActivityStreamsAudio().LessThan(o.GetActivityStreamsAudio()) + } else if this.IsActivityStreamsBlock() { + return this.GetActivityStreamsBlock().LessThan(o.GetActivityStreamsBlock()) + } else if this.IsForgeFedBranch() { + return this.GetForgeFedBranch().LessThan(o.GetForgeFedBranch()) + } else if this.IsActivityStreamsCollection() { + return this.GetActivityStreamsCollection().LessThan(o.GetActivityStreamsCollection()) + } else if this.IsActivityStreamsCollectionPage() { + return this.GetActivityStreamsCollectionPage().LessThan(o.GetActivityStreamsCollectionPage()) + } else if this.IsForgeFedCommit() { + return this.GetForgeFedCommit().LessThan(o.GetForgeFedCommit()) + } else if this.IsActivityStreamsCreate() { + return this.GetActivityStreamsCreate().LessThan(o.GetActivityStreamsCreate()) + } else if this.IsActivityStreamsDelete() { + return this.GetActivityStreamsDelete().LessThan(o.GetActivityStreamsDelete()) + } else if this.IsActivityStreamsDislike() { + return this.GetActivityStreamsDislike().LessThan(o.GetActivityStreamsDislike()) + } else if this.IsActivityStreamsDocument() { + return this.GetActivityStreamsDocument().LessThan(o.GetActivityStreamsDocument()) + } else if this.IsTootEmoji() { + return this.GetTootEmoji().LessThan(o.GetTootEmoji()) + } else if this.IsActivityStreamsEvent() { + return this.GetActivityStreamsEvent().LessThan(o.GetActivityStreamsEvent()) + } else if this.IsActivityStreamsFlag() { + return this.GetActivityStreamsFlag().LessThan(o.GetActivityStreamsFlag()) + } else if this.IsActivityStreamsFollow() { + return this.GetActivityStreamsFollow().LessThan(o.GetActivityStreamsFollow()) + } else if this.IsActivityStreamsGroup() { + return this.GetActivityStreamsGroup().LessThan(o.GetActivityStreamsGroup()) + } else if this.IsTootIdentityProof() { + return this.GetTootIdentityProof().LessThan(o.GetTootIdentityProof()) + } else if this.IsActivityStreamsIgnore() { + return this.GetActivityStreamsIgnore().LessThan(o.GetActivityStreamsIgnore()) + } else if this.IsActivityStreamsImage() { + return this.GetActivityStreamsImage().LessThan(o.GetActivityStreamsImage()) + } else if this.IsActivityStreamsIntransitiveActivity() { + return this.GetActivityStreamsIntransitiveActivity().LessThan(o.GetActivityStreamsIntransitiveActivity()) + } else if this.IsActivityStreamsInvite() { + return this.GetActivityStreamsInvite().LessThan(o.GetActivityStreamsInvite()) + } else if this.IsActivityStreamsJoin() { + return this.GetActivityStreamsJoin().LessThan(o.GetActivityStreamsJoin()) + } else if this.IsActivityStreamsLeave() { + return this.GetActivityStreamsLeave().LessThan(o.GetActivityStreamsLeave()) + } else if this.IsActivityStreamsLike() { + return this.GetActivityStreamsLike().LessThan(o.GetActivityStreamsLike()) + } else if this.IsActivityStreamsListen() { + return this.GetActivityStreamsListen().LessThan(o.GetActivityStreamsListen()) + } else if this.IsActivityStreamsMove() { + return this.GetActivityStreamsMove().LessThan(o.GetActivityStreamsMove()) + } else if this.IsActivityStreamsNote() { + return this.GetActivityStreamsNote().LessThan(o.GetActivityStreamsNote()) + } else if this.IsActivityStreamsOffer() { + return this.GetActivityStreamsOffer().LessThan(o.GetActivityStreamsOffer()) + } else if this.IsActivityStreamsOrderedCollection() { + return this.GetActivityStreamsOrderedCollection().LessThan(o.GetActivityStreamsOrderedCollection()) + } else if this.IsActivityStreamsOrderedCollectionPage() { + return this.GetActivityStreamsOrderedCollectionPage().LessThan(o.GetActivityStreamsOrderedCollectionPage()) + } else if this.IsActivityStreamsOrganization() { + return this.GetActivityStreamsOrganization().LessThan(o.GetActivityStreamsOrganization()) + } else if this.IsActivityStreamsPage() { + return this.GetActivityStreamsPage().LessThan(o.GetActivityStreamsPage()) + } else if this.IsActivityStreamsPerson() { + return this.GetActivityStreamsPerson().LessThan(o.GetActivityStreamsPerson()) + } else if this.IsActivityStreamsPlace() { + return this.GetActivityStreamsPlace().LessThan(o.GetActivityStreamsPlace()) + } else if this.IsActivityStreamsProfile() { + return this.GetActivityStreamsProfile().LessThan(o.GetActivityStreamsProfile()) + } else if this.IsForgeFedPush() { + return this.GetForgeFedPush().LessThan(o.GetForgeFedPush()) + } else if this.IsActivityStreamsQuestion() { + return this.GetActivityStreamsQuestion().LessThan(o.GetActivityStreamsQuestion()) + } else if this.IsActivityStreamsRead() { + return this.GetActivityStreamsRead().LessThan(o.GetActivityStreamsRead()) + } else if this.IsActivityStreamsReject() { + return this.GetActivityStreamsReject().LessThan(o.GetActivityStreamsReject()) + } else if this.IsActivityStreamsRelationship() { + return this.GetActivityStreamsRelationship().LessThan(o.GetActivityStreamsRelationship()) + } else if this.IsActivityStreamsRemove() { + return this.GetActivityStreamsRemove().LessThan(o.GetActivityStreamsRemove()) + } else if this.IsForgeFedRepository() { + return this.GetForgeFedRepository().LessThan(o.GetForgeFedRepository()) + } else if this.IsActivityStreamsService() { + return this.GetActivityStreamsService().LessThan(o.GetActivityStreamsService()) + } else if this.IsActivityStreamsTentativeAccept() { + return this.GetActivityStreamsTentativeAccept().LessThan(o.GetActivityStreamsTentativeAccept()) + } else if this.IsActivityStreamsTentativeReject() { + return this.GetActivityStreamsTentativeReject().LessThan(o.GetActivityStreamsTentativeReject()) + } else if this.IsForgeFedTicket() { + return this.GetForgeFedTicket().LessThan(o.GetForgeFedTicket()) + } else if this.IsForgeFedTicketDependency() { + return this.GetForgeFedTicketDependency().LessThan(o.GetForgeFedTicketDependency()) + } else if this.IsActivityStreamsTombstone() { + return this.GetActivityStreamsTombstone().LessThan(o.GetActivityStreamsTombstone()) + } else if this.IsActivityStreamsTravel() { + return this.GetActivityStreamsTravel().LessThan(o.GetActivityStreamsTravel()) + } else if this.IsActivityStreamsUndo() { + return this.GetActivityStreamsUndo().LessThan(o.GetActivityStreamsUndo()) + } else if this.IsActivityStreamsUpdate() { + return this.GetActivityStreamsUpdate().LessThan(o.GetActivityStreamsUpdate()) + } else if this.IsActivityStreamsVideo() { + return this.GetActivityStreamsVideo().LessThan(o.GetActivityStreamsVideo()) + } else if this.IsActivityStreamsView() { + return this.GetActivityStreamsView().LessThan(o.GetActivityStreamsView()) + } else if this.IsIRI() { + return this.iri.String() < o.GetIRI().String() + } + return false +} + +// Name returns the name of this property: "ticketsTrackedBy". +func (this ForgeFedTicketsTrackedByProperty) Name() string { + if len(this.alias) > 0 { + return this.alias + ":" + "ticketsTrackedBy" + } else { + return "ticketsTrackedBy" + } +} + +// Serialize converts this into an interface representation suitable for +// marshalling into a text or binary format. Applications should not need this +// function as most typical use cases serialize types instead of individual +// properties. It is exposed for alternatives to go-fed implementations to use. +func (this ForgeFedTicketsTrackedByProperty) Serialize() (interface{}, error) { + if this.IsActivityStreamsObject() { + return this.GetActivityStreamsObject().Serialize() + } else if this.IsActivityStreamsAccept() { + return this.GetActivityStreamsAccept().Serialize() + } else if this.IsActivityStreamsActivity() { + return this.GetActivityStreamsActivity().Serialize() + } else if this.IsActivityStreamsAdd() { + return this.GetActivityStreamsAdd().Serialize() + } else if this.IsActivityStreamsAnnounce() { + return this.GetActivityStreamsAnnounce().Serialize() + } else if this.IsActivityStreamsApplication() { + return this.GetActivityStreamsApplication().Serialize() + } else if this.IsActivityStreamsArrive() { + return this.GetActivityStreamsArrive().Serialize() + } else if this.IsActivityStreamsArticle() { + return this.GetActivityStreamsArticle().Serialize() + } else if this.IsActivityStreamsAudio() { + return this.GetActivityStreamsAudio().Serialize() + } else if this.IsActivityStreamsBlock() { + return this.GetActivityStreamsBlock().Serialize() + } else if this.IsForgeFedBranch() { + return this.GetForgeFedBranch().Serialize() + } else if this.IsActivityStreamsCollection() { + return this.GetActivityStreamsCollection().Serialize() + } else if this.IsActivityStreamsCollectionPage() { + return this.GetActivityStreamsCollectionPage().Serialize() + } else if this.IsForgeFedCommit() { + return this.GetForgeFedCommit().Serialize() + } else if this.IsActivityStreamsCreate() { + return this.GetActivityStreamsCreate().Serialize() + } else if this.IsActivityStreamsDelete() { + return this.GetActivityStreamsDelete().Serialize() + } else if this.IsActivityStreamsDislike() { + return this.GetActivityStreamsDislike().Serialize() + } else if this.IsActivityStreamsDocument() { + return this.GetActivityStreamsDocument().Serialize() + } else if this.IsTootEmoji() { + return this.GetTootEmoji().Serialize() + } else if this.IsActivityStreamsEvent() { + return this.GetActivityStreamsEvent().Serialize() + } else if this.IsActivityStreamsFlag() { + return this.GetActivityStreamsFlag().Serialize() + } else if this.IsActivityStreamsFollow() { + return this.GetActivityStreamsFollow().Serialize() + } else if this.IsActivityStreamsGroup() { + return this.GetActivityStreamsGroup().Serialize() + } else if this.IsTootIdentityProof() { + return this.GetTootIdentityProof().Serialize() + } else if this.IsActivityStreamsIgnore() { + return this.GetActivityStreamsIgnore().Serialize() + } else if this.IsActivityStreamsImage() { + return this.GetActivityStreamsImage().Serialize() + } else if this.IsActivityStreamsIntransitiveActivity() { + return this.GetActivityStreamsIntransitiveActivity().Serialize() + } else if this.IsActivityStreamsInvite() { + return this.GetActivityStreamsInvite().Serialize() + } else if this.IsActivityStreamsJoin() { + return this.GetActivityStreamsJoin().Serialize() + } else if this.IsActivityStreamsLeave() { + return this.GetActivityStreamsLeave().Serialize() + } else if this.IsActivityStreamsLike() { + return this.GetActivityStreamsLike().Serialize() + } else if this.IsActivityStreamsListen() { + return this.GetActivityStreamsListen().Serialize() + } else if this.IsActivityStreamsMove() { + return this.GetActivityStreamsMove().Serialize() + } else if this.IsActivityStreamsNote() { + return this.GetActivityStreamsNote().Serialize() + } else if this.IsActivityStreamsOffer() { + return this.GetActivityStreamsOffer().Serialize() + } else if this.IsActivityStreamsOrderedCollection() { + return this.GetActivityStreamsOrderedCollection().Serialize() + } else if this.IsActivityStreamsOrderedCollectionPage() { + return this.GetActivityStreamsOrderedCollectionPage().Serialize() + } else if this.IsActivityStreamsOrganization() { + return this.GetActivityStreamsOrganization().Serialize() + } else if this.IsActivityStreamsPage() { + return this.GetActivityStreamsPage().Serialize() + } else if this.IsActivityStreamsPerson() { + return this.GetActivityStreamsPerson().Serialize() + } else if this.IsActivityStreamsPlace() { + return this.GetActivityStreamsPlace().Serialize() + } else if this.IsActivityStreamsProfile() { + return this.GetActivityStreamsProfile().Serialize() + } else if this.IsForgeFedPush() { + return this.GetForgeFedPush().Serialize() + } else if this.IsActivityStreamsQuestion() { + return this.GetActivityStreamsQuestion().Serialize() + } else if this.IsActivityStreamsRead() { + return this.GetActivityStreamsRead().Serialize() + } else if this.IsActivityStreamsReject() { + return this.GetActivityStreamsReject().Serialize() + } else if this.IsActivityStreamsRelationship() { + return this.GetActivityStreamsRelationship().Serialize() + } else if this.IsActivityStreamsRemove() { + return this.GetActivityStreamsRemove().Serialize() + } else if this.IsForgeFedRepository() { + return this.GetForgeFedRepository().Serialize() + } else if this.IsActivityStreamsService() { + return this.GetActivityStreamsService().Serialize() + } else if this.IsActivityStreamsTentativeAccept() { + return this.GetActivityStreamsTentativeAccept().Serialize() + } else if this.IsActivityStreamsTentativeReject() { + return this.GetActivityStreamsTentativeReject().Serialize() + } else if this.IsForgeFedTicket() { + return this.GetForgeFedTicket().Serialize() + } else if this.IsForgeFedTicketDependency() { + return this.GetForgeFedTicketDependency().Serialize() + } else if this.IsActivityStreamsTombstone() { + return this.GetActivityStreamsTombstone().Serialize() + } else if this.IsActivityStreamsTravel() { + return this.GetActivityStreamsTravel().Serialize() + } else if this.IsActivityStreamsUndo() { + return this.GetActivityStreamsUndo().Serialize() + } else if this.IsActivityStreamsUpdate() { + return this.GetActivityStreamsUpdate().Serialize() + } else if this.IsActivityStreamsVideo() { + return this.GetActivityStreamsVideo().Serialize() + } else if this.IsActivityStreamsView() { + return this.GetActivityStreamsView().Serialize() + } else if this.IsIRI() { + return this.iri.String(), nil + } + return this.unknown, nil +} + +// SetActivityStreamsAccept sets the value of this property. Calling +// IsActivityStreamsAccept afterwards returns true. +func (this *ForgeFedTicketsTrackedByProperty) SetActivityStreamsAccept(v vocab.ActivityStreamsAccept) { + this.Clear() + this.activitystreamsAcceptMember = v +} + +// SetActivityStreamsActivity sets the value of this property. Calling +// IsActivityStreamsActivity afterwards returns true. +func (this *ForgeFedTicketsTrackedByProperty) SetActivityStreamsActivity(v vocab.ActivityStreamsActivity) { + this.Clear() + this.activitystreamsActivityMember = v +} + +// SetActivityStreamsAdd sets the value of this property. Calling +// IsActivityStreamsAdd afterwards returns true. +func (this *ForgeFedTicketsTrackedByProperty) SetActivityStreamsAdd(v vocab.ActivityStreamsAdd) { + this.Clear() + this.activitystreamsAddMember = v +} + +// SetActivityStreamsAnnounce sets the value of this property. Calling +// IsActivityStreamsAnnounce afterwards returns true. +func (this *ForgeFedTicketsTrackedByProperty) SetActivityStreamsAnnounce(v vocab.ActivityStreamsAnnounce) { + this.Clear() + this.activitystreamsAnnounceMember = v +} + +// SetActivityStreamsApplication sets the value of this property. Calling +// IsActivityStreamsApplication afterwards returns true. +func (this *ForgeFedTicketsTrackedByProperty) SetActivityStreamsApplication(v vocab.ActivityStreamsApplication) { + this.Clear() + this.activitystreamsApplicationMember = v +} + +// SetActivityStreamsArrive sets the value of this property. Calling +// IsActivityStreamsArrive afterwards returns true. +func (this *ForgeFedTicketsTrackedByProperty) SetActivityStreamsArrive(v vocab.ActivityStreamsArrive) { + this.Clear() + this.activitystreamsArriveMember = v +} + +// SetActivityStreamsArticle sets the value of this property. Calling +// IsActivityStreamsArticle afterwards returns true. +func (this *ForgeFedTicketsTrackedByProperty) SetActivityStreamsArticle(v vocab.ActivityStreamsArticle) { + this.Clear() + this.activitystreamsArticleMember = v +} + +// SetActivityStreamsAudio sets the value of this property. Calling +// IsActivityStreamsAudio afterwards returns true. +func (this *ForgeFedTicketsTrackedByProperty) SetActivityStreamsAudio(v vocab.ActivityStreamsAudio) { + this.Clear() + this.activitystreamsAudioMember = v +} + +// SetActivityStreamsBlock sets the value of this property. Calling +// IsActivityStreamsBlock afterwards returns true. +func (this *ForgeFedTicketsTrackedByProperty) SetActivityStreamsBlock(v vocab.ActivityStreamsBlock) { + this.Clear() + this.activitystreamsBlockMember = v +} + +// SetActivityStreamsCollection sets the value of this property. Calling +// IsActivityStreamsCollection afterwards returns true. +func (this *ForgeFedTicketsTrackedByProperty) SetActivityStreamsCollection(v vocab.ActivityStreamsCollection) { + this.Clear() + this.activitystreamsCollectionMember = v +} + +// SetActivityStreamsCollectionPage sets the value of this property. Calling +// IsActivityStreamsCollectionPage afterwards returns true. +func (this *ForgeFedTicketsTrackedByProperty) SetActivityStreamsCollectionPage(v vocab.ActivityStreamsCollectionPage) { + this.Clear() + this.activitystreamsCollectionPageMember = v +} + +// SetActivityStreamsCreate sets the value of this property. Calling +// IsActivityStreamsCreate afterwards returns true. +func (this *ForgeFedTicketsTrackedByProperty) SetActivityStreamsCreate(v vocab.ActivityStreamsCreate) { + this.Clear() + this.activitystreamsCreateMember = v +} + +// SetActivityStreamsDelete sets the value of this property. Calling +// IsActivityStreamsDelete afterwards returns true. +func (this *ForgeFedTicketsTrackedByProperty) SetActivityStreamsDelete(v vocab.ActivityStreamsDelete) { + this.Clear() + this.activitystreamsDeleteMember = v +} + +// SetActivityStreamsDislike sets the value of this property. Calling +// IsActivityStreamsDislike afterwards returns true. +func (this *ForgeFedTicketsTrackedByProperty) SetActivityStreamsDislike(v vocab.ActivityStreamsDislike) { + this.Clear() + this.activitystreamsDislikeMember = v +} + +// SetActivityStreamsDocument sets the value of this property. Calling +// IsActivityStreamsDocument afterwards returns true. +func (this *ForgeFedTicketsTrackedByProperty) SetActivityStreamsDocument(v vocab.ActivityStreamsDocument) { + this.Clear() + this.activitystreamsDocumentMember = v +} + +// SetActivityStreamsEvent sets the value of this property. Calling +// IsActivityStreamsEvent afterwards returns true. +func (this *ForgeFedTicketsTrackedByProperty) SetActivityStreamsEvent(v vocab.ActivityStreamsEvent) { + this.Clear() + this.activitystreamsEventMember = v +} + +// SetActivityStreamsFlag sets the value of this property. Calling +// IsActivityStreamsFlag afterwards returns true. +func (this *ForgeFedTicketsTrackedByProperty) SetActivityStreamsFlag(v vocab.ActivityStreamsFlag) { + this.Clear() + this.activitystreamsFlagMember = v +} + +// SetActivityStreamsFollow sets the value of this property. Calling +// IsActivityStreamsFollow afterwards returns true. +func (this *ForgeFedTicketsTrackedByProperty) SetActivityStreamsFollow(v vocab.ActivityStreamsFollow) { + this.Clear() + this.activitystreamsFollowMember = v +} + +// SetActivityStreamsGroup sets the value of this property. Calling +// IsActivityStreamsGroup afterwards returns true. +func (this *ForgeFedTicketsTrackedByProperty) SetActivityStreamsGroup(v vocab.ActivityStreamsGroup) { + this.Clear() + this.activitystreamsGroupMember = v +} + +// SetActivityStreamsIgnore sets the value of this property. Calling +// IsActivityStreamsIgnore afterwards returns true. +func (this *ForgeFedTicketsTrackedByProperty) SetActivityStreamsIgnore(v vocab.ActivityStreamsIgnore) { + this.Clear() + this.activitystreamsIgnoreMember = v +} + +// SetActivityStreamsImage sets the value of this property. Calling +// IsActivityStreamsImage afterwards returns true. +func (this *ForgeFedTicketsTrackedByProperty) SetActivityStreamsImage(v vocab.ActivityStreamsImage) { + this.Clear() + this.activitystreamsImageMember = v +} + +// SetActivityStreamsIntransitiveActivity sets the value of this property. Calling +// IsActivityStreamsIntransitiveActivity afterwards returns true. +func (this *ForgeFedTicketsTrackedByProperty) SetActivityStreamsIntransitiveActivity(v vocab.ActivityStreamsIntransitiveActivity) { + this.Clear() + this.activitystreamsIntransitiveActivityMember = v +} + +// SetActivityStreamsInvite sets the value of this property. Calling +// IsActivityStreamsInvite afterwards returns true. +func (this *ForgeFedTicketsTrackedByProperty) SetActivityStreamsInvite(v vocab.ActivityStreamsInvite) { + this.Clear() + this.activitystreamsInviteMember = v +} + +// SetActivityStreamsJoin sets the value of this property. Calling +// IsActivityStreamsJoin afterwards returns true. +func (this *ForgeFedTicketsTrackedByProperty) SetActivityStreamsJoin(v vocab.ActivityStreamsJoin) { + this.Clear() + this.activitystreamsJoinMember = v +} + +// SetActivityStreamsLeave sets the value of this property. Calling +// IsActivityStreamsLeave afterwards returns true. +func (this *ForgeFedTicketsTrackedByProperty) SetActivityStreamsLeave(v vocab.ActivityStreamsLeave) { + this.Clear() + this.activitystreamsLeaveMember = v +} + +// SetActivityStreamsLike sets the value of this property. Calling +// IsActivityStreamsLike afterwards returns true. +func (this *ForgeFedTicketsTrackedByProperty) SetActivityStreamsLike(v vocab.ActivityStreamsLike) { + this.Clear() + this.activitystreamsLikeMember = v +} + +// SetActivityStreamsListen sets the value of this property. Calling +// IsActivityStreamsListen afterwards returns true. +func (this *ForgeFedTicketsTrackedByProperty) SetActivityStreamsListen(v vocab.ActivityStreamsListen) { + this.Clear() + this.activitystreamsListenMember = v +} + +// SetActivityStreamsMove sets the value of this property. Calling +// IsActivityStreamsMove afterwards returns true. +func (this *ForgeFedTicketsTrackedByProperty) SetActivityStreamsMove(v vocab.ActivityStreamsMove) { + this.Clear() + this.activitystreamsMoveMember = v +} + +// SetActivityStreamsNote sets the value of this property. Calling +// IsActivityStreamsNote afterwards returns true. +func (this *ForgeFedTicketsTrackedByProperty) SetActivityStreamsNote(v vocab.ActivityStreamsNote) { + this.Clear() + this.activitystreamsNoteMember = v +} + +// SetActivityStreamsObject sets the value of this property. Calling +// IsActivityStreamsObject afterwards returns true. +func (this *ForgeFedTicketsTrackedByProperty) SetActivityStreamsObject(v vocab.ActivityStreamsObject) { + this.Clear() + this.activitystreamsObjectMember = v +} + +// SetActivityStreamsOffer sets the value of this property. Calling +// IsActivityStreamsOffer afterwards returns true. +func (this *ForgeFedTicketsTrackedByProperty) SetActivityStreamsOffer(v vocab.ActivityStreamsOffer) { + this.Clear() + this.activitystreamsOfferMember = v +} + +// SetActivityStreamsOrderedCollection sets the value of this property. Calling +// IsActivityStreamsOrderedCollection afterwards returns true. +func (this *ForgeFedTicketsTrackedByProperty) SetActivityStreamsOrderedCollection(v vocab.ActivityStreamsOrderedCollection) { + this.Clear() + this.activitystreamsOrderedCollectionMember = v +} + +// SetActivityStreamsOrderedCollectionPage sets the value of this property. +// Calling IsActivityStreamsOrderedCollectionPage afterwards returns true. +func (this *ForgeFedTicketsTrackedByProperty) SetActivityStreamsOrderedCollectionPage(v vocab.ActivityStreamsOrderedCollectionPage) { + this.Clear() + this.activitystreamsOrderedCollectionPageMember = v +} + +// SetActivityStreamsOrganization sets the value of this property. Calling +// IsActivityStreamsOrganization afterwards returns true. +func (this *ForgeFedTicketsTrackedByProperty) SetActivityStreamsOrganization(v vocab.ActivityStreamsOrganization) { + this.Clear() + this.activitystreamsOrganizationMember = v +} + +// SetActivityStreamsPage sets the value of this property. Calling +// IsActivityStreamsPage afterwards returns true. +func (this *ForgeFedTicketsTrackedByProperty) SetActivityStreamsPage(v vocab.ActivityStreamsPage) { + this.Clear() + this.activitystreamsPageMember = v +} + +// SetActivityStreamsPerson sets the value of this property. Calling +// IsActivityStreamsPerson afterwards returns true. +func (this *ForgeFedTicketsTrackedByProperty) SetActivityStreamsPerson(v vocab.ActivityStreamsPerson) { + this.Clear() + this.activitystreamsPersonMember = v +} + +// SetActivityStreamsPlace sets the value of this property. Calling +// IsActivityStreamsPlace afterwards returns true. +func (this *ForgeFedTicketsTrackedByProperty) SetActivityStreamsPlace(v vocab.ActivityStreamsPlace) { + this.Clear() + this.activitystreamsPlaceMember = v +} + +// SetActivityStreamsProfile sets the value of this property. Calling +// IsActivityStreamsProfile afterwards returns true. +func (this *ForgeFedTicketsTrackedByProperty) SetActivityStreamsProfile(v vocab.ActivityStreamsProfile) { + this.Clear() + this.activitystreamsProfileMember = v +} + +// SetActivityStreamsQuestion sets the value of this property. Calling +// IsActivityStreamsQuestion afterwards returns true. +func (this *ForgeFedTicketsTrackedByProperty) SetActivityStreamsQuestion(v vocab.ActivityStreamsQuestion) { + this.Clear() + this.activitystreamsQuestionMember = v +} + +// SetActivityStreamsRead sets the value of this property. Calling +// IsActivityStreamsRead afterwards returns true. +func (this *ForgeFedTicketsTrackedByProperty) SetActivityStreamsRead(v vocab.ActivityStreamsRead) { + this.Clear() + this.activitystreamsReadMember = v +} + +// SetActivityStreamsReject sets the value of this property. Calling +// IsActivityStreamsReject afterwards returns true. +func (this *ForgeFedTicketsTrackedByProperty) SetActivityStreamsReject(v vocab.ActivityStreamsReject) { + this.Clear() + this.activitystreamsRejectMember = v +} + +// SetActivityStreamsRelationship sets the value of this property. Calling +// IsActivityStreamsRelationship afterwards returns true. +func (this *ForgeFedTicketsTrackedByProperty) SetActivityStreamsRelationship(v vocab.ActivityStreamsRelationship) { + this.Clear() + this.activitystreamsRelationshipMember = v +} + +// SetActivityStreamsRemove sets the value of this property. Calling +// IsActivityStreamsRemove afterwards returns true. +func (this *ForgeFedTicketsTrackedByProperty) SetActivityStreamsRemove(v vocab.ActivityStreamsRemove) { + this.Clear() + this.activitystreamsRemoveMember = v +} + +// SetActivityStreamsService sets the value of this property. Calling +// IsActivityStreamsService afterwards returns true. +func (this *ForgeFedTicketsTrackedByProperty) SetActivityStreamsService(v vocab.ActivityStreamsService) { + this.Clear() + this.activitystreamsServiceMember = v +} + +// SetActivityStreamsTentativeAccept sets the value of this property. Calling +// IsActivityStreamsTentativeAccept afterwards returns true. +func (this *ForgeFedTicketsTrackedByProperty) SetActivityStreamsTentativeAccept(v vocab.ActivityStreamsTentativeAccept) { + this.Clear() + this.activitystreamsTentativeAcceptMember = v +} + +// SetActivityStreamsTentativeReject sets the value of this property. Calling +// IsActivityStreamsTentativeReject afterwards returns true. +func (this *ForgeFedTicketsTrackedByProperty) SetActivityStreamsTentativeReject(v vocab.ActivityStreamsTentativeReject) { + this.Clear() + this.activitystreamsTentativeRejectMember = v +} + +// SetActivityStreamsTombstone sets the value of this property. Calling +// IsActivityStreamsTombstone afterwards returns true. +func (this *ForgeFedTicketsTrackedByProperty) SetActivityStreamsTombstone(v vocab.ActivityStreamsTombstone) { + this.Clear() + this.activitystreamsTombstoneMember = v +} + +// SetActivityStreamsTravel sets the value of this property. Calling +// IsActivityStreamsTravel afterwards returns true. +func (this *ForgeFedTicketsTrackedByProperty) SetActivityStreamsTravel(v vocab.ActivityStreamsTravel) { + this.Clear() + this.activitystreamsTravelMember = v +} + +// SetActivityStreamsUndo sets the value of this property. Calling +// IsActivityStreamsUndo afterwards returns true. +func (this *ForgeFedTicketsTrackedByProperty) SetActivityStreamsUndo(v vocab.ActivityStreamsUndo) { + this.Clear() + this.activitystreamsUndoMember = v +} + +// SetActivityStreamsUpdate sets the value of this property. Calling +// IsActivityStreamsUpdate afterwards returns true. +func (this *ForgeFedTicketsTrackedByProperty) SetActivityStreamsUpdate(v vocab.ActivityStreamsUpdate) { + this.Clear() + this.activitystreamsUpdateMember = v +} + +// SetActivityStreamsVideo sets the value of this property. Calling +// IsActivityStreamsVideo afterwards returns true. +func (this *ForgeFedTicketsTrackedByProperty) SetActivityStreamsVideo(v vocab.ActivityStreamsVideo) { + this.Clear() + this.activitystreamsVideoMember = v +} + +// SetActivityStreamsView sets the value of this property. Calling +// IsActivityStreamsView afterwards returns true. +func (this *ForgeFedTicketsTrackedByProperty) SetActivityStreamsView(v vocab.ActivityStreamsView) { + this.Clear() + this.activitystreamsViewMember = v +} + +// SetForgeFedBranch sets the value of this property. Calling IsForgeFedBranch +// afterwards returns true. +func (this *ForgeFedTicketsTrackedByProperty) SetForgeFedBranch(v vocab.ForgeFedBranch) { + this.Clear() + this.forgefedBranchMember = v +} + +// SetForgeFedCommit sets the value of this property. Calling IsForgeFedCommit +// afterwards returns true. +func (this *ForgeFedTicketsTrackedByProperty) SetForgeFedCommit(v vocab.ForgeFedCommit) { + this.Clear() + this.forgefedCommitMember = v +} + +// SetForgeFedPush sets the value of this property. Calling IsForgeFedPush +// afterwards returns true. +func (this *ForgeFedTicketsTrackedByProperty) SetForgeFedPush(v vocab.ForgeFedPush) { + this.Clear() + this.forgefedPushMember = v +} + +// SetForgeFedRepository sets the value of this property. Calling +// IsForgeFedRepository afterwards returns true. +func (this *ForgeFedTicketsTrackedByProperty) SetForgeFedRepository(v vocab.ForgeFedRepository) { + this.Clear() + this.forgefedRepositoryMember = v +} + +// SetForgeFedTicket sets the value of this property. Calling IsForgeFedTicket +// afterwards returns true. +func (this *ForgeFedTicketsTrackedByProperty) SetForgeFedTicket(v vocab.ForgeFedTicket) { + this.Clear() + this.forgefedTicketMember = v +} + +// SetForgeFedTicketDependency sets the value of this property. Calling +// IsForgeFedTicketDependency afterwards returns true. +func (this *ForgeFedTicketsTrackedByProperty) SetForgeFedTicketDependency(v vocab.ForgeFedTicketDependency) { + this.Clear() + this.forgefedTicketDependencyMember = v +} + +// SetIRI sets the value of this property. Calling IsIRI afterwards returns true. +func (this *ForgeFedTicketsTrackedByProperty) SetIRI(v *url.URL) { + this.Clear() + this.iri = v +} + +// SetTootEmoji sets the value of this property. Calling IsTootEmoji afterwards +// returns true. +func (this *ForgeFedTicketsTrackedByProperty) SetTootEmoji(v vocab.TootEmoji) { + this.Clear() + this.tootEmojiMember = v +} + +// SetTootIdentityProof sets the value of this property. Calling +// IsTootIdentityProof afterwards returns true. +func (this *ForgeFedTicketsTrackedByProperty) SetTootIdentityProof(v vocab.TootIdentityProof) { + this.Clear() + this.tootIdentityProofMember = v +} + +// SetType attempts to set the property for the arbitrary type. Returns an error +// if it is not a valid type to set on this property. +func (this *ForgeFedTicketsTrackedByProperty) SetType(t vocab.Type) error { + if v, ok := t.(vocab.ActivityStreamsObject); ok { + this.SetActivityStreamsObject(v) + return nil + } + if v, ok := t.(vocab.ActivityStreamsAccept); ok { + this.SetActivityStreamsAccept(v) + return nil + } + if v, ok := t.(vocab.ActivityStreamsActivity); ok { + this.SetActivityStreamsActivity(v) + return nil + } + if v, ok := t.(vocab.ActivityStreamsAdd); ok { + this.SetActivityStreamsAdd(v) + return nil + } + if v, ok := t.(vocab.ActivityStreamsAnnounce); ok { + this.SetActivityStreamsAnnounce(v) + return nil + } + if v, ok := t.(vocab.ActivityStreamsApplication); ok { + this.SetActivityStreamsApplication(v) + return nil + } + if v, ok := t.(vocab.ActivityStreamsArrive); ok { + this.SetActivityStreamsArrive(v) + return nil + } + if v, ok := t.(vocab.ActivityStreamsArticle); ok { + this.SetActivityStreamsArticle(v) + return nil + } + if v, ok := t.(vocab.ActivityStreamsAudio); ok { + this.SetActivityStreamsAudio(v) + return nil + } + if v, ok := t.(vocab.ActivityStreamsBlock); ok { + this.SetActivityStreamsBlock(v) + return nil + } + if v, ok := t.(vocab.ForgeFedBranch); ok { + this.SetForgeFedBranch(v) + return nil + } + if v, ok := t.(vocab.ActivityStreamsCollection); ok { + this.SetActivityStreamsCollection(v) + return nil + } + if v, ok := t.(vocab.ActivityStreamsCollectionPage); ok { + this.SetActivityStreamsCollectionPage(v) + return nil + } + if v, ok := t.(vocab.ForgeFedCommit); ok { + this.SetForgeFedCommit(v) + return nil + } + if v, ok := t.(vocab.ActivityStreamsCreate); ok { + this.SetActivityStreamsCreate(v) + return nil + } + if v, ok := t.(vocab.ActivityStreamsDelete); ok { + this.SetActivityStreamsDelete(v) + return nil + } + if v, ok := t.(vocab.ActivityStreamsDislike); ok { + this.SetActivityStreamsDislike(v) + return nil + } + if v, ok := t.(vocab.ActivityStreamsDocument); ok { + this.SetActivityStreamsDocument(v) + return nil + } + if v, ok := t.(vocab.TootEmoji); ok { + this.SetTootEmoji(v) + return nil + } + if v, ok := t.(vocab.ActivityStreamsEvent); ok { + this.SetActivityStreamsEvent(v) + return nil + } + if v, ok := t.(vocab.ActivityStreamsFlag); ok { + this.SetActivityStreamsFlag(v) + return nil + } + if v, ok := t.(vocab.ActivityStreamsFollow); ok { + this.SetActivityStreamsFollow(v) + return nil + } + if v, ok := t.(vocab.ActivityStreamsGroup); ok { + this.SetActivityStreamsGroup(v) + return nil + } + if v, ok := t.(vocab.TootIdentityProof); ok { + this.SetTootIdentityProof(v) + return nil + } + if v, ok := t.(vocab.ActivityStreamsIgnore); ok { + this.SetActivityStreamsIgnore(v) + return nil + } + if v, ok := t.(vocab.ActivityStreamsImage); ok { + this.SetActivityStreamsImage(v) + return nil + } + if v, ok := t.(vocab.ActivityStreamsIntransitiveActivity); ok { + this.SetActivityStreamsIntransitiveActivity(v) + return nil + } + if v, ok := t.(vocab.ActivityStreamsInvite); ok { + this.SetActivityStreamsInvite(v) + return nil + } + if v, ok := t.(vocab.ActivityStreamsJoin); ok { + this.SetActivityStreamsJoin(v) + return nil + } + if v, ok := t.(vocab.ActivityStreamsLeave); ok { + this.SetActivityStreamsLeave(v) + return nil + } + if v, ok := t.(vocab.ActivityStreamsLike); ok { + this.SetActivityStreamsLike(v) + return nil + } + if v, ok := t.(vocab.ActivityStreamsListen); ok { + this.SetActivityStreamsListen(v) + return nil + } + if v, ok := t.(vocab.ActivityStreamsMove); ok { + this.SetActivityStreamsMove(v) + return nil + } + if v, ok := t.(vocab.ActivityStreamsNote); ok { + this.SetActivityStreamsNote(v) + return nil + } + if v, ok := t.(vocab.ActivityStreamsOffer); ok { + this.SetActivityStreamsOffer(v) + return nil + } + if v, ok := t.(vocab.ActivityStreamsOrderedCollection); ok { + this.SetActivityStreamsOrderedCollection(v) + return nil + } + if v, ok := t.(vocab.ActivityStreamsOrderedCollectionPage); ok { + this.SetActivityStreamsOrderedCollectionPage(v) + return nil + } + if v, ok := t.(vocab.ActivityStreamsOrganization); ok { + this.SetActivityStreamsOrganization(v) + return nil + } + if v, ok := t.(vocab.ActivityStreamsPage); ok { + this.SetActivityStreamsPage(v) + return nil + } + if v, ok := t.(vocab.ActivityStreamsPerson); ok { + this.SetActivityStreamsPerson(v) + return nil + } + if v, ok := t.(vocab.ActivityStreamsPlace); ok { + this.SetActivityStreamsPlace(v) + return nil + } + if v, ok := t.(vocab.ActivityStreamsProfile); ok { + this.SetActivityStreamsProfile(v) + return nil + } + if v, ok := t.(vocab.ForgeFedPush); ok { + this.SetForgeFedPush(v) + return nil + } + if v, ok := t.(vocab.ActivityStreamsQuestion); ok { + this.SetActivityStreamsQuestion(v) + return nil + } + if v, ok := t.(vocab.ActivityStreamsRead); ok { + this.SetActivityStreamsRead(v) + return nil + } + if v, ok := t.(vocab.ActivityStreamsReject); ok { + this.SetActivityStreamsReject(v) + return nil + } + if v, ok := t.(vocab.ActivityStreamsRelationship); ok { + this.SetActivityStreamsRelationship(v) + return nil + } + if v, ok := t.(vocab.ActivityStreamsRemove); ok { + this.SetActivityStreamsRemove(v) + return nil + } + if v, ok := t.(vocab.ForgeFedRepository); ok { + this.SetForgeFedRepository(v) + return nil + } + if v, ok := t.(vocab.ActivityStreamsService); ok { + this.SetActivityStreamsService(v) + return nil + } + if v, ok := t.(vocab.ActivityStreamsTentativeAccept); ok { + this.SetActivityStreamsTentativeAccept(v) + return nil + } + if v, ok := t.(vocab.ActivityStreamsTentativeReject); ok { + this.SetActivityStreamsTentativeReject(v) + return nil + } + if v, ok := t.(vocab.ForgeFedTicket); ok { + this.SetForgeFedTicket(v) + return nil + } + if v, ok := t.(vocab.ForgeFedTicketDependency); ok { + this.SetForgeFedTicketDependency(v) + return nil + } + if v, ok := t.(vocab.ActivityStreamsTombstone); ok { + this.SetActivityStreamsTombstone(v) + return nil + } + if v, ok := t.(vocab.ActivityStreamsTravel); ok { + this.SetActivityStreamsTravel(v) + return nil + } + if v, ok := t.(vocab.ActivityStreamsUndo); ok { + this.SetActivityStreamsUndo(v) + return nil + } + if v, ok := t.(vocab.ActivityStreamsUpdate); ok { + this.SetActivityStreamsUpdate(v) + return nil + } + if v, ok := t.(vocab.ActivityStreamsVideo); ok { + this.SetActivityStreamsVideo(v) + return nil + } + if v, ok := t.(vocab.ActivityStreamsView); ok { + this.SetActivityStreamsView(v) + return nil + } + + return fmt.Errorf("illegal type to set on ticketsTrackedBy property: %T", t) +} diff --git a/streams/impl/forgefed/property_tracksticketsfor/gen_doc.go b/streams/impl/forgefed/property_tracksticketsfor/gen_doc.go new file mode 100644 index 0000000..6b98a74 --- /dev/null +++ b/streams/impl/forgefed/property_tracksticketsfor/gen_doc.go @@ -0,0 +1,17 @@ +// Code generated by astool. DO NOT EDIT. + +// Package propertytracksticketsfor contains the implementation for the +// tracksTicketsFor property. All applications are strongly encouraged to use +// the interface instead of this concrete definition. The interfaces allow +// applications to consume only the types and properties needed and be +// independent of the go-fed implementation if another alternative +// implementation is created. This package is code-generated and subject to +// the same license as the go-fed tool used to generate it. +// +// This package is independent of other types' and properties' implementations +// by having a Manager injected into it to act as a factory for the concrete +// implementations. The implementations have been generated into their own +// separate subpackages for each vocabulary. +// +// Strongly consider using the interfaces instead of this package. +package propertytracksticketsfor diff --git a/streams/impl/forgefed/property_tracksticketsfor/gen_pkg.go b/streams/impl/forgefed/property_tracksticketsfor/gen_pkg.go new file mode 100644 index 0000000..7379b9e --- /dev/null +++ b/streams/impl/forgefed/property_tracksticketsfor/gen_pkg.go @@ -0,0 +1,257 @@ +// Code generated by astool. DO NOT EDIT. + +package propertytracksticketsfor + +import vocab "github.com/go-fed/activity/streams/vocab" + +var mgr privateManager + +// privateManager abstracts the code-generated manager that provides access to +// concrete implementations. +type privateManager interface { + // DeserializeAcceptActivityStreams returns the deserialization method for + // the "ActivityStreamsAccept" non-functional property in the + // vocabulary "ActivityStreams" + DeserializeAcceptActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAccept, error) + // DeserializeActivityActivityStreams returns the deserialization method + // for the "ActivityStreamsActivity" non-functional property in the + // vocabulary "ActivityStreams" + DeserializeActivityActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsActivity, error) + // DeserializeAddActivityStreams returns the deserialization method for + // the "ActivityStreamsAdd" non-functional property in the vocabulary + // "ActivityStreams" + DeserializeAddActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAdd, error) + // DeserializeAnnounceActivityStreams returns the deserialization method + // for the "ActivityStreamsAnnounce" non-functional property in the + // vocabulary "ActivityStreams" + DeserializeAnnounceActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAnnounce, error) + // DeserializeApplicationActivityStreams returns the deserialization + // method for the "ActivityStreamsApplication" non-functional property + // in the vocabulary "ActivityStreams" + DeserializeApplicationActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsApplication, error) + // DeserializeArriveActivityStreams returns the deserialization method for + // the "ActivityStreamsArrive" non-functional property in the + // vocabulary "ActivityStreams" + DeserializeArriveActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsArrive, error) + // DeserializeArticleActivityStreams returns the deserialization method + // for the "ActivityStreamsArticle" non-functional property in the + // vocabulary "ActivityStreams" + DeserializeArticleActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsArticle, error) + // DeserializeAudioActivityStreams returns the deserialization method for + // the "ActivityStreamsAudio" non-functional property in the + // vocabulary "ActivityStreams" + DeserializeAudioActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAudio, error) + // DeserializeBlockActivityStreams returns the deserialization method for + // the "ActivityStreamsBlock" non-functional property in the + // vocabulary "ActivityStreams" + DeserializeBlockActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsBlock, error) + // DeserializeBranchForgeFed returns the deserialization method for the + // "ForgeFedBranch" non-functional property in the vocabulary + // "ForgeFed" + DeserializeBranchForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedBranch, error) + // DeserializeCollectionActivityStreams returns the deserialization method + // for the "ActivityStreamsCollection" non-functional property in the + // vocabulary "ActivityStreams" + DeserializeCollectionActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsCollection, error) + // DeserializeCollectionPageActivityStreams returns the deserialization + // method for the "ActivityStreamsCollectionPage" non-functional + // property in the vocabulary "ActivityStreams" + DeserializeCollectionPageActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsCollectionPage, error) + // DeserializeCommitForgeFed returns the deserialization method for the + // "ForgeFedCommit" non-functional property in the vocabulary + // "ForgeFed" + DeserializeCommitForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedCommit, error) + // DeserializeCreateActivityStreams returns the deserialization method for + // the "ActivityStreamsCreate" non-functional property in the + // vocabulary "ActivityStreams" + DeserializeCreateActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsCreate, error) + // DeserializeDeleteActivityStreams returns the deserialization method for + // the "ActivityStreamsDelete" non-functional property in the + // vocabulary "ActivityStreams" + DeserializeDeleteActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsDelete, error) + // DeserializeDislikeActivityStreams returns the deserialization method + // for the "ActivityStreamsDislike" non-functional property in the + // vocabulary "ActivityStreams" + DeserializeDislikeActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsDislike, error) + // DeserializeDocumentActivityStreams returns the deserialization method + // for the "ActivityStreamsDocument" non-functional property in the + // vocabulary "ActivityStreams" + DeserializeDocumentActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsDocument, error) + // DeserializeEmojiToot returns the deserialization method for the + // "TootEmoji" non-functional property in the vocabulary "Toot" + DeserializeEmojiToot() func(map[string]interface{}, map[string]string) (vocab.TootEmoji, error) + // DeserializeEventActivityStreams returns the deserialization method for + // the "ActivityStreamsEvent" non-functional property in the + // vocabulary "ActivityStreams" + DeserializeEventActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsEvent, error) + // DeserializeFlagActivityStreams returns the deserialization method for + // the "ActivityStreamsFlag" non-functional property in the vocabulary + // "ActivityStreams" + DeserializeFlagActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsFlag, error) + // DeserializeFollowActivityStreams returns the deserialization method for + // the "ActivityStreamsFollow" non-functional property in the + // vocabulary "ActivityStreams" + DeserializeFollowActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsFollow, error) + // DeserializeGroupActivityStreams returns the deserialization method for + // the "ActivityStreamsGroup" non-functional property in the + // vocabulary "ActivityStreams" + DeserializeGroupActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsGroup, error) + // DeserializeIdentityProofToot returns the deserialization method for the + // "TootIdentityProof" non-functional property in the vocabulary "Toot" + DeserializeIdentityProofToot() func(map[string]interface{}, map[string]string) (vocab.TootIdentityProof, error) + // DeserializeIgnoreActivityStreams returns the deserialization method for + // the "ActivityStreamsIgnore" non-functional property in the + // vocabulary "ActivityStreams" + DeserializeIgnoreActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsIgnore, error) + // DeserializeImageActivityStreams returns the deserialization method for + // the "ActivityStreamsImage" non-functional property in the + // vocabulary "ActivityStreams" + DeserializeImageActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsImage, error) + // DeserializeIntransitiveActivityActivityStreams returns the + // deserialization method for the + // "ActivityStreamsIntransitiveActivity" non-functional property in + // the vocabulary "ActivityStreams" + DeserializeIntransitiveActivityActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsIntransitiveActivity, error) + // DeserializeInviteActivityStreams returns the deserialization method for + // the "ActivityStreamsInvite" non-functional property in the + // vocabulary "ActivityStreams" + DeserializeInviteActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsInvite, error) + // DeserializeJoinActivityStreams returns the deserialization method for + // the "ActivityStreamsJoin" non-functional property in the vocabulary + // "ActivityStreams" + DeserializeJoinActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsJoin, error) + // DeserializeLeaveActivityStreams returns the deserialization method for + // the "ActivityStreamsLeave" non-functional property in the + // vocabulary "ActivityStreams" + DeserializeLeaveActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLeave, error) + // DeserializeLikeActivityStreams returns the deserialization method for + // the "ActivityStreamsLike" non-functional property in the vocabulary + // "ActivityStreams" + DeserializeLikeActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLike, error) + // DeserializeListenActivityStreams returns the deserialization method for + // the "ActivityStreamsListen" non-functional property in the + // vocabulary "ActivityStreams" + DeserializeListenActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsListen, error) + // DeserializeMoveActivityStreams returns the deserialization method for + // the "ActivityStreamsMove" non-functional property in the vocabulary + // "ActivityStreams" + DeserializeMoveActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsMove, error) + // DeserializeNoteActivityStreams returns the deserialization method for + // the "ActivityStreamsNote" non-functional property in the vocabulary + // "ActivityStreams" + DeserializeNoteActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsNote, error) + // DeserializeObjectActivityStreams returns the deserialization method for + // the "ActivityStreamsObject" non-functional property in the + // vocabulary "ActivityStreams" + DeserializeObjectActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsObject, error) + // DeserializeOfferActivityStreams returns the deserialization method for + // the "ActivityStreamsOffer" non-functional property in the + // vocabulary "ActivityStreams" + DeserializeOfferActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsOffer, error) + // DeserializeOrderedCollectionActivityStreams returns the deserialization + // method for the "ActivityStreamsOrderedCollection" non-functional + // property in the vocabulary "ActivityStreams" + DeserializeOrderedCollectionActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsOrderedCollection, error) + // DeserializeOrderedCollectionPageActivityStreams returns the + // deserialization method for the + // "ActivityStreamsOrderedCollectionPage" non-functional property in + // the vocabulary "ActivityStreams" + DeserializeOrderedCollectionPageActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsOrderedCollectionPage, error) + // DeserializeOrganizationActivityStreams returns the deserialization + // method for the "ActivityStreamsOrganization" non-functional + // property in the vocabulary "ActivityStreams" + DeserializeOrganizationActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsOrganization, error) + // DeserializePageActivityStreams returns the deserialization method for + // the "ActivityStreamsPage" non-functional property in the vocabulary + // "ActivityStreams" + DeserializePageActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsPage, error) + // DeserializePersonActivityStreams returns the deserialization method for + // the "ActivityStreamsPerson" non-functional property in the + // vocabulary "ActivityStreams" + DeserializePersonActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsPerson, error) + // DeserializePlaceActivityStreams returns the deserialization method for + // the "ActivityStreamsPlace" non-functional property in the + // vocabulary "ActivityStreams" + DeserializePlaceActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsPlace, error) + // DeserializeProfileActivityStreams returns the deserialization method + // for the "ActivityStreamsProfile" non-functional property in the + // vocabulary "ActivityStreams" + DeserializeProfileActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsProfile, error) + // DeserializePushForgeFed returns the deserialization method for the + // "ForgeFedPush" non-functional property in the vocabulary "ForgeFed" + DeserializePushForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedPush, error) + // DeserializeQuestionActivityStreams returns the deserialization method + // for the "ActivityStreamsQuestion" non-functional property in the + // vocabulary "ActivityStreams" + DeserializeQuestionActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsQuestion, error) + // DeserializeReadActivityStreams returns the deserialization method for + // the "ActivityStreamsRead" non-functional property in the vocabulary + // "ActivityStreams" + DeserializeReadActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsRead, error) + // DeserializeRejectActivityStreams returns the deserialization method for + // the "ActivityStreamsReject" non-functional property in the + // vocabulary "ActivityStreams" + DeserializeRejectActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsReject, error) + // DeserializeRelationshipActivityStreams returns the deserialization + // method for the "ActivityStreamsRelationship" non-functional + // property in the vocabulary "ActivityStreams" + DeserializeRelationshipActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsRelationship, error) + // DeserializeRemoveActivityStreams returns the deserialization method for + // the "ActivityStreamsRemove" non-functional property in the + // vocabulary "ActivityStreams" + DeserializeRemoveActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsRemove, error) + // DeserializeRepositoryForgeFed returns the deserialization method for + // the "ForgeFedRepository" non-functional property in the vocabulary + // "ForgeFed" + DeserializeRepositoryForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedRepository, error) + // DeserializeServiceActivityStreams returns the deserialization method + // for the "ActivityStreamsService" non-functional property in the + // vocabulary "ActivityStreams" + DeserializeServiceActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsService, error) + // DeserializeTentativeAcceptActivityStreams returns the deserialization + // method for the "ActivityStreamsTentativeAccept" non-functional + // property in the vocabulary "ActivityStreams" + DeserializeTentativeAcceptActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTentativeAccept, error) + // DeserializeTentativeRejectActivityStreams returns the deserialization + // method for the "ActivityStreamsTentativeReject" non-functional + // property in the vocabulary "ActivityStreams" + DeserializeTentativeRejectActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTentativeReject, error) + // DeserializeTicketDependencyForgeFed returns the deserialization method + // for the "ForgeFedTicketDependency" non-functional property in the + // vocabulary "ForgeFed" + DeserializeTicketDependencyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTicketDependency, error) + // DeserializeTicketForgeFed returns the deserialization method for the + // "ForgeFedTicket" non-functional property in the vocabulary + // "ForgeFed" + DeserializeTicketForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTicket, error) + // DeserializeTombstoneActivityStreams returns the deserialization method + // for the "ActivityStreamsTombstone" non-functional property in the + // vocabulary "ActivityStreams" + DeserializeTombstoneActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTombstone, error) + // DeserializeTravelActivityStreams returns the deserialization method for + // the "ActivityStreamsTravel" non-functional property in the + // vocabulary "ActivityStreams" + DeserializeTravelActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTravel, error) + // DeserializeUndoActivityStreams returns the deserialization method for + // the "ActivityStreamsUndo" non-functional property in the vocabulary + // "ActivityStreams" + DeserializeUndoActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsUndo, error) + // DeserializeUpdateActivityStreams returns the deserialization method for + // the "ActivityStreamsUpdate" non-functional property in the + // vocabulary "ActivityStreams" + DeserializeUpdateActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsUpdate, error) + // DeserializeVideoActivityStreams returns the deserialization method for + // the "ActivityStreamsVideo" non-functional property in the + // vocabulary "ActivityStreams" + DeserializeVideoActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsVideo, error) + // DeserializeViewActivityStreams returns the deserialization method for + // the "ActivityStreamsView" non-functional property in the vocabulary + // "ActivityStreams" + DeserializeViewActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsView, error) +} + +// SetManager sets the manager package-global variable. For internal use only, do +// not use as part of Application behavior. Must be called at golang init time. +func SetManager(m privateManager) { + mgr = m +} diff --git a/streams/impl/forgefed/property_tracksticketsfor/gen_property_forgefed_tracksTicketsFor.go b/streams/impl/forgefed/property_tracksticketsfor/gen_property_forgefed_tracksTicketsFor.go new file mode 100644 index 0000000..577cdc1 --- /dev/null +++ b/streams/impl/forgefed/property_tracksticketsfor/gen_property_forgefed_tracksTicketsFor.go @@ -0,0 +1,6880 @@ +// Code generated by astool. DO NOT EDIT. + +package propertytracksticketsfor + +import ( + "fmt" + vocab "github.com/go-fed/activity/streams/vocab" + "net/url" +) + +// ForgeFedTracksTicketsForPropertyIterator is an iterator for a property. It is +// permitted to be one of multiple value types. At most, one type of value can +// be present, or none at all. Setting a value will clear the other types of +// values so that only one of the 'Is' methods will return true. It is +// possible to clear all values, so that this property is empty. +type ForgeFedTracksTicketsForPropertyIterator struct { + activitystreamsObjectMember vocab.ActivityStreamsObject + activitystreamsAcceptMember vocab.ActivityStreamsAccept + activitystreamsActivityMember vocab.ActivityStreamsActivity + activitystreamsAddMember vocab.ActivityStreamsAdd + activitystreamsAnnounceMember vocab.ActivityStreamsAnnounce + activitystreamsApplicationMember vocab.ActivityStreamsApplication + activitystreamsArriveMember vocab.ActivityStreamsArrive + activitystreamsArticleMember vocab.ActivityStreamsArticle + activitystreamsAudioMember vocab.ActivityStreamsAudio + activitystreamsBlockMember vocab.ActivityStreamsBlock + forgefedBranchMember vocab.ForgeFedBranch + activitystreamsCollectionMember vocab.ActivityStreamsCollection + activitystreamsCollectionPageMember vocab.ActivityStreamsCollectionPage + forgefedCommitMember vocab.ForgeFedCommit + activitystreamsCreateMember vocab.ActivityStreamsCreate + activitystreamsDeleteMember vocab.ActivityStreamsDelete + activitystreamsDislikeMember vocab.ActivityStreamsDislike + activitystreamsDocumentMember vocab.ActivityStreamsDocument + tootEmojiMember vocab.TootEmoji + activitystreamsEventMember vocab.ActivityStreamsEvent + activitystreamsFlagMember vocab.ActivityStreamsFlag + activitystreamsFollowMember vocab.ActivityStreamsFollow + activitystreamsGroupMember vocab.ActivityStreamsGroup + tootIdentityProofMember vocab.TootIdentityProof + activitystreamsIgnoreMember vocab.ActivityStreamsIgnore + activitystreamsImageMember vocab.ActivityStreamsImage + activitystreamsIntransitiveActivityMember vocab.ActivityStreamsIntransitiveActivity + activitystreamsInviteMember vocab.ActivityStreamsInvite + activitystreamsJoinMember vocab.ActivityStreamsJoin + activitystreamsLeaveMember vocab.ActivityStreamsLeave + activitystreamsLikeMember vocab.ActivityStreamsLike + activitystreamsListenMember vocab.ActivityStreamsListen + activitystreamsMoveMember vocab.ActivityStreamsMove + activitystreamsNoteMember vocab.ActivityStreamsNote + activitystreamsOfferMember vocab.ActivityStreamsOffer + activitystreamsOrderedCollectionMember vocab.ActivityStreamsOrderedCollection + activitystreamsOrderedCollectionPageMember vocab.ActivityStreamsOrderedCollectionPage + activitystreamsOrganizationMember vocab.ActivityStreamsOrganization + activitystreamsPageMember vocab.ActivityStreamsPage + activitystreamsPersonMember vocab.ActivityStreamsPerson + activitystreamsPlaceMember vocab.ActivityStreamsPlace + activitystreamsProfileMember vocab.ActivityStreamsProfile + forgefedPushMember vocab.ForgeFedPush + activitystreamsQuestionMember vocab.ActivityStreamsQuestion + activitystreamsReadMember vocab.ActivityStreamsRead + activitystreamsRejectMember vocab.ActivityStreamsReject + activitystreamsRelationshipMember vocab.ActivityStreamsRelationship + activitystreamsRemoveMember vocab.ActivityStreamsRemove + forgefedRepositoryMember vocab.ForgeFedRepository + activitystreamsServiceMember vocab.ActivityStreamsService + activitystreamsTentativeAcceptMember vocab.ActivityStreamsTentativeAccept + activitystreamsTentativeRejectMember vocab.ActivityStreamsTentativeReject + forgefedTicketMember vocab.ForgeFedTicket + forgefedTicketDependencyMember vocab.ForgeFedTicketDependency + activitystreamsTombstoneMember vocab.ActivityStreamsTombstone + activitystreamsTravelMember vocab.ActivityStreamsTravel + activitystreamsUndoMember vocab.ActivityStreamsUndo + activitystreamsUpdateMember vocab.ActivityStreamsUpdate + activitystreamsVideoMember vocab.ActivityStreamsVideo + activitystreamsViewMember vocab.ActivityStreamsView + unknown interface{} + iri *url.URL + alias string + myIdx int + parent vocab.ForgeFedTracksTicketsForProperty +} + +// NewForgeFedTracksTicketsForPropertyIterator creates a new +// ForgeFedTracksTicketsFor property. +func NewForgeFedTracksTicketsForPropertyIterator() *ForgeFedTracksTicketsForPropertyIterator { + return &ForgeFedTracksTicketsForPropertyIterator{alias: ""} +} + +// deserializeForgeFedTracksTicketsForPropertyIterator creates an iterator from an +// element that has been unmarshalled from a text or binary format. +func deserializeForgeFedTracksTicketsForPropertyIterator(i interface{}, aliasMap map[string]string) (*ForgeFedTracksTicketsForPropertyIterator, error) { + alias := "" + if a, ok := aliasMap["https://forgefed.peers.community/ns"]; ok { + alias = a + } + if s, ok := i.(string); ok { + u, err := url.Parse(s) + // If error exists, don't error out -- skip this and treat as unknown string ([]byte) at worst + // Also, if no scheme exists, don't treat it as a URL -- net/url is greedy + if err == nil && len(u.Scheme) > 0 { + this := &ForgeFedTracksTicketsForPropertyIterator{ + alias: alias, + iri: u, + } + return this, nil + } + } + if m, ok := i.(map[string]interface{}); ok { + if v, err := mgr.DeserializeObjectActivityStreams()(m, aliasMap); err == nil { + this := &ForgeFedTracksTicketsForPropertyIterator{ + activitystreamsObjectMember: v, + alias: alias, + } + return this, nil + } else if v, err := mgr.DeserializeAcceptActivityStreams()(m, aliasMap); err == nil { + this := &ForgeFedTracksTicketsForPropertyIterator{ + activitystreamsAcceptMember: v, + alias: alias, + } + return this, nil + } else if v, err := mgr.DeserializeActivityActivityStreams()(m, aliasMap); err == nil { + this := &ForgeFedTracksTicketsForPropertyIterator{ + activitystreamsActivityMember: v, + alias: alias, + } + return this, nil + } else if v, err := mgr.DeserializeAddActivityStreams()(m, aliasMap); err == nil { + this := &ForgeFedTracksTicketsForPropertyIterator{ + activitystreamsAddMember: v, + alias: alias, + } + return this, nil + } else if v, err := mgr.DeserializeAnnounceActivityStreams()(m, aliasMap); err == nil { + this := &ForgeFedTracksTicketsForPropertyIterator{ + activitystreamsAnnounceMember: v, + alias: alias, + } + return this, nil + } else if v, err := mgr.DeserializeApplicationActivityStreams()(m, aliasMap); err == nil { + this := &ForgeFedTracksTicketsForPropertyIterator{ + activitystreamsApplicationMember: v, + alias: alias, + } + return this, nil + } else if v, err := mgr.DeserializeArriveActivityStreams()(m, aliasMap); err == nil { + this := &ForgeFedTracksTicketsForPropertyIterator{ + activitystreamsArriveMember: v, + alias: alias, + } + return this, nil + } else if v, err := mgr.DeserializeArticleActivityStreams()(m, aliasMap); err == nil { + this := &ForgeFedTracksTicketsForPropertyIterator{ + activitystreamsArticleMember: v, + alias: alias, + } + return this, nil + } else if v, err := mgr.DeserializeAudioActivityStreams()(m, aliasMap); err == nil { + this := &ForgeFedTracksTicketsForPropertyIterator{ + activitystreamsAudioMember: v, + alias: alias, + } + return this, nil + } else if v, err := mgr.DeserializeBlockActivityStreams()(m, aliasMap); err == nil { + this := &ForgeFedTracksTicketsForPropertyIterator{ + activitystreamsBlockMember: v, + alias: alias, + } + return this, nil + } else if v, err := mgr.DeserializeBranchForgeFed()(m, aliasMap); err == nil { + this := &ForgeFedTracksTicketsForPropertyIterator{ + alias: alias, + forgefedBranchMember: v, + } + return this, nil + } else if v, err := mgr.DeserializeCollectionActivityStreams()(m, aliasMap); err == nil { + this := &ForgeFedTracksTicketsForPropertyIterator{ + activitystreamsCollectionMember: v, + alias: alias, + } + return this, nil + } else if v, err := mgr.DeserializeCollectionPageActivityStreams()(m, aliasMap); err == nil { + this := &ForgeFedTracksTicketsForPropertyIterator{ + activitystreamsCollectionPageMember: v, + alias: alias, + } + return this, nil + } else if v, err := mgr.DeserializeCommitForgeFed()(m, aliasMap); err == nil { + this := &ForgeFedTracksTicketsForPropertyIterator{ + alias: alias, + forgefedCommitMember: v, + } + return this, nil + } else if v, err := mgr.DeserializeCreateActivityStreams()(m, aliasMap); err == nil { + this := &ForgeFedTracksTicketsForPropertyIterator{ + activitystreamsCreateMember: v, + alias: alias, + } + return this, nil + } else if v, err := mgr.DeserializeDeleteActivityStreams()(m, aliasMap); err == nil { + this := &ForgeFedTracksTicketsForPropertyIterator{ + activitystreamsDeleteMember: v, + alias: alias, + } + return this, nil + } else if v, err := mgr.DeserializeDislikeActivityStreams()(m, aliasMap); err == nil { + this := &ForgeFedTracksTicketsForPropertyIterator{ + activitystreamsDislikeMember: v, + alias: alias, + } + return this, nil + } else if v, err := mgr.DeserializeDocumentActivityStreams()(m, aliasMap); err == nil { + this := &ForgeFedTracksTicketsForPropertyIterator{ + activitystreamsDocumentMember: v, + alias: alias, + } + return this, nil + } else if v, err := mgr.DeserializeEmojiToot()(m, aliasMap); err == nil { + this := &ForgeFedTracksTicketsForPropertyIterator{ + alias: alias, + tootEmojiMember: v, + } + return this, nil + } else if v, err := mgr.DeserializeEventActivityStreams()(m, aliasMap); err == nil { + this := &ForgeFedTracksTicketsForPropertyIterator{ + activitystreamsEventMember: v, + alias: alias, + } + return this, nil + } else if v, err := mgr.DeserializeFlagActivityStreams()(m, aliasMap); err == nil { + this := &ForgeFedTracksTicketsForPropertyIterator{ + activitystreamsFlagMember: v, + alias: alias, + } + return this, nil + } else if v, err := mgr.DeserializeFollowActivityStreams()(m, aliasMap); err == nil { + this := &ForgeFedTracksTicketsForPropertyIterator{ + activitystreamsFollowMember: v, + alias: alias, + } + return this, nil + } else if v, err := mgr.DeserializeGroupActivityStreams()(m, aliasMap); err == nil { + this := &ForgeFedTracksTicketsForPropertyIterator{ + activitystreamsGroupMember: v, + alias: alias, + } + return this, nil + } else if v, err := mgr.DeserializeIdentityProofToot()(m, aliasMap); err == nil { + this := &ForgeFedTracksTicketsForPropertyIterator{ + alias: alias, + tootIdentityProofMember: v, + } + return this, nil + } else if v, err := mgr.DeserializeIgnoreActivityStreams()(m, aliasMap); err == nil { + this := &ForgeFedTracksTicketsForPropertyIterator{ + activitystreamsIgnoreMember: v, + alias: alias, + } + return this, nil + } else if v, err := mgr.DeserializeImageActivityStreams()(m, aliasMap); err == nil { + this := &ForgeFedTracksTicketsForPropertyIterator{ + activitystreamsImageMember: v, + alias: alias, + } + return this, nil + } else if v, err := mgr.DeserializeIntransitiveActivityActivityStreams()(m, aliasMap); err == nil { + this := &ForgeFedTracksTicketsForPropertyIterator{ + activitystreamsIntransitiveActivityMember: v, + alias: alias, + } + return this, nil + } else if v, err := mgr.DeserializeInviteActivityStreams()(m, aliasMap); err == nil { + this := &ForgeFedTracksTicketsForPropertyIterator{ + activitystreamsInviteMember: v, + alias: alias, + } + return this, nil + } else if v, err := mgr.DeserializeJoinActivityStreams()(m, aliasMap); err == nil { + this := &ForgeFedTracksTicketsForPropertyIterator{ + activitystreamsJoinMember: v, + alias: alias, + } + return this, nil + } else if v, err := mgr.DeserializeLeaveActivityStreams()(m, aliasMap); err == nil { + this := &ForgeFedTracksTicketsForPropertyIterator{ + activitystreamsLeaveMember: v, + alias: alias, + } + return this, nil + } else if v, err := mgr.DeserializeLikeActivityStreams()(m, aliasMap); err == nil { + this := &ForgeFedTracksTicketsForPropertyIterator{ + activitystreamsLikeMember: v, + alias: alias, + } + return this, nil + } else if v, err := mgr.DeserializeListenActivityStreams()(m, aliasMap); err == nil { + this := &ForgeFedTracksTicketsForPropertyIterator{ + activitystreamsListenMember: v, + alias: alias, + } + return this, nil + } else if v, err := mgr.DeserializeMoveActivityStreams()(m, aliasMap); err == nil { + this := &ForgeFedTracksTicketsForPropertyIterator{ + activitystreamsMoveMember: v, + alias: alias, + } + return this, nil + } else if v, err := mgr.DeserializeNoteActivityStreams()(m, aliasMap); err == nil { + this := &ForgeFedTracksTicketsForPropertyIterator{ + activitystreamsNoteMember: v, + alias: alias, + } + return this, nil + } else if v, err := mgr.DeserializeOfferActivityStreams()(m, aliasMap); err == nil { + this := &ForgeFedTracksTicketsForPropertyIterator{ + activitystreamsOfferMember: v, + alias: alias, + } + return this, nil + } else if v, err := mgr.DeserializeOrderedCollectionActivityStreams()(m, aliasMap); err == nil { + this := &ForgeFedTracksTicketsForPropertyIterator{ + activitystreamsOrderedCollectionMember: v, + alias: alias, + } + return this, nil + } else if v, err := mgr.DeserializeOrderedCollectionPageActivityStreams()(m, aliasMap); err == nil { + this := &ForgeFedTracksTicketsForPropertyIterator{ + activitystreamsOrderedCollectionPageMember: v, + alias: alias, + } + return this, nil + } else if v, err := mgr.DeserializeOrganizationActivityStreams()(m, aliasMap); err == nil { + this := &ForgeFedTracksTicketsForPropertyIterator{ + activitystreamsOrganizationMember: v, + alias: alias, + } + return this, nil + } else if v, err := mgr.DeserializePageActivityStreams()(m, aliasMap); err == nil { + this := &ForgeFedTracksTicketsForPropertyIterator{ + activitystreamsPageMember: v, + alias: alias, + } + return this, nil + } else if v, err := mgr.DeserializePersonActivityStreams()(m, aliasMap); err == nil { + this := &ForgeFedTracksTicketsForPropertyIterator{ + activitystreamsPersonMember: v, + alias: alias, + } + return this, nil + } else if v, err := mgr.DeserializePlaceActivityStreams()(m, aliasMap); err == nil { + this := &ForgeFedTracksTicketsForPropertyIterator{ + activitystreamsPlaceMember: v, + alias: alias, + } + return this, nil + } else if v, err := mgr.DeserializeProfileActivityStreams()(m, aliasMap); err == nil { + this := &ForgeFedTracksTicketsForPropertyIterator{ + activitystreamsProfileMember: v, + alias: alias, + } + return this, nil + } else if v, err := mgr.DeserializePushForgeFed()(m, aliasMap); err == nil { + this := &ForgeFedTracksTicketsForPropertyIterator{ + alias: alias, + forgefedPushMember: v, + } + return this, nil + } else if v, err := mgr.DeserializeQuestionActivityStreams()(m, aliasMap); err == nil { + this := &ForgeFedTracksTicketsForPropertyIterator{ + activitystreamsQuestionMember: v, + alias: alias, + } + return this, nil + } else if v, err := mgr.DeserializeReadActivityStreams()(m, aliasMap); err == nil { + this := &ForgeFedTracksTicketsForPropertyIterator{ + activitystreamsReadMember: v, + alias: alias, + } + return this, nil + } else if v, err := mgr.DeserializeRejectActivityStreams()(m, aliasMap); err == nil { + this := &ForgeFedTracksTicketsForPropertyIterator{ + activitystreamsRejectMember: v, + alias: alias, + } + return this, nil + } else if v, err := mgr.DeserializeRelationshipActivityStreams()(m, aliasMap); err == nil { + this := &ForgeFedTracksTicketsForPropertyIterator{ + activitystreamsRelationshipMember: v, + alias: alias, + } + return this, nil + } else if v, err := mgr.DeserializeRemoveActivityStreams()(m, aliasMap); err == nil { + this := &ForgeFedTracksTicketsForPropertyIterator{ + activitystreamsRemoveMember: v, + alias: alias, + } + return this, nil + } else if v, err := mgr.DeserializeRepositoryForgeFed()(m, aliasMap); err == nil { + this := &ForgeFedTracksTicketsForPropertyIterator{ + alias: alias, + forgefedRepositoryMember: v, + } + return this, nil + } else if v, err := mgr.DeserializeServiceActivityStreams()(m, aliasMap); err == nil { + this := &ForgeFedTracksTicketsForPropertyIterator{ + activitystreamsServiceMember: v, + alias: alias, + } + return this, nil + } else if v, err := mgr.DeserializeTentativeAcceptActivityStreams()(m, aliasMap); err == nil { + this := &ForgeFedTracksTicketsForPropertyIterator{ + activitystreamsTentativeAcceptMember: v, + alias: alias, + } + return this, nil + } else if v, err := mgr.DeserializeTentativeRejectActivityStreams()(m, aliasMap); err == nil { + this := &ForgeFedTracksTicketsForPropertyIterator{ + activitystreamsTentativeRejectMember: v, + alias: alias, + } + return this, nil + } else if v, err := mgr.DeserializeTicketForgeFed()(m, aliasMap); err == nil { + this := &ForgeFedTracksTicketsForPropertyIterator{ + alias: alias, + forgefedTicketMember: v, + } + return this, nil + } else if v, err := mgr.DeserializeTicketDependencyForgeFed()(m, aliasMap); err == nil { + this := &ForgeFedTracksTicketsForPropertyIterator{ + alias: alias, + forgefedTicketDependencyMember: v, + } + return this, nil + } else if v, err := mgr.DeserializeTombstoneActivityStreams()(m, aliasMap); err == nil { + this := &ForgeFedTracksTicketsForPropertyIterator{ + activitystreamsTombstoneMember: v, + alias: alias, + } + return this, nil + } else if v, err := mgr.DeserializeTravelActivityStreams()(m, aliasMap); err == nil { + this := &ForgeFedTracksTicketsForPropertyIterator{ + activitystreamsTravelMember: v, + alias: alias, + } + return this, nil + } else if v, err := mgr.DeserializeUndoActivityStreams()(m, aliasMap); err == nil { + this := &ForgeFedTracksTicketsForPropertyIterator{ + activitystreamsUndoMember: v, + alias: alias, + } + return this, nil + } else if v, err := mgr.DeserializeUpdateActivityStreams()(m, aliasMap); err == nil { + this := &ForgeFedTracksTicketsForPropertyIterator{ + activitystreamsUpdateMember: v, + alias: alias, + } + return this, nil + } else if v, err := mgr.DeserializeVideoActivityStreams()(m, aliasMap); err == nil { + this := &ForgeFedTracksTicketsForPropertyIterator{ + activitystreamsVideoMember: v, + alias: alias, + } + return this, nil + } else if v, err := mgr.DeserializeViewActivityStreams()(m, aliasMap); err == nil { + this := &ForgeFedTracksTicketsForPropertyIterator{ + activitystreamsViewMember: v, + alias: alias, + } + return this, nil + } + } + this := &ForgeFedTracksTicketsForPropertyIterator{ + alias: alias, + unknown: i, + } + return this, nil +} + +// GetActivityStreamsAccept returns the value of this property. When +// IsActivityStreamsAccept returns false, GetActivityStreamsAccept will return +// an arbitrary value. +func (this ForgeFedTracksTicketsForPropertyIterator) GetActivityStreamsAccept() vocab.ActivityStreamsAccept { + return this.activitystreamsAcceptMember +} + +// GetActivityStreamsActivity returns the value of this property. When +// IsActivityStreamsActivity returns false, GetActivityStreamsActivity will +// return an arbitrary value. +func (this ForgeFedTracksTicketsForPropertyIterator) GetActivityStreamsActivity() vocab.ActivityStreamsActivity { + return this.activitystreamsActivityMember +} + +// GetActivityStreamsAdd returns the value of this property. When +// IsActivityStreamsAdd returns false, GetActivityStreamsAdd will return an +// arbitrary value. +func (this ForgeFedTracksTicketsForPropertyIterator) GetActivityStreamsAdd() vocab.ActivityStreamsAdd { + return this.activitystreamsAddMember +} + +// GetActivityStreamsAnnounce returns the value of this property. When +// IsActivityStreamsAnnounce returns false, GetActivityStreamsAnnounce will +// return an arbitrary value. +func (this ForgeFedTracksTicketsForPropertyIterator) GetActivityStreamsAnnounce() vocab.ActivityStreamsAnnounce { + return this.activitystreamsAnnounceMember +} + +// GetActivityStreamsApplication returns the value of this property. When +// IsActivityStreamsApplication returns false, GetActivityStreamsApplication +// will return an arbitrary value. +func (this ForgeFedTracksTicketsForPropertyIterator) GetActivityStreamsApplication() vocab.ActivityStreamsApplication { + return this.activitystreamsApplicationMember +} + +// GetActivityStreamsArrive returns the value of this property. When +// IsActivityStreamsArrive returns false, GetActivityStreamsArrive will return +// an arbitrary value. +func (this ForgeFedTracksTicketsForPropertyIterator) GetActivityStreamsArrive() vocab.ActivityStreamsArrive { + return this.activitystreamsArriveMember +} + +// GetActivityStreamsArticle returns the value of this property. When +// IsActivityStreamsArticle returns false, GetActivityStreamsArticle will +// return an arbitrary value. +func (this ForgeFedTracksTicketsForPropertyIterator) GetActivityStreamsArticle() vocab.ActivityStreamsArticle { + return this.activitystreamsArticleMember +} + +// GetActivityStreamsAudio returns the value of this property. When +// IsActivityStreamsAudio returns false, GetActivityStreamsAudio will return +// an arbitrary value. +func (this ForgeFedTracksTicketsForPropertyIterator) GetActivityStreamsAudio() vocab.ActivityStreamsAudio { + return this.activitystreamsAudioMember +} + +// GetActivityStreamsBlock returns the value of this property. When +// IsActivityStreamsBlock returns false, GetActivityStreamsBlock will return +// an arbitrary value. +func (this ForgeFedTracksTicketsForPropertyIterator) GetActivityStreamsBlock() vocab.ActivityStreamsBlock { + return this.activitystreamsBlockMember +} + +// GetActivityStreamsCollection returns the value of this property. When +// IsActivityStreamsCollection returns false, GetActivityStreamsCollection +// will return an arbitrary value. +func (this ForgeFedTracksTicketsForPropertyIterator) GetActivityStreamsCollection() vocab.ActivityStreamsCollection { + return this.activitystreamsCollectionMember +} + +// GetActivityStreamsCollectionPage returns the value of this property. When +// IsActivityStreamsCollectionPage returns false, +// GetActivityStreamsCollectionPage will return an arbitrary value. +func (this ForgeFedTracksTicketsForPropertyIterator) GetActivityStreamsCollectionPage() vocab.ActivityStreamsCollectionPage { + return this.activitystreamsCollectionPageMember +} + +// GetActivityStreamsCreate returns the value of this property. When +// IsActivityStreamsCreate returns false, GetActivityStreamsCreate will return +// an arbitrary value. +func (this ForgeFedTracksTicketsForPropertyIterator) GetActivityStreamsCreate() vocab.ActivityStreamsCreate { + return this.activitystreamsCreateMember +} + +// GetActivityStreamsDelete returns the value of this property. When +// IsActivityStreamsDelete returns false, GetActivityStreamsDelete will return +// an arbitrary value. +func (this ForgeFedTracksTicketsForPropertyIterator) GetActivityStreamsDelete() vocab.ActivityStreamsDelete { + return this.activitystreamsDeleteMember +} + +// GetActivityStreamsDislike returns the value of this property. When +// IsActivityStreamsDislike returns false, GetActivityStreamsDislike will +// return an arbitrary value. +func (this ForgeFedTracksTicketsForPropertyIterator) GetActivityStreamsDislike() vocab.ActivityStreamsDislike { + return this.activitystreamsDislikeMember +} + +// GetActivityStreamsDocument returns the value of this property. When +// IsActivityStreamsDocument returns false, GetActivityStreamsDocument will +// return an arbitrary value. +func (this ForgeFedTracksTicketsForPropertyIterator) GetActivityStreamsDocument() vocab.ActivityStreamsDocument { + return this.activitystreamsDocumentMember +} + +// GetActivityStreamsEvent returns the value of this property. When +// IsActivityStreamsEvent returns false, GetActivityStreamsEvent will return +// an arbitrary value. +func (this ForgeFedTracksTicketsForPropertyIterator) GetActivityStreamsEvent() vocab.ActivityStreamsEvent { + return this.activitystreamsEventMember +} + +// GetActivityStreamsFlag returns the value of this property. When +// IsActivityStreamsFlag returns false, GetActivityStreamsFlag will return an +// arbitrary value. +func (this ForgeFedTracksTicketsForPropertyIterator) GetActivityStreamsFlag() vocab.ActivityStreamsFlag { + return this.activitystreamsFlagMember +} + +// GetActivityStreamsFollow returns the value of this property. When +// IsActivityStreamsFollow returns false, GetActivityStreamsFollow will return +// an arbitrary value. +func (this ForgeFedTracksTicketsForPropertyIterator) GetActivityStreamsFollow() vocab.ActivityStreamsFollow { + return this.activitystreamsFollowMember +} + +// GetActivityStreamsGroup returns the value of this property. When +// IsActivityStreamsGroup returns false, GetActivityStreamsGroup will return +// an arbitrary value. +func (this ForgeFedTracksTicketsForPropertyIterator) GetActivityStreamsGroup() vocab.ActivityStreamsGroup { + return this.activitystreamsGroupMember +} + +// GetActivityStreamsIgnore returns the value of this property. When +// IsActivityStreamsIgnore returns false, GetActivityStreamsIgnore will return +// an arbitrary value. +func (this ForgeFedTracksTicketsForPropertyIterator) GetActivityStreamsIgnore() vocab.ActivityStreamsIgnore { + return this.activitystreamsIgnoreMember +} + +// GetActivityStreamsImage returns the value of this property. When +// IsActivityStreamsImage returns false, GetActivityStreamsImage will return +// an arbitrary value. +func (this ForgeFedTracksTicketsForPropertyIterator) GetActivityStreamsImage() vocab.ActivityStreamsImage { + return this.activitystreamsImageMember +} + +// GetActivityStreamsIntransitiveActivity returns the value of this property. When +// IsActivityStreamsIntransitiveActivity returns false, +// GetActivityStreamsIntransitiveActivity will return an arbitrary value. +func (this ForgeFedTracksTicketsForPropertyIterator) GetActivityStreamsIntransitiveActivity() vocab.ActivityStreamsIntransitiveActivity { + return this.activitystreamsIntransitiveActivityMember +} + +// GetActivityStreamsInvite returns the value of this property. When +// IsActivityStreamsInvite returns false, GetActivityStreamsInvite will return +// an arbitrary value. +func (this ForgeFedTracksTicketsForPropertyIterator) GetActivityStreamsInvite() vocab.ActivityStreamsInvite { + return this.activitystreamsInviteMember +} + +// GetActivityStreamsJoin returns the value of this property. When +// IsActivityStreamsJoin returns false, GetActivityStreamsJoin will return an +// arbitrary value. +func (this ForgeFedTracksTicketsForPropertyIterator) GetActivityStreamsJoin() vocab.ActivityStreamsJoin { + return this.activitystreamsJoinMember +} + +// GetActivityStreamsLeave returns the value of this property. When +// IsActivityStreamsLeave returns false, GetActivityStreamsLeave will return +// an arbitrary value. +func (this ForgeFedTracksTicketsForPropertyIterator) GetActivityStreamsLeave() vocab.ActivityStreamsLeave { + return this.activitystreamsLeaveMember +} + +// GetActivityStreamsLike returns the value of this property. When +// IsActivityStreamsLike returns false, GetActivityStreamsLike will return an +// arbitrary value. +func (this ForgeFedTracksTicketsForPropertyIterator) GetActivityStreamsLike() vocab.ActivityStreamsLike { + return this.activitystreamsLikeMember +} + +// GetActivityStreamsListen returns the value of this property. When +// IsActivityStreamsListen returns false, GetActivityStreamsListen will return +// an arbitrary value. +func (this ForgeFedTracksTicketsForPropertyIterator) GetActivityStreamsListen() vocab.ActivityStreamsListen { + return this.activitystreamsListenMember +} + +// GetActivityStreamsMove returns the value of this property. When +// IsActivityStreamsMove returns false, GetActivityStreamsMove will return an +// arbitrary value. +func (this ForgeFedTracksTicketsForPropertyIterator) GetActivityStreamsMove() vocab.ActivityStreamsMove { + return this.activitystreamsMoveMember +} + +// GetActivityStreamsNote returns the value of this property. When +// IsActivityStreamsNote returns false, GetActivityStreamsNote will return an +// arbitrary value. +func (this ForgeFedTracksTicketsForPropertyIterator) GetActivityStreamsNote() vocab.ActivityStreamsNote { + return this.activitystreamsNoteMember +} + +// GetActivityStreamsObject returns the value of this property. When +// IsActivityStreamsObject returns false, GetActivityStreamsObject will return +// an arbitrary value. +func (this ForgeFedTracksTicketsForPropertyIterator) GetActivityStreamsObject() vocab.ActivityStreamsObject { + return this.activitystreamsObjectMember +} + +// GetActivityStreamsOffer returns the value of this property. When +// IsActivityStreamsOffer returns false, GetActivityStreamsOffer will return +// an arbitrary value. +func (this ForgeFedTracksTicketsForPropertyIterator) GetActivityStreamsOffer() vocab.ActivityStreamsOffer { + return this.activitystreamsOfferMember +} + +// GetActivityStreamsOrderedCollection returns the value of this property. When +// IsActivityStreamsOrderedCollection returns false, +// GetActivityStreamsOrderedCollection will return an arbitrary value. +func (this ForgeFedTracksTicketsForPropertyIterator) GetActivityStreamsOrderedCollection() vocab.ActivityStreamsOrderedCollection { + return this.activitystreamsOrderedCollectionMember +} + +// GetActivityStreamsOrderedCollectionPage returns the value of this property. +// When IsActivityStreamsOrderedCollectionPage returns false, +// GetActivityStreamsOrderedCollectionPage will return an arbitrary value. +func (this ForgeFedTracksTicketsForPropertyIterator) GetActivityStreamsOrderedCollectionPage() vocab.ActivityStreamsOrderedCollectionPage { + return this.activitystreamsOrderedCollectionPageMember +} + +// GetActivityStreamsOrganization returns the value of this property. When +// IsActivityStreamsOrganization returns false, GetActivityStreamsOrganization +// will return an arbitrary value. +func (this ForgeFedTracksTicketsForPropertyIterator) GetActivityStreamsOrganization() vocab.ActivityStreamsOrganization { + return this.activitystreamsOrganizationMember +} + +// GetActivityStreamsPage returns the value of this property. When +// IsActivityStreamsPage returns false, GetActivityStreamsPage will return an +// arbitrary value. +func (this ForgeFedTracksTicketsForPropertyIterator) GetActivityStreamsPage() vocab.ActivityStreamsPage { + return this.activitystreamsPageMember +} + +// GetActivityStreamsPerson returns the value of this property. When +// IsActivityStreamsPerson returns false, GetActivityStreamsPerson will return +// an arbitrary value. +func (this ForgeFedTracksTicketsForPropertyIterator) GetActivityStreamsPerson() vocab.ActivityStreamsPerson { + return this.activitystreamsPersonMember +} + +// GetActivityStreamsPlace returns the value of this property. When +// IsActivityStreamsPlace returns false, GetActivityStreamsPlace will return +// an arbitrary value. +func (this ForgeFedTracksTicketsForPropertyIterator) GetActivityStreamsPlace() vocab.ActivityStreamsPlace { + return this.activitystreamsPlaceMember +} + +// GetActivityStreamsProfile returns the value of this property. When +// IsActivityStreamsProfile returns false, GetActivityStreamsProfile will +// return an arbitrary value. +func (this ForgeFedTracksTicketsForPropertyIterator) GetActivityStreamsProfile() vocab.ActivityStreamsProfile { + return this.activitystreamsProfileMember +} + +// GetActivityStreamsQuestion returns the value of this property. When +// IsActivityStreamsQuestion returns false, GetActivityStreamsQuestion will +// return an arbitrary value. +func (this ForgeFedTracksTicketsForPropertyIterator) GetActivityStreamsQuestion() vocab.ActivityStreamsQuestion { + return this.activitystreamsQuestionMember +} + +// GetActivityStreamsRead returns the value of this property. When +// IsActivityStreamsRead returns false, GetActivityStreamsRead will return an +// arbitrary value. +func (this ForgeFedTracksTicketsForPropertyIterator) GetActivityStreamsRead() vocab.ActivityStreamsRead { + return this.activitystreamsReadMember +} + +// GetActivityStreamsReject returns the value of this property. When +// IsActivityStreamsReject returns false, GetActivityStreamsReject will return +// an arbitrary value. +func (this ForgeFedTracksTicketsForPropertyIterator) GetActivityStreamsReject() vocab.ActivityStreamsReject { + return this.activitystreamsRejectMember +} + +// GetActivityStreamsRelationship returns the value of this property. When +// IsActivityStreamsRelationship returns false, GetActivityStreamsRelationship +// will return an arbitrary value. +func (this ForgeFedTracksTicketsForPropertyIterator) GetActivityStreamsRelationship() vocab.ActivityStreamsRelationship { + return this.activitystreamsRelationshipMember +} + +// GetActivityStreamsRemove returns the value of this property. When +// IsActivityStreamsRemove returns false, GetActivityStreamsRemove will return +// an arbitrary value. +func (this ForgeFedTracksTicketsForPropertyIterator) GetActivityStreamsRemove() vocab.ActivityStreamsRemove { + return this.activitystreamsRemoveMember +} + +// GetActivityStreamsService returns the value of this property. When +// IsActivityStreamsService returns false, GetActivityStreamsService will +// return an arbitrary value. +func (this ForgeFedTracksTicketsForPropertyIterator) GetActivityStreamsService() vocab.ActivityStreamsService { + return this.activitystreamsServiceMember +} + +// GetActivityStreamsTentativeAccept returns the value of this property. When +// IsActivityStreamsTentativeAccept returns false, +// GetActivityStreamsTentativeAccept will return an arbitrary value. +func (this ForgeFedTracksTicketsForPropertyIterator) GetActivityStreamsTentativeAccept() vocab.ActivityStreamsTentativeAccept { + return this.activitystreamsTentativeAcceptMember +} + +// GetActivityStreamsTentativeReject returns the value of this property. When +// IsActivityStreamsTentativeReject returns false, +// GetActivityStreamsTentativeReject will return an arbitrary value. +func (this ForgeFedTracksTicketsForPropertyIterator) GetActivityStreamsTentativeReject() vocab.ActivityStreamsTentativeReject { + return this.activitystreamsTentativeRejectMember +} + +// GetActivityStreamsTombstone returns the value of this property. When +// IsActivityStreamsTombstone returns false, GetActivityStreamsTombstone will +// return an arbitrary value. +func (this ForgeFedTracksTicketsForPropertyIterator) GetActivityStreamsTombstone() vocab.ActivityStreamsTombstone { + return this.activitystreamsTombstoneMember +} + +// GetActivityStreamsTravel returns the value of this property. When +// IsActivityStreamsTravel returns false, GetActivityStreamsTravel will return +// an arbitrary value. +func (this ForgeFedTracksTicketsForPropertyIterator) GetActivityStreamsTravel() vocab.ActivityStreamsTravel { + return this.activitystreamsTravelMember +} + +// GetActivityStreamsUndo returns the value of this property. When +// IsActivityStreamsUndo returns false, GetActivityStreamsUndo will return an +// arbitrary value. +func (this ForgeFedTracksTicketsForPropertyIterator) GetActivityStreamsUndo() vocab.ActivityStreamsUndo { + return this.activitystreamsUndoMember +} + +// GetActivityStreamsUpdate returns the value of this property. When +// IsActivityStreamsUpdate returns false, GetActivityStreamsUpdate will return +// an arbitrary value. +func (this ForgeFedTracksTicketsForPropertyIterator) GetActivityStreamsUpdate() vocab.ActivityStreamsUpdate { + return this.activitystreamsUpdateMember +} + +// GetActivityStreamsVideo returns the value of this property. When +// IsActivityStreamsVideo returns false, GetActivityStreamsVideo will return +// an arbitrary value. +func (this ForgeFedTracksTicketsForPropertyIterator) GetActivityStreamsVideo() vocab.ActivityStreamsVideo { + return this.activitystreamsVideoMember +} + +// GetActivityStreamsView returns the value of this property. When +// IsActivityStreamsView returns false, GetActivityStreamsView will return an +// arbitrary value. +func (this ForgeFedTracksTicketsForPropertyIterator) GetActivityStreamsView() vocab.ActivityStreamsView { + return this.activitystreamsViewMember +} + +// GetForgeFedBranch returns the value of this property. When IsForgeFedBranch +// returns false, GetForgeFedBranch will return an arbitrary value. +func (this ForgeFedTracksTicketsForPropertyIterator) GetForgeFedBranch() vocab.ForgeFedBranch { + return this.forgefedBranchMember +} + +// GetForgeFedCommit returns the value of this property. When IsForgeFedCommit +// returns false, GetForgeFedCommit will return an arbitrary value. +func (this ForgeFedTracksTicketsForPropertyIterator) GetForgeFedCommit() vocab.ForgeFedCommit { + return this.forgefedCommitMember +} + +// GetForgeFedPush returns the value of this property. When IsForgeFedPush returns +// false, GetForgeFedPush will return an arbitrary value. +func (this ForgeFedTracksTicketsForPropertyIterator) GetForgeFedPush() vocab.ForgeFedPush { + return this.forgefedPushMember +} + +// GetForgeFedRepository returns the value of this property. When +// IsForgeFedRepository returns false, GetForgeFedRepository will return an +// arbitrary value. +func (this ForgeFedTracksTicketsForPropertyIterator) GetForgeFedRepository() vocab.ForgeFedRepository { + return this.forgefedRepositoryMember +} + +// GetForgeFedTicket returns the value of this property. When IsForgeFedTicket +// returns false, GetForgeFedTicket will return an arbitrary value. +func (this ForgeFedTracksTicketsForPropertyIterator) GetForgeFedTicket() vocab.ForgeFedTicket { + return this.forgefedTicketMember +} + +// GetForgeFedTicketDependency returns the value of this property. When +// IsForgeFedTicketDependency returns false, GetForgeFedTicketDependency will +// return an arbitrary value. +func (this ForgeFedTracksTicketsForPropertyIterator) GetForgeFedTicketDependency() vocab.ForgeFedTicketDependency { + return this.forgefedTicketDependencyMember +} + +// GetIRI returns the IRI of this property. When IsIRI returns false, GetIRI will +// return an arbitrary value. +func (this ForgeFedTracksTicketsForPropertyIterator) GetIRI() *url.URL { + return this.iri +} + +// GetTootEmoji returns the value of this property. When IsTootEmoji returns +// false, GetTootEmoji will return an arbitrary value. +func (this ForgeFedTracksTicketsForPropertyIterator) GetTootEmoji() vocab.TootEmoji { + return this.tootEmojiMember +} + +// GetTootIdentityProof returns the value of this property. When +// IsTootIdentityProof returns false, GetTootIdentityProof will return an +// arbitrary value. +func (this ForgeFedTracksTicketsForPropertyIterator) GetTootIdentityProof() vocab.TootIdentityProof { + return this.tootIdentityProofMember +} + +// GetType returns the value in this property as a Type. Returns nil if the value +// is not an ActivityStreams type, such as an IRI or another value. +func (this ForgeFedTracksTicketsForPropertyIterator) GetType() vocab.Type { + if this.IsActivityStreamsObject() { + return this.GetActivityStreamsObject() + } + if this.IsActivityStreamsAccept() { + return this.GetActivityStreamsAccept() + } + if this.IsActivityStreamsActivity() { + return this.GetActivityStreamsActivity() + } + if this.IsActivityStreamsAdd() { + return this.GetActivityStreamsAdd() + } + if this.IsActivityStreamsAnnounce() { + return this.GetActivityStreamsAnnounce() + } + if this.IsActivityStreamsApplication() { + return this.GetActivityStreamsApplication() + } + if this.IsActivityStreamsArrive() { + return this.GetActivityStreamsArrive() + } + if this.IsActivityStreamsArticle() { + return this.GetActivityStreamsArticle() + } + if this.IsActivityStreamsAudio() { + return this.GetActivityStreamsAudio() + } + if this.IsActivityStreamsBlock() { + return this.GetActivityStreamsBlock() + } + if this.IsForgeFedBranch() { + return this.GetForgeFedBranch() + } + if this.IsActivityStreamsCollection() { + return this.GetActivityStreamsCollection() + } + if this.IsActivityStreamsCollectionPage() { + return this.GetActivityStreamsCollectionPage() + } + if this.IsForgeFedCommit() { + return this.GetForgeFedCommit() + } + if this.IsActivityStreamsCreate() { + return this.GetActivityStreamsCreate() + } + if this.IsActivityStreamsDelete() { + return this.GetActivityStreamsDelete() + } + if this.IsActivityStreamsDislike() { + return this.GetActivityStreamsDislike() + } + if this.IsActivityStreamsDocument() { + return this.GetActivityStreamsDocument() + } + if this.IsTootEmoji() { + return this.GetTootEmoji() + } + if this.IsActivityStreamsEvent() { + return this.GetActivityStreamsEvent() + } + if this.IsActivityStreamsFlag() { + return this.GetActivityStreamsFlag() + } + if this.IsActivityStreamsFollow() { + return this.GetActivityStreamsFollow() + } + if this.IsActivityStreamsGroup() { + return this.GetActivityStreamsGroup() + } + if this.IsTootIdentityProof() { + return this.GetTootIdentityProof() + } + if this.IsActivityStreamsIgnore() { + return this.GetActivityStreamsIgnore() + } + if this.IsActivityStreamsImage() { + return this.GetActivityStreamsImage() + } + if this.IsActivityStreamsIntransitiveActivity() { + return this.GetActivityStreamsIntransitiveActivity() + } + if this.IsActivityStreamsInvite() { + return this.GetActivityStreamsInvite() + } + if this.IsActivityStreamsJoin() { + return this.GetActivityStreamsJoin() + } + if this.IsActivityStreamsLeave() { + return this.GetActivityStreamsLeave() + } + if this.IsActivityStreamsLike() { + return this.GetActivityStreamsLike() + } + if this.IsActivityStreamsListen() { + return this.GetActivityStreamsListen() + } + if this.IsActivityStreamsMove() { + return this.GetActivityStreamsMove() + } + if this.IsActivityStreamsNote() { + return this.GetActivityStreamsNote() + } + if this.IsActivityStreamsOffer() { + return this.GetActivityStreamsOffer() + } + if this.IsActivityStreamsOrderedCollection() { + return this.GetActivityStreamsOrderedCollection() + } + if this.IsActivityStreamsOrderedCollectionPage() { + return this.GetActivityStreamsOrderedCollectionPage() + } + if this.IsActivityStreamsOrganization() { + return this.GetActivityStreamsOrganization() + } + if this.IsActivityStreamsPage() { + return this.GetActivityStreamsPage() + } + if this.IsActivityStreamsPerson() { + return this.GetActivityStreamsPerson() + } + if this.IsActivityStreamsPlace() { + return this.GetActivityStreamsPlace() + } + if this.IsActivityStreamsProfile() { + return this.GetActivityStreamsProfile() + } + if this.IsForgeFedPush() { + return this.GetForgeFedPush() + } + if this.IsActivityStreamsQuestion() { + return this.GetActivityStreamsQuestion() + } + if this.IsActivityStreamsRead() { + return this.GetActivityStreamsRead() + } + if this.IsActivityStreamsReject() { + return this.GetActivityStreamsReject() + } + if this.IsActivityStreamsRelationship() { + return this.GetActivityStreamsRelationship() + } + if this.IsActivityStreamsRemove() { + return this.GetActivityStreamsRemove() + } + if this.IsForgeFedRepository() { + return this.GetForgeFedRepository() + } + if this.IsActivityStreamsService() { + return this.GetActivityStreamsService() + } + if this.IsActivityStreamsTentativeAccept() { + return this.GetActivityStreamsTentativeAccept() + } + if this.IsActivityStreamsTentativeReject() { + return this.GetActivityStreamsTentativeReject() + } + if this.IsForgeFedTicket() { + return this.GetForgeFedTicket() + } + if this.IsForgeFedTicketDependency() { + return this.GetForgeFedTicketDependency() + } + if this.IsActivityStreamsTombstone() { + return this.GetActivityStreamsTombstone() + } + if this.IsActivityStreamsTravel() { + return this.GetActivityStreamsTravel() + } + if this.IsActivityStreamsUndo() { + return this.GetActivityStreamsUndo() + } + if this.IsActivityStreamsUpdate() { + return this.GetActivityStreamsUpdate() + } + if this.IsActivityStreamsVideo() { + return this.GetActivityStreamsVideo() + } + if this.IsActivityStreamsView() { + return this.GetActivityStreamsView() + } + + return nil +} + +// HasAny returns true if any of the different values is set. +func (this ForgeFedTracksTicketsForPropertyIterator) HasAny() bool { + return this.IsActivityStreamsObject() || + this.IsActivityStreamsAccept() || + this.IsActivityStreamsActivity() || + this.IsActivityStreamsAdd() || + this.IsActivityStreamsAnnounce() || + this.IsActivityStreamsApplication() || + this.IsActivityStreamsArrive() || + this.IsActivityStreamsArticle() || + this.IsActivityStreamsAudio() || + this.IsActivityStreamsBlock() || + this.IsForgeFedBranch() || + this.IsActivityStreamsCollection() || + this.IsActivityStreamsCollectionPage() || + this.IsForgeFedCommit() || + this.IsActivityStreamsCreate() || + this.IsActivityStreamsDelete() || + this.IsActivityStreamsDislike() || + this.IsActivityStreamsDocument() || + this.IsTootEmoji() || + this.IsActivityStreamsEvent() || + this.IsActivityStreamsFlag() || + this.IsActivityStreamsFollow() || + this.IsActivityStreamsGroup() || + this.IsTootIdentityProof() || + this.IsActivityStreamsIgnore() || + this.IsActivityStreamsImage() || + this.IsActivityStreamsIntransitiveActivity() || + this.IsActivityStreamsInvite() || + this.IsActivityStreamsJoin() || + this.IsActivityStreamsLeave() || + this.IsActivityStreamsLike() || + this.IsActivityStreamsListen() || + this.IsActivityStreamsMove() || + this.IsActivityStreamsNote() || + this.IsActivityStreamsOffer() || + this.IsActivityStreamsOrderedCollection() || + this.IsActivityStreamsOrderedCollectionPage() || + this.IsActivityStreamsOrganization() || + this.IsActivityStreamsPage() || + this.IsActivityStreamsPerson() || + this.IsActivityStreamsPlace() || + this.IsActivityStreamsProfile() || + this.IsForgeFedPush() || + this.IsActivityStreamsQuestion() || + this.IsActivityStreamsRead() || + this.IsActivityStreamsReject() || + this.IsActivityStreamsRelationship() || + this.IsActivityStreamsRemove() || + this.IsForgeFedRepository() || + this.IsActivityStreamsService() || + this.IsActivityStreamsTentativeAccept() || + this.IsActivityStreamsTentativeReject() || + this.IsForgeFedTicket() || + this.IsForgeFedTicketDependency() || + this.IsActivityStreamsTombstone() || + this.IsActivityStreamsTravel() || + this.IsActivityStreamsUndo() || + this.IsActivityStreamsUpdate() || + this.IsActivityStreamsVideo() || + this.IsActivityStreamsView() || + this.iri != nil +} + +// IsActivityStreamsAccept returns true if this property has a type of "Accept". +// When true, use the GetActivityStreamsAccept and SetActivityStreamsAccept +// methods to access and set this property. +func (this ForgeFedTracksTicketsForPropertyIterator) IsActivityStreamsAccept() bool { + return this.activitystreamsAcceptMember != nil +} + +// IsActivityStreamsActivity returns true if this property has a type of +// "Activity". When true, use the GetActivityStreamsActivity and +// SetActivityStreamsActivity methods to access and set this property. +func (this ForgeFedTracksTicketsForPropertyIterator) IsActivityStreamsActivity() bool { + return this.activitystreamsActivityMember != nil +} + +// IsActivityStreamsAdd returns true if this property has a type of "Add". When +// true, use the GetActivityStreamsAdd and SetActivityStreamsAdd methods to +// access and set this property. +func (this ForgeFedTracksTicketsForPropertyIterator) IsActivityStreamsAdd() bool { + return this.activitystreamsAddMember != nil +} + +// IsActivityStreamsAnnounce returns true if this property has a type of +// "Announce". When true, use the GetActivityStreamsAnnounce and +// SetActivityStreamsAnnounce methods to access and set this property. +func (this ForgeFedTracksTicketsForPropertyIterator) IsActivityStreamsAnnounce() bool { + return this.activitystreamsAnnounceMember != nil +} + +// IsActivityStreamsApplication returns true if this property has a type of +// "Application". When true, use the GetActivityStreamsApplication and +// SetActivityStreamsApplication methods to access and set this property. +func (this ForgeFedTracksTicketsForPropertyIterator) IsActivityStreamsApplication() bool { + return this.activitystreamsApplicationMember != nil +} + +// IsActivityStreamsArrive returns true if this property has a type of "Arrive". +// When true, use the GetActivityStreamsArrive and SetActivityStreamsArrive +// methods to access and set this property. +func (this ForgeFedTracksTicketsForPropertyIterator) IsActivityStreamsArrive() bool { + return this.activitystreamsArriveMember != nil +} + +// IsActivityStreamsArticle returns true if this property has a type of "Article". +// When true, use the GetActivityStreamsArticle and SetActivityStreamsArticle +// methods to access and set this property. +func (this ForgeFedTracksTicketsForPropertyIterator) IsActivityStreamsArticle() bool { + return this.activitystreamsArticleMember != nil +} + +// IsActivityStreamsAudio returns true if this property has a type of "Audio". +// When true, use the GetActivityStreamsAudio and SetActivityStreamsAudio +// methods to access and set this property. +func (this ForgeFedTracksTicketsForPropertyIterator) IsActivityStreamsAudio() bool { + return this.activitystreamsAudioMember != nil +} + +// IsActivityStreamsBlock returns true if this property has a type of "Block". +// When true, use the GetActivityStreamsBlock and SetActivityStreamsBlock +// methods to access and set this property. +func (this ForgeFedTracksTicketsForPropertyIterator) IsActivityStreamsBlock() bool { + return this.activitystreamsBlockMember != nil +} + +// IsActivityStreamsCollection returns true if this property has a type of +// "Collection". When true, use the GetActivityStreamsCollection and +// SetActivityStreamsCollection methods to access and set this property. +func (this ForgeFedTracksTicketsForPropertyIterator) IsActivityStreamsCollection() bool { + return this.activitystreamsCollectionMember != nil +} + +// IsActivityStreamsCollectionPage returns true if this property has a type of +// "CollectionPage". When true, use the GetActivityStreamsCollectionPage and +// SetActivityStreamsCollectionPage methods to access and set this property. +func (this ForgeFedTracksTicketsForPropertyIterator) IsActivityStreamsCollectionPage() bool { + return this.activitystreamsCollectionPageMember != nil +} + +// IsActivityStreamsCreate returns true if this property has a type of "Create". +// When true, use the GetActivityStreamsCreate and SetActivityStreamsCreate +// methods to access and set this property. +func (this ForgeFedTracksTicketsForPropertyIterator) IsActivityStreamsCreate() bool { + return this.activitystreamsCreateMember != nil +} + +// IsActivityStreamsDelete returns true if this property has a type of "Delete". +// When true, use the GetActivityStreamsDelete and SetActivityStreamsDelete +// methods to access and set this property. +func (this ForgeFedTracksTicketsForPropertyIterator) IsActivityStreamsDelete() bool { + return this.activitystreamsDeleteMember != nil +} + +// IsActivityStreamsDislike returns true if this property has a type of "Dislike". +// When true, use the GetActivityStreamsDislike and SetActivityStreamsDislike +// methods to access and set this property. +func (this ForgeFedTracksTicketsForPropertyIterator) IsActivityStreamsDislike() bool { + return this.activitystreamsDislikeMember != nil +} + +// IsActivityStreamsDocument returns true if this property has a type of +// "Document". When true, use the GetActivityStreamsDocument and +// SetActivityStreamsDocument methods to access and set this property. +func (this ForgeFedTracksTicketsForPropertyIterator) IsActivityStreamsDocument() bool { + return this.activitystreamsDocumentMember != nil +} + +// IsActivityStreamsEvent returns true if this property has a type of "Event". +// When true, use the GetActivityStreamsEvent and SetActivityStreamsEvent +// methods to access and set this property. +func (this ForgeFedTracksTicketsForPropertyIterator) IsActivityStreamsEvent() bool { + return this.activitystreamsEventMember != nil +} + +// IsActivityStreamsFlag returns true if this property has a type of "Flag". When +// true, use the GetActivityStreamsFlag and SetActivityStreamsFlag methods to +// access and set this property. +func (this ForgeFedTracksTicketsForPropertyIterator) IsActivityStreamsFlag() bool { + return this.activitystreamsFlagMember != nil +} + +// IsActivityStreamsFollow returns true if this property has a type of "Follow". +// When true, use the GetActivityStreamsFollow and SetActivityStreamsFollow +// methods to access and set this property. +func (this ForgeFedTracksTicketsForPropertyIterator) IsActivityStreamsFollow() bool { + return this.activitystreamsFollowMember != nil +} + +// IsActivityStreamsGroup returns true if this property has a type of "Group". +// When true, use the GetActivityStreamsGroup and SetActivityStreamsGroup +// methods to access and set this property. +func (this ForgeFedTracksTicketsForPropertyIterator) IsActivityStreamsGroup() bool { + return this.activitystreamsGroupMember != nil +} + +// IsActivityStreamsIgnore returns true if this property has a type of "Ignore". +// When true, use the GetActivityStreamsIgnore and SetActivityStreamsIgnore +// methods to access and set this property. +func (this ForgeFedTracksTicketsForPropertyIterator) IsActivityStreamsIgnore() bool { + return this.activitystreamsIgnoreMember != nil +} + +// IsActivityStreamsImage returns true if this property has a type of "Image". +// When true, use the GetActivityStreamsImage and SetActivityStreamsImage +// methods to access and set this property. +func (this ForgeFedTracksTicketsForPropertyIterator) IsActivityStreamsImage() bool { + return this.activitystreamsImageMember != nil +} + +// IsActivityStreamsIntransitiveActivity returns true if this property has a type +// of "IntransitiveActivity". When true, use the +// GetActivityStreamsIntransitiveActivity and +// SetActivityStreamsIntransitiveActivity methods to access and set this +// property. +func (this ForgeFedTracksTicketsForPropertyIterator) IsActivityStreamsIntransitiveActivity() bool { + return this.activitystreamsIntransitiveActivityMember != nil +} + +// IsActivityStreamsInvite returns true if this property has a type of "Invite". +// When true, use the GetActivityStreamsInvite and SetActivityStreamsInvite +// methods to access and set this property. +func (this ForgeFedTracksTicketsForPropertyIterator) IsActivityStreamsInvite() bool { + return this.activitystreamsInviteMember != nil +} + +// IsActivityStreamsJoin returns true if this property has a type of "Join". When +// true, use the GetActivityStreamsJoin and SetActivityStreamsJoin methods to +// access and set this property. +func (this ForgeFedTracksTicketsForPropertyIterator) IsActivityStreamsJoin() bool { + return this.activitystreamsJoinMember != nil +} + +// IsActivityStreamsLeave returns true if this property has a type of "Leave". +// When true, use the GetActivityStreamsLeave and SetActivityStreamsLeave +// methods to access and set this property. +func (this ForgeFedTracksTicketsForPropertyIterator) IsActivityStreamsLeave() bool { + return this.activitystreamsLeaveMember != nil +} + +// IsActivityStreamsLike returns true if this property has a type of "Like". When +// true, use the GetActivityStreamsLike and SetActivityStreamsLike methods to +// access and set this property. +func (this ForgeFedTracksTicketsForPropertyIterator) IsActivityStreamsLike() bool { + return this.activitystreamsLikeMember != nil +} + +// IsActivityStreamsListen returns true if this property has a type of "Listen". +// When true, use the GetActivityStreamsListen and SetActivityStreamsListen +// methods to access and set this property. +func (this ForgeFedTracksTicketsForPropertyIterator) IsActivityStreamsListen() bool { + return this.activitystreamsListenMember != nil +} + +// IsActivityStreamsMove returns true if this property has a type of "Move". When +// true, use the GetActivityStreamsMove and SetActivityStreamsMove methods to +// access and set this property. +func (this ForgeFedTracksTicketsForPropertyIterator) IsActivityStreamsMove() bool { + return this.activitystreamsMoveMember != nil +} + +// IsActivityStreamsNote returns true if this property has a type of "Note". When +// true, use the GetActivityStreamsNote and SetActivityStreamsNote methods to +// access and set this property. +func (this ForgeFedTracksTicketsForPropertyIterator) IsActivityStreamsNote() bool { + return this.activitystreamsNoteMember != nil +} + +// IsActivityStreamsObject returns true if this property has a type of "Object". +// When true, use the GetActivityStreamsObject and SetActivityStreamsObject +// methods to access and set this property. +func (this ForgeFedTracksTicketsForPropertyIterator) IsActivityStreamsObject() bool { + return this.activitystreamsObjectMember != nil +} + +// IsActivityStreamsOffer returns true if this property has a type of "Offer". +// When true, use the GetActivityStreamsOffer and SetActivityStreamsOffer +// methods to access and set this property. +func (this ForgeFedTracksTicketsForPropertyIterator) IsActivityStreamsOffer() bool { + return this.activitystreamsOfferMember != nil +} + +// IsActivityStreamsOrderedCollection returns true if this property has a type of +// "OrderedCollection". When true, use the GetActivityStreamsOrderedCollection +// and SetActivityStreamsOrderedCollection methods to access and set this +// property. +func (this ForgeFedTracksTicketsForPropertyIterator) IsActivityStreamsOrderedCollection() bool { + return this.activitystreamsOrderedCollectionMember != nil +} + +// IsActivityStreamsOrderedCollectionPage returns true if this property has a type +// of "OrderedCollectionPage". When true, use the +// GetActivityStreamsOrderedCollectionPage and +// SetActivityStreamsOrderedCollectionPage methods to access and set this +// property. +func (this ForgeFedTracksTicketsForPropertyIterator) IsActivityStreamsOrderedCollectionPage() bool { + return this.activitystreamsOrderedCollectionPageMember != nil +} + +// IsActivityStreamsOrganization returns true if this property has a type of +// "Organization". When true, use the GetActivityStreamsOrganization and +// SetActivityStreamsOrganization methods to access and set this property. +func (this ForgeFedTracksTicketsForPropertyIterator) IsActivityStreamsOrganization() bool { + return this.activitystreamsOrganizationMember != nil +} + +// IsActivityStreamsPage returns true if this property has a type of "Page". When +// true, use the GetActivityStreamsPage and SetActivityStreamsPage methods to +// access and set this property. +func (this ForgeFedTracksTicketsForPropertyIterator) IsActivityStreamsPage() bool { + return this.activitystreamsPageMember != nil +} + +// IsActivityStreamsPerson returns true if this property has a type of "Person". +// When true, use the GetActivityStreamsPerson and SetActivityStreamsPerson +// methods to access and set this property. +func (this ForgeFedTracksTicketsForPropertyIterator) IsActivityStreamsPerson() bool { + return this.activitystreamsPersonMember != nil +} + +// IsActivityStreamsPlace returns true if this property has a type of "Place". +// When true, use the GetActivityStreamsPlace and SetActivityStreamsPlace +// methods to access and set this property. +func (this ForgeFedTracksTicketsForPropertyIterator) IsActivityStreamsPlace() bool { + return this.activitystreamsPlaceMember != nil +} + +// IsActivityStreamsProfile returns true if this property has a type of "Profile". +// When true, use the GetActivityStreamsProfile and SetActivityStreamsProfile +// methods to access and set this property. +func (this ForgeFedTracksTicketsForPropertyIterator) IsActivityStreamsProfile() bool { + return this.activitystreamsProfileMember != nil +} + +// IsActivityStreamsQuestion returns true if this property has a type of +// "Question". When true, use the GetActivityStreamsQuestion and +// SetActivityStreamsQuestion methods to access and set this property. +func (this ForgeFedTracksTicketsForPropertyIterator) IsActivityStreamsQuestion() bool { + return this.activitystreamsQuestionMember != nil +} + +// IsActivityStreamsRead returns true if this property has a type of "Read". When +// true, use the GetActivityStreamsRead and SetActivityStreamsRead methods to +// access and set this property. +func (this ForgeFedTracksTicketsForPropertyIterator) IsActivityStreamsRead() bool { + return this.activitystreamsReadMember != nil +} + +// IsActivityStreamsReject returns true if this property has a type of "Reject". +// When true, use the GetActivityStreamsReject and SetActivityStreamsReject +// methods to access and set this property. +func (this ForgeFedTracksTicketsForPropertyIterator) IsActivityStreamsReject() bool { + return this.activitystreamsRejectMember != nil +} + +// IsActivityStreamsRelationship returns true if this property has a type of +// "Relationship". When true, use the GetActivityStreamsRelationship and +// SetActivityStreamsRelationship methods to access and set this property. +func (this ForgeFedTracksTicketsForPropertyIterator) IsActivityStreamsRelationship() bool { + return this.activitystreamsRelationshipMember != nil +} + +// IsActivityStreamsRemove returns true if this property has a type of "Remove". +// When true, use the GetActivityStreamsRemove and SetActivityStreamsRemove +// methods to access and set this property. +func (this ForgeFedTracksTicketsForPropertyIterator) IsActivityStreamsRemove() bool { + return this.activitystreamsRemoveMember != nil +} + +// IsActivityStreamsService returns true if this property has a type of "Service". +// When true, use the GetActivityStreamsService and SetActivityStreamsService +// methods to access and set this property. +func (this ForgeFedTracksTicketsForPropertyIterator) IsActivityStreamsService() bool { + return this.activitystreamsServiceMember != nil +} + +// IsActivityStreamsTentativeAccept returns true if this property has a type of +// "TentativeAccept". When true, use the GetActivityStreamsTentativeAccept and +// SetActivityStreamsTentativeAccept methods to access and set this property. +func (this ForgeFedTracksTicketsForPropertyIterator) IsActivityStreamsTentativeAccept() bool { + return this.activitystreamsTentativeAcceptMember != nil +} + +// IsActivityStreamsTentativeReject returns true if this property has a type of +// "TentativeReject". When true, use the GetActivityStreamsTentativeReject and +// SetActivityStreamsTentativeReject methods to access and set this property. +func (this ForgeFedTracksTicketsForPropertyIterator) IsActivityStreamsTentativeReject() bool { + return this.activitystreamsTentativeRejectMember != nil +} + +// IsActivityStreamsTombstone returns true if this property has a type of +// "Tombstone". When true, use the GetActivityStreamsTombstone and +// SetActivityStreamsTombstone methods to access and set this property. +func (this ForgeFedTracksTicketsForPropertyIterator) IsActivityStreamsTombstone() bool { + return this.activitystreamsTombstoneMember != nil +} + +// IsActivityStreamsTravel returns true if this property has a type of "Travel". +// When true, use the GetActivityStreamsTravel and SetActivityStreamsTravel +// methods to access and set this property. +func (this ForgeFedTracksTicketsForPropertyIterator) IsActivityStreamsTravel() bool { + return this.activitystreamsTravelMember != nil +} + +// IsActivityStreamsUndo returns true if this property has a type of "Undo". When +// true, use the GetActivityStreamsUndo and SetActivityStreamsUndo methods to +// access and set this property. +func (this ForgeFedTracksTicketsForPropertyIterator) IsActivityStreamsUndo() bool { + return this.activitystreamsUndoMember != nil +} + +// IsActivityStreamsUpdate returns true if this property has a type of "Update". +// When true, use the GetActivityStreamsUpdate and SetActivityStreamsUpdate +// methods to access and set this property. +func (this ForgeFedTracksTicketsForPropertyIterator) IsActivityStreamsUpdate() bool { + return this.activitystreamsUpdateMember != nil +} + +// IsActivityStreamsVideo returns true if this property has a type of "Video". +// When true, use the GetActivityStreamsVideo and SetActivityStreamsVideo +// methods to access and set this property. +func (this ForgeFedTracksTicketsForPropertyIterator) IsActivityStreamsVideo() bool { + return this.activitystreamsVideoMember != nil +} + +// IsActivityStreamsView returns true if this property has a type of "View". When +// true, use the GetActivityStreamsView and SetActivityStreamsView methods to +// access and set this property. +func (this ForgeFedTracksTicketsForPropertyIterator) IsActivityStreamsView() bool { + return this.activitystreamsViewMember != nil +} + +// IsForgeFedBranch returns true if this property has a type of "Branch". When +// true, use the GetForgeFedBranch and SetForgeFedBranch methods to access and +// set this property. +func (this ForgeFedTracksTicketsForPropertyIterator) IsForgeFedBranch() bool { + return this.forgefedBranchMember != nil +} + +// IsForgeFedCommit returns true if this property has a type of "Commit". When +// true, use the GetForgeFedCommit and SetForgeFedCommit methods to access and +// set this property. +func (this ForgeFedTracksTicketsForPropertyIterator) IsForgeFedCommit() bool { + return this.forgefedCommitMember != nil +} + +// IsForgeFedPush returns true if this property has a type of "Push". When true, +// use the GetForgeFedPush and SetForgeFedPush methods to access and set this +// property. +func (this ForgeFedTracksTicketsForPropertyIterator) IsForgeFedPush() bool { + return this.forgefedPushMember != nil +} + +// IsForgeFedRepository returns true if this property has a type of "Repository". +// When true, use the GetForgeFedRepository and SetForgeFedRepository methods +// to access and set this property. +func (this ForgeFedTracksTicketsForPropertyIterator) IsForgeFedRepository() bool { + return this.forgefedRepositoryMember != nil +} + +// IsForgeFedTicket returns true if this property has a type of "Ticket". When +// true, use the GetForgeFedTicket and SetForgeFedTicket methods to access and +// set this property. +func (this ForgeFedTracksTicketsForPropertyIterator) IsForgeFedTicket() bool { + return this.forgefedTicketMember != nil +} + +// IsForgeFedTicketDependency returns true if this property has a type of +// "TicketDependency". When true, use the GetForgeFedTicketDependency and +// SetForgeFedTicketDependency methods to access and set this property. +func (this ForgeFedTracksTicketsForPropertyIterator) IsForgeFedTicketDependency() bool { + return this.forgefedTicketDependencyMember != nil +} + +// IsIRI returns true if this property is an IRI. When true, use GetIRI and SetIRI +// to access and set this property +func (this ForgeFedTracksTicketsForPropertyIterator) IsIRI() bool { + return this.iri != nil +} + +// IsTootEmoji returns true if this property has a type of "Emoji". When true, use +// the GetTootEmoji and SetTootEmoji methods to access and set this property. +func (this ForgeFedTracksTicketsForPropertyIterator) IsTootEmoji() bool { + return this.tootEmojiMember != nil +} + +// IsTootIdentityProof returns true if this property has a type of +// "IdentityProof". When true, use the GetTootIdentityProof and +// SetTootIdentityProof methods to access and set this property. +func (this ForgeFedTracksTicketsForPropertyIterator) IsTootIdentityProof() bool { + return this.tootIdentityProofMember != nil +} + +// JSONLDContext returns the JSONLD URIs required in the context string for this +// property and the specific values that are set. The value in the map is the +// alias used to import the property's value or values. +func (this ForgeFedTracksTicketsForPropertyIterator) JSONLDContext() map[string]string { + m := map[string]string{"https://forgefed.peers.community/ns": this.alias} + var child map[string]string + if this.IsActivityStreamsObject() { + child = this.GetActivityStreamsObject().JSONLDContext() + } else if this.IsActivityStreamsAccept() { + child = this.GetActivityStreamsAccept().JSONLDContext() + } else if this.IsActivityStreamsActivity() { + child = this.GetActivityStreamsActivity().JSONLDContext() + } else if this.IsActivityStreamsAdd() { + child = this.GetActivityStreamsAdd().JSONLDContext() + } else if this.IsActivityStreamsAnnounce() { + child = this.GetActivityStreamsAnnounce().JSONLDContext() + } else if this.IsActivityStreamsApplication() { + child = this.GetActivityStreamsApplication().JSONLDContext() + } else if this.IsActivityStreamsArrive() { + child = this.GetActivityStreamsArrive().JSONLDContext() + } else if this.IsActivityStreamsArticle() { + child = this.GetActivityStreamsArticle().JSONLDContext() + } else if this.IsActivityStreamsAudio() { + child = this.GetActivityStreamsAudio().JSONLDContext() + } else if this.IsActivityStreamsBlock() { + child = this.GetActivityStreamsBlock().JSONLDContext() + } else if this.IsForgeFedBranch() { + child = this.GetForgeFedBranch().JSONLDContext() + } else if this.IsActivityStreamsCollection() { + child = this.GetActivityStreamsCollection().JSONLDContext() + } else if this.IsActivityStreamsCollectionPage() { + child = this.GetActivityStreamsCollectionPage().JSONLDContext() + } else if this.IsForgeFedCommit() { + child = this.GetForgeFedCommit().JSONLDContext() + } else if this.IsActivityStreamsCreate() { + child = this.GetActivityStreamsCreate().JSONLDContext() + } else if this.IsActivityStreamsDelete() { + child = this.GetActivityStreamsDelete().JSONLDContext() + } else if this.IsActivityStreamsDislike() { + child = this.GetActivityStreamsDislike().JSONLDContext() + } else if this.IsActivityStreamsDocument() { + child = this.GetActivityStreamsDocument().JSONLDContext() + } else if this.IsTootEmoji() { + child = this.GetTootEmoji().JSONLDContext() + } else if this.IsActivityStreamsEvent() { + child = this.GetActivityStreamsEvent().JSONLDContext() + } else if this.IsActivityStreamsFlag() { + child = this.GetActivityStreamsFlag().JSONLDContext() + } else if this.IsActivityStreamsFollow() { + child = this.GetActivityStreamsFollow().JSONLDContext() + } else if this.IsActivityStreamsGroup() { + child = this.GetActivityStreamsGroup().JSONLDContext() + } else if this.IsTootIdentityProof() { + child = this.GetTootIdentityProof().JSONLDContext() + } else if this.IsActivityStreamsIgnore() { + child = this.GetActivityStreamsIgnore().JSONLDContext() + } else if this.IsActivityStreamsImage() { + child = this.GetActivityStreamsImage().JSONLDContext() + } else if this.IsActivityStreamsIntransitiveActivity() { + child = this.GetActivityStreamsIntransitiveActivity().JSONLDContext() + } else if this.IsActivityStreamsInvite() { + child = this.GetActivityStreamsInvite().JSONLDContext() + } else if this.IsActivityStreamsJoin() { + child = this.GetActivityStreamsJoin().JSONLDContext() + } else if this.IsActivityStreamsLeave() { + child = this.GetActivityStreamsLeave().JSONLDContext() + } else if this.IsActivityStreamsLike() { + child = this.GetActivityStreamsLike().JSONLDContext() + } else if this.IsActivityStreamsListen() { + child = this.GetActivityStreamsListen().JSONLDContext() + } else if this.IsActivityStreamsMove() { + child = this.GetActivityStreamsMove().JSONLDContext() + } else if this.IsActivityStreamsNote() { + child = this.GetActivityStreamsNote().JSONLDContext() + } else if this.IsActivityStreamsOffer() { + child = this.GetActivityStreamsOffer().JSONLDContext() + } else if this.IsActivityStreamsOrderedCollection() { + child = this.GetActivityStreamsOrderedCollection().JSONLDContext() + } else if this.IsActivityStreamsOrderedCollectionPage() { + child = this.GetActivityStreamsOrderedCollectionPage().JSONLDContext() + } else if this.IsActivityStreamsOrganization() { + child = this.GetActivityStreamsOrganization().JSONLDContext() + } else if this.IsActivityStreamsPage() { + child = this.GetActivityStreamsPage().JSONLDContext() + } else if this.IsActivityStreamsPerson() { + child = this.GetActivityStreamsPerson().JSONLDContext() + } else if this.IsActivityStreamsPlace() { + child = this.GetActivityStreamsPlace().JSONLDContext() + } else if this.IsActivityStreamsProfile() { + child = this.GetActivityStreamsProfile().JSONLDContext() + } else if this.IsForgeFedPush() { + child = this.GetForgeFedPush().JSONLDContext() + } else if this.IsActivityStreamsQuestion() { + child = this.GetActivityStreamsQuestion().JSONLDContext() + } else if this.IsActivityStreamsRead() { + child = this.GetActivityStreamsRead().JSONLDContext() + } else if this.IsActivityStreamsReject() { + child = this.GetActivityStreamsReject().JSONLDContext() + } else if this.IsActivityStreamsRelationship() { + child = this.GetActivityStreamsRelationship().JSONLDContext() + } else if this.IsActivityStreamsRemove() { + child = this.GetActivityStreamsRemove().JSONLDContext() + } else if this.IsForgeFedRepository() { + child = this.GetForgeFedRepository().JSONLDContext() + } else if this.IsActivityStreamsService() { + child = this.GetActivityStreamsService().JSONLDContext() + } else if this.IsActivityStreamsTentativeAccept() { + child = this.GetActivityStreamsTentativeAccept().JSONLDContext() + } else if this.IsActivityStreamsTentativeReject() { + child = this.GetActivityStreamsTentativeReject().JSONLDContext() + } else if this.IsForgeFedTicket() { + child = this.GetForgeFedTicket().JSONLDContext() + } else if this.IsForgeFedTicketDependency() { + child = this.GetForgeFedTicketDependency().JSONLDContext() + } else if this.IsActivityStreamsTombstone() { + child = this.GetActivityStreamsTombstone().JSONLDContext() + } else if this.IsActivityStreamsTravel() { + child = this.GetActivityStreamsTravel().JSONLDContext() + } else if this.IsActivityStreamsUndo() { + child = this.GetActivityStreamsUndo().JSONLDContext() + } else if this.IsActivityStreamsUpdate() { + child = this.GetActivityStreamsUpdate().JSONLDContext() + } else if this.IsActivityStreamsVideo() { + child = this.GetActivityStreamsVideo().JSONLDContext() + } else if this.IsActivityStreamsView() { + child = this.GetActivityStreamsView().JSONLDContext() + } + /* + Since the literal maps in this function are determined at + code-generation time, this loop should not overwrite an existing key with a + new value. + */ + for k, v := range child { + m[k] = v + } + return m +} + +// KindIndex computes an arbitrary value for indexing this kind of value. This is +// a leaky API detail only for folks looking to replace the go-fed +// implementation. Applications should not use this method. +func (this ForgeFedTracksTicketsForPropertyIterator) KindIndex() int { + if this.IsActivityStreamsObject() { + return 0 + } + if this.IsActivityStreamsAccept() { + return 1 + } + if this.IsActivityStreamsActivity() { + return 2 + } + if this.IsActivityStreamsAdd() { + return 3 + } + if this.IsActivityStreamsAnnounce() { + return 4 + } + if this.IsActivityStreamsApplication() { + return 5 + } + if this.IsActivityStreamsArrive() { + return 6 + } + if this.IsActivityStreamsArticle() { + return 7 + } + if this.IsActivityStreamsAudio() { + return 8 + } + if this.IsActivityStreamsBlock() { + return 9 + } + if this.IsForgeFedBranch() { + return 10 + } + if this.IsActivityStreamsCollection() { + return 11 + } + if this.IsActivityStreamsCollectionPage() { + return 12 + } + if this.IsForgeFedCommit() { + return 13 + } + if this.IsActivityStreamsCreate() { + return 14 + } + if this.IsActivityStreamsDelete() { + return 15 + } + if this.IsActivityStreamsDislike() { + return 16 + } + if this.IsActivityStreamsDocument() { + return 17 + } + if this.IsTootEmoji() { + return 18 + } + if this.IsActivityStreamsEvent() { + return 19 + } + if this.IsActivityStreamsFlag() { + return 20 + } + if this.IsActivityStreamsFollow() { + return 21 + } + if this.IsActivityStreamsGroup() { + return 22 + } + if this.IsTootIdentityProof() { + return 23 + } + if this.IsActivityStreamsIgnore() { + return 24 + } + if this.IsActivityStreamsImage() { + return 25 + } + if this.IsActivityStreamsIntransitiveActivity() { + return 26 + } + if this.IsActivityStreamsInvite() { + return 27 + } + if this.IsActivityStreamsJoin() { + return 28 + } + if this.IsActivityStreamsLeave() { + return 29 + } + if this.IsActivityStreamsLike() { + return 30 + } + if this.IsActivityStreamsListen() { + return 31 + } + if this.IsActivityStreamsMove() { + return 32 + } + if this.IsActivityStreamsNote() { + return 33 + } + if this.IsActivityStreamsOffer() { + return 34 + } + if this.IsActivityStreamsOrderedCollection() { + return 35 + } + if this.IsActivityStreamsOrderedCollectionPage() { + return 36 + } + if this.IsActivityStreamsOrganization() { + return 37 + } + if this.IsActivityStreamsPage() { + return 38 + } + if this.IsActivityStreamsPerson() { + return 39 + } + if this.IsActivityStreamsPlace() { + return 40 + } + if this.IsActivityStreamsProfile() { + return 41 + } + if this.IsForgeFedPush() { + return 42 + } + if this.IsActivityStreamsQuestion() { + return 43 + } + if this.IsActivityStreamsRead() { + return 44 + } + if this.IsActivityStreamsReject() { + return 45 + } + if this.IsActivityStreamsRelationship() { + return 46 + } + if this.IsActivityStreamsRemove() { + return 47 + } + if this.IsForgeFedRepository() { + return 48 + } + if this.IsActivityStreamsService() { + return 49 + } + if this.IsActivityStreamsTentativeAccept() { + return 50 + } + if this.IsActivityStreamsTentativeReject() { + return 51 + } + if this.IsForgeFedTicket() { + return 52 + } + if this.IsForgeFedTicketDependency() { + return 53 + } + if this.IsActivityStreamsTombstone() { + return 54 + } + if this.IsActivityStreamsTravel() { + return 55 + } + if this.IsActivityStreamsUndo() { + return 56 + } + if this.IsActivityStreamsUpdate() { + return 57 + } + if this.IsActivityStreamsVideo() { + return 58 + } + if this.IsActivityStreamsView() { + return 59 + } + if this.IsIRI() { + return -2 + } + return -1 +} + +// LessThan compares two instances of this property with an arbitrary but stable +// comparison. Applications should not use this because it is only meant to +// help alternative implementations to go-fed to be able to normalize +// nonfunctional properties. +func (this ForgeFedTracksTicketsForPropertyIterator) LessThan(o vocab.ForgeFedTracksTicketsForPropertyIterator) bool { + idx1 := this.KindIndex() + idx2 := o.KindIndex() + if idx1 < idx2 { + return true + } else if idx1 > idx2 { + return false + } else if this.IsActivityStreamsObject() { + return this.GetActivityStreamsObject().LessThan(o.GetActivityStreamsObject()) + } else if this.IsActivityStreamsAccept() { + return this.GetActivityStreamsAccept().LessThan(o.GetActivityStreamsAccept()) + } else if this.IsActivityStreamsActivity() { + return this.GetActivityStreamsActivity().LessThan(o.GetActivityStreamsActivity()) + } else if this.IsActivityStreamsAdd() { + return this.GetActivityStreamsAdd().LessThan(o.GetActivityStreamsAdd()) + } else if this.IsActivityStreamsAnnounce() { + return this.GetActivityStreamsAnnounce().LessThan(o.GetActivityStreamsAnnounce()) + } else if this.IsActivityStreamsApplication() { + return this.GetActivityStreamsApplication().LessThan(o.GetActivityStreamsApplication()) + } else if this.IsActivityStreamsArrive() { + return this.GetActivityStreamsArrive().LessThan(o.GetActivityStreamsArrive()) + } else if this.IsActivityStreamsArticle() { + return this.GetActivityStreamsArticle().LessThan(o.GetActivityStreamsArticle()) + } else if this.IsActivityStreamsAudio() { + return this.GetActivityStreamsAudio().LessThan(o.GetActivityStreamsAudio()) + } else if this.IsActivityStreamsBlock() { + return this.GetActivityStreamsBlock().LessThan(o.GetActivityStreamsBlock()) + } else if this.IsForgeFedBranch() { + return this.GetForgeFedBranch().LessThan(o.GetForgeFedBranch()) + } else if this.IsActivityStreamsCollection() { + return this.GetActivityStreamsCollection().LessThan(o.GetActivityStreamsCollection()) + } else if this.IsActivityStreamsCollectionPage() { + return this.GetActivityStreamsCollectionPage().LessThan(o.GetActivityStreamsCollectionPage()) + } else if this.IsForgeFedCommit() { + return this.GetForgeFedCommit().LessThan(o.GetForgeFedCommit()) + } else if this.IsActivityStreamsCreate() { + return this.GetActivityStreamsCreate().LessThan(o.GetActivityStreamsCreate()) + } else if this.IsActivityStreamsDelete() { + return this.GetActivityStreamsDelete().LessThan(o.GetActivityStreamsDelete()) + } else if this.IsActivityStreamsDislike() { + return this.GetActivityStreamsDislike().LessThan(o.GetActivityStreamsDislike()) + } else if this.IsActivityStreamsDocument() { + return this.GetActivityStreamsDocument().LessThan(o.GetActivityStreamsDocument()) + } else if this.IsTootEmoji() { + return this.GetTootEmoji().LessThan(o.GetTootEmoji()) + } else if this.IsActivityStreamsEvent() { + return this.GetActivityStreamsEvent().LessThan(o.GetActivityStreamsEvent()) + } else if this.IsActivityStreamsFlag() { + return this.GetActivityStreamsFlag().LessThan(o.GetActivityStreamsFlag()) + } else if this.IsActivityStreamsFollow() { + return this.GetActivityStreamsFollow().LessThan(o.GetActivityStreamsFollow()) + } else if this.IsActivityStreamsGroup() { + return this.GetActivityStreamsGroup().LessThan(o.GetActivityStreamsGroup()) + } else if this.IsTootIdentityProof() { + return this.GetTootIdentityProof().LessThan(o.GetTootIdentityProof()) + } else if this.IsActivityStreamsIgnore() { + return this.GetActivityStreamsIgnore().LessThan(o.GetActivityStreamsIgnore()) + } else if this.IsActivityStreamsImage() { + return this.GetActivityStreamsImage().LessThan(o.GetActivityStreamsImage()) + } else if this.IsActivityStreamsIntransitiveActivity() { + return this.GetActivityStreamsIntransitiveActivity().LessThan(o.GetActivityStreamsIntransitiveActivity()) + } else if this.IsActivityStreamsInvite() { + return this.GetActivityStreamsInvite().LessThan(o.GetActivityStreamsInvite()) + } else if this.IsActivityStreamsJoin() { + return this.GetActivityStreamsJoin().LessThan(o.GetActivityStreamsJoin()) + } else if this.IsActivityStreamsLeave() { + return this.GetActivityStreamsLeave().LessThan(o.GetActivityStreamsLeave()) + } else if this.IsActivityStreamsLike() { + return this.GetActivityStreamsLike().LessThan(o.GetActivityStreamsLike()) + } else if this.IsActivityStreamsListen() { + return this.GetActivityStreamsListen().LessThan(o.GetActivityStreamsListen()) + } else if this.IsActivityStreamsMove() { + return this.GetActivityStreamsMove().LessThan(o.GetActivityStreamsMove()) + } else if this.IsActivityStreamsNote() { + return this.GetActivityStreamsNote().LessThan(o.GetActivityStreamsNote()) + } else if this.IsActivityStreamsOffer() { + return this.GetActivityStreamsOffer().LessThan(o.GetActivityStreamsOffer()) + } else if this.IsActivityStreamsOrderedCollection() { + return this.GetActivityStreamsOrderedCollection().LessThan(o.GetActivityStreamsOrderedCollection()) + } else if this.IsActivityStreamsOrderedCollectionPage() { + return this.GetActivityStreamsOrderedCollectionPage().LessThan(o.GetActivityStreamsOrderedCollectionPage()) + } else if this.IsActivityStreamsOrganization() { + return this.GetActivityStreamsOrganization().LessThan(o.GetActivityStreamsOrganization()) + } else if this.IsActivityStreamsPage() { + return this.GetActivityStreamsPage().LessThan(o.GetActivityStreamsPage()) + } else if this.IsActivityStreamsPerson() { + return this.GetActivityStreamsPerson().LessThan(o.GetActivityStreamsPerson()) + } else if this.IsActivityStreamsPlace() { + return this.GetActivityStreamsPlace().LessThan(o.GetActivityStreamsPlace()) + } else if this.IsActivityStreamsProfile() { + return this.GetActivityStreamsProfile().LessThan(o.GetActivityStreamsProfile()) + } else if this.IsForgeFedPush() { + return this.GetForgeFedPush().LessThan(o.GetForgeFedPush()) + } else if this.IsActivityStreamsQuestion() { + return this.GetActivityStreamsQuestion().LessThan(o.GetActivityStreamsQuestion()) + } else if this.IsActivityStreamsRead() { + return this.GetActivityStreamsRead().LessThan(o.GetActivityStreamsRead()) + } else if this.IsActivityStreamsReject() { + return this.GetActivityStreamsReject().LessThan(o.GetActivityStreamsReject()) + } else if this.IsActivityStreamsRelationship() { + return this.GetActivityStreamsRelationship().LessThan(o.GetActivityStreamsRelationship()) + } else if this.IsActivityStreamsRemove() { + return this.GetActivityStreamsRemove().LessThan(o.GetActivityStreamsRemove()) + } else if this.IsForgeFedRepository() { + return this.GetForgeFedRepository().LessThan(o.GetForgeFedRepository()) + } else if this.IsActivityStreamsService() { + return this.GetActivityStreamsService().LessThan(o.GetActivityStreamsService()) + } else if this.IsActivityStreamsTentativeAccept() { + return this.GetActivityStreamsTentativeAccept().LessThan(o.GetActivityStreamsTentativeAccept()) + } else if this.IsActivityStreamsTentativeReject() { + return this.GetActivityStreamsTentativeReject().LessThan(o.GetActivityStreamsTentativeReject()) + } else if this.IsForgeFedTicket() { + return this.GetForgeFedTicket().LessThan(o.GetForgeFedTicket()) + } else if this.IsForgeFedTicketDependency() { + return this.GetForgeFedTicketDependency().LessThan(o.GetForgeFedTicketDependency()) + } else if this.IsActivityStreamsTombstone() { + return this.GetActivityStreamsTombstone().LessThan(o.GetActivityStreamsTombstone()) + } else if this.IsActivityStreamsTravel() { + return this.GetActivityStreamsTravel().LessThan(o.GetActivityStreamsTravel()) + } else if this.IsActivityStreamsUndo() { + return this.GetActivityStreamsUndo().LessThan(o.GetActivityStreamsUndo()) + } else if this.IsActivityStreamsUpdate() { + return this.GetActivityStreamsUpdate().LessThan(o.GetActivityStreamsUpdate()) + } else if this.IsActivityStreamsVideo() { + return this.GetActivityStreamsVideo().LessThan(o.GetActivityStreamsVideo()) + } else if this.IsActivityStreamsView() { + return this.GetActivityStreamsView().LessThan(o.GetActivityStreamsView()) + } else if this.IsIRI() { + return this.iri.String() < o.GetIRI().String() + } + return false +} + +// Name returns the name of this property: "ForgeFedTracksTicketsFor". +func (this ForgeFedTracksTicketsForPropertyIterator) Name() string { + if len(this.alias) > 0 { + return this.alias + ":" + "ForgeFedTracksTicketsFor" + } else { + return "ForgeFedTracksTicketsFor" + } +} + +// Next returns the next iterator, or nil if there is no next iterator. +func (this ForgeFedTracksTicketsForPropertyIterator) Next() vocab.ForgeFedTracksTicketsForPropertyIterator { + if this.myIdx+1 >= this.parent.Len() { + return nil + } else { + return this.parent.At(this.myIdx + 1) + } +} + +// Prev returns the previous iterator, or nil if there is no previous iterator. +func (this ForgeFedTracksTicketsForPropertyIterator) Prev() vocab.ForgeFedTracksTicketsForPropertyIterator { + if this.myIdx-1 < 0 { + return nil + } else { + return this.parent.At(this.myIdx - 1) + } +} + +// SetActivityStreamsAccept sets the value of this property. Calling +// IsActivityStreamsAccept afterwards returns true. +func (this *ForgeFedTracksTicketsForPropertyIterator) SetActivityStreamsAccept(v vocab.ActivityStreamsAccept) { + this.clear() + this.activitystreamsAcceptMember = v +} + +// SetActivityStreamsActivity sets the value of this property. Calling +// IsActivityStreamsActivity afterwards returns true. +func (this *ForgeFedTracksTicketsForPropertyIterator) SetActivityStreamsActivity(v vocab.ActivityStreamsActivity) { + this.clear() + this.activitystreamsActivityMember = v +} + +// SetActivityStreamsAdd sets the value of this property. Calling +// IsActivityStreamsAdd afterwards returns true. +func (this *ForgeFedTracksTicketsForPropertyIterator) SetActivityStreamsAdd(v vocab.ActivityStreamsAdd) { + this.clear() + this.activitystreamsAddMember = v +} + +// SetActivityStreamsAnnounce sets the value of this property. Calling +// IsActivityStreamsAnnounce afterwards returns true. +func (this *ForgeFedTracksTicketsForPropertyIterator) SetActivityStreamsAnnounce(v vocab.ActivityStreamsAnnounce) { + this.clear() + this.activitystreamsAnnounceMember = v +} + +// SetActivityStreamsApplication sets the value of this property. Calling +// IsActivityStreamsApplication afterwards returns true. +func (this *ForgeFedTracksTicketsForPropertyIterator) SetActivityStreamsApplication(v vocab.ActivityStreamsApplication) { + this.clear() + this.activitystreamsApplicationMember = v +} + +// SetActivityStreamsArrive sets the value of this property. Calling +// IsActivityStreamsArrive afterwards returns true. +func (this *ForgeFedTracksTicketsForPropertyIterator) SetActivityStreamsArrive(v vocab.ActivityStreamsArrive) { + this.clear() + this.activitystreamsArriveMember = v +} + +// SetActivityStreamsArticle sets the value of this property. Calling +// IsActivityStreamsArticle afterwards returns true. +func (this *ForgeFedTracksTicketsForPropertyIterator) SetActivityStreamsArticle(v vocab.ActivityStreamsArticle) { + this.clear() + this.activitystreamsArticleMember = v +} + +// SetActivityStreamsAudio sets the value of this property. Calling +// IsActivityStreamsAudio afterwards returns true. +func (this *ForgeFedTracksTicketsForPropertyIterator) SetActivityStreamsAudio(v vocab.ActivityStreamsAudio) { + this.clear() + this.activitystreamsAudioMember = v +} + +// SetActivityStreamsBlock sets the value of this property. Calling +// IsActivityStreamsBlock afterwards returns true. +func (this *ForgeFedTracksTicketsForPropertyIterator) SetActivityStreamsBlock(v vocab.ActivityStreamsBlock) { + this.clear() + this.activitystreamsBlockMember = v +} + +// SetActivityStreamsCollection sets the value of this property. Calling +// IsActivityStreamsCollection afterwards returns true. +func (this *ForgeFedTracksTicketsForPropertyIterator) SetActivityStreamsCollection(v vocab.ActivityStreamsCollection) { + this.clear() + this.activitystreamsCollectionMember = v +} + +// SetActivityStreamsCollectionPage sets the value of this property. Calling +// IsActivityStreamsCollectionPage afterwards returns true. +func (this *ForgeFedTracksTicketsForPropertyIterator) SetActivityStreamsCollectionPage(v vocab.ActivityStreamsCollectionPage) { + this.clear() + this.activitystreamsCollectionPageMember = v +} + +// SetActivityStreamsCreate sets the value of this property. Calling +// IsActivityStreamsCreate afterwards returns true. +func (this *ForgeFedTracksTicketsForPropertyIterator) SetActivityStreamsCreate(v vocab.ActivityStreamsCreate) { + this.clear() + this.activitystreamsCreateMember = v +} + +// SetActivityStreamsDelete sets the value of this property. Calling +// IsActivityStreamsDelete afterwards returns true. +func (this *ForgeFedTracksTicketsForPropertyIterator) SetActivityStreamsDelete(v vocab.ActivityStreamsDelete) { + this.clear() + this.activitystreamsDeleteMember = v +} + +// SetActivityStreamsDislike sets the value of this property. Calling +// IsActivityStreamsDislike afterwards returns true. +func (this *ForgeFedTracksTicketsForPropertyIterator) SetActivityStreamsDislike(v vocab.ActivityStreamsDislike) { + this.clear() + this.activitystreamsDislikeMember = v +} + +// SetActivityStreamsDocument sets the value of this property. Calling +// IsActivityStreamsDocument afterwards returns true. +func (this *ForgeFedTracksTicketsForPropertyIterator) SetActivityStreamsDocument(v vocab.ActivityStreamsDocument) { + this.clear() + this.activitystreamsDocumentMember = v +} + +// SetActivityStreamsEvent sets the value of this property. Calling +// IsActivityStreamsEvent afterwards returns true. +func (this *ForgeFedTracksTicketsForPropertyIterator) SetActivityStreamsEvent(v vocab.ActivityStreamsEvent) { + this.clear() + this.activitystreamsEventMember = v +} + +// SetActivityStreamsFlag sets the value of this property. Calling +// IsActivityStreamsFlag afterwards returns true. +func (this *ForgeFedTracksTicketsForPropertyIterator) SetActivityStreamsFlag(v vocab.ActivityStreamsFlag) { + this.clear() + this.activitystreamsFlagMember = v +} + +// SetActivityStreamsFollow sets the value of this property. Calling +// IsActivityStreamsFollow afterwards returns true. +func (this *ForgeFedTracksTicketsForPropertyIterator) SetActivityStreamsFollow(v vocab.ActivityStreamsFollow) { + this.clear() + this.activitystreamsFollowMember = v +} + +// SetActivityStreamsGroup sets the value of this property. Calling +// IsActivityStreamsGroup afterwards returns true. +func (this *ForgeFedTracksTicketsForPropertyIterator) SetActivityStreamsGroup(v vocab.ActivityStreamsGroup) { + this.clear() + this.activitystreamsGroupMember = v +} + +// SetActivityStreamsIgnore sets the value of this property. Calling +// IsActivityStreamsIgnore afterwards returns true. +func (this *ForgeFedTracksTicketsForPropertyIterator) SetActivityStreamsIgnore(v vocab.ActivityStreamsIgnore) { + this.clear() + this.activitystreamsIgnoreMember = v +} + +// SetActivityStreamsImage sets the value of this property. Calling +// IsActivityStreamsImage afterwards returns true. +func (this *ForgeFedTracksTicketsForPropertyIterator) SetActivityStreamsImage(v vocab.ActivityStreamsImage) { + this.clear() + this.activitystreamsImageMember = v +} + +// SetActivityStreamsIntransitiveActivity sets the value of this property. Calling +// IsActivityStreamsIntransitiveActivity afterwards returns true. +func (this *ForgeFedTracksTicketsForPropertyIterator) SetActivityStreamsIntransitiveActivity(v vocab.ActivityStreamsIntransitiveActivity) { + this.clear() + this.activitystreamsIntransitiveActivityMember = v +} + +// SetActivityStreamsInvite sets the value of this property. Calling +// IsActivityStreamsInvite afterwards returns true. +func (this *ForgeFedTracksTicketsForPropertyIterator) SetActivityStreamsInvite(v vocab.ActivityStreamsInvite) { + this.clear() + this.activitystreamsInviteMember = v +} + +// SetActivityStreamsJoin sets the value of this property. Calling +// IsActivityStreamsJoin afterwards returns true. +func (this *ForgeFedTracksTicketsForPropertyIterator) SetActivityStreamsJoin(v vocab.ActivityStreamsJoin) { + this.clear() + this.activitystreamsJoinMember = v +} + +// SetActivityStreamsLeave sets the value of this property. Calling +// IsActivityStreamsLeave afterwards returns true. +func (this *ForgeFedTracksTicketsForPropertyIterator) SetActivityStreamsLeave(v vocab.ActivityStreamsLeave) { + this.clear() + this.activitystreamsLeaveMember = v +} + +// SetActivityStreamsLike sets the value of this property. Calling +// IsActivityStreamsLike afterwards returns true. +func (this *ForgeFedTracksTicketsForPropertyIterator) SetActivityStreamsLike(v vocab.ActivityStreamsLike) { + this.clear() + this.activitystreamsLikeMember = v +} + +// SetActivityStreamsListen sets the value of this property. Calling +// IsActivityStreamsListen afterwards returns true. +func (this *ForgeFedTracksTicketsForPropertyIterator) SetActivityStreamsListen(v vocab.ActivityStreamsListen) { + this.clear() + this.activitystreamsListenMember = v +} + +// SetActivityStreamsMove sets the value of this property. Calling +// IsActivityStreamsMove afterwards returns true. +func (this *ForgeFedTracksTicketsForPropertyIterator) SetActivityStreamsMove(v vocab.ActivityStreamsMove) { + this.clear() + this.activitystreamsMoveMember = v +} + +// SetActivityStreamsNote sets the value of this property. Calling +// IsActivityStreamsNote afterwards returns true. +func (this *ForgeFedTracksTicketsForPropertyIterator) SetActivityStreamsNote(v vocab.ActivityStreamsNote) { + this.clear() + this.activitystreamsNoteMember = v +} + +// SetActivityStreamsObject sets the value of this property. Calling +// IsActivityStreamsObject afterwards returns true. +func (this *ForgeFedTracksTicketsForPropertyIterator) SetActivityStreamsObject(v vocab.ActivityStreamsObject) { + this.clear() + this.activitystreamsObjectMember = v +} + +// SetActivityStreamsOffer sets the value of this property. Calling +// IsActivityStreamsOffer afterwards returns true. +func (this *ForgeFedTracksTicketsForPropertyIterator) SetActivityStreamsOffer(v vocab.ActivityStreamsOffer) { + this.clear() + this.activitystreamsOfferMember = v +} + +// SetActivityStreamsOrderedCollection sets the value of this property. Calling +// IsActivityStreamsOrderedCollection afterwards returns true. +func (this *ForgeFedTracksTicketsForPropertyIterator) SetActivityStreamsOrderedCollection(v vocab.ActivityStreamsOrderedCollection) { + this.clear() + this.activitystreamsOrderedCollectionMember = v +} + +// SetActivityStreamsOrderedCollectionPage sets the value of this property. +// Calling IsActivityStreamsOrderedCollectionPage afterwards returns true. +func (this *ForgeFedTracksTicketsForPropertyIterator) SetActivityStreamsOrderedCollectionPage(v vocab.ActivityStreamsOrderedCollectionPage) { + this.clear() + this.activitystreamsOrderedCollectionPageMember = v +} + +// SetActivityStreamsOrganization sets the value of this property. Calling +// IsActivityStreamsOrganization afterwards returns true. +func (this *ForgeFedTracksTicketsForPropertyIterator) SetActivityStreamsOrganization(v vocab.ActivityStreamsOrganization) { + this.clear() + this.activitystreamsOrganizationMember = v +} + +// SetActivityStreamsPage sets the value of this property. Calling +// IsActivityStreamsPage afterwards returns true. +func (this *ForgeFedTracksTicketsForPropertyIterator) SetActivityStreamsPage(v vocab.ActivityStreamsPage) { + this.clear() + this.activitystreamsPageMember = v +} + +// SetActivityStreamsPerson sets the value of this property. Calling +// IsActivityStreamsPerson afterwards returns true. +func (this *ForgeFedTracksTicketsForPropertyIterator) SetActivityStreamsPerson(v vocab.ActivityStreamsPerson) { + this.clear() + this.activitystreamsPersonMember = v +} + +// SetActivityStreamsPlace sets the value of this property. Calling +// IsActivityStreamsPlace afterwards returns true. +func (this *ForgeFedTracksTicketsForPropertyIterator) SetActivityStreamsPlace(v vocab.ActivityStreamsPlace) { + this.clear() + this.activitystreamsPlaceMember = v +} + +// SetActivityStreamsProfile sets the value of this property. Calling +// IsActivityStreamsProfile afterwards returns true. +func (this *ForgeFedTracksTicketsForPropertyIterator) SetActivityStreamsProfile(v vocab.ActivityStreamsProfile) { + this.clear() + this.activitystreamsProfileMember = v +} + +// SetActivityStreamsQuestion sets the value of this property. Calling +// IsActivityStreamsQuestion afterwards returns true. +func (this *ForgeFedTracksTicketsForPropertyIterator) SetActivityStreamsQuestion(v vocab.ActivityStreamsQuestion) { + this.clear() + this.activitystreamsQuestionMember = v +} + +// SetActivityStreamsRead sets the value of this property. Calling +// IsActivityStreamsRead afterwards returns true. +func (this *ForgeFedTracksTicketsForPropertyIterator) SetActivityStreamsRead(v vocab.ActivityStreamsRead) { + this.clear() + this.activitystreamsReadMember = v +} + +// SetActivityStreamsReject sets the value of this property. Calling +// IsActivityStreamsReject afterwards returns true. +func (this *ForgeFedTracksTicketsForPropertyIterator) SetActivityStreamsReject(v vocab.ActivityStreamsReject) { + this.clear() + this.activitystreamsRejectMember = v +} + +// SetActivityStreamsRelationship sets the value of this property. Calling +// IsActivityStreamsRelationship afterwards returns true. +func (this *ForgeFedTracksTicketsForPropertyIterator) SetActivityStreamsRelationship(v vocab.ActivityStreamsRelationship) { + this.clear() + this.activitystreamsRelationshipMember = v +} + +// SetActivityStreamsRemove sets the value of this property. Calling +// IsActivityStreamsRemove afterwards returns true. +func (this *ForgeFedTracksTicketsForPropertyIterator) SetActivityStreamsRemove(v vocab.ActivityStreamsRemove) { + this.clear() + this.activitystreamsRemoveMember = v +} + +// SetActivityStreamsService sets the value of this property. Calling +// IsActivityStreamsService afterwards returns true. +func (this *ForgeFedTracksTicketsForPropertyIterator) SetActivityStreamsService(v vocab.ActivityStreamsService) { + this.clear() + this.activitystreamsServiceMember = v +} + +// SetActivityStreamsTentativeAccept sets the value of this property. Calling +// IsActivityStreamsTentativeAccept afterwards returns true. +func (this *ForgeFedTracksTicketsForPropertyIterator) SetActivityStreamsTentativeAccept(v vocab.ActivityStreamsTentativeAccept) { + this.clear() + this.activitystreamsTentativeAcceptMember = v +} + +// SetActivityStreamsTentativeReject sets the value of this property. Calling +// IsActivityStreamsTentativeReject afterwards returns true. +func (this *ForgeFedTracksTicketsForPropertyIterator) SetActivityStreamsTentativeReject(v vocab.ActivityStreamsTentativeReject) { + this.clear() + this.activitystreamsTentativeRejectMember = v +} + +// SetActivityStreamsTombstone sets the value of this property. Calling +// IsActivityStreamsTombstone afterwards returns true. +func (this *ForgeFedTracksTicketsForPropertyIterator) SetActivityStreamsTombstone(v vocab.ActivityStreamsTombstone) { + this.clear() + this.activitystreamsTombstoneMember = v +} + +// SetActivityStreamsTravel sets the value of this property. Calling +// IsActivityStreamsTravel afterwards returns true. +func (this *ForgeFedTracksTicketsForPropertyIterator) SetActivityStreamsTravel(v vocab.ActivityStreamsTravel) { + this.clear() + this.activitystreamsTravelMember = v +} + +// SetActivityStreamsUndo sets the value of this property. Calling +// IsActivityStreamsUndo afterwards returns true. +func (this *ForgeFedTracksTicketsForPropertyIterator) SetActivityStreamsUndo(v vocab.ActivityStreamsUndo) { + this.clear() + this.activitystreamsUndoMember = v +} + +// SetActivityStreamsUpdate sets the value of this property. Calling +// IsActivityStreamsUpdate afterwards returns true. +func (this *ForgeFedTracksTicketsForPropertyIterator) SetActivityStreamsUpdate(v vocab.ActivityStreamsUpdate) { + this.clear() + this.activitystreamsUpdateMember = v +} + +// SetActivityStreamsVideo sets the value of this property. Calling +// IsActivityStreamsVideo afterwards returns true. +func (this *ForgeFedTracksTicketsForPropertyIterator) SetActivityStreamsVideo(v vocab.ActivityStreamsVideo) { + this.clear() + this.activitystreamsVideoMember = v +} + +// SetActivityStreamsView sets the value of this property. Calling +// IsActivityStreamsView afterwards returns true. +func (this *ForgeFedTracksTicketsForPropertyIterator) SetActivityStreamsView(v vocab.ActivityStreamsView) { + this.clear() + this.activitystreamsViewMember = v +} + +// SetForgeFedBranch sets the value of this property. Calling IsForgeFedBranch +// afterwards returns true. +func (this *ForgeFedTracksTicketsForPropertyIterator) SetForgeFedBranch(v vocab.ForgeFedBranch) { + this.clear() + this.forgefedBranchMember = v +} + +// SetForgeFedCommit sets the value of this property. Calling IsForgeFedCommit +// afterwards returns true. +func (this *ForgeFedTracksTicketsForPropertyIterator) SetForgeFedCommit(v vocab.ForgeFedCommit) { + this.clear() + this.forgefedCommitMember = v +} + +// SetForgeFedPush sets the value of this property. Calling IsForgeFedPush +// afterwards returns true. +func (this *ForgeFedTracksTicketsForPropertyIterator) SetForgeFedPush(v vocab.ForgeFedPush) { + this.clear() + this.forgefedPushMember = v +} + +// SetForgeFedRepository sets the value of this property. Calling +// IsForgeFedRepository afterwards returns true. +func (this *ForgeFedTracksTicketsForPropertyIterator) SetForgeFedRepository(v vocab.ForgeFedRepository) { + this.clear() + this.forgefedRepositoryMember = v +} + +// SetForgeFedTicket sets the value of this property. Calling IsForgeFedTicket +// afterwards returns true. +func (this *ForgeFedTracksTicketsForPropertyIterator) SetForgeFedTicket(v vocab.ForgeFedTicket) { + this.clear() + this.forgefedTicketMember = v +} + +// SetForgeFedTicketDependency sets the value of this property. Calling +// IsForgeFedTicketDependency afterwards returns true. +func (this *ForgeFedTracksTicketsForPropertyIterator) SetForgeFedTicketDependency(v vocab.ForgeFedTicketDependency) { + this.clear() + this.forgefedTicketDependencyMember = v +} + +// SetIRI sets the value of this property. Calling IsIRI afterwards returns true. +func (this *ForgeFedTracksTicketsForPropertyIterator) SetIRI(v *url.URL) { + this.clear() + this.iri = v +} + +// SetTootEmoji sets the value of this property. Calling IsTootEmoji afterwards +// returns true. +func (this *ForgeFedTracksTicketsForPropertyIterator) SetTootEmoji(v vocab.TootEmoji) { + this.clear() + this.tootEmojiMember = v +} + +// SetTootIdentityProof sets the value of this property. Calling +// IsTootIdentityProof afterwards returns true. +func (this *ForgeFedTracksTicketsForPropertyIterator) SetTootIdentityProof(v vocab.TootIdentityProof) { + this.clear() + this.tootIdentityProofMember = v +} + +// SetType attempts to set the property for the arbitrary type. Returns an error +// if it is not a valid type to set on this property. +func (this *ForgeFedTracksTicketsForPropertyIterator) SetType(t vocab.Type) error { + if v, ok := t.(vocab.ActivityStreamsObject); ok { + this.SetActivityStreamsObject(v) + return nil + } + if v, ok := t.(vocab.ActivityStreamsAccept); ok { + this.SetActivityStreamsAccept(v) + return nil + } + if v, ok := t.(vocab.ActivityStreamsActivity); ok { + this.SetActivityStreamsActivity(v) + return nil + } + if v, ok := t.(vocab.ActivityStreamsAdd); ok { + this.SetActivityStreamsAdd(v) + return nil + } + if v, ok := t.(vocab.ActivityStreamsAnnounce); ok { + this.SetActivityStreamsAnnounce(v) + return nil + } + if v, ok := t.(vocab.ActivityStreamsApplication); ok { + this.SetActivityStreamsApplication(v) + return nil + } + if v, ok := t.(vocab.ActivityStreamsArrive); ok { + this.SetActivityStreamsArrive(v) + return nil + } + if v, ok := t.(vocab.ActivityStreamsArticle); ok { + this.SetActivityStreamsArticle(v) + return nil + } + if v, ok := t.(vocab.ActivityStreamsAudio); ok { + this.SetActivityStreamsAudio(v) + return nil + } + if v, ok := t.(vocab.ActivityStreamsBlock); ok { + this.SetActivityStreamsBlock(v) + return nil + } + if v, ok := t.(vocab.ForgeFedBranch); ok { + this.SetForgeFedBranch(v) + return nil + } + if v, ok := t.(vocab.ActivityStreamsCollection); ok { + this.SetActivityStreamsCollection(v) + return nil + } + if v, ok := t.(vocab.ActivityStreamsCollectionPage); ok { + this.SetActivityStreamsCollectionPage(v) + return nil + } + if v, ok := t.(vocab.ForgeFedCommit); ok { + this.SetForgeFedCommit(v) + return nil + } + if v, ok := t.(vocab.ActivityStreamsCreate); ok { + this.SetActivityStreamsCreate(v) + return nil + } + if v, ok := t.(vocab.ActivityStreamsDelete); ok { + this.SetActivityStreamsDelete(v) + return nil + } + if v, ok := t.(vocab.ActivityStreamsDislike); ok { + this.SetActivityStreamsDislike(v) + return nil + } + if v, ok := t.(vocab.ActivityStreamsDocument); ok { + this.SetActivityStreamsDocument(v) + return nil + } + if v, ok := t.(vocab.TootEmoji); ok { + this.SetTootEmoji(v) + return nil + } + if v, ok := t.(vocab.ActivityStreamsEvent); ok { + this.SetActivityStreamsEvent(v) + return nil + } + if v, ok := t.(vocab.ActivityStreamsFlag); ok { + this.SetActivityStreamsFlag(v) + return nil + } + if v, ok := t.(vocab.ActivityStreamsFollow); ok { + this.SetActivityStreamsFollow(v) + return nil + } + if v, ok := t.(vocab.ActivityStreamsGroup); ok { + this.SetActivityStreamsGroup(v) + return nil + } + if v, ok := t.(vocab.TootIdentityProof); ok { + this.SetTootIdentityProof(v) + return nil + } + if v, ok := t.(vocab.ActivityStreamsIgnore); ok { + this.SetActivityStreamsIgnore(v) + return nil + } + if v, ok := t.(vocab.ActivityStreamsImage); ok { + this.SetActivityStreamsImage(v) + return nil + } + if v, ok := t.(vocab.ActivityStreamsIntransitiveActivity); ok { + this.SetActivityStreamsIntransitiveActivity(v) + return nil + } + if v, ok := t.(vocab.ActivityStreamsInvite); ok { + this.SetActivityStreamsInvite(v) + return nil + } + if v, ok := t.(vocab.ActivityStreamsJoin); ok { + this.SetActivityStreamsJoin(v) + return nil + } + if v, ok := t.(vocab.ActivityStreamsLeave); ok { + this.SetActivityStreamsLeave(v) + return nil + } + if v, ok := t.(vocab.ActivityStreamsLike); ok { + this.SetActivityStreamsLike(v) + return nil + } + if v, ok := t.(vocab.ActivityStreamsListen); ok { + this.SetActivityStreamsListen(v) + return nil + } + if v, ok := t.(vocab.ActivityStreamsMove); ok { + this.SetActivityStreamsMove(v) + return nil + } + if v, ok := t.(vocab.ActivityStreamsNote); ok { + this.SetActivityStreamsNote(v) + return nil + } + if v, ok := t.(vocab.ActivityStreamsOffer); ok { + this.SetActivityStreamsOffer(v) + return nil + } + if v, ok := t.(vocab.ActivityStreamsOrderedCollection); ok { + this.SetActivityStreamsOrderedCollection(v) + return nil + } + if v, ok := t.(vocab.ActivityStreamsOrderedCollectionPage); ok { + this.SetActivityStreamsOrderedCollectionPage(v) + return nil + } + if v, ok := t.(vocab.ActivityStreamsOrganization); ok { + this.SetActivityStreamsOrganization(v) + return nil + } + if v, ok := t.(vocab.ActivityStreamsPage); ok { + this.SetActivityStreamsPage(v) + return nil + } + if v, ok := t.(vocab.ActivityStreamsPerson); ok { + this.SetActivityStreamsPerson(v) + return nil + } + if v, ok := t.(vocab.ActivityStreamsPlace); ok { + this.SetActivityStreamsPlace(v) + return nil + } + if v, ok := t.(vocab.ActivityStreamsProfile); ok { + this.SetActivityStreamsProfile(v) + return nil + } + if v, ok := t.(vocab.ForgeFedPush); ok { + this.SetForgeFedPush(v) + return nil + } + if v, ok := t.(vocab.ActivityStreamsQuestion); ok { + this.SetActivityStreamsQuestion(v) + return nil + } + if v, ok := t.(vocab.ActivityStreamsRead); ok { + this.SetActivityStreamsRead(v) + return nil + } + if v, ok := t.(vocab.ActivityStreamsReject); ok { + this.SetActivityStreamsReject(v) + return nil + } + if v, ok := t.(vocab.ActivityStreamsRelationship); ok { + this.SetActivityStreamsRelationship(v) + return nil + } + if v, ok := t.(vocab.ActivityStreamsRemove); ok { + this.SetActivityStreamsRemove(v) + return nil + } + if v, ok := t.(vocab.ForgeFedRepository); ok { + this.SetForgeFedRepository(v) + return nil + } + if v, ok := t.(vocab.ActivityStreamsService); ok { + this.SetActivityStreamsService(v) + return nil + } + if v, ok := t.(vocab.ActivityStreamsTentativeAccept); ok { + this.SetActivityStreamsTentativeAccept(v) + return nil + } + if v, ok := t.(vocab.ActivityStreamsTentativeReject); ok { + this.SetActivityStreamsTentativeReject(v) + return nil + } + if v, ok := t.(vocab.ForgeFedTicket); ok { + this.SetForgeFedTicket(v) + return nil + } + if v, ok := t.(vocab.ForgeFedTicketDependency); ok { + this.SetForgeFedTicketDependency(v) + return nil + } + if v, ok := t.(vocab.ActivityStreamsTombstone); ok { + this.SetActivityStreamsTombstone(v) + return nil + } + if v, ok := t.(vocab.ActivityStreamsTravel); ok { + this.SetActivityStreamsTravel(v) + return nil + } + if v, ok := t.(vocab.ActivityStreamsUndo); ok { + this.SetActivityStreamsUndo(v) + return nil + } + if v, ok := t.(vocab.ActivityStreamsUpdate); ok { + this.SetActivityStreamsUpdate(v) + return nil + } + if v, ok := t.(vocab.ActivityStreamsVideo); ok { + this.SetActivityStreamsVideo(v) + return nil + } + if v, ok := t.(vocab.ActivityStreamsView); ok { + this.SetActivityStreamsView(v) + return nil + } + + return fmt.Errorf("illegal type to set on ForgeFedTracksTicketsFor property: %T", t) +} + +// clear ensures no value of this property is set. Calling HasAny or any of the +// 'Is' methods afterwards will return false. +func (this *ForgeFedTracksTicketsForPropertyIterator) clear() { + this.activitystreamsObjectMember = nil + this.activitystreamsAcceptMember = nil + this.activitystreamsActivityMember = nil + this.activitystreamsAddMember = nil + this.activitystreamsAnnounceMember = nil + this.activitystreamsApplicationMember = nil + this.activitystreamsArriveMember = nil + this.activitystreamsArticleMember = nil + this.activitystreamsAudioMember = nil + this.activitystreamsBlockMember = nil + this.forgefedBranchMember = nil + this.activitystreamsCollectionMember = nil + this.activitystreamsCollectionPageMember = nil + this.forgefedCommitMember = nil + this.activitystreamsCreateMember = nil + this.activitystreamsDeleteMember = nil + this.activitystreamsDislikeMember = nil + this.activitystreamsDocumentMember = nil + this.tootEmojiMember = nil + this.activitystreamsEventMember = nil + this.activitystreamsFlagMember = nil + this.activitystreamsFollowMember = nil + this.activitystreamsGroupMember = nil + this.tootIdentityProofMember = nil + this.activitystreamsIgnoreMember = nil + this.activitystreamsImageMember = nil + this.activitystreamsIntransitiveActivityMember = nil + this.activitystreamsInviteMember = nil + this.activitystreamsJoinMember = nil + this.activitystreamsLeaveMember = nil + this.activitystreamsLikeMember = nil + this.activitystreamsListenMember = nil + this.activitystreamsMoveMember = nil + this.activitystreamsNoteMember = nil + this.activitystreamsOfferMember = nil + this.activitystreamsOrderedCollectionMember = nil + this.activitystreamsOrderedCollectionPageMember = nil + this.activitystreamsOrganizationMember = nil + this.activitystreamsPageMember = nil + this.activitystreamsPersonMember = nil + this.activitystreamsPlaceMember = nil + this.activitystreamsProfileMember = nil + this.forgefedPushMember = nil + this.activitystreamsQuestionMember = nil + this.activitystreamsReadMember = nil + this.activitystreamsRejectMember = nil + this.activitystreamsRelationshipMember = nil + this.activitystreamsRemoveMember = nil + this.forgefedRepositoryMember = nil + this.activitystreamsServiceMember = nil + this.activitystreamsTentativeAcceptMember = nil + this.activitystreamsTentativeRejectMember = nil + this.forgefedTicketMember = nil + this.forgefedTicketDependencyMember = nil + this.activitystreamsTombstoneMember = nil + this.activitystreamsTravelMember = nil + this.activitystreamsUndoMember = nil + this.activitystreamsUpdateMember = nil + this.activitystreamsVideoMember = nil + this.activitystreamsViewMember = nil + this.unknown = nil + this.iri = nil +} + +// serialize converts this into an interface representation suitable for +// marshalling into a text or binary format. Applications should not need this +// function as most typical use cases serialize types instead of individual +// properties. It is exposed for alternatives to go-fed implementations to use. +func (this ForgeFedTracksTicketsForPropertyIterator) serialize() (interface{}, error) { + if this.IsActivityStreamsObject() { + return this.GetActivityStreamsObject().Serialize() + } else if this.IsActivityStreamsAccept() { + return this.GetActivityStreamsAccept().Serialize() + } else if this.IsActivityStreamsActivity() { + return this.GetActivityStreamsActivity().Serialize() + } else if this.IsActivityStreamsAdd() { + return this.GetActivityStreamsAdd().Serialize() + } else if this.IsActivityStreamsAnnounce() { + return this.GetActivityStreamsAnnounce().Serialize() + } else if this.IsActivityStreamsApplication() { + return this.GetActivityStreamsApplication().Serialize() + } else if this.IsActivityStreamsArrive() { + return this.GetActivityStreamsArrive().Serialize() + } else if this.IsActivityStreamsArticle() { + return this.GetActivityStreamsArticle().Serialize() + } else if this.IsActivityStreamsAudio() { + return this.GetActivityStreamsAudio().Serialize() + } else if this.IsActivityStreamsBlock() { + return this.GetActivityStreamsBlock().Serialize() + } else if this.IsForgeFedBranch() { + return this.GetForgeFedBranch().Serialize() + } else if this.IsActivityStreamsCollection() { + return this.GetActivityStreamsCollection().Serialize() + } else if this.IsActivityStreamsCollectionPage() { + return this.GetActivityStreamsCollectionPage().Serialize() + } else if this.IsForgeFedCommit() { + return this.GetForgeFedCommit().Serialize() + } else if this.IsActivityStreamsCreate() { + return this.GetActivityStreamsCreate().Serialize() + } else if this.IsActivityStreamsDelete() { + return this.GetActivityStreamsDelete().Serialize() + } else if this.IsActivityStreamsDislike() { + return this.GetActivityStreamsDislike().Serialize() + } else if this.IsActivityStreamsDocument() { + return this.GetActivityStreamsDocument().Serialize() + } else if this.IsTootEmoji() { + return this.GetTootEmoji().Serialize() + } else if this.IsActivityStreamsEvent() { + return this.GetActivityStreamsEvent().Serialize() + } else if this.IsActivityStreamsFlag() { + return this.GetActivityStreamsFlag().Serialize() + } else if this.IsActivityStreamsFollow() { + return this.GetActivityStreamsFollow().Serialize() + } else if this.IsActivityStreamsGroup() { + return this.GetActivityStreamsGroup().Serialize() + } else if this.IsTootIdentityProof() { + return this.GetTootIdentityProof().Serialize() + } else if this.IsActivityStreamsIgnore() { + return this.GetActivityStreamsIgnore().Serialize() + } else if this.IsActivityStreamsImage() { + return this.GetActivityStreamsImage().Serialize() + } else if this.IsActivityStreamsIntransitiveActivity() { + return this.GetActivityStreamsIntransitiveActivity().Serialize() + } else if this.IsActivityStreamsInvite() { + return this.GetActivityStreamsInvite().Serialize() + } else if this.IsActivityStreamsJoin() { + return this.GetActivityStreamsJoin().Serialize() + } else if this.IsActivityStreamsLeave() { + return this.GetActivityStreamsLeave().Serialize() + } else if this.IsActivityStreamsLike() { + return this.GetActivityStreamsLike().Serialize() + } else if this.IsActivityStreamsListen() { + return this.GetActivityStreamsListen().Serialize() + } else if this.IsActivityStreamsMove() { + return this.GetActivityStreamsMove().Serialize() + } else if this.IsActivityStreamsNote() { + return this.GetActivityStreamsNote().Serialize() + } else if this.IsActivityStreamsOffer() { + return this.GetActivityStreamsOffer().Serialize() + } else if this.IsActivityStreamsOrderedCollection() { + return this.GetActivityStreamsOrderedCollection().Serialize() + } else if this.IsActivityStreamsOrderedCollectionPage() { + return this.GetActivityStreamsOrderedCollectionPage().Serialize() + } else if this.IsActivityStreamsOrganization() { + return this.GetActivityStreamsOrganization().Serialize() + } else if this.IsActivityStreamsPage() { + return this.GetActivityStreamsPage().Serialize() + } else if this.IsActivityStreamsPerson() { + return this.GetActivityStreamsPerson().Serialize() + } else if this.IsActivityStreamsPlace() { + return this.GetActivityStreamsPlace().Serialize() + } else if this.IsActivityStreamsProfile() { + return this.GetActivityStreamsProfile().Serialize() + } else if this.IsForgeFedPush() { + return this.GetForgeFedPush().Serialize() + } else if this.IsActivityStreamsQuestion() { + return this.GetActivityStreamsQuestion().Serialize() + } else if this.IsActivityStreamsRead() { + return this.GetActivityStreamsRead().Serialize() + } else if this.IsActivityStreamsReject() { + return this.GetActivityStreamsReject().Serialize() + } else if this.IsActivityStreamsRelationship() { + return this.GetActivityStreamsRelationship().Serialize() + } else if this.IsActivityStreamsRemove() { + return this.GetActivityStreamsRemove().Serialize() + } else if this.IsForgeFedRepository() { + return this.GetForgeFedRepository().Serialize() + } else if this.IsActivityStreamsService() { + return this.GetActivityStreamsService().Serialize() + } else if this.IsActivityStreamsTentativeAccept() { + return this.GetActivityStreamsTentativeAccept().Serialize() + } else if this.IsActivityStreamsTentativeReject() { + return this.GetActivityStreamsTentativeReject().Serialize() + } else if this.IsForgeFedTicket() { + return this.GetForgeFedTicket().Serialize() + } else if this.IsForgeFedTicketDependency() { + return this.GetForgeFedTicketDependency().Serialize() + } else if this.IsActivityStreamsTombstone() { + return this.GetActivityStreamsTombstone().Serialize() + } else if this.IsActivityStreamsTravel() { + return this.GetActivityStreamsTravel().Serialize() + } else if this.IsActivityStreamsUndo() { + return this.GetActivityStreamsUndo().Serialize() + } else if this.IsActivityStreamsUpdate() { + return this.GetActivityStreamsUpdate().Serialize() + } else if this.IsActivityStreamsVideo() { + return this.GetActivityStreamsVideo().Serialize() + } else if this.IsActivityStreamsView() { + return this.GetActivityStreamsView().Serialize() + } else if this.IsIRI() { + return this.iri.String(), nil + } + return this.unknown, nil +} + +// ForgeFedTracksTicketsForProperty is the non-functional property +// "tracksTicketsFor". It is permitted to have one or more values, and of +// different value types. +type ForgeFedTracksTicketsForProperty struct { + properties []*ForgeFedTracksTicketsForPropertyIterator + alias string +} + +// DeserializeTracksTicketsForProperty creates a "tracksTicketsFor" property from +// an interface representation that has been unmarshalled from a text or +// binary format. +func DeserializeTracksTicketsForProperty(m map[string]interface{}, aliasMap map[string]string) (vocab.ForgeFedTracksTicketsForProperty, error) { + alias := "" + if a, ok := aliasMap["https://forgefed.peers.community/ns"]; ok { + alias = a + } + propName := "tracksTicketsFor" + if len(alias) > 0 { + propName = fmt.Sprintf("%s:%s", alias, "tracksTicketsFor") + } + i, ok := m[propName] + + if ok { + this := &ForgeFedTracksTicketsForProperty{ + alias: alias, + properties: []*ForgeFedTracksTicketsForPropertyIterator{}, + } + if list, ok := i.([]interface{}); ok { + for _, iterator := range list { + if p, err := deserializeForgeFedTracksTicketsForPropertyIterator(iterator, aliasMap); err != nil { + return this, err + } else if p != nil { + this.properties = append(this.properties, p) + } + } + } else { + if p, err := deserializeForgeFedTracksTicketsForPropertyIterator(i, aliasMap); err != nil { + return this, err + } else if p != nil { + this.properties = append(this.properties, p) + } + } + // Set up the properties for iteration. + for idx, ele := range this.properties { + ele.parent = this + ele.myIdx = idx + } + return this, nil + } + return nil, nil +} + +// NewForgeFedTracksTicketsForProperty creates a new tracksTicketsFor property. +func NewForgeFedTracksTicketsForProperty() *ForgeFedTracksTicketsForProperty { + return &ForgeFedTracksTicketsForProperty{alias: ""} +} + +// AppendActivityStreamsAccept appends a Accept value to the back of a list of the +// property "tracksTicketsFor". Invalidates iterators that are traversing +// using Prev. +func (this *ForgeFedTracksTicketsForProperty) AppendActivityStreamsAccept(v vocab.ActivityStreamsAccept) { + this.properties = append(this.properties, &ForgeFedTracksTicketsForPropertyIterator{ + activitystreamsAcceptMember: v, + alias: this.alias, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendActivityStreamsActivity appends a Activity value to the back of a list of +// the property "tracksTicketsFor". Invalidates iterators that are traversing +// using Prev. +func (this *ForgeFedTracksTicketsForProperty) AppendActivityStreamsActivity(v vocab.ActivityStreamsActivity) { + this.properties = append(this.properties, &ForgeFedTracksTicketsForPropertyIterator{ + activitystreamsActivityMember: v, + alias: this.alias, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendActivityStreamsAdd appends a Add value to the back of a list of the +// property "tracksTicketsFor". Invalidates iterators that are traversing +// using Prev. +func (this *ForgeFedTracksTicketsForProperty) AppendActivityStreamsAdd(v vocab.ActivityStreamsAdd) { + this.properties = append(this.properties, &ForgeFedTracksTicketsForPropertyIterator{ + activitystreamsAddMember: v, + alias: this.alias, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendActivityStreamsAnnounce appends a Announce value to the back of a list of +// the property "tracksTicketsFor". Invalidates iterators that are traversing +// using Prev. +func (this *ForgeFedTracksTicketsForProperty) AppendActivityStreamsAnnounce(v vocab.ActivityStreamsAnnounce) { + this.properties = append(this.properties, &ForgeFedTracksTicketsForPropertyIterator{ + activitystreamsAnnounceMember: v, + alias: this.alias, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendActivityStreamsApplication appends a Application value to the back of a +// list of the property "tracksTicketsFor". Invalidates iterators that are +// traversing using Prev. +func (this *ForgeFedTracksTicketsForProperty) AppendActivityStreamsApplication(v vocab.ActivityStreamsApplication) { + this.properties = append(this.properties, &ForgeFedTracksTicketsForPropertyIterator{ + activitystreamsApplicationMember: v, + alias: this.alias, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendActivityStreamsArrive appends a Arrive value to the back of a list of the +// property "tracksTicketsFor". Invalidates iterators that are traversing +// using Prev. +func (this *ForgeFedTracksTicketsForProperty) AppendActivityStreamsArrive(v vocab.ActivityStreamsArrive) { + this.properties = append(this.properties, &ForgeFedTracksTicketsForPropertyIterator{ + activitystreamsArriveMember: v, + alias: this.alias, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendActivityStreamsArticle appends a Article value to the back of a list of +// the property "tracksTicketsFor". Invalidates iterators that are traversing +// using Prev. +func (this *ForgeFedTracksTicketsForProperty) AppendActivityStreamsArticle(v vocab.ActivityStreamsArticle) { + this.properties = append(this.properties, &ForgeFedTracksTicketsForPropertyIterator{ + activitystreamsArticleMember: v, + alias: this.alias, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendActivityStreamsAudio appends a Audio value to the back of a list of the +// property "tracksTicketsFor". Invalidates iterators that are traversing +// using Prev. +func (this *ForgeFedTracksTicketsForProperty) AppendActivityStreamsAudio(v vocab.ActivityStreamsAudio) { + this.properties = append(this.properties, &ForgeFedTracksTicketsForPropertyIterator{ + activitystreamsAudioMember: v, + alias: this.alias, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendActivityStreamsBlock appends a Block value to the back of a list of the +// property "tracksTicketsFor". Invalidates iterators that are traversing +// using Prev. +func (this *ForgeFedTracksTicketsForProperty) AppendActivityStreamsBlock(v vocab.ActivityStreamsBlock) { + this.properties = append(this.properties, &ForgeFedTracksTicketsForPropertyIterator{ + activitystreamsBlockMember: v, + alias: this.alias, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendActivityStreamsCollection appends a Collection value to the back of a +// list of the property "tracksTicketsFor". Invalidates iterators that are +// traversing using Prev. +func (this *ForgeFedTracksTicketsForProperty) AppendActivityStreamsCollection(v vocab.ActivityStreamsCollection) { + this.properties = append(this.properties, &ForgeFedTracksTicketsForPropertyIterator{ + activitystreamsCollectionMember: v, + alias: this.alias, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendActivityStreamsCollectionPage appends a CollectionPage value to the back +// of a list of the property "tracksTicketsFor". Invalidates iterators that +// are traversing using Prev. +func (this *ForgeFedTracksTicketsForProperty) AppendActivityStreamsCollectionPage(v vocab.ActivityStreamsCollectionPage) { + this.properties = append(this.properties, &ForgeFedTracksTicketsForPropertyIterator{ + activitystreamsCollectionPageMember: v, + alias: this.alias, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendActivityStreamsCreate appends a Create value to the back of a list of the +// property "tracksTicketsFor". Invalidates iterators that are traversing +// using Prev. +func (this *ForgeFedTracksTicketsForProperty) AppendActivityStreamsCreate(v vocab.ActivityStreamsCreate) { + this.properties = append(this.properties, &ForgeFedTracksTicketsForPropertyIterator{ + activitystreamsCreateMember: v, + alias: this.alias, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendActivityStreamsDelete appends a Delete value to the back of a list of the +// property "tracksTicketsFor". Invalidates iterators that are traversing +// using Prev. +func (this *ForgeFedTracksTicketsForProperty) AppendActivityStreamsDelete(v vocab.ActivityStreamsDelete) { + this.properties = append(this.properties, &ForgeFedTracksTicketsForPropertyIterator{ + activitystreamsDeleteMember: v, + alias: this.alias, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendActivityStreamsDislike appends a Dislike value to the back of a list of +// the property "tracksTicketsFor". Invalidates iterators that are traversing +// using Prev. +func (this *ForgeFedTracksTicketsForProperty) AppendActivityStreamsDislike(v vocab.ActivityStreamsDislike) { + this.properties = append(this.properties, &ForgeFedTracksTicketsForPropertyIterator{ + activitystreamsDislikeMember: v, + alias: this.alias, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendActivityStreamsDocument appends a Document value to the back of a list of +// the property "tracksTicketsFor". Invalidates iterators that are traversing +// using Prev. +func (this *ForgeFedTracksTicketsForProperty) AppendActivityStreamsDocument(v vocab.ActivityStreamsDocument) { + this.properties = append(this.properties, &ForgeFedTracksTicketsForPropertyIterator{ + activitystreamsDocumentMember: v, + alias: this.alias, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendActivityStreamsEvent appends a Event value to the back of a list of the +// property "tracksTicketsFor". Invalidates iterators that are traversing +// using Prev. +func (this *ForgeFedTracksTicketsForProperty) AppendActivityStreamsEvent(v vocab.ActivityStreamsEvent) { + this.properties = append(this.properties, &ForgeFedTracksTicketsForPropertyIterator{ + activitystreamsEventMember: v, + alias: this.alias, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendActivityStreamsFlag appends a Flag value to the back of a list of the +// property "tracksTicketsFor". Invalidates iterators that are traversing +// using Prev. +func (this *ForgeFedTracksTicketsForProperty) AppendActivityStreamsFlag(v vocab.ActivityStreamsFlag) { + this.properties = append(this.properties, &ForgeFedTracksTicketsForPropertyIterator{ + activitystreamsFlagMember: v, + alias: this.alias, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendActivityStreamsFollow appends a Follow value to the back of a list of the +// property "tracksTicketsFor". Invalidates iterators that are traversing +// using Prev. +func (this *ForgeFedTracksTicketsForProperty) AppendActivityStreamsFollow(v vocab.ActivityStreamsFollow) { + this.properties = append(this.properties, &ForgeFedTracksTicketsForPropertyIterator{ + activitystreamsFollowMember: v, + alias: this.alias, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendActivityStreamsGroup appends a Group value to the back of a list of the +// property "tracksTicketsFor". Invalidates iterators that are traversing +// using Prev. +func (this *ForgeFedTracksTicketsForProperty) AppendActivityStreamsGroup(v vocab.ActivityStreamsGroup) { + this.properties = append(this.properties, &ForgeFedTracksTicketsForPropertyIterator{ + activitystreamsGroupMember: v, + alias: this.alias, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendActivityStreamsIgnore appends a Ignore value to the back of a list of the +// property "tracksTicketsFor". Invalidates iterators that are traversing +// using Prev. +func (this *ForgeFedTracksTicketsForProperty) AppendActivityStreamsIgnore(v vocab.ActivityStreamsIgnore) { + this.properties = append(this.properties, &ForgeFedTracksTicketsForPropertyIterator{ + activitystreamsIgnoreMember: v, + alias: this.alias, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendActivityStreamsImage appends a Image value to the back of a list of the +// property "tracksTicketsFor". Invalidates iterators that are traversing +// using Prev. +func (this *ForgeFedTracksTicketsForProperty) AppendActivityStreamsImage(v vocab.ActivityStreamsImage) { + this.properties = append(this.properties, &ForgeFedTracksTicketsForPropertyIterator{ + activitystreamsImageMember: v, + alias: this.alias, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendActivityStreamsIntransitiveActivity appends a IntransitiveActivity value +// to the back of a list of the property "tracksTicketsFor". Invalidates +// iterators that are traversing using Prev. +func (this *ForgeFedTracksTicketsForProperty) AppendActivityStreamsIntransitiveActivity(v vocab.ActivityStreamsIntransitiveActivity) { + this.properties = append(this.properties, &ForgeFedTracksTicketsForPropertyIterator{ + activitystreamsIntransitiveActivityMember: v, + alias: this.alias, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendActivityStreamsInvite appends a Invite value to the back of a list of the +// property "tracksTicketsFor". Invalidates iterators that are traversing +// using Prev. +func (this *ForgeFedTracksTicketsForProperty) AppendActivityStreamsInvite(v vocab.ActivityStreamsInvite) { + this.properties = append(this.properties, &ForgeFedTracksTicketsForPropertyIterator{ + activitystreamsInviteMember: v, + alias: this.alias, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendActivityStreamsJoin appends a Join value to the back of a list of the +// property "tracksTicketsFor". Invalidates iterators that are traversing +// using Prev. +func (this *ForgeFedTracksTicketsForProperty) AppendActivityStreamsJoin(v vocab.ActivityStreamsJoin) { + this.properties = append(this.properties, &ForgeFedTracksTicketsForPropertyIterator{ + activitystreamsJoinMember: v, + alias: this.alias, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendActivityStreamsLeave appends a Leave value to the back of a list of the +// property "tracksTicketsFor". Invalidates iterators that are traversing +// using Prev. +func (this *ForgeFedTracksTicketsForProperty) AppendActivityStreamsLeave(v vocab.ActivityStreamsLeave) { + this.properties = append(this.properties, &ForgeFedTracksTicketsForPropertyIterator{ + activitystreamsLeaveMember: v, + alias: this.alias, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendActivityStreamsLike appends a Like value to the back of a list of the +// property "tracksTicketsFor". Invalidates iterators that are traversing +// using Prev. +func (this *ForgeFedTracksTicketsForProperty) AppendActivityStreamsLike(v vocab.ActivityStreamsLike) { + this.properties = append(this.properties, &ForgeFedTracksTicketsForPropertyIterator{ + activitystreamsLikeMember: v, + alias: this.alias, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendActivityStreamsListen appends a Listen value to the back of a list of the +// property "tracksTicketsFor". Invalidates iterators that are traversing +// using Prev. +func (this *ForgeFedTracksTicketsForProperty) AppendActivityStreamsListen(v vocab.ActivityStreamsListen) { + this.properties = append(this.properties, &ForgeFedTracksTicketsForPropertyIterator{ + activitystreamsListenMember: v, + alias: this.alias, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendActivityStreamsMove appends a Move value to the back of a list of the +// property "tracksTicketsFor". Invalidates iterators that are traversing +// using Prev. +func (this *ForgeFedTracksTicketsForProperty) AppendActivityStreamsMove(v vocab.ActivityStreamsMove) { + this.properties = append(this.properties, &ForgeFedTracksTicketsForPropertyIterator{ + activitystreamsMoveMember: v, + alias: this.alias, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendActivityStreamsNote appends a Note value to the back of a list of the +// property "tracksTicketsFor". Invalidates iterators that are traversing +// using Prev. +func (this *ForgeFedTracksTicketsForProperty) AppendActivityStreamsNote(v vocab.ActivityStreamsNote) { + this.properties = append(this.properties, &ForgeFedTracksTicketsForPropertyIterator{ + activitystreamsNoteMember: v, + alias: this.alias, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendActivityStreamsObject appends a Object value to the back of a list of the +// property "tracksTicketsFor". Invalidates iterators that are traversing +// using Prev. +func (this *ForgeFedTracksTicketsForProperty) AppendActivityStreamsObject(v vocab.ActivityStreamsObject) { + this.properties = append(this.properties, &ForgeFedTracksTicketsForPropertyIterator{ + activitystreamsObjectMember: v, + alias: this.alias, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendActivityStreamsOffer appends a Offer value to the back of a list of the +// property "tracksTicketsFor". Invalidates iterators that are traversing +// using Prev. +func (this *ForgeFedTracksTicketsForProperty) AppendActivityStreamsOffer(v vocab.ActivityStreamsOffer) { + this.properties = append(this.properties, &ForgeFedTracksTicketsForPropertyIterator{ + activitystreamsOfferMember: v, + alias: this.alias, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendActivityStreamsOrderedCollection appends a OrderedCollection value to the +// back of a list of the property "tracksTicketsFor". Invalidates iterators +// that are traversing using Prev. +func (this *ForgeFedTracksTicketsForProperty) AppendActivityStreamsOrderedCollection(v vocab.ActivityStreamsOrderedCollection) { + this.properties = append(this.properties, &ForgeFedTracksTicketsForPropertyIterator{ + activitystreamsOrderedCollectionMember: v, + alias: this.alias, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendActivityStreamsOrderedCollectionPage appends a OrderedCollectionPage +// value to the back of a list of the property "tracksTicketsFor". Invalidates +// iterators that are traversing using Prev. +func (this *ForgeFedTracksTicketsForProperty) AppendActivityStreamsOrderedCollectionPage(v vocab.ActivityStreamsOrderedCollectionPage) { + this.properties = append(this.properties, &ForgeFedTracksTicketsForPropertyIterator{ + activitystreamsOrderedCollectionPageMember: v, + alias: this.alias, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendActivityStreamsOrganization appends a Organization value to the back of a +// list of the property "tracksTicketsFor". Invalidates iterators that are +// traversing using Prev. +func (this *ForgeFedTracksTicketsForProperty) AppendActivityStreamsOrganization(v vocab.ActivityStreamsOrganization) { + this.properties = append(this.properties, &ForgeFedTracksTicketsForPropertyIterator{ + activitystreamsOrganizationMember: v, + alias: this.alias, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendActivityStreamsPage appends a Page value to the back of a list of the +// property "tracksTicketsFor". Invalidates iterators that are traversing +// using Prev. +func (this *ForgeFedTracksTicketsForProperty) AppendActivityStreamsPage(v vocab.ActivityStreamsPage) { + this.properties = append(this.properties, &ForgeFedTracksTicketsForPropertyIterator{ + activitystreamsPageMember: v, + alias: this.alias, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendActivityStreamsPerson appends a Person value to the back of a list of the +// property "tracksTicketsFor". Invalidates iterators that are traversing +// using Prev. +func (this *ForgeFedTracksTicketsForProperty) AppendActivityStreamsPerson(v vocab.ActivityStreamsPerson) { + this.properties = append(this.properties, &ForgeFedTracksTicketsForPropertyIterator{ + activitystreamsPersonMember: v, + alias: this.alias, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendActivityStreamsPlace appends a Place value to the back of a list of the +// property "tracksTicketsFor". Invalidates iterators that are traversing +// using Prev. +func (this *ForgeFedTracksTicketsForProperty) AppendActivityStreamsPlace(v vocab.ActivityStreamsPlace) { + this.properties = append(this.properties, &ForgeFedTracksTicketsForPropertyIterator{ + activitystreamsPlaceMember: v, + alias: this.alias, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendActivityStreamsProfile appends a Profile value to the back of a list of +// the property "tracksTicketsFor". Invalidates iterators that are traversing +// using Prev. +func (this *ForgeFedTracksTicketsForProperty) AppendActivityStreamsProfile(v vocab.ActivityStreamsProfile) { + this.properties = append(this.properties, &ForgeFedTracksTicketsForPropertyIterator{ + activitystreamsProfileMember: v, + alias: this.alias, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendActivityStreamsQuestion appends a Question value to the back of a list of +// the property "tracksTicketsFor". Invalidates iterators that are traversing +// using Prev. +func (this *ForgeFedTracksTicketsForProperty) AppendActivityStreamsQuestion(v vocab.ActivityStreamsQuestion) { + this.properties = append(this.properties, &ForgeFedTracksTicketsForPropertyIterator{ + activitystreamsQuestionMember: v, + alias: this.alias, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendActivityStreamsRead appends a Read value to the back of a list of the +// property "tracksTicketsFor". Invalidates iterators that are traversing +// using Prev. +func (this *ForgeFedTracksTicketsForProperty) AppendActivityStreamsRead(v vocab.ActivityStreamsRead) { + this.properties = append(this.properties, &ForgeFedTracksTicketsForPropertyIterator{ + activitystreamsReadMember: v, + alias: this.alias, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendActivityStreamsReject appends a Reject value to the back of a list of the +// property "tracksTicketsFor". Invalidates iterators that are traversing +// using Prev. +func (this *ForgeFedTracksTicketsForProperty) AppendActivityStreamsReject(v vocab.ActivityStreamsReject) { + this.properties = append(this.properties, &ForgeFedTracksTicketsForPropertyIterator{ + activitystreamsRejectMember: v, + alias: this.alias, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendActivityStreamsRelationship appends a Relationship value to the back of a +// list of the property "tracksTicketsFor". Invalidates iterators that are +// traversing using Prev. +func (this *ForgeFedTracksTicketsForProperty) AppendActivityStreamsRelationship(v vocab.ActivityStreamsRelationship) { + this.properties = append(this.properties, &ForgeFedTracksTicketsForPropertyIterator{ + activitystreamsRelationshipMember: v, + alias: this.alias, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendActivityStreamsRemove appends a Remove value to the back of a list of the +// property "tracksTicketsFor". Invalidates iterators that are traversing +// using Prev. +func (this *ForgeFedTracksTicketsForProperty) AppendActivityStreamsRemove(v vocab.ActivityStreamsRemove) { + this.properties = append(this.properties, &ForgeFedTracksTicketsForPropertyIterator{ + activitystreamsRemoveMember: v, + alias: this.alias, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendActivityStreamsService appends a Service value to the back of a list of +// the property "tracksTicketsFor". Invalidates iterators that are traversing +// using Prev. +func (this *ForgeFedTracksTicketsForProperty) AppendActivityStreamsService(v vocab.ActivityStreamsService) { + this.properties = append(this.properties, &ForgeFedTracksTicketsForPropertyIterator{ + activitystreamsServiceMember: v, + alias: this.alias, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendActivityStreamsTentativeAccept appends a TentativeAccept value to the +// back of a list of the property "tracksTicketsFor". Invalidates iterators +// that are traversing using Prev. +func (this *ForgeFedTracksTicketsForProperty) AppendActivityStreamsTentativeAccept(v vocab.ActivityStreamsTentativeAccept) { + this.properties = append(this.properties, &ForgeFedTracksTicketsForPropertyIterator{ + activitystreamsTentativeAcceptMember: v, + alias: this.alias, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendActivityStreamsTentativeReject appends a TentativeReject value to the +// back of a list of the property "tracksTicketsFor". Invalidates iterators +// that are traversing using Prev. +func (this *ForgeFedTracksTicketsForProperty) AppendActivityStreamsTentativeReject(v vocab.ActivityStreamsTentativeReject) { + this.properties = append(this.properties, &ForgeFedTracksTicketsForPropertyIterator{ + activitystreamsTentativeRejectMember: v, + alias: this.alias, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendActivityStreamsTombstone appends a Tombstone value to the back of a list +// of the property "tracksTicketsFor". Invalidates iterators that are +// traversing using Prev. +func (this *ForgeFedTracksTicketsForProperty) AppendActivityStreamsTombstone(v vocab.ActivityStreamsTombstone) { + this.properties = append(this.properties, &ForgeFedTracksTicketsForPropertyIterator{ + activitystreamsTombstoneMember: v, + alias: this.alias, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendActivityStreamsTravel appends a Travel value to the back of a list of the +// property "tracksTicketsFor". Invalidates iterators that are traversing +// using Prev. +func (this *ForgeFedTracksTicketsForProperty) AppendActivityStreamsTravel(v vocab.ActivityStreamsTravel) { + this.properties = append(this.properties, &ForgeFedTracksTicketsForPropertyIterator{ + activitystreamsTravelMember: v, + alias: this.alias, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendActivityStreamsUndo appends a Undo value to the back of a list of the +// property "tracksTicketsFor". Invalidates iterators that are traversing +// using Prev. +func (this *ForgeFedTracksTicketsForProperty) AppendActivityStreamsUndo(v vocab.ActivityStreamsUndo) { + this.properties = append(this.properties, &ForgeFedTracksTicketsForPropertyIterator{ + activitystreamsUndoMember: v, + alias: this.alias, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendActivityStreamsUpdate appends a Update value to the back of a list of the +// property "tracksTicketsFor". Invalidates iterators that are traversing +// using Prev. +func (this *ForgeFedTracksTicketsForProperty) AppendActivityStreamsUpdate(v vocab.ActivityStreamsUpdate) { + this.properties = append(this.properties, &ForgeFedTracksTicketsForPropertyIterator{ + activitystreamsUpdateMember: v, + alias: this.alias, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendActivityStreamsVideo appends a Video value to the back of a list of the +// property "tracksTicketsFor". Invalidates iterators that are traversing +// using Prev. +func (this *ForgeFedTracksTicketsForProperty) AppendActivityStreamsVideo(v vocab.ActivityStreamsVideo) { + this.properties = append(this.properties, &ForgeFedTracksTicketsForPropertyIterator{ + activitystreamsVideoMember: v, + alias: this.alias, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendActivityStreamsView appends a View value to the back of a list of the +// property "tracksTicketsFor". Invalidates iterators that are traversing +// using Prev. +func (this *ForgeFedTracksTicketsForProperty) AppendActivityStreamsView(v vocab.ActivityStreamsView) { + this.properties = append(this.properties, &ForgeFedTracksTicketsForPropertyIterator{ + activitystreamsViewMember: v, + alias: this.alias, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendForgeFedBranch appends a Branch value to the back of a list of the +// property "tracksTicketsFor". Invalidates iterators that are traversing +// using Prev. +func (this *ForgeFedTracksTicketsForProperty) AppendForgeFedBranch(v vocab.ForgeFedBranch) { + this.properties = append(this.properties, &ForgeFedTracksTicketsForPropertyIterator{ + alias: this.alias, + forgefedBranchMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendForgeFedCommit appends a Commit value to the back of a list of the +// property "tracksTicketsFor". Invalidates iterators that are traversing +// using Prev. +func (this *ForgeFedTracksTicketsForProperty) AppendForgeFedCommit(v vocab.ForgeFedCommit) { + this.properties = append(this.properties, &ForgeFedTracksTicketsForPropertyIterator{ + alias: this.alias, + forgefedCommitMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendForgeFedPush appends a Push value to the back of a list of the property +// "tracksTicketsFor". Invalidates iterators that are traversing using Prev. +func (this *ForgeFedTracksTicketsForProperty) AppendForgeFedPush(v vocab.ForgeFedPush) { + this.properties = append(this.properties, &ForgeFedTracksTicketsForPropertyIterator{ + alias: this.alias, + forgefedPushMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendForgeFedRepository appends a Repository value to the back of a list of +// the property "tracksTicketsFor". Invalidates iterators that are traversing +// using Prev. +func (this *ForgeFedTracksTicketsForProperty) AppendForgeFedRepository(v vocab.ForgeFedRepository) { + this.properties = append(this.properties, &ForgeFedTracksTicketsForPropertyIterator{ + alias: this.alias, + forgefedRepositoryMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendForgeFedTicket appends a Ticket value to the back of a list of the +// property "tracksTicketsFor". Invalidates iterators that are traversing +// using Prev. +func (this *ForgeFedTracksTicketsForProperty) AppendForgeFedTicket(v vocab.ForgeFedTicket) { + this.properties = append(this.properties, &ForgeFedTracksTicketsForPropertyIterator{ + alias: this.alias, + forgefedTicketMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendForgeFedTicketDependency appends a TicketDependency value to the back of +// a list of the property "tracksTicketsFor". Invalidates iterators that are +// traversing using Prev. +func (this *ForgeFedTracksTicketsForProperty) AppendForgeFedTicketDependency(v vocab.ForgeFedTicketDependency) { + this.properties = append(this.properties, &ForgeFedTracksTicketsForPropertyIterator{ + alias: this.alias, + forgefedTicketDependencyMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendIRI appends an IRI value to the back of a list of the property +// "tracksTicketsFor" +func (this *ForgeFedTracksTicketsForProperty) AppendIRI(v *url.URL) { + this.properties = append(this.properties, &ForgeFedTracksTicketsForPropertyIterator{ + alias: this.alias, + iri: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendTootEmoji appends a Emoji value to the back of a list of the property +// "tracksTicketsFor". Invalidates iterators that are traversing using Prev. +func (this *ForgeFedTracksTicketsForProperty) AppendTootEmoji(v vocab.TootEmoji) { + this.properties = append(this.properties, &ForgeFedTracksTicketsForPropertyIterator{ + alias: this.alias, + myIdx: this.Len(), + parent: this, + tootEmojiMember: v, + }) +} + +// AppendTootIdentityProof appends a IdentityProof value to the back of a list of +// the property "tracksTicketsFor". Invalidates iterators that are traversing +// using Prev. +func (this *ForgeFedTracksTicketsForProperty) AppendTootIdentityProof(v vocab.TootIdentityProof) { + this.properties = append(this.properties, &ForgeFedTracksTicketsForPropertyIterator{ + alias: this.alias, + myIdx: this.Len(), + parent: this, + tootIdentityProofMember: v, + }) +} + +// PrependType prepends an arbitrary type value to the front of a list of the +// property "tracksTicketsFor". Invalidates iterators that are traversing +// using Prev. Returns an error if the type is not a valid one to set for this +// property. +func (this *ForgeFedTracksTicketsForProperty) AppendType(t vocab.Type) error { + n := &ForgeFedTracksTicketsForPropertyIterator{ + alias: this.alias, + myIdx: this.Len(), + parent: this, + } + if err := n.SetType(t); err != nil { + return err + } + this.properties = append(this.properties, n) + return nil +} + +// At returns the property value for the specified index. Panics if the index is +// out of bounds. +func (this ForgeFedTracksTicketsForProperty) At(index int) vocab.ForgeFedTracksTicketsForPropertyIterator { + return this.properties[index] +} + +// Begin returns the first iterator, or nil if empty. Can be used with the +// iterator's Next method and this property's End method to iterate from front +// to back through all values. +func (this ForgeFedTracksTicketsForProperty) Begin() vocab.ForgeFedTracksTicketsForPropertyIterator { + if this.Empty() { + return nil + } else { + return this.properties[0] + } +} + +// Empty returns returns true if there are no elements. +func (this ForgeFedTracksTicketsForProperty) Empty() bool { + return this.Len() == 0 +} + +// End returns beyond-the-last iterator, which is nil. Can be used with the +// iterator's Next method and this property's Begin method to iterate from +// front to back through all values. +func (this ForgeFedTracksTicketsForProperty) End() vocab.ForgeFedTracksTicketsForPropertyIterator { + return nil +} + +// InsertActivityStreamsAccept inserts a Accept value at the specified index for a +// property "tracksTicketsFor". Existing elements at that index and higher are +// shifted back once. Invalidates all iterators. +func (this *ForgeFedTracksTicketsForProperty) InsertActivityStreamsAccept(idx int, v vocab.ActivityStreamsAccept) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ForgeFedTracksTicketsForPropertyIterator{ + activitystreamsAcceptMember: v, + alias: this.alias, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertActivityStreamsActivity inserts a Activity value at the specified index +// for a property "tracksTicketsFor". Existing elements at that index and +// higher are shifted back once. Invalidates all iterators. +func (this *ForgeFedTracksTicketsForProperty) InsertActivityStreamsActivity(idx int, v vocab.ActivityStreamsActivity) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ForgeFedTracksTicketsForPropertyIterator{ + activitystreamsActivityMember: v, + alias: this.alias, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertActivityStreamsAdd inserts a Add value at the specified index for a +// property "tracksTicketsFor". Existing elements at that index and higher are +// shifted back once. Invalidates all iterators. +func (this *ForgeFedTracksTicketsForProperty) InsertActivityStreamsAdd(idx int, v vocab.ActivityStreamsAdd) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ForgeFedTracksTicketsForPropertyIterator{ + activitystreamsAddMember: v, + alias: this.alias, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertActivityStreamsAnnounce inserts a Announce value at the specified index +// for a property "tracksTicketsFor". Existing elements at that index and +// higher are shifted back once. Invalidates all iterators. +func (this *ForgeFedTracksTicketsForProperty) InsertActivityStreamsAnnounce(idx int, v vocab.ActivityStreamsAnnounce) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ForgeFedTracksTicketsForPropertyIterator{ + activitystreamsAnnounceMember: v, + alias: this.alias, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertActivityStreamsApplication inserts a Application value at the specified +// index for a property "tracksTicketsFor". Existing elements at that index +// and higher are shifted back once. Invalidates all iterators. +func (this *ForgeFedTracksTicketsForProperty) InsertActivityStreamsApplication(idx int, v vocab.ActivityStreamsApplication) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ForgeFedTracksTicketsForPropertyIterator{ + activitystreamsApplicationMember: v, + alias: this.alias, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertActivityStreamsArrive inserts a Arrive value at the specified index for a +// property "tracksTicketsFor". Existing elements at that index and higher are +// shifted back once. Invalidates all iterators. +func (this *ForgeFedTracksTicketsForProperty) InsertActivityStreamsArrive(idx int, v vocab.ActivityStreamsArrive) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ForgeFedTracksTicketsForPropertyIterator{ + activitystreamsArriveMember: v, + alias: this.alias, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertActivityStreamsArticle inserts a Article value at the specified index for +// a property "tracksTicketsFor". Existing elements at that index and higher +// are shifted back once. Invalidates all iterators. +func (this *ForgeFedTracksTicketsForProperty) InsertActivityStreamsArticle(idx int, v vocab.ActivityStreamsArticle) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ForgeFedTracksTicketsForPropertyIterator{ + activitystreamsArticleMember: v, + alias: this.alias, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertActivityStreamsAudio inserts a Audio value at the specified index for a +// property "tracksTicketsFor". Existing elements at that index and higher are +// shifted back once. Invalidates all iterators. +func (this *ForgeFedTracksTicketsForProperty) InsertActivityStreamsAudio(idx int, v vocab.ActivityStreamsAudio) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ForgeFedTracksTicketsForPropertyIterator{ + activitystreamsAudioMember: v, + alias: this.alias, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertActivityStreamsBlock inserts a Block value at the specified index for a +// property "tracksTicketsFor". Existing elements at that index and higher are +// shifted back once. Invalidates all iterators. +func (this *ForgeFedTracksTicketsForProperty) InsertActivityStreamsBlock(idx int, v vocab.ActivityStreamsBlock) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ForgeFedTracksTicketsForPropertyIterator{ + activitystreamsBlockMember: v, + alias: this.alias, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertActivityStreamsCollection inserts a Collection value at the specified +// index for a property "tracksTicketsFor". Existing elements at that index +// and higher are shifted back once. Invalidates all iterators. +func (this *ForgeFedTracksTicketsForProperty) InsertActivityStreamsCollection(idx int, v vocab.ActivityStreamsCollection) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ForgeFedTracksTicketsForPropertyIterator{ + activitystreamsCollectionMember: v, + alias: this.alias, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertActivityStreamsCollectionPage inserts a CollectionPage value at the +// specified index for a property "tracksTicketsFor". Existing elements at +// that index and higher are shifted back once. Invalidates all iterators. +func (this *ForgeFedTracksTicketsForProperty) InsertActivityStreamsCollectionPage(idx int, v vocab.ActivityStreamsCollectionPage) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ForgeFedTracksTicketsForPropertyIterator{ + activitystreamsCollectionPageMember: v, + alias: this.alias, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertActivityStreamsCreate inserts a Create value at the specified index for a +// property "tracksTicketsFor". Existing elements at that index and higher are +// shifted back once. Invalidates all iterators. +func (this *ForgeFedTracksTicketsForProperty) InsertActivityStreamsCreate(idx int, v vocab.ActivityStreamsCreate) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ForgeFedTracksTicketsForPropertyIterator{ + activitystreamsCreateMember: v, + alias: this.alias, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertActivityStreamsDelete inserts a Delete value at the specified index for a +// property "tracksTicketsFor". Existing elements at that index and higher are +// shifted back once. Invalidates all iterators. +func (this *ForgeFedTracksTicketsForProperty) InsertActivityStreamsDelete(idx int, v vocab.ActivityStreamsDelete) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ForgeFedTracksTicketsForPropertyIterator{ + activitystreamsDeleteMember: v, + alias: this.alias, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertActivityStreamsDislike inserts a Dislike value at the specified index for +// a property "tracksTicketsFor". Existing elements at that index and higher +// are shifted back once. Invalidates all iterators. +func (this *ForgeFedTracksTicketsForProperty) InsertActivityStreamsDislike(idx int, v vocab.ActivityStreamsDislike) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ForgeFedTracksTicketsForPropertyIterator{ + activitystreamsDislikeMember: v, + alias: this.alias, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertActivityStreamsDocument inserts a Document value at the specified index +// for a property "tracksTicketsFor". Existing elements at that index and +// higher are shifted back once. Invalidates all iterators. +func (this *ForgeFedTracksTicketsForProperty) InsertActivityStreamsDocument(idx int, v vocab.ActivityStreamsDocument) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ForgeFedTracksTicketsForPropertyIterator{ + activitystreamsDocumentMember: v, + alias: this.alias, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertActivityStreamsEvent inserts a Event value at the specified index for a +// property "tracksTicketsFor". Existing elements at that index and higher are +// shifted back once. Invalidates all iterators. +func (this *ForgeFedTracksTicketsForProperty) InsertActivityStreamsEvent(idx int, v vocab.ActivityStreamsEvent) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ForgeFedTracksTicketsForPropertyIterator{ + activitystreamsEventMember: v, + alias: this.alias, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertActivityStreamsFlag inserts a Flag value at the specified index for a +// property "tracksTicketsFor". Existing elements at that index and higher are +// shifted back once. Invalidates all iterators. +func (this *ForgeFedTracksTicketsForProperty) InsertActivityStreamsFlag(idx int, v vocab.ActivityStreamsFlag) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ForgeFedTracksTicketsForPropertyIterator{ + activitystreamsFlagMember: v, + alias: this.alias, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertActivityStreamsFollow inserts a Follow value at the specified index for a +// property "tracksTicketsFor". Existing elements at that index and higher are +// shifted back once. Invalidates all iterators. +func (this *ForgeFedTracksTicketsForProperty) InsertActivityStreamsFollow(idx int, v vocab.ActivityStreamsFollow) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ForgeFedTracksTicketsForPropertyIterator{ + activitystreamsFollowMember: v, + alias: this.alias, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertActivityStreamsGroup inserts a Group value at the specified index for a +// property "tracksTicketsFor". Existing elements at that index and higher are +// shifted back once. Invalidates all iterators. +func (this *ForgeFedTracksTicketsForProperty) InsertActivityStreamsGroup(idx int, v vocab.ActivityStreamsGroup) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ForgeFedTracksTicketsForPropertyIterator{ + activitystreamsGroupMember: v, + alias: this.alias, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertActivityStreamsIgnore inserts a Ignore value at the specified index for a +// property "tracksTicketsFor". Existing elements at that index and higher are +// shifted back once. Invalidates all iterators. +func (this *ForgeFedTracksTicketsForProperty) InsertActivityStreamsIgnore(idx int, v vocab.ActivityStreamsIgnore) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ForgeFedTracksTicketsForPropertyIterator{ + activitystreamsIgnoreMember: v, + alias: this.alias, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertActivityStreamsImage inserts a Image value at the specified index for a +// property "tracksTicketsFor". Existing elements at that index and higher are +// shifted back once. Invalidates all iterators. +func (this *ForgeFedTracksTicketsForProperty) InsertActivityStreamsImage(idx int, v vocab.ActivityStreamsImage) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ForgeFedTracksTicketsForPropertyIterator{ + activitystreamsImageMember: v, + alias: this.alias, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertActivityStreamsIntransitiveActivity inserts a IntransitiveActivity value +// at the specified index for a property "tracksTicketsFor". Existing elements +// at that index and higher are shifted back once. Invalidates all iterators. +func (this *ForgeFedTracksTicketsForProperty) InsertActivityStreamsIntransitiveActivity(idx int, v vocab.ActivityStreamsIntransitiveActivity) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ForgeFedTracksTicketsForPropertyIterator{ + activitystreamsIntransitiveActivityMember: v, + alias: this.alias, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertActivityStreamsInvite inserts a Invite value at the specified index for a +// property "tracksTicketsFor". Existing elements at that index and higher are +// shifted back once. Invalidates all iterators. +func (this *ForgeFedTracksTicketsForProperty) InsertActivityStreamsInvite(idx int, v vocab.ActivityStreamsInvite) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ForgeFedTracksTicketsForPropertyIterator{ + activitystreamsInviteMember: v, + alias: this.alias, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertActivityStreamsJoin inserts a Join value at the specified index for a +// property "tracksTicketsFor". Existing elements at that index and higher are +// shifted back once. Invalidates all iterators. +func (this *ForgeFedTracksTicketsForProperty) InsertActivityStreamsJoin(idx int, v vocab.ActivityStreamsJoin) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ForgeFedTracksTicketsForPropertyIterator{ + activitystreamsJoinMember: v, + alias: this.alias, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertActivityStreamsLeave inserts a Leave value at the specified index for a +// property "tracksTicketsFor". Existing elements at that index and higher are +// shifted back once. Invalidates all iterators. +func (this *ForgeFedTracksTicketsForProperty) InsertActivityStreamsLeave(idx int, v vocab.ActivityStreamsLeave) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ForgeFedTracksTicketsForPropertyIterator{ + activitystreamsLeaveMember: v, + alias: this.alias, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertActivityStreamsLike inserts a Like value at the specified index for a +// property "tracksTicketsFor". Existing elements at that index and higher are +// shifted back once. Invalidates all iterators. +func (this *ForgeFedTracksTicketsForProperty) InsertActivityStreamsLike(idx int, v vocab.ActivityStreamsLike) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ForgeFedTracksTicketsForPropertyIterator{ + activitystreamsLikeMember: v, + alias: this.alias, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertActivityStreamsListen inserts a Listen value at the specified index for a +// property "tracksTicketsFor". Existing elements at that index and higher are +// shifted back once. Invalidates all iterators. +func (this *ForgeFedTracksTicketsForProperty) InsertActivityStreamsListen(idx int, v vocab.ActivityStreamsListen) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ForgeFedTracksTicketsForPropertyIterator{ + activitystreamsListenMember: v, + alias: this.alias, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertActivityStreamsMove inserts a Move value at the specified index for a +// property "tracksTicketsFor". Existing elements at that index and higher are +// shifted back once. Invalidates all iterators. +func (this *ForgeFedTracksTicketsForProperty) InsertActivityStreamsMove(idx int, v vocab.ActivityStreamsMove) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ForgeFedTracksTicketsForPropertyIterator{ + activitystreamsMoveMember: v, + alias: this.alias, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertActivityStreamsNote inserts a Note value at the specified index for a +// property "tracksTicketsFor". Existing elements at that index and higher are +// shifted back once. Invalidates all iterators. +func (this *ForgeFedTracksTicketsForProperty) InsertActivityStreamsNote(idx int, v vocab.ActivityStreamsNote) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ForgeFedTracksTicketsForPropertyIterator{ + activitystreamsNoteMember: v, + alias: this.alias, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertActivityStreamsObject inserts a Object value at the specified index for a +// property "tracksTicketsFor". Existing elements at that index and higher are +// shifted back once. Invalidates all iterators. +func (this *ForgeFedTracksTicketsForProperty) InsertActivityStreamsObject(idx int, v vocab.ActivityStreamsObject) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ForgeFedTracksTicketsForPropertyIterator{ + activitystreamsObjectMember: v, + alias: this.alias, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertActivityStreamsOffer inserts a Offer value at the specified index for a +// property "tracksTicketsFor". Existing elements at that index and higher are +// shifted back once. Invalidates all iterators. +func (this *ForgeFedTracksTicketsForProperty) InsertActivityStreamsOffer(idx int, v vocab.ActivityStreamsOffer) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ForgeFedTracksTicketsForPropertyIterator{ + activitystreamsOfferMember: v, + alias: this.alias, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertActivityStreamsOrderedCollection inserts a OrderedCollection value at the +// specified index for a property "tracksTicketsFor". Existing elements at +// that index and higher are shifted back once. Invalidates all iterators. +func (this *ForgeFedTracksTicketsForProperty) InsertActivityStreamsOrderedCollection(idx int, v vocab.ActivityStreamsOrderedCollection) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ForgeFedTracksTicketsForPropertyIterator{ + activitystreamsOrderedCollectionMember: v, + alias: this.alias, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertActivityStreamsOrderedCollectionPage inserts a OrderedCollectionPage +// value at the specified index for a property "tracksTicketsFor". Existing +// elements at that index and higher are shifted back once. Invalidates all +// iterators. +func (this *ForgeFedTracksTicketsForProperty) InsertActivityStreamsOrderedCollectionPage(idx int, v vocab.ActivityStreamsOrderedCollectionPage) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ForgeFedTracksTicketsForPropertyIterator{ + activitystreamsOrderedCollectionPageMember: v, + alias: this.alias, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertActivityStreamsOrganization inserts a Organization value at the specified +// index for a property "tracksTicketsFor". Existing elements at that index +// and higher are shifted back once. Invalidates all iterators. +func (this *ForgeFedTracksTicketsForProperty) InsertActivityStreamsOrganization(idx int, v vocab.ActivityStreamsOrganization) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ForgeFedTracksTicketsForPropertyIterator{ + activitystreamsOrganizationMember: v, + alias: this.alias, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertActivityStreamsPage inserts a Page value at the specified index for a +// property "tracksTicketsFor". Existing elements at that index and higher are +// shifted back once. Invalidates all iterators. +func (this *ForgeFedTracksTicketsForProperty) InsertActivityStreamsPage(idx int, v vocab.ActivityStreamsPage) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ForgeFedTracksTicketsForPropertyIterator{ + activitystreamsPageMember: v, + alias: this.alias, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertActivityStreamsPerson inserts a Person value at the specified index for a +// property "tracksTicketsFor". Existing elements at that index and higher are +// shifted back once. Invalidates all iterators. +func (this *ForgeFedTracksTicketsForProperty) InsertActivityStreamsPerson(idx int, v vocab.ActivityStreamsPerson) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ForgeFedTracksTicketsForPropertyIterator{ + activitystreamsPersonMember: v, + alias: this.alias, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertActivityStreamsPlace inserts a Place value at the specified index for a +// property "tracksTicketsFor". Existing elements at that index and higher are +// shifted back once. Invalidates all iterators. +func (this *ForgeFedTracksTicketsForProperty) InsertActivityStreamsPlace(idx int, v vocab.ActivityStreamsPlace) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ForgeFedTracksTicketsForPropertyIterator{ + activitystreamsPlaceMember: v, + alias: this.alias, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertActivityStreamsProfile inserts a Profile value at the specified index for +// a property "tracksTicketsFor". Existing elements at that index and higher +// are shifted back once. Invalidates all iterators. +func (this *ForgeFedTracksTicketsForProperty) InsertActivityStreamsProfile(idx int, v vocab.ActivityStreamsProfile) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ForgeFedTracksTicketsForPropertyIterator{ + activitystreamsProfileMember: v, + alias: this.alias, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertActivityStreamsQuestion inserts a Question value at the specified index +// for a property "tracksTicketsFor". Existing elements at that index and +// higher are shifted back once. Invalidates all iterators. +func (this *ForgeFedTracksTicketsForProperty) InsertActivityStreamsQuestion(idx int, v vocab.ActivityStreamsQuestion) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ForgeFedTracksTicketsForPropertyIterator{ + activitystreamsQuestionMember: v, + alias: this.alias, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertActivityStreamsRead inserts a Read value at the specified index for a +// property "tracksTicketsFor". Existing elements at that index and higher are +// shifted back once. Invalidates all iterators. +func (this *ForgeFedTracksTicketsForProperty) InsertActivityStreamsRead(idx int, v vocab.ActivityStreamsRead) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ForgeFedTracksTicketsForPropertyIterator{ + activitystreamsReadMember: v, + alias: this.alias, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertActivityStreamsReject inserts a Reject value at the specified index for a +// property "tracksTicketsFor". Existing elements at that index and higher are +// shifted back once. Invalidates all iterators. +func (this *ForgeFedTracksTicketsForProperty) InsertActivityStreamsReject(idx int, v vocab.ActivityStreamsReject) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ForgeFedTracksTicketsForPropertyIterator{ + activitystreamsRejectMember: v, + alias: this.alias, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertActivityStreamsRelationship inserts a Relationship value at the specified +// index for a property "tracksTicketsFor". Existing elements at that index +// and higher are shifted back once. Invalidates all iterators. +func (this *ForgeFedTracksTicketsForProperty) InsertActivityStreamsRelationship(idx int, v vocab.ActivityStreamsRelationship) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ForgeFedTracksTicketsForPropertyIterator{ + activitystreamsRelationshipMember: v, + alias: this.alias, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertActivityStreamsRemove inserts a Remove value at the specified index for a +// property "tracksTicketsFor". Existing elements at that index and higher are +// shifted back once. Invalidates all iterators. +func (this *ForgeFedTracksTicketsForProperty) InsertActivityStreamsRemove(idx int, v vocab.ActivityStreamsRemove) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ForgeFedTracksTicketsForPropertyIterator{ + activitystreamsRemoveMember: v, + alias: this.alias, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertActivityStreamsService inserts a Service value at the specified index for +// a property "tracksTicketsFor". Existing elements at that index and higher +// are shifted back once. Invalidates all iterators. +func (this *ForgeFedTracksTicketsForProperty) InsertActivityStreamsService(idx int, v vocab.ActivityStreamsService) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ForgeFedTracksTicketsForPropertyIterator{ + activitystreamsServiceMember: v, + alias: this.alias, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertActivityStreamsTentativeAccept inserts a TentativeAccept value at the +// specified index for a property "tracksTicketsFor". Existing elements at +// that index and higher are shifted back once. Invalidates all iterators. +func (this *ForgeFedTracksTicketsForProperty) InsertActivityStreamsTentativeAccept(idx int, v vocab.ActivityStreamsTentativeAccept) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ForgeFedTracksTicketsForPropertyIterator{ + activitystreamsTentativeAcceptMember: v, + alias: this.alias, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertActivityStreamsTentativeReject inserts a TentativeReject value at the +// specified index for a property "tracksTicketsFor". Existing elements at +// that index and higher are shifted back once. Invalidates all iterators. +func (this *ForgeFedTracksTicketsForProperty) InsertActivityStreamsTentativeReject(idx int, v vocab.ActivityStreamsTentativeReject) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ForgeFedTracksTicketsForPropertyIterator{ + activitystreamsTentativeRejectMember: v, + alias: this.alias, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertActivityStreamsTombstone inserts a Tombstone value at the specified index +// for a property "tracksTicketsFor". Existing elements at that index and +// higher are shifted back once. Invalidates all iterators. +func (this *ForgeFedTracksTicketsForProperty) InsertActivityStreamsTombstone(idx int, v vocab.ActivityStreamsTombstone) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ForgeFedTracksTicketsForPropertyIterator{ + activitystreamsTombstoneMember: v, + alias: this.alias, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertActivityStreamsTravel inserts a Travel value at the specified index for a +// property "tracksTicketsFor". Existing elements at that index and higher are +// shifted back once. Invalidates all iterators. +func (this *ForgeFedTracksTicketsForProperty) InsertActivityStreamsTravel(idx int, v vocab.ActivityStreamsTravel) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ForgeFedTracksTicketsForPropertyIterator{ + activitystreamsTravelMember: v, + alias: this.alias, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertActivityStreamsUndo inserts a Undo value at the specified index for a +// property "tracksTicketsFor". Existing elements at that index and higher are +// shifted back once. Invalidates all iterators. +func (this *ForgeFedTracksTicketsForProperty) InsertActivityStreamsUndo(idx int, v vocab.ActivityStreamsUndo) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ForgeFedTracksTicketsForPropertyIterator{ + activitystreamsUndoMember: v, + alias: this.alias, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertActivityStreamsUpdate inserts a Update value at the specified index for a +// property "tracksTicketsFor". Existing elements at that index and higher are +// shifted back once. Invalidates all iterators. +func (this *ForgeFedTracksTicketsForProperty) InsertActivityStreamsUpdate(idx int, v vocab.ActivityStreamsUpdate) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ForgeFedTracksTicketsForPropertyIterator{ + activitystreamsUpdateMember: v, + alias: this.alias, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertActivityStreamsVideo inserts a Video value at the specified index for a +// property "tracksTicketsFor". Existing elements at that index and higher are +// shifted back once. Invalidates all iterators. +func (this *ForgeFedTracksTicketsForProperty) InsertActivityStreamsVideo(idx int, v vocab.ActivityStreamsVideo) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ForgeFedTracksTicketsForPropertyIterator{ + activitystreamsVideoMember: v, + alias: this.alias, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertActivityStreamsView inserts a View value at the specified index for a +// property "tracksTicketsFor". Existing elements at that index and higher are +// shifted back once. Invalidates all iterators. +func (this *ForgeFedTracksTicketsForProperty) InsertActivityStreamsView(idx int, v vocab.ActivityStreamsView) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ForgeFedTracksTicketsForPropertyIterator{ + activitystreamsViewMember: v, + alias: this.alias, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertForgeFedBranch inserts a Branch value at the specified index for a +// property "tracksTicketsFor". Existing elements at that index and higher are +// shifted back once. Invalidates all iterators. +func (this *ForgeFedTracksTicketsForProperty) InsertForgeFedBranch(idx int, v vocab.ForgeFedBranch) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ForgeFedTracksTicketsForPropertyIterator{ + alias: this.alias, + forgefedBranchMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertForgeFedCommit inserts a Commit value at the specified index for a +// property "tracksTicketsFor". Existing elements at that index and higher are +// shifted back once. Invalidates all iterators. +func (this *ForgeFedTracksTicketsForProperty) InsertForgeFedCommit(idx int, v vocab.ForgeFedCommit) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ForgeFedTracksTicketsForPropertyIterator{ + alias: this.alias, + forgefedCommitMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertForgeFedPush inserts a Push value at the specified index for a property +// "tracksTicketsFor". Existing elements at that index and higher are shifted +// back once. Invalidates all iterators. +func (this *ForgeFedTracksTicketsForProperty) InsertForgeFedPush(idx int, v vocab.ForgeFedPush) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ForgeFedTracksTicketsForPropertyIterator{ + alias: this.alias, + forgefedPushMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertForgeFedRepository inserts a Repository value at the specified index for +// a property "tracksTicketsFor". Existing elements at that index and higher +// are shifted back once. Invalidates all iterators. +func (this *ForgeFedTracksTicketsForProperty) InsertForgeFedRepository(idx int, v vocab.ForgeFedRepository) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ForgeFedTracksTicketsForPropertyIterator{ + alias: this.alias, + forgefedRepositoryMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertForgeFedTicket inserts a Ticket value at the specified index for a +// property "tracksTicketsFor". Existing elements at that index and higher are +// shifted back once. Invalidates all iterators. +func (this *ForgeFedTracksTicketsForProperty) InsertForgeFedTicket(idx int, v vocab.ForgeFedTicket) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ForgeFedTracksTicketsForPropertyIterator{ + alias: this.alias, + forgefedTicketMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertForgeFedTicketDependency inserts a TicketDependency value at the +// specified index for a property "tracksTicketsFor". Existing elements at +// that index and higher are shifted back once. Invalidates all iterators. +func (this *ForgeFedTracksTicketsForProperty) InsertForgeFedTicketDependency(idx int, v vocab.ForgeFedTicketDependency) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ForgeFedTracksTicketsForPropertyIterator{ + alias: this.alias, + forgefedTicketDependencyMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// Insert inserts an IRI value at the specified index for a property +// "tracksTicketsFor". Existing elements at that index and higher are shifted +// back once. Invalidates all iterators. +func (this *ForgeFedTracksTicketsForProperty) InsertIRI(idx int, v *url.URL) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ForgeFedTracksTicketsForPropertyIterator{ + alias: this.alias, + iri: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertTootEmoji inserts a Emoji value at the specified index for a property +// "tracksTicketsFor". Existing elements at that index and higher are shifted +// back once. Invalidates all iterators. +func (this *ForgeFedTracksTicketsForProperty) InsertTootEmoji(idx int, v vocab.TootEmoji) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ForgeFedTracksTicketsForPropertyIterator{ + alias: this.alias, + myIdx: idx, + parent: this, + tootEmojiMember: v, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertTootIdentityProof inserts a IdentityProof value at the specified index +// for a property "tracksTicketsFor". Existing elements at that index and +// higher are shifted back once. Invalidates all iterators. +func (this *ForgeFedTracksTicketsForProperty) InsertTootIdentityProof(idx int, v vocab.TootIdentityProof) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ForgeFedTracksTicketsForPropertyIterator{ + alias: this.alias, + myIdx: idx, + parent: this, + tootIdentityProofMember: v, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependType prepends an arbitrary type value to the front of a list of the +// property "tracksTicketsFor". Invalidates all iterators. Returns an error if +// the type is not a valid one to set for this property. +func (this *ForgeFedTracksTicketsForProperty) InsertType(idx int, t vocab.Type) error { + n := &ForgeFedTracksTicketsForPropertyIterator{ + alias: this.alias, + myIdx: idx, + parent: this, + } + if err := n.SetType(t); err != nil { + return err + } + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = n + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } + return nil +} + +// JSONLDContext returns the JSONLD URIs required in the context string for this +// property and the specific values that are set. The value in the map is the +// alias used to import the property's value or values. +func (this ForgeFedTracksTicketsForProperty) JSONLDContext() map[string]string { + m := map[string]string{"https://forgefed.peers.community/ns": this.alias} + for _, elem := range this.properties { + child := elem.JSONLDContext() + /* + Since the literal maps in this function are determined at + code-generation time, this loop should not overwrite an existing key with a + new value. + */ + for k, v := range child { + m[k] = v + } + } + return m +} + +// KindIndex computes an arbitrary value for indexing this kind of value. This is +// a leaky API method specifically needed only for alternate implementations +// for go-fed. Applications should not use this method. Panics if the index is +// out of bounds. +func (this ForgeFedTracksTicketsForProperty) KindIndex(idx int) int { + return this.properties[idx].KindIndex() +} + +// Len returns the number of values that exist for the "tracksTicketsFor" property. +func (this ForgeFedTracksTicketsForProperty) Len() (length int) { + return len(this.properties) +} + +// Less computes whether another property is less than this one. Mixing types +// results in a consistent but arbitrary ordering +func (this ForgeFedTracksTicketsForProperty) Less(i, j int) bool { + idx1 := this.KindIndex(i) + idx2 := this.KindIndex(j) + if idx1 < idx2 { + return true + } else if idx1 == idx2 { + if idx1 == 0 { + lhs := this.properties[i].GetActivityStreamsObject() + rhs := this.properties[j].GetActivityStreamsObject() + return lhs.LessThan(rhs) + } else if idx1 == 1 { + lhs := this.properties[i].GetActivityStreamsAccept() + rhs := this.properties[j].GetActivityStreamsAccept() + return lhs.LessThan(rhs) + } else if idx1 == 2 { + lhs := this.properties[i].GetActivityStreamsActivity() + rhs := this.properties[j].GetActivityStreamsActivity() + return lhs.LessThan(rhs) + } else if idx1 == 3 { + lhs := this.properties[i].GetActivityStreamsAdd() + rhs := this.properties[j].GetActivityStreamsAdd() + return lhs.LessThan(rhs) + } else if idx1 == 4 { + lhs := this.properties[i].GetActivityStreamsAnnounce() + rhs := this.properties[j].GetActivityStreamsAnnounce() + return lhs.LessThan(rhs) + } else if idx1 == 5 { + lhs := this.properties[i].GetActivityStreamsApplication() + rhs := this.properties[j].GetActivityStreamsApplication() + return lhs.LessThan(rhs) + } else if idx1 == 6 { + lhs := this.properties[i].GetActivityStreamsArrive() + rhs := this.properties[j].GetActivityStreamsArrive() + return lhs.LessThan(rhs) + } else if idx1 == 7 { + lhs := this.properties[i].GetActivityStreamsArticle() + rhs := this.properties[j].GetActivityStreamsArticle() + return lhs.LessThan(rhs) + } else if idx1 == 8 { + lhs := this.properties[i].GetActivityStreamsAudio() + rhs := this.properties[j].GetActivityStreamsAudio() + return lhs.LessThan(rhs) + } else if idx1 == 9 { + lhs := this.properties[i].GetActivityStreamsBlock() + rhs := this.properties[j].GetActivityStreamsBlock() + return lhs.LessThan(rhs) + } else if idx1 == 10 { + lhs := this.properties[i].GetForgeFedBranch() + rhs := this.properties[j].GetForgeFedBranch() + return lhs.LessThan(rhs) + } else if idx1 == 11 { + lhs := this.properties[i].GetActivityStreamsCollection() + rhs := this.properties[j].GetActivityStreamsCollection() + return lhs.LessThan(rhs) + } else if idx1 == 12 { + lhs := this.properties[i].GetActivityStreamsCollectionPage() + rhs := this.properties[j].GetActivityStreamsCollectionPage() + return lhs.LessThan(rhs) + } else if idx1 == 13 { + lhs := this.properties[i].GetForgeFedCommit() + rhs := this.properties[j].GetForgeFedCommit() + return lhs.LessThan(rhs) + } else if idx1 == 14 { + lhs := this.properties[i].GetActivityStreamsCreate() + rhs := this.properties[j].GetActivityStreamsCreate() + return lhs.LessThan(rhs) + } else if idx1 == 15 { + lhs := this.properties[i].GetActivityStreamsDelete() + rhs := this.properties[j].GetActivityStreamsDelete() + return lhs.LessThan(rhs) + } else if idx1 == 16 { + lhs := this.properties[i].GetActivityStreamsDislike() + rhs := this.properties[j].GetActivityStreamsDislike() + return lhs.LessThan(rhs) + } else if idx1 == 17 { + lhs := this.properties[i].GetActivityStreamsDocument() + rhs := this.properties[j].GetActivityStreamsDocument() + return lhs.LessThan(rhs) + } else if idx1 == 18 { + lhs := this.properties[i].GetTootEmoji() + rhs := this.properties[j].GetTootEmoji() + return lhs.LessThan(rhs) + } else if idx1 == 19 { + lhs := this.properties[i].GetActivityStreamsEvent() + rhs := this.properties[j].GetActivityStreamsEvent() + return lhs.LessThan(rhs) + } else if idx1 == 20 { + lhs := this.properties[i].GetActivityStreamsFlag() + rhs := this.properties[j].GetActivityStreamsFlag() + return lhs.LessThan(rhs) + } else if idx1 == 21 { + lhs := this.properties[i].GetActivityStreamsFollow() + rhs := this.properties[j].GetActivityStreamsFollow() + return lhs.LessThan(rhs) + } else if idx1 == 22 { + lhs := this.properties[i].GetActivityStreamsGroup() + rhs := this.properties[j].GetActivityStreamsGroup() + return lhs.LessThan(rhs) + } else if idx1 == 23 { + lhs := this.properties[i].GetTootIdentityProof() + rhs := this.properties[j].GetTootIdentityProof() + return lhs.LessThan(rhs) + } else if idx1 == 24 { + lhs := this.properties[i].GetActivityStreamsIgnore() + rhs := this.properties[j].GetActivityStreamsIgnore() + return lhs.LessThan(rhs) + } else if idx1 == 25 { + lhs := this.properties[i].GetActivityStreamsImage() + rhs := this.properties[j].GetActivityStreamsImage() + return lhs.LessThan(rhs) + } else if idx1 == 26 { + lhs := this.properties[i].GetActivityStreamsIntransitiveActivity() + rhs := this.properties[j].GetActivityStreamsIntransitiveActivity() + return lhs.LessThan(rhs) + } else if idx1 == 27 { + lhs := this.properties[i].GetActivityStreamsInvite() + rhs := this.properties[j].GetActivityStreamsInvite() + return lhs.LessThan(rhs) + } else if idx1 == 28 { + lhs := this.properties[i].GetActivityStreamsJoin() + rhs := this.properties[j].GetActivityStreamsJoin() + return lhs.LessThan(rhs) + } else if idx1 == 29 { + lhs := this.properties[i].GetActivityStreamsLeave() + rhs := this.properties[j].GetActivityStreamsLeave() + return lhs.LessThan(rhs) + } else if idx1 == 30 { + lhs := this.properties[i].GetActivityStreamsLike() + rhs := this.properties[j].GetActivityStreamsLike() + return lhs.LessThan(rhs) + } else if idx1 == 31 { + lhs := this.properties[i].GetActivityStreamsListen() + rhs := this.properties[j].GetActivityStreamsListen() + return lhs.LessThan(rhs) + } else if idx1 == 32 { + lhs := this.properties[i].GetActivityStreamsMove() + rhs := this.properties[j].GetActivityStreamsMove() + return lhs.LessThan(rhs) + } else if idx1 == 33 { + lhs := this.properties[i].GetActivityStreamsNote() + rhs := this.properties[j].GetActivityStreamsNote() + return lhs.LessThan(rhs) + } else if idx1 == 34 { + lhs := this.properties[i].GetActivityStreamsOffer() + rhs := this.properties[j].GetActivityStreamsOffer() + return lhs.LessThan(rhs) + } else if idx1 == 35 { + lhs := this.properties[i].GetActivityStreamsOrderedCollection() + rhs := this.properties[j].GetActivityStreamsOrderedCollection() + return lhs.LessThan(rhs) + } else if idx1 == 36 { + lhs := this.properties[i].GetActivityStreamsOrderedCollectionPage() + rhs := this.properties[j].GetActivityStreamsOrderedCollectionPage() + return lhs.LessThan(rhs) + } else if idx1 == 37 { + lhs := this.properties[i].GetActivityStreamsOrganization() + rhs := this.properties[j].GetActivityStreamsOrganization() + return lhs.LessThan(rhs) + } else if idx1 == 38 { + lhs := this.properties[i].GetActivityStreamsPage() + rhs := this.properties[j].GetActivityStreamsPage() + return lhs.LessThan(rhs) + } else if idx1 == 39 { + lhs := this.properties[i].GetActivityStreamsPerson() + rhs := this.properties[j].GetActivityStreamsPerson() + return lhs.LessThan(rhs) + } else if idx1 == 40 { + lhs := this.properties[i].GetActivityStreamsPlace() + rhs := this.properties[j].GetActivityStreamsPlace() + return lhs.LessThan(rhs) + } else if idx1 == 41 { + lhs := this.properties[i].GetActivityStreamsProfile() + rhs := this.properties[j].GetActivityStreamsProfile() + return lhs.LessThan(rhs) + } else if idx1 == 42 { + lhs := this.properties[i].GetForgeFedPush() + rhs := this.properties[j].GetForgeFedPush() + return lhs.LessThan(rhs) + } else if idx1 == 43 { + lhs := this.properties[i].GetActivityStreamsQuestion() + rhs := this.properties[j].GetActivityStreamsQuestion() + return lhs.LessThan(rhs) + } else if idx1 == 44 { + lhs := this.properties[i].GetActivityStreamsRead() + rhs := this.properties[j].GetActivityStreamsRead() + return lhs.LessThan(rhs) + } else if idx1 == 45 { + lhs := this.properties[i].GetActivityStreamsReject() + rhs := this.properties[j].GetActivityStreamsReject() + return lhs.LessThan(rhs) + } else if idx1 == 46 { + lhs := this.properties[i].GetActivityStreamsRelationship() + rhs := this.properties[j].GetActivityStreamsRelationship() + return lhs.LessThan(rhs) + } else if idx1 == 47 { + lhs := this.properties[i].GetActivityStreamsRemove() + rhs := this.properties[j].GetActivityStreamsRemove() + return lhs.LessThan(rhs) + } else if idx1 == 48 { + lhs := this.properties[i].GetForgeFedRepository() + rhs := this.properties[j].GetForgeFedRepository() + return lhs.LessThan(rhs) + } else if idx1 == 49 { + lhs := this.properties[i].GetActivityStreamsService() + rhs := this.properties[j].GetActivityStreamsService() + return lhs.LessThan(rhs) + } else if idx1 == 50 { + lhs := this.properties[i].GetActivityStreamsTentativeAccept() + rhs := this.properties[j].GetActivityStreamsTentativeAccept() + return lhs.LessThan(rhs) + } else if idx1 == 51 { + lhs := this.properties[i].GetActivityStreamsTentativeReject() + rhs := this.properties[j].GetActivityStreamsTentativeReject() + return lhs.LessThan(rhs) + } else if idx1 == 52 { + lhs := this.properties[i].GetForgeFedTicket() + rhs := this.properties[j].GetForgeFedTicket() + return lhs.LessThan(rhs) + } else if idx1 == 53 { + lhs := this.properties[i].GetForgeFedTicketDependency() + rhs := this.properties[j].GetForgeFedTicketDependency() + return lhs.LessThan(rhs) + } else if idx1 == 54 { + lhs := this.properties[i].GetActivityStreamsTombstone() + rhs := this.properties[j].GetActivityStreamsTombstone() + return lhs.LessThan(rhs) + } else if idx1 == 55 { + lhs := this.properties[i].GetActivityStreamsTravel() + rhs := this.properties[j].GetActivityStreamsTravel() + return lhs.LessThan(rhs) + } else if idx1 == 56 { + lhs := this.properties[i].GetActivityStreamsUndo() + rhs := this.properties[j].GetActivityStreamsUndo() + return lhs.LessThan(rhs) + } else if idx1 == 57 { + lhs := this.properties[i].GetActivityStreamsUpdate() + rhs := this.properties[j].GetActivityStreamsUpdate() + return lhs.LessThan(rhs) + } else if idx1 == 58 { + lhs := this.properties[i].GetActivityStreamsVideo() + rhs := this.properties[j].GetActivityStreamsVideo() + return lhs.LessThan(rhs) + } else if idx1 == 59 { + lhs := this.properties[i].GetActivityStreamsView() + rhs := this.properties[j].GetActivityStreamsView() + return lhs.LessThan(rhs) + } else if idx1 == -2 { + lhs := this.properties[i].GetIRI() + rhs := this.properties[j].GetIRI() + return lhs.String() < rhs.String() + } + } + return false +} + +// LessThan compares two instances of this property with an arbitrary but stable +// comparison. Applications should not use this because it is only meant to +// help alternative implementations to go-fed to be able to normalize +// nonfunctional properties. +func (this ForgeFedTracksTicketsForProperty) LessThan(o vocab.ForgeFedTracksTicketsForProperty) bool { + l1 := this.Len() + l2 := o.Len() + l := l1 + if l2 < l1 { + l = l2 + } + for i := 0; i < l; i++ { + if this.properties[i].LessThan(o.At(i)) { + return true + } else if o.At(i).LessThan(this.properties[i]) { + return false + } + } + return l1 < l2 +} + +// Name returns the name of this property ("tracksTicketsFor") with any alias. +func (this ForgeFedTracksTicketsForProperty) Name() string { + if len(this.alias) > 0 { + return this.alias + ":" + "tracksTicketsFor" + } else { + return "tracksTicketsFor" + } +} + +// PrependActivityStreamsAccept prepends a Accept value to the front of a list of +// the property "tracksTicketsFor". Invalidates all iterators. +func (this *ForgeFedTracksTicketsForProperty) PrependActivityStreamsAccept(v vocab.ActivityStreamsAccept) { + this.properties = append([]*ForgeFedTracksTicketsForPropertyIterator{{ + activitystreamsAcceptMember: v, + alias: this.alias, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependActivityStreamsActivity prepends a Activity value to the front of a list +// of the property "tracksTicketsFor". Invalidates all iterators. +func (this *ForgeFedTracksTicketsForProperty) PrependActivityStreamsActivity(v vocab.ActivityStreamsActivity) { + this.properties = append([]*ForgeFedTracksTicketsForPropertyIterator{{ + activitystreamsActivityMember: v, + alias: this.alias, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependActivityStreamsAdd prepends a Add value to the front of a list of the +// property "tracksTicketsFor". Invalidates all iterators. +func (this *ForgeFedTracksTicketsForProperty) PrependActivityStreamsAdd(v vocab.ActivityStreamsAdd) { + this.properties = append([]*ForgeFedTracksTicketsForPropertyIterator{{ + activitystreamsAddMember: v, + alias: this.alias, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependActivityStreamsAnnounce prepends a Announce value to the front of a list +// of the property "tracksTicketsFor". Invalidates all iterators. +func (this *ForgeFedTracksTicketsForProperty) PrependActivityStreamsAnnounce(v vocab.ActivityStreamsAnnounce) { + this.properties = append([]*ForgeFedTracksTicketsForPropertyIterator{{ + activitystreamsAnnounceMember: v, + alias: this.alias, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependActivityStreamsApplication prepends a Application value to the front of +// a list of the property "tracksTicketsFor". Invalidates all iterators. +func (this *ForgeFedTracksTicketsForProperty) PrependActivityStreamsApplication(v vocab.ActivityStreamsApplication) { + this.properties = append([]*ForgeFedTracksTicketsForPropertyIterator{{ + activitystreamsApplicationMember: v, + alias: this.alias, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependActivityStreamsArrive prepends a Arrive value to the front of a list of +// the property "tracksTicketsFor". Invalidates all iterators. +func (this *ForgeFedTracksTicketsForProperty) PrependActivityStreamsArrive(v vocab.ActivityStreamsArrive) { + this.properties = append([]*ForgeFedTracksTicketsForPropertyIterator{{ + activitystreamsArriveMember: v, + alias: this.alias, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependActivityStreamsArticle prepends a Article value to the front of a list +// of the property "tracksTicketsFor". Invalidates all iterators. +func (this *ForgeFedTracksTicketsForProperty) PrependActivityStreamsArticle(v vocab.ActivityStreamsArticle) { + this.properties = append([]*ForgeFedTracksTicketsForPropertyIterator{{ + activitystreamsArticleMember: v, + alias: this.alias, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependActivityStreamsAudio prepends a Audio value to the front of a list of +// the property "tracksTicketsFor". Invalidates all iterators. +func (this *ForgeFedTracksTicketsForProperty) PrependActivityStreamsAudio(v vocab.ActivityStreamsAudio) { + this.properties = append([]*ForgeFedTracksTicketsForPropertyIterator{{ + activitystreamsAudioMember: v, + alias: this.alias, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependActivityStreamsBlock prepends a Block value to the front of a list of +// the property "tracksTicketsFor". Invalidates all iterators. +func (this *ForgeFedTracksTicketsForProperty) PrependActivityStreamsBlock(v vocab.ActivityStreamsBlock) { + this.properties = append([]*ForgeFedTracksTicketsForPropertyIterator{{ + activitystreamsBlockMember: v, + alias: this.alias, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependActivityStreamsCollection prepends a Collection value to the front of a +// list of the property "tracksTicketsFor". Invalidates all iterators. +func (this *ForgeFedTracksTicketsForProperty) PrependActivityStreamsCollection(v vocab.ActivityStreamsCollection) { + this.properties = append([]*ForgeFedTracksTicketsForPropertyIterator{{ + activitystreamsCollectionMember: v, + alias: this.alias, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependActivityStreamsCollectionPage prepends a CollectionPage value to the +// front of a list of the property "tracksTicketsFor". Invalidates all +// iterators. +func (this *ForgeFedTracksTicketsForProperty) PrependActivityStreamsCollectionPage(v vocab.ActivityStreamsCollectionPage) { + this.properties = append([]*ForgeFedTracksTicketsForPropertyIterator{{ + activitystreamsCollectionPageMember: v, + alias: this.alias, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependActivityStreamsCreate prepends a Create value to the front of a list of +// the property "tracksTicketsFor". Invalidates all iterators. +func (this *ForgeFedTracksTicketsForProperty) PrependActivityStreamsCreate(v vocab.ActivityStreamsCreate) { + this.properties = append([]*ForgeFedTracksTicketsForPropertyIterator{{ + activitystreamsCreateMember: v, + alias: this.alias, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependActivityStreamsDelete prepends a Delete value to the front of a list of +// the property "tracksTicketsFor". Invalidates all iterators. +func (this *ForgeFedTracksTicketsForProperty) PrependActivityStreamsDelete(v vocab.ActivityStreamsDelete) { + this.properties = append([]*ForgeFedTracksTicketsForPropertyIterator{{ + activitystreamsDeleteMember: v, + alias: this.alias, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependActivityStreamsDislike prepends a Dislike value to the front of a list +// of the property "tracksTicketsFor". Invalidates all iterators. +func (this *ForgeFedTracksTicketsForProperty) PrependActivityStreamsDislike(v vocab.ActivityStreamsDislike) { + this.properties = append([]*ForgeFedTracksTicketsForPropertyIterator{{ + activitystreamsDislikeMember: v, + alias: this.alias, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependActivityStreamsDocument prepends a Document value to the front of a list +// of the property "tracksTicketsFor". Invalidates all iterators. +func (this *ForgeFedTracksTicketsForProperty) PrependActivityStreamsDocument(v vocab.ActivityStreamsDocument) { + this.properties = append([]*ForgeFedTracksTicketsForPropertyIterator{{ + activitystreamsDocumentMember: v, + alias: this.alias, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependActivityStreamsEvent prepends a Event value to the front of a list of +// the property "tracksTicketsFor". Invalidates all iterators. +func (this *ForgeFedTracksTicketsForProperty) PrependActivityStreamsEvent(v vocab.ActivityStreamsEvent) { + this.properties = append([]*ForgeFedTracksTicketsForPropertyIterator{{ + activitystreamsEventMember: v, + alias: this.alias, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependActivityStreamsFlag prepends a Flag value to the front of a list of the +// property "tracksTicketsFor". Invalidates all iterators. +func (this *ForgeFedTracksTicketsForProperty) PrependActivityStreamsFlag(v vocab.ActivityStreamsFlag) { + this.properties = append([]*ForgeFedTracksTicketsForPropertyIterator{{ + activitystreamsFlagMember: v, + alias: this.alias, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependActivityStreamsFollow prepends a Follow value to the front of a list of +// the property "tracksTicketsFor". Invalidates all iterators. +func (this *ForgeFedTracksTicketsForProperty) PrependActivityStreamsFollow(v vocab.ActivityStreamsFollow) { + this.properties = append([]*ForgeFedTracksTicketsForPropertyIterator{{ + activitystreamsFollowMember: v, + alias: this.alias, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependActivityStreamsGroup prepends a Group value to the front of a list of +// the property "tracksTicketsFor". Invalidates all iterators. +func (this *ForgeFedTracksTicketsForProperty) PrependActivityStreamsGroup(v vocab.ActivityStreamsGroup) { + this.properties = append([]*ForgeFedTracksTicketsForPropertyIterator{{ + activitystreamsGroupMember: v, + alias: this.alias, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependActivityStreamsIgnore prepends a Ignore value to the front of a list of +// the property "tracksTicketsFor". Invalidates all iterators. +func (this *ForgeFedTracksTicketsForProperty) PrependActivityStreamsIgnore(v vocab.ActivityStreamsIgnore) { + this.properties = append([]*ForgeFedTracksTicketsForPropertyIterator{{ + activitystreamsIgnoreMember: v, + alias: this.alias, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependActivityStreamsImage prepends a Image value to the front of a list of +// the property "tracksTicketsFor". Invalidates all iterators. +func (this *ForgeFedTracksTicketsForProperty) PrependActivityStreamsImage(v vocab.ActivityStreamsImage) { + this.properties = append([]*ForgeFedTracksTicketsForPropertyIterator{{ + activitystreamsImageMember: v, + alias: this.alias, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependActivityStreamsIntransitiveActivity prepends a IntransitiveActivity +// value to the front of a list of the property "tracksTicketsFor". +// Invalidates all iterators. +func (this *ForgeFedTracksTicketsForProperty) PrependActivityStreamsIntransitiveActivity(v vocab.ActivityStreamsIntransitiveActivity) { + this.properties = append([]*ForgeFedTracksTicketsForPropertyIterator{{ + activitystreamsIntransitiveActivityMember: v, + alias: this.alias, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependActivityStreamsInvite prepends a Invite value to the front of a list of +// the property "tracksTicketsFor". Invalidates all iterators. +func (this *ForgeFedTracksTicketsForProperty) PrependActivityStreamsInvite(v vocab.ActivityStreamsInvite) { + this.properties = append([]*ForgeFedTracksTicketsForPropertyIterator{{ + activitystreamsInviteMember: v, + alias: this.alias, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependActivityStreamsJoin prepends a Join value to the front of a list of the +// property "tracksTicketsFor". Invalidates all iterators. +func (this *ForgeFedTracksTicketsForProperty) PrependActivityStreamsJoin(v vocab.ActivityStreamsJoin) { + this.properties = append([]*ForgeFedTracksTicketsForPropertyIterator{{ + activitystreamsJoinMember: v, + alias: this.alias, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependActivityStreamsLeave prepends a Leave value to the front of a list of +// the property "tracksTicketsFor". Invalidates all iterators. +func (this *ForgeFedTracksTicketsForProperty) PrependActivityStreamsLeave(v vocab.ActivityStreamsLeave) { + this.properties = append([]*ForgeFedTracksTicketsForPropertyIterator{{ + activitystreamsLeaveMember: v, + alias: this.alias, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependActivityStreamsLike prepends a Like value to the front of a list of the +// property "tracksTicketsFor". Invalidates all iterators. +func (this *ForgeFedTracksTicketsForProperty) PrependActivityStreamsLike(v vocab.ActivityStreamsLike) { + this.properties = append([]*ForgeFedTracksTicketsForPropertyIterator{{ + activitystreamsLikeMember: v, + alias: this.alias, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependActivityStreamsListen prepends a Listen value to the front of a list of +// the property "tracksTicketsFor". Invalidates all iterators. +func (this *ForgeFedTracksTicketsForProperty) PrependActivityStreamsListen(v vocab.ActivityStreamsListen) { + this.properties = append([]*ForgeFedTracksTicketsForPropertyIterator{{ + activitystreamsListenMember: v, + alias: this.alias, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependActivityStreamsMove prepends a Move value to the front of a list of the +// property "tracksTicketsFor". Invalidates all iterators. +func (this *ForgeFedTracksTicketsForProperty) PrependActivityStreamsMove(v vocab.ActivityStreamsMove) { + this.properties = append([]*ForgeFedTracksTicketsForPropertyIterator{{ + activitystreamsMoveMember: v, + alias: this.alias, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependActivityStreamsNote prepends a Note value to the front of a list of the +// property "tracksTicketsFor". Invalidates all iterators. +func (this *ForgeFedTracksTicketsForProperty) PrependActivityStreamsNote(v vocab.ActivityStreamsNote) { + this.properties = append([]*ForgeFedTracksTicketsForPropertyIterator{{ + activitystreamsNoteMember: v, + alias: this.alias, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependActivityStreamsObject prepends a Object value to the front of a list of +// the property "tracksTicketsFor". Invalidates all iterators. +func (this *ForgeFedTracksTicketsForProperty) PrependActivityStreamsObject(v vocab.ActivityStreamsObject) { + this.properties = append([]*ForgeFedTracksTicketsForPropertyIterator{{ + activitystreamsObjectMember: v, + alias: this.alias, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependActivityStreamsOffer prepends a Offer value to the front of a list of +// the property "tracksTicketsFor". Invalidates all iterators. +func (this *ForgeFedTracksTicketsForProperty) PrependActivityStreamsOffer(v vocab.ActivityStreamsOffer) { + this.properties = append([]*ForgeFedTracksTicketsForPropertyIterator{{ + activitystreamsOfferMember: v, + alias: this.alias, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependActivityStreamsOrderedCollection prepends a OrderedCollection value to +// the front of a list of the property "tracksTicketsFor". Invalidates all +// iterators. +func (this *ForgeFedTracksTicketsForProperty) PrependActivityStreamsOrderedCollection(v vocab.ActivityStreamsOrderedCollection) { + this.properties = append([]*ForgeFedTracksTicketsForPropertyIterator{{ + activitystreamsOrderedCollectionMember: v, + alias: this.alias, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependActivityStreamsOrderedCollectionPage prepends a OrderedCollectionPage +// value to the front of a list of the property "tracksTicketsFor". +// Invalidates all iterators. +func (this *ForgeFedTracksTicketsForProperty) PrependActivityStreamsOrderedCollectionPage(v vocab.ActivityStreamsOrderedCollectionPage) { + this.properties = append([]*ForgeFedTracksTicketsForPropertyIterator{{ + activitystreamsOrderedCollectionPageMember: v, + alias: this.alias, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependActivityStreamsOrganization prepends a Organization value to the front +// of a list of the property "tracksTicketsFor". Invalidates all iterators. +func (this *ForgeFedTracksTicketsForProperty) PrependActivityStreamsOrganization(v vocab.ActivityStreamsOrganization) { + this.properties = append([]*ForgeFedTracksTicketsForPropertyIterator{{ + activitystreamsOrganizationMember: v, + alias: this.alias, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependActivityStreamsPage prepends a Page value to the front of a list of the +// property "tracksTicketsFor". Invalidates all iterators. +func (this *ForgeFedTracksTicketsForProperty) PrependActivityStreamsPage(v vocab.ActivityStreamsPage) { + this.properties = append([]*ForgeFedTracksTicketsForPropertyIterator{{ + activitystreamsPageMember: v, + alias: this.alias, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependActivityStreamsPerson prepends a Person value to the front of a list of +// the property "tracksTicketsFor". Invalidates all iterators. +func (this *ForgeFedTracksTicketsForProperty) PrependActivityStreamsPerson(v vocab.ActivityStreamsPerson) { + this.properties = append([]*ForgeFedTracksTicketsForPropertyIterator{{ + activitystreamsPersonMember: v, + alias: this.alias, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependActivityStreamsPlace prepends a Place value to the front of a list of +// the property "tracksTicketsFor". Invalidates all iterators. +func (this *ForgeFedTracksTicketsForProperty) PrependActivityStreamsPlace(v vocab.ActivityStreamsPlace) { + this.properties = append([]*ForgeFedTracksTicketsForPropertyIterator{{ + activitystreamsPlaceMember: v, + alias: this.alias, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependActivityStreamsProfile prepends a Profile value to the front of a list +// of the property "tracksTicketsFor". Invalidates all iterators. +func (this *ForgeFedTracksTicketsForProperty) PrependActivityStreamsProfile(v vocab.ActivityStreamsProfile) { + this.properties = append([]*ForgeFedTracksTicketsForPropertyIterator{{ + activitystreamsProfileMember: v, + alias: this.alias, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependActivityStreamsQuestion prepends a Question value to the front of a list +// of the property "tracksTicketsFor". Invalidates all iterators. +func (this *ForgeFedTracksTicketsForProperty) PrependActivityStreamsQuestion(v vocab.ActivityStreamsQuestion) { + this.properties = append([]*ForgeFedTracksTicketsForPropertyIterator{{ + activitystreamsQuestionMember: v, + alias: this.alias, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependActivityStreamsRead prepends a Read value to the front of a list of the +// property "tracksTicketsFor". Invalidates all iterators. +func (this *ForgeFedTracksTicketsForProperty) PrependActivityStreamsRead(v vocab.ActivityStreamsRead) { + this.properties = append([]*ForgeFedTracksTicketsForPropertyIterator{{ + activitystreamsReadMember: v, + alias: this.alias, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependActivityStreamsReject prepends a Reject value to the front of a list of +// the property "tracksTicketsFor". Invalidates all iterators. +func (this *ForgeFedTracksTicketsForProperty) PrependActivityStreamsReject(v vocab.ActivityStreamsReject) { + this.properties = append([]*ForgeFedTracksTicketsForPropertyIterator{{ + activitystreamsRejectMember: v, + alias: this.alias, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependActivityStreamsRelationship prepends a Relationship value to the front +// of a list of the property "tracksTicketsFor". Invalidates all iterators. +func (this *ForgeFedTracksTicketsForProperty) PrependActivityStreamsRelationship(v vocab.ActivityStreamsRelationship) { + this.properties = append([]*ForgeFedTracksTicketsForPropertyIterator{{ + activitystreamsRelationshipMember: v, + alias: this.alias, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependActivityStreamsRemove prepends a Remove value to the front of a list of +// the property "tracksTicketsFor". Invalidates all iterators. +func (this *ForgeFedTracksTicketsForProperty) PrependActivityStreamsRemove(v vocab.ActivityStreamsRemove) { + this.properties = append([]*ForgeFedTracksTicketsForPropertyIterator{{ + activitystreamsRemoveMember: v, + alias: this.alias, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependActivityStreamsService prepends a Service value to the front of a list +// of the property "tracksTicketsFor". Invalidates all iterators. +func (this *ForgeFedTracksTicketsForProperty) PrependActivityStreamsService(v vocab.ActivityStreamsService) { + this.properties = append([]*ForgeFedTracksTicketsForPropertyIterator{{ + activitystreamsServiceMember: v, + alias: this.alias, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependActivityStreamsTentativeAccept prepends a TentativeAccept value to the +// front of a list of the property "tracksTicketsFor". Invalidates all +// iterators. +func (this *ForgeFedTracksTicketsForProperty) PrependActivityStreamsTentativeAccept(v vocab.ActivityStreamsTentativeAccept) { + this.properties = append([]*ForgeFedTracksTicketsForPropertyIterator{{ + activitystreamsTentativeAcceptMember: v, + alias: this.alias, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependActivityStreamsTentativeReject prepends a TentativeReject value to the +// front of a list of the property "tracksTicketsFor". Invalidates all +// iterators. +func (this *ForgeFedTracksTicketsForProperty) PrependActivityStreamsTentativeReject(v vocab.ActivityStreamsTentativeReject) { + this.properties = append([]*ForgeFedTracksTicketsForPropertyIterator{{ + activitystreamsTentativeRejectMember: v, + alias: this.alias, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependActivityStreamsTombstone prepends a Tombstone value to the front of a +// list of the property "tracksTicketsFor". Invalidates all iterators. +func (this *ForgeFedTracksTicketsForProperty) PrependActivityStreamsTombstone(v vocab.ActivityStreamsTombstone) { + this.properties = append([]*ForgeFedTracksTicketsForPropertyIterator{{ + activitystreamsTombstoneMember: v, + alias: this.alias, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependActivityStreamsTravel prepends a Travel value to the front of a list of +// the property "tracksTicketsFor". Invalidates all iterators. +func (this *ForgeFedTracksTicketsForProperty) PrependActivityStreamsTravel(v vocab.ActivityStreamsTravel) { + this.properties = append([]*ForgeFedTracksTicketsForPropertyIterator{{ + activitystreamsTravelMember: v, + alias: this.alias, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependActivityStreamsUndo prepends a Undo value to the front of a list of the +// property "tracksTicketsFor". Invalidates all iterators. +func (this *ForgeFedTracksTicketsForProperty) PrependActivityStreamsUndo(v vocab.ActivityStreamsUndo) { + this.properties = append([]*ForgeFedTracksTicketsForPropertyIterator{{ + activitystreamsUndoMember: v, + alias: this.alias, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependActivityStreamsUpdate prepends a Update value to the front of a list of +// the property "tracksTicketsFor". Invalidates all iterators. +func (this *ForgeFedTracksTicketsForProperty) PrependActivityStreamsUpdate(v vocab.ActivityStreamsUpdate) { + this.properties = append([]*ForgeFedTracksTicketsForPropertyIterator{{ + activitystreamsUpdateMember: v, + alias: this.alias, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependActivityStreamsVideo prepends a Video value to the front of a list of +// the property "tracksTicketsFor". Invalidates all iterators. +func (this *ForgeFedTracksTicketsForProperty) PrependActivityStreamsVideo(v vocab.ActivityStreamsVideo) { + this.properties = append([]*ForgeFedTracksTicketsForPropertyIterator{{ + activitystreamsVideoMember: v, + alias: this.alias, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependActivityStreamsView prepends a View value to the front of a list of the +// property "tracksTicketsFor". Invalidates all iterators. +func (this *ForgeFedTracksTicketsForProperty) PrependActivityStreamsView(v vocab.ActivityStreamsView) { + this.properties = append([]*ForgeFedTracksTicketsForPropertyIterator{{ + activitystreamsViewMember: v, + alias: this.alias, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependForgeFedBranch prepends a Branch value to the front of a list of the +// property "tracksTicketsFor". Invalidates all iterators. +func (this *ForgeFedTracksTicketsForProperty) PrependForgeFedBranch(v vocab.ForgeFedBranch) { + this.properties = append([]*ForgeFedTracksTicketsForPropertyIterator{{ + alias: this.alias, + forgefedBranchMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependForgeFedCommit prepends a Commit value to the front of a list of the +// property "tracksTicketsFor". Invalidates all iterators. +func (this *ForgeFedTracksTicketsForProperty) PrependForgeFedCommit(v vocab.ForgeFedCommit) { + this.properties = append([]*ForgeFedTracksTicketsForPropertyIterator{{ + alias: this.alias, + forgefedCommitMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependForgeFedPush prepends a Push value to the front of a list of the +// property "tracksTicketsFor". Invalidates all iterators. +func (this *ForgeFedTracksTicketsForProperty) PrependForgeFedPush(v vocab.ForgeFedPush) { + this.properties = append([]*ForgeFedTracksTicketsForPropertyIterator{{ + alias: this.alias, + forgefedPushMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependForgeFedRepository prepends a Repository value to the front of a list of +// the property "tracksTicketsFor". Invalidates all iterators. +func (this *ForgeFedTracksTicketsForProperty) PrependForgeFedRepository(v vocab.ForgeFedRepository) { + this.properties = append([]*ForgeFedTracksTicketsForPropertyIterator{{ + alias: this.alias, + forgefedRepositoryMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependForgeFedTicket prepends a Ticket value to the front of a list of the +// property "tracksTicketsFor". Invalidates all iterators. +func (this *ForgeFedTracksTicketsForProperty) PrependForgeFedTicket(v vocab.ForgeFedTicket) { + this.properties = append([]*ForgeFedTracksTicketsForPropertyIterator{{ + alias: this.alias, + forgefedTicketMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependForgeFedTicketDependency prepends a TicketDependency value to the front +// of a list of the property "tracksTicketsFor". Invalidates all iterators. +func (this *ForgeFedTracksTicketsForProperty) PrependForgeFedTicketDependency(v vocab.ForgeFedTicketDependency) { + this.properties = append([]*ForgeFedTracksTicketsForPropertyIterator{{ + alias: this.alias, + forgefedTicketDependencyMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependIRI prepends an IRI value to the front of a list of the property +// "tracksTicketsFor". +func (this *ForgeFedTracksTicketsForProperty) PrependIRI(v *url.URL) { + this.properties = append([]*ForgeFedTracksTicketsForPropertyIterator{{ + alias: this.alias, + iri: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependTootEmoji prepends a Emoji value to the front of a list of the property +// "tracksTicketsFor". Invalidates all iterators. +func (this *ForgeFedTracksTicketsForProperty) PrependTootEmoji(v vocab.TootEmoji) { + this.properties = append([]*ForgeFedTracksTicketsForPropertyIterator{{ + alias: this.alias, + myIdx: 0, + parent: this, + tootEmojiMember: v, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependTootIdentityProof prepends a IdentityProof value to the front of a list +// of the property "tracksTicketsFor". Invalidates all iterators. +func (this *ForgeFedTracksTicketsForProperty) PrependTootIdentityProof(v vocab.TootIdentityProof) { + this.properties = append([]*ForgeFedTracksTicketsForPropertyIterator{{ + alias: this.alias, + myIdx: 0, + parent: this, + tootIdentityProofMember: v, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependType prepends an arbitrary type value to the front of a list of the +// property "tracksTicketsFor". Invalidates all iterators. Returns an error if +// the type is not a valid one to set for this property. +func (this *ForgeFedTracksTicketsForProperty) PrependType(t vocab.Type) error { + n := &ForgeFedTracksTicketsForPropertyIterator{ + alias: this.alias, + myIdx: 0, + parent: this, + } + if err := n.SetType(t); err != nil { + return err + } + this.properties = append([]*ForgeFedTracksTicketsForPropertyIterator{n}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } + return nil +} + +// Remove deletes an element at the specified index from a list of the property +// "tracksTicketsFor", regardless of its type. Panics if the index is out of +// bounds. Invalidates all iterators. +func (this *ForgeFedTracksTicketsForProperty) Remove(idx int) { + (this.properties)[idx].parent = nil + copy((this.properties)[idx:], (this.properties)[idx+1:]) + (this.properties)[len(this.properties)-1] = &ForgeFedTracksTicketsForPropertyIterator{} + this.properties = (this.properties)[:len(this.properties)-1] + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// Serialize converts this into an interface representation suitable for +// marshalling into a text or binary format. Applications should not need this +// function as most typical use cases serialize types instead of individual +// properties. It is exposed for alternatives to go-fed implementations to use. +func (this ForgeFedTracksTicketsForProperty) Serialize() (interface{}, error) { + s := make([]interface{}, 0, len(this.properties)) + for _, iterator := range this.properties { + if b, err := iterator.serialize(); err != nil { + return s, err + } else { + s = append(s, b) + } + } + // Shortcut: if serializing one value, don't return an array -- pretty sure other Fediverse software would choke on a "type" value with array, for example. + if len(s) == 1 { + return s[0], nil + } + return s, nil +} + +// SetActivityStreamsAccept sets a Accept value to be at the specified index for +// the property "tracksTicketsFor". Panics if the index is out of bounds. +// Invalidates all iterators. +func (this *ForgeFedTracksTicketsForProperty) SetActivityStreamsAccept(idx int, v vocab.ActivityStreamsAccept) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ForgeFedTracksTicketsForPropertyIterator{ + activitystreamsAcceptMember: v, + alias: this.alias, + myIdx: idx, + parent: this, + } +} + +// SetActivityStreamsActivity sets a Activity value to be at the specified index +// for the property "tracksTicketsFor". Panics if the index is out of bounds. +// Invalidates all iterators. +func (this *ForgeFedTracksTicketsForProperty) SetActivityStreamsActivity(idx int, v vocab.ActivityStreamsActivity) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ForgeFedTracksTicketsForPropertyIterator{ + activitystreamsActivityMember: v, + alias: this.alias, + myIdx: idx, + parent: this, + } +} + +// SetActivityStreamsAdd sets a Add value to be at the specified index for the +// property "tracksTicketsFor". Panics if the index is out of bounds. +// Invalidates all iterators. +func (this *ForgeFedTracksTicketsForProperty) SetActivityStreamsAdd(idx int, v vocab.ActivityStreamsAdd) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ForgeFedTracksTicketsForPropertyIterator{ + activitystreamsAddMember: v, + alias: this.alias, + myIdx: idx, + parent: this, + } +} + +// SetActivityStreamsAnnounce sets a Announce value to be at the specified index +// for the property "tracksTicketsFor". Panics if the index is out of bounds. +// Invalidates all iterators. +func (this *ForgeFedTracksTicketsForProperty) SetActivityStreamsAnnounce(idx int, v vocab.ActivityStreamsAnnounce) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ForgeFedTracksTicketsForPropertyIterator{ + activitystreamsAnnounceMember: v, + alias: this.alias, + myIdx: idx, + parent: this, + } +} + +// SetActivityStreamsApplication sets a Application value to be at the specified +// index for the property "tracksTicketsFor". Panics if the index is out of +// bounds. Invalidates all iterators. +func (this *ForgeFedTracksTicketsForProperty) SetActivityStreamsApplication(idx int, v vocab.ActivityStreamsApplication) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ForgeFedTracksTicketsForPropertyIterator{ + activitystreamsApplicationMember: v, + alias: this.alias, + myIdx: idx, + parent: this, + } +} + +// SetActivityStreamsArrive sets a Arrive value to be at the specified index for +// the property "tracksTicketsFor". Panics if the index is out of bounds. +// Invalidates all iterators. +func (this *ForgeFedTracksTicketsForProperty) SetActivityStreamsArrive(idx int, v vocab.ActivityStreamsArrive) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ForgeFedTracksTicketsForPropertyIterator{ + activitystreamsArriveMember: v, + alias: this.alias, + myIdx: idx, + parent: this, + } +} + +// SetActivityStreamsArticle sets a Article value to be at the specified index for +// the property "tracksTicketsFor". Panics if the index is out of bounds. +// Invalidates all iterators. +func (this *ForgeFedTracksTicketsForProperty) SetActivityStreamsArticle(idx int, v vocab.ActivityStreamsArticle) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ForgeFedTracksTicketsForPropertyIterator{ + activitystreamsArticleMember: v, + alias: this.alias, + myIdx: idx, + parent: this, + } +} + +// SetActivityStreamsAudio sets a Audio value to be at the specified index for the +// property "tracksTicketsFor". Panics if the index is out of bounds. +// Invalidates all iterators. +func (this *ForgeFedTracksTicketsForProperty) SetActivityStreamsAudio(idx int, v vocab.ActivityStreamsAudio) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ForgeFedTracksTicketsForPropertyIterator{ + activitystreamsAudioMember: v, + alias: this.alias, + myIdx: idx, + parent: this, + } +} + +// SetActivityStreamsBlock sets a Block value to be at the specified index for the +// property "tracksTicketsFor". Panics if the index is out of bounds. +// Invalidates all iterators. +func (this *ForgeFedTracksTicketsForProperty) SetActivityStreamsBlock(idx int, v vocab.ActivityStreamsBlock) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ForgeFedTracksTicketsForPropertyIterator{ + activitystreamsBlockMember: v, + alias: this.alias, + myIdx: idx, + parent: this, + } +} + +// SetActivityStreamsCollection sets a Collection value to be at the specified +// index for the property "tracksTicketsFor". Panics if the index is out of +// bounds. Invalidates all iterators. +func (this *ForgeFedTracksTicketsForProperty) SetActivityStreamsCollection(idx int, v vocab.ActivityStreamsCollection) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ForgeFedTracksTicketsForPropertyIterator{ + activitystreamsCollectionMember: v, + alias: this.alias, + myIdx: idx, + parent: this, + } +} + +// SetActivityStreamsCollectionPage sets a CollectionPage value to be at the +// specified index for the property "tracksTicketsFor". Panics if the index is +// out of bounds. Invalidates all iterators. +func (this *ForgeFedTracksTicketsForProperty) SetActivityStreamsCollectionPage(idx int, v vocab.ActivityStreamsCollectionPage) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ForgeFedTracksTicketsForPropertyIterator{ + activitystreamsCollectionPageMember: v, + alias: this.alias, + myIdx: idx, + parent: this, + } +} + +// SetActivityStreamsCreate sets a Create value to be at the specified index for +// the property "tracksTicketsFor". Panics if the index is out of bounds. +// Invalidates all iterators. +func (this *ForgeFedTracksTicketsForProperty) SetActivityStreamsCreate(idx int, v vocab.ActivityStreamsCreate) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ForgeFedTracksTicketsForPropertyIterator{ + activitystreamsCreateMember: v, + alias: this.alias, + myIdx: idx, + parent: this, + } +} + +// SetActivityStreamsDelete sets a Delete value to be at the specified index for +// the property "tracksTicketsFor". Panics if the index is out of bounds. +// Invalidates all iterators. +func (this *ForgeFedTracksTicketsForProperty) SetActivityStreamsDelete(idx int, v vocab.ActivityStreamsDelete) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ForgeFedTracksTicketsForPropertyIterator{ + activitystreamsDeleteMember: v, + alias: this.alias, + myIdx: idx, + parent: this, + } +} + +// SetActivityStreamsDislike sets a Dislike value to be at the specified index for +// the property "tracksTicketsFor". Panics if the index is out of bounds. +// Invalidates all iterators. +func (this *ForgeFedTracksTicketsForProperty) SetActivityStreamsDislike(idx int, v vocab.ActivityStreamsDislike) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ForgeFedTracksTicketsForPropertyIterator{ + activitystreamsDislikeMember: v, + alias: this.alias, + myIdx: idx, + parent: this, + } +} + +// SetActivityStreamsDocument sets a Document value to be at the specified index +// for the property "tracksTicketsFor". Panics if the index is out of bounds. +// Invalidates all iterators. +func (this *ForgeFedTracksTicketsForProperty) SetActivityStreamsDocument(idx int, v vocab.ActivityStreamsDocument) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ForgeFedTracksTicketsForPropertyIterator{ + activitystreamsDocumentMember: v, + alias: this.alias, + myIdx: idx, + parent: this, + } +} + +// SetActivityStreamsEvent sets a Event value to be at the specified index for the +// property "tracksTicketsFor". Panics if the index is out of bounds. +// Invalidates all iterators. +func (this *ForgeFedTracksTicketsForProperty) SetActivityStreamsEvent(idx int, v vocab.ActivityStreamsEvent) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ForgeFedTracksTicketsForPropertyIterator{ + activitystreamsEventMember: v, + alias: this.alias, + myIdx: idx, + parent: this, + } +} + +// SetActivityStreamsFlag sets a Flag value to be at the specified index for the +// property "tracksTicketsFor". Panics if the index is out of bounds. +// Invalidates all iterators. +func (this *ForgeFedTracksTicketsForProperty) SetActivityStreamsFlag(idx int, v vocab.ActivityStreamsFlag) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ForgeFedTracksTicketsForPropertyIterator{ + activitystreamsFlagMember: v, + alias: this.alias, + myIdx: idx, + parent: this, + } +} + +// SetActivityStreamsFollow sets a Follow value to be at the specified index for +// the property "tracksTicketsFor". Panics if the index is out of bounds. +// Invalidates all iterators. +func (this *ForgeFedTracksTicketsForProperty) SetActivityStreamsFollow(idx int, v vocab.ActivityStreamsFollow) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ForgeFedTracksTicketsForPropertyIterator{ + activitystreamsFollowMember: v, + alias: this.alias, + myIdx: idx, + parent: this, + } +} + +// SetActivityStreamsGroup sets a Group value to be at the specified index for the +// property "tracksTicketsFor". Panics if the index is out of bounds. +// Invalidates all iterators. +func (this *ForgeFedTracksTicketsForProperty) SetActivityStreamsGroup(idx int, v vocab.ActivityStreamsGroup) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ForgeFedTracksTicketsForPropertyIterator{ + activitystreamsGroupMember: v, + alias: this.alias, + myIdx: idx, + parent: this, + } +} + +// SetActivityStreamsIgnore sets a Ignore value to be at the specified index for +// the property "tracksTicketsFor". Panics if the index is out of bounds. +// Invalidates all iterators. +func (this *ForgeFedTracksTicketsForProperty) SetActivityStreamsIgnore(idx int, v vocab.ActivityStreamsIgnore) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ForgeFedTracksTicketsForPropertyIterator{ + activitystreamsIgnoreMember: v, + alias: this.alias, + myIdx: idx, + parent: this, + } +} + +// SetActivityStreamsImage sets a Image value to be at the specified index for the +// property "tracksTicketsFor". Panics if the index is out of bounds. +// Invalidates all iterators. +func (this *ForgeFedTracksTicketsForProperty) SetActivityStreamsImage(idx int, v vocab.ActivityStreamsImage) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ForgeFedTracksTicketsForPropertyIterator{ + activitystreamsImageMember: v, + alias: this.alias, + myIdx: idx, + parent: this, + } +} + +// SetActivityStreamsIntransitiveActivity sets a IntransitiveActivity value to be +// at the specified index for the property "tracksTicketsFor". Panics if the +// index is out of bounds. Invalidates all iterators. +func (this *ForgeFedTracksTicketsForProperty) SetActivityStreamsIntransitiveActivity(idx int, v vocab.ActivityStreamsIntransitiveActivity) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ForgeFedTracksTicketsForPropertyIterator{ + activitystreamsIntransitiveActivityMember: v, + alias: this.alias, + myIdx: idx, + parent: this, + } +} + +// SetActivityStreamsInvite sets a Invite value to be at the specified index for +// the property "tracksTicketsFor". Panics if the index is out of bounds. +// Invalidates all iterators. +func (this *ForgeFedTracksTicketsForProperty) SetActivityStreamsInvite(idx int, v vocab.ActivityStreamsInvite) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ForgeFedTracksTicketsForPropertyIterator{ + activitystreamsInviteMember: v, + alias: this.alias, + myIdx: idx, + parent: this, + } +} + +// SetActivityStreamsJoin sets a Join value to be at the specified index for the +// property "tracksTicketsFor". Panics if the index is out of bounds. +// Invalidates all iterators. +func (this *ForgeFedTracksTicketsForProperty) SetActivityStreamsJoin(idx int, v vocab.ActivityStreamsJoin) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ForgeFedTracksTicketsForPropertyIterator{ + activitystreamsJoinMember: v, + alias: this.alias, + myIdx: idx, + parent: this, + } +} + +// SetActivityStreamsLeave sets a Leave value to be at the specified index for the +// property "tracksTicketsFor". Panics if the index is out of bounds. +// Invalidates all iterators. +func (this *ForgeFedTracksTicketsForProperty) SetActivityStreamsLeave(idx int, v vocab.ActivityStreamsLeave) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ForgeFedTracksTicketsForPropertyIterator{ + activitystreamsLeaveMember: v, + alias: this.alias, + myIdx: idx, + parent: this, + } +} + +// SetActivityStreamsLike sets a Like value to be at the specified index for the +// property "tracksTicketsFor". Panics if the index is out of bounds. +// Invalidates all iterators. +func (this *ForgeFedTracksTicketsForProperty) SetActivityStreamsLike(idx int, v vocab.ActivityStreamsLike) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ForgeFedTracksTicketsForPropertyIterator{ + activitystreamsLikeMember: v, + alias: this.alias, + myIdx: idx, + parent: this, + } +} + +// SetActivityStreamsListen sets a Listen value to be at the specified index for +// the property "tracksTicketsFor". Panics if the index is out of bounds. +// Invalidates all iterators. +func (this *ForgeFedTracksTicketsForProperty) SetActivityStreamsListen(idx int, v vocab.ActivityStreamsListen) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ForgeFedTracksTicketsForPropertyIterator{ + activitystreamsListenMember: v, + alias: this.alias, + myIdx: idx, + parent: this, + } +} + +// SetActivityStreamsMove sets a Move value to be at the specified index for the +// property "tracksTicketsFor". Panics if the index is out of bounds. +// Invalidates all iterators. +func (this *ForgeFedTracksTicketsForProperty) SetActivityStreamsMove(idx int, v vocab.ActivityStreamsMove) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ForgeFedTracksTicketsForPropertyIterator{ + activitystreamsMoveMember: v, + alias: this.alias, + myIdx: idx, + parent: this, + } +} + +// SetActivityStreamsNote sets a Note value to be at the specified index for the +// property "tracksTicketsFor". Panics if the index is out of bounds. +// Invalidates all iterators. +func (this *ForgeFedTracksTicketsForProperty) SetActivityStreamsNote(idx int, v vocab.ActivityStreamsNote) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ForgeFedTracksTicketsForPropertyIterator{ + activitystreamsNoteMember: v, + alias: this.alias, + myIdx: idx, + parent: this, + } +} + +// SetActivityStreamsObject sets a Object value to be at the specified index for +// the property "tracksTicketsFor". Panics if the index is out of bounds. +// Invalidates all iterators. +func (this *ForgeFedTracksTicketsForProperty) SetActivityStreamsObject(idx int, v vocab.ActivityStreamsObject) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ForgeFedTracksTicketsForPropertyIterator{ + activitystreamsObjectMember: v, + alias: this.alias, + myIdx: idx, + parent: this, + } +} + +// SetActivityStreamsOffer sets a Offer value to be at the specified index for the +// property "tracksTicketsFor". Panics if the index is out of bounds. +// Invalidates all iterators. +func (this *ForgeFedTracksTicketsForProperty) SetActivityStreamsOffer(idx int, v vocab.ActivityStreamsOffer) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ForgeFedTracksTicketsForPropertyIterator{ + activitystreamsOfferMember: v, + alias: this.alias, + myIdx: idx, + parent: this, + } +} + +// SetActivityStreamsOrderedCollection sets a OrderedCollection value to be at the +// specified index for the property "tracksTicketsFor". Panics if the index is +// out of bounds. Invalidates all iterators. +func (this *ForgeFedTracksTicketsForProperty) SetActivityStreamsOrderedCollection(idx int, v vocab.ActivityStreamsOrderedCollection) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ForgeFedTracksTicketsForPropertyIterator{ + activitystreamsOrderedCollectionMember: v, + alias: this.alias, + myIdx: idx, + parent: this, + } +} + +// SetActivityStreamsOrderedCollectionPage sets a OrderedCollectionPage value to +// be at the specified index for the property "tracksTicketsFor". Panics if +// the index is out of bounds. Invalidates all iterators. +func (this *ForgeFedTracksTicketsForProperty) SetActivityStreamsOrderedCollectionPage(idx int, v vocab.ActivityStreamsOrderedCollectionPage) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ForgeFedTracksTicketsForPropertyIterator{ + activitystreamsOrderedCollectionPageMember: v, + alias: this.alias, + myIdx: idx, + parent: this, + } +} + +// SetActivityStreamsOrganization sets a Organization value to be at the specified +// index for the property "tracksTicketsFor". Panics if the index is out of +// bounds. Invalidates all iterators. +func (this *ForgeFedTracksTicketsForProperty) SetActivityStreamsOrganization(idx int, v vocab.ActivityStreamsOrganization) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ForgeFedTracksTicketsForPropertyIterator{ + activitystreamsOrganizationMember: v, + alias: this.alias, + myIdx: idx, + parent: this, + } +} + +// SetActivityStreamsPage sets a Page value to be at the specified index for the +// property "tracksTicketsFor". Panics if the index is out of bounds. +// Invalidates all iterators. +func (this *ForgeFedTracksTicketsForProperty) SetActivityStreamsPage(idx int, v vocab.ActivityStreamsPage) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ForgeFedTracksTicketsForPropertyIterator{ + activitystreamsPageMember: v, + alias: this.alias, + myIdx: idx, + parent: this, + } +} + +// SetActivityStreamsPerson sets a Person value to be at the specified index for +// the property "tracksTicketsFor". Panics if the index is out of bounds. +// Invalidates all iterators. +func (this *ForgeFedTracksTicketsForProperty) SetActivityStreamsPerson(idx int, v vocab.ActivityStreamsPerson) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ForgeFedTracksTicketsForPropertyIterator{ + activitystreamsPersonMember: v, + alias: this.alias, + myIdx: idx, + parent: this, + } +} + +// SetActivityStreamsPlace sets a Place value to be at the specified index for the +// property "tracksTicketsFor". Panics if the index is out of bounds. +// Invalidates all iterators. +func (this *ForgeFedTracksTicketsForProperty) SetActivityStreamsPlace(idx int, v vocab.ActivityStreamsPlace) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ForgeFedTracksTicketsForPropertyIterator{ + activitystreamsPlaceMember: v, + alias: this.alias, + myIdx: idx, + parent: this, + } +} + +// SetActivityStreamsProfile sets a Profile value to be at the specified index for +// the property "tracksTicketsFor". Panics if the index is out of bounds. +// Invalidates all iterators. +func (this *ForgeFedTracksTicketsForProperty) SetActivityStreamsProfile(idx int, v vocab.ActivityStreamsProfile) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ForgeFedTracksTicketsForPropertyIterator{ + activitystreamsProfileMember: v, + alias: this.alias, + myIdx: idx, + parent: this, + } +} + +// SetActivityStreamsQuestion sets a Question value to be at the specified index +// for the property "tracksTicketsFor". Panics if the index is out of bounds. +// Invalidates all iterators. +func (this *ForgeFedTracksTicketsForProperty) SetActivityStreamsQuestion(idx int, v vocab.ActivityStreamsQuestion) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ForgeFedTracksTicketsForPropertyIterator{ + activitystreamsQuestionMember: v, + alias: this.alias, + myIdx: idx, + parent: this, + } +} + +// SetActivityStreamsRead sets a Read value to be at the specified index for the +// property "tracksTicketsFor". Panics if the index is out of bounds. +// Invalidates all iterators. +func (this *ForgeFedTracksTicketsForProperty) SetActivityStreamsRead(idx int, v vocab.ActivityStreamsRead) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ForgeFedTracksTicketsForPropertyIterator{ + activitystreamsReadMember: v, + alias: this.alias, + myIdx: idx, + parent: this, + } +} + +// SetActivityStreamsReject sets a Reject value to be at the specified index for +// the property "tracksTicketsFor". Panics if the index is out of bounds. +// Invalidates all iterators. +func (this *ForgeFedTracksTicketsForProperty) SetActivityStreamsReject(idx int, v vocab.ActivityStreamsReject) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ForgeFedTracksTicketsForPropertyIterator{ + activitystreamsRejectMember: v, + alias: this.alias, + myIdx: idx, + parent: this, + } +} + +// SetActivityStreamsRelationship sets a Relationship value to be at the specified +// index for the property "tracksTicketsFor". Panics if the index is out of +// bounds. Invalidates all iterators. +func (this *ForgeFedTracksTicketsForProperty) SetActivityStreamsRelationship(idx int, v vocab.ActivityStreamsRelationship) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ForgeFedTracksTicketsForPropertyIterator{ + activitystreamsRelationshipMember: v, + alias: this.alias, + myIdx: idx, + parent: this, + } +} + +// SetActivityStreamsRemove sets a Remove value to be at the specified index for +// the property "tracksTicketsFor". Panics if the index is out of bounds. +// Invalidates all iterators. +func (this *ForgeFedTracksTicketsForProperty) SetActivityStreamsRemove(idx int, v vocab.ActivityStreamsRemove) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ForgeFedTracksTicketsForPropertyIterator{ + activitystreamsRemoveMember: v, + alias: this.alias, + myIdx: idx, + parent: this, + } +} + +// SetActivityStreamsService sets a Service value to be at the specified index for +// the property "tracksTicketsFor". Panics if the index is out of bounds. +// Invalidates all iterators. +func (this *ForgeFedTracksTicketsForProperty) SetActivityStreamsService(idx int, v vocab.ActivityStreamsService) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ForgeFedTracksTicketsForPropertyIterator{ + activitystreamsServiceMember: v, + alias: this.alias, + myIdx: idx, + parent: this, + } +} + +// SetActivityStreamsTentativeAccept sets a TentativeAccept value to be at the +// specified index for the property "tracksTicketsFor". Panics if the index is +// out of bounds. Invalidates all iterators. +func (this *ForgeFedTracksTicketsForProperty) SetActivityStreamsTentativeAccept(idx int, v vocab.ActivityStreamsTentativeAccept) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ForgeFedTracksTicketsForPropertyIterator{ + activitystreamsTentativeAcceptMember: v, + alias: this.alias, + myIdx: idx, + parent: this, + } +} + +// SetActivityStreamsTentativeReject sets a TentativeReject value to be at the +// specified index for the property "tracksTicketsFor". Panics if the index is +// out of bounds. Invalidates all iterators. +func (this *ForgeFedTracksTicketsForProperty) SetActivityStreamsTentativeReject(idx int, v vocab.ActivityStreamsTentativeReject) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ForgeFedTracksTicketsForPropertyIterator{ + activitystreamsTentativeRejectMember: v, + alias: this.alias, + myIdx: idx, + parent: this, + } +} + +// SetActivityStreamsTombstone sets a Tombstone value to be at the specified index +// for the property "tracksTicketsFor". Panics if the index is out of bounds. +// Invalidates all iterators. +func (this *ForgeFedTracksTicketsForProperty) SetActivityStreamsTombstone(idx int, v vocab.ActivityStreamsTombstone) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ForgeFedTracksTicketsForPropertyIterator{ + activitystreamsTombstoneMember: v, + alias: this.alias, + myIdx: idx, + parent: this, + } +} + +// SetActivityStreamsTravel sets a Travel value to be at the specified index for +// the property "tracksTicketsFor". Panics if the index is out of bounds. +// Invalidates all iterators. +func (this *ForgeFedTracksTicketsForProperty) SetActivityStreamsTravel(idx int, v vocab.ActivityStreamsTravel) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ForgeFedTracksTicketsForPropertyIterator{ + activitystreamsTravelMember: v, + alias: this.alias, + myIdx: idx, + parent: this, + } +} + +// SetActivityStreamsUndo sets a Undo value to be at the specified index for the +// property "tracksTicketsFor". Panics if the index is out of bounds. +// Invalidates all iterators. +func (this *ForgeFedTracksTicketsForProperty) SetActivityStreamsUndo(idx int, v vocab.ActivityStreamsUndo) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ForgeFedTracksTicketsForPropertyIterator{ + activitystreamsUndoMember: v, + alias: this.alias, + myIdx: idx, + parent: this, + } +} + +// SetActivityStreamsUpdate sets a Update value to be at the specified index for +// the property "tracksTicketsFor". Panics if the index is out of bounds. +// Invalidates all iterators. +func (this *ForgeFedTracksTicketsForProperty) SetActivityStreamsUpdate(idx int, v vocab.ActivityStreamsUpdate) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ForgeFedTracksTicketsForPropertyIterator{ + activitystreamsUpdateMember: v, + alias: this.alias, + myIdx: idx, + parent: this, + } +} + +// SetActivityStreamsVideo sets a Video value to be at the specified index for the +// property "tracksTicketsFor". Panics if the index is out of bounds. +// Invalidates all iterators. +func (this *ForgeFedTracksTicketsForProperty) SetActivityStreamsVideo(idx int, v vocab.ActivityStreamsVideo) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ForgeFedTracksTicketsForPropertyIterator{ + activitystreamsVideoMember: v, + alias: this.alias, + myIdx: idx, + parent: this, + } +} + +// SetActivityStreamsView sets a View value to be at the specified index for the +// property "tracksTicketsFor". Panics if the index is out of bounds. +// Invalidates all iterators. +func (this *ForgeFedTracksTicketsForProperty) SetActivityStreamsView(idx int, v vocab.ActivityStreamsView) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ForgeFedTracksTicketsForPropertyIterator{ + activitystreamsViewMember: v, + alias: this.alias, + myIdx: idx, + parent: this, + } +} + +// SetForgeFedBranch sets a Branch value to be at the specified index for the +// property "tracksTicketsFor". Panics if the index is out of bounds. +// Invalidates all iterators. +func (this *ForgeFedTracksTicketsForProperty) SetForgeFedBranch(idx int, v vocab.ForgeFedBranch) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ForgeFedTracksTicketsForPropertyIterator{ + alias: this.alias, + forgefedBranchMember: v, + myIdx: idx, + parent: this, + } +} + +// SetForgeFedCommit sets a Commit value to be at the specified index for the +// property "tracksTicketsFor". Panics if the index is out of bounds. +// Invalidates all iterators. +func (this *ForgeFedTracksTicketsForProperty) SetForgeFedCommit(idx int, v vocab.ForgeFedCommit) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ForgeFedTracksTicketsForPropertyIterator{ + alias: this.alias, + forgefedCommitMember: v, + myIdx: idx, + parent: this, + } +} + +// SetForgeFedPush sets a Push value to be at the specified index for the property +// "tracksTicketsFor". Panics if the index is out of bounds. Invalidates all +// iterators. +func (this *ForgeFedTracksTicketsForProperty) SetForgeFedPush(idx int, v vocab.ForgeFedPush) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ForgeFedTracksTicketsForPropertyIterator{ + alias: this.alias, + forgefedPushMember: v, + myIdx: idx, + parent: this, + } +} + +// SetForgeFedRepository sets a Repository value to be at the specified index for +// the property "tracksTicketsFor". Panics if the index is out of bounds. +// Invalidates all iterators. +func (this *ForgeFedTracksTicketsForProperty) SetForgeFedRepository(idx int, v vocab.ForgeFedRepository) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ForgeFedTracksTicketsForPropertyIterator{ + alias: this.alias, + forgefedRepositoryMember: v, + myIdx: idx, + parent: this, + } +} + +// SetForgeFedTicket sets a Ticket value to be at the specified index for the +// property "tracksTicketsFor". Panics if the index is out of bounds. +// Invalidates all iterators. +func (this *ForgeFedTracksTicketsForProperty) SetForgeFedTicket(idx int, v vocab.ForgeFedTicket) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ForgeFedTracksTicketsForPropertyIterator{ + alias: this.alias, + forgefedTicketMember: v, + myIdx: idx, + parent: this, + } +} + +// SetForgeFedTicketDependency sets a TicketDependency value to be at the +// specified index for the property "tracksTicketsFor". Panics if the index is +// out of bounds. Invalidates all iterators. +func (this *ForgeFedTracksTicketsForProperty) SetForgeFedTicketDependency(idx int, v vocab.ForgeFedTicketDependency) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ForgeFedTracksTicketsForPropertyIterator{ + alias: this.alias, + forgefedTicketDependencyMember: v, + myIdx: idx, + parent: this, + } +} + +// SetIRI sets an IRI value to be at the specified index for the property +// "tracksTicketsFor". Panics if the index is out of bounds. +func (this *ForgeFedTracksTicketsForProperty) SetIRI(idx int, v *url.URL) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ForgeFedTracksTicketsForPropertyIterator{ + alias: this.alias, + iri: v, + myIdx: idx, + parent: this, + } +} + +// SetTootEmoji sets a Emoji value to be at the specified index for the property +// "tracksTicketsFor". Panics if the index is out of bounds. Invalidates all +// iterators. +func (this *ForgeFedTracksTicketsForProperty) SetTootEmoji(idx int, v vocab.TootEmoji) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ForgeFedTracksTicketsForPropertyIterator{ + alias: this.alias, + myIdx: idx, + parent: this, + tootEmojiMember: v, + } +} + +// SetTootIdentityProof sets a IdentityProof value to be at the specified index +// for the property "tracksTicketsFor". Panics if the index is out of bounds. +// Invalidates all iterators. +func (this *ForgeFedTracksTicketsForProperty) SetTootIdentityProof(idx int, v vocab.TootIdentityProof) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ForgeFedTracksTicketsForPropertyIterator{ + alias: this.alias, + myIdx: idx, + parent: this, + tootIdentityProofMember: v, + } +} + +// SetType sets an arbitrary type value to the specified index of the property +// "tracksTicketsFor". Invalidates all iterators. Returns an error if the type +// is not a valid one to set for this property. Panics if the index is out of +// bounds. +func (this *ForgeFedTracksTicketsForProperty) SetType(idx int, t vocab.Type) error { + n := &ForgeFedTracksTicketsForPropertyIterator{ + alias: this.alias, + myIdx: idx, + parent: this, + } + if err := n.SetType(t); err != nil { + return err + } + (this.properties)[idx] = n + return nil +} + +// Swap swaps the location of values at two indices for the "tracksTicketsFor" +// property. +func (this ForgeFedTracksTicketsForProperty) Swap(i, j int) { + this.properties[i], this.properties[j] = this.properties[j], this.properties[i] +} diff --git a/streams/impl/forgefed/type_branch/gen_doc.go b/streams/impl/forgefed/type_branch/gen_doc.go new file mode 100644 index 0000000..c6836a1 --- /dev/null +++ b/streams/impl/forgefed/type_branch/gen_doc.go @@ -0,0 +1,17 @@ +// Code generated by astool. DO NOT EDIT. + +// Package typebranch contains the implementation for the Branch type. All +// applications are strongly encouraged to use the interface instead of this +// concrete definition. The interfaces allow applications to consume only the +// types and properties needed and be independent of the go-fed implementation +// if another alternative implementation is created. This package is +// code-generated and subject to the same license as the go-fed tool used to +// generate it. +// +// This package is independent of other types' and properties' implementations +// by having a Manager injected into it to act as a factory for the concrete +// implementations. The implementations have been generated into their own +// separate subpackages for each vocabulary. +// +// Strongly consider using the interfaces instead of this package. +package typebranch diff --git a/streams/impl/forgefed/type_branch/gen_pkg.go b/streams/impl/forgefed/type_branch/gen_pkg.go new file mode 100644 index 0000000..c96a877 --- /dev/null +++ b/streams/impl/forgefed/type_branch/gen_pkg.go @@ -0,0 +1,191 @@ +// Code generated by astool. DO NOT EDIT. + +package typebranch + +import vocab "github.com/go-fed/activity/streams/vocab" + +var mgr privateManager + +var typePropertyConstructor func() vocab.JSONLDTypeProperty + +// privateManager abstracts the code-generated manager that provides access to +// concrete implementations. +type privateManager interface { + // DeserializeAltitudePropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsAltitudeProperty" non-functional + // property in the vocabulary "ActivityStreams" + DeserializeAltitudePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAltitudeProperty, error) + // DeserializeAttachmentPropertyActivityStreams returns the + // deserialization method for the "ActivityStreamsAttachmentProperty" + // non-functional property in the vocabulary "ActivityStreams" + DeserializeAttachmentPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAttachmentProperty, error) + // DeserializeAttributedToPropertyActivityStreams returns the + // deserialization method for the + // "ActivityStreamsAttributedToProperty" non-functional property in + // the vocabulary "ActivityStreams" + DeserializeAttributedToPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAttributedToProperty, error) + // DeserializeAudiencePropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsAudienceProperty" non-functional + // property in the vocabulary "ActivityStreams" + DeserializeAudiencePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAudienceProperty, error) + // DeserializeBccPropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsBccProperty" non-functional property + // in the vocabulary "ActivityStreams" + DeserializeBccPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsBccProperty, error) + // DeserializeBtoPropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsBtoProperty" non-functional property + // in the vocabulary "ActivityStreams" + DeserializeBtoPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsBtoProperty, error) + // DeserializeCcPropertyActivityStreams returns the deserialization method + // for the "ActivityStreamsCcProperty" non-functional property in the + // vocabulary "ActivityStreams" + DeserializeCcPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsCcProperty, error) + // DeserializeContentPropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsContentProperty" non-functional + // property in the vocabulary "ActivityStreams" + DeserializeContentPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsContentProperty, error) + // DeserializeContextPropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsContextProperty" non-functional + // property in the vocabulary "ActivityStreams" + DeserializeContextPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsContextProperty, error) + // DeserializeDurationPropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsDurationProperty" non-functional + // property in the vocabulary "ActivityStreams" + DeserializeDurationPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsDurationProperty, error) + // DeserializeEndTimePropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsEndTimeProperty" non-functional + // property in the vocabulary "ActivityStreams" + DeserializeEndTimePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsEndTimeProperty, error) + // DeserializeGeneratorPropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsGeneratorProperty" non-functional + // property in the vocabulary "ActivityStreams" + DeserializeGeneratorPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsGeneratorProperty, error) + // DeserializeIconPropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsIconProperty" non-functional + // property in the vocabulary "ActivityStreams" + DeserializeIconPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsIconProperty, error) + // DeserializeIdPropertyJSONLD returns the deserialization method for the + // "JSONLDIdProperty" non-functional property in the vocabulary + // "JSONLD" + DeserializeIdPropertyJSONLD() func(map[string]interface{}, map[string]string) (vocab.JSONLDIdProperty, error) + // DeserializeImagePropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsImageProperty" non-functional + // property in the vocabulary "ActivityStreams" + DeserializeImagePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsImageProperty, error) + // DeserializeInReplyToPropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsInReplyToProperty" non-functional + // property in the vocabulary "ActivityStreams" + DeserializeInReplyToPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsInReplyToProperty, error) + // DeserializeLikesPropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsLikesProperty" non-functional + // property in the vocabulary "ActivityStreams" + DeserializeLikesPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLikesProperty, error) + // DeserializeLocationPropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsLocationProperty" non-functional + // property in the vocabulary "ActivityStreams" + DeserializeLocationPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLocationProperty, error) + // DeserializeMediaTypePropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsMediaTypeProperty" non-functional + // property in the vocabulary "ActivityStreams" + DeserializeMediaTypePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsMediaTypeProperty, error) + // DeserializeNamePropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsNameProperty" non-functional + // property in the vocabulary "ActivityStreams" + DeserializeNamePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsNameProperty, error) + // DeserializeObjectPropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsObjectProperty" non-functional + // property in the vocabulary "ActivityStreams" + DeserializeObjectPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsObjectProperty, error) + // DeserializePreviewPropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsPreviewProperty" non-functional + // property in the vocabulary "ActivityStreams" + DeserializePreviewPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsPreviewProperty, error) + // DeserializePublishedPropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsPublishedProperty" non-functional + // property in the vocabulary "ActivityStreams" + DeserializePublishedPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsPublishedProperty, error) + // DeserializeRefPropertyForgeFed returns the deserialization method for + // the "ForgeFedRefProperty" non-functional property in the vocabulary + // "ForgeFed" + DeserializeRefPropertyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedRefProperty, error) + // DeserializeRepliesPropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsRepliesProperty" non-functional + // property in the vocabulary "ActivityStreams" + DeserializeRepliesPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsRepliesProperty, error) + // DeserializeSharesPropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsSharesProperty" non-functional + // property in the vocabulary "ActivityStreams" + DeserializeSharesPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSharesProperty, error) + // DeserializeSourcePropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsSourceProperty" non-functional + // property in the vocabulary "ActivityStreams" + DeserializeSourcePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSourceProperty, error) + // DeserializeStartTimePropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsStartTimeProperty" non-functional + // property in the vocabulary "ActivityStreams" + DeserializeStartTimePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsStartTimeProperty, error) + // DeserializeSummaryPropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsSummaryProperty" non-functional + // property in the vocabulary "ActivityStreams" + DeserializeSummaryPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSummaryProperty, error) + // DeserializeTagPropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsTagProperty" non-functional property + // in the vocabulary "ActivityStreams" + DeserializeTagPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTagProperty, error) + // DeserializeTeamPropertyForgeFed returns the deserialization method for + // the "ForgeFedTeamProperty" non-functional property in the + // vocabulary "ForgeFed" + DeserializeTeamPropertyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTeamProperty, error) + // DeserializeTicketsTrackedByPropertyForgeFed returns the deserialization + // method for the "ForgeFedTicketsTrackedByProperty" non-functional + // property in the vocabulary "ForgeFed" + DeserializeTicketsTrackedByPropertyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTicketsTrackedByProperty, error) + // DeserializeToPropertyActivityStreams returns the deserialization method + // for the "ActivityStreamsToProperty" non-functional property in the + // vocabulary "ActivityStreams" + DeserializeToPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsToProperty, error) + // DeserializeTracksTicketsForPropertyForgeFed returns the deserialization + // method for the "ForgeFedTracksTicketsForProperty" non-functional + // property in the vocabulary "ForgeFed" + DeserializeTracksTicketsForPropertyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTracksTicketsForProperty, error) + // DeserializeTypePropertyJSONLD returns the deserialization method for + // the "JSONLDTypeProperty" non-functional property in the vocabulary + // "JSONLD" + DeserializeTypePropertyJSONLD() func(map[string]interface{}, map[string]string) (vocab.JSONLDTypeProperty, error) + // DeserializeUpdatedPropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsUpdatedProperty" non-functional + // property in the vocabulary "ActivityStreams" + DeserializeUpdatedPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsUpdatedProperty, error) + // DeserializeUrlPropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsUrlProperty" non-functional property + // in the vocabulary "ActivityStreams" + DeserializeUrlPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsUrlProperty, error) +} + +// jsonldContexter is a private interface to determine the JSON-LD contexts and +// aliases needed for functional and non-functional properties. It is a helper +// interface for this implementation. +type jsonldContexter interface { + // JSONLDContext returns the JSONLD URIs required in the context string + // for this property and the specific values that are set. The value + // in the map is the alias used to import the property's value or + // values. + JSONLDContext() map[string]string +} + +// SetManager sets the manager package-global variable. For internal use only, do +// not use as part of Application behavior. Must be called at golang init time. +func SetManager(m privateManager) { + mgr = m +} + +// SetTypePropertyConstructor sets the "type" property's constructor in the +// package-global variable. For internal use only, do not use as part of +// Application behavior. Must be called at golang init time. Permits +// ActivityStreams types to correctly set their "type" property at +// construction time, so users don't have to remember to do so each time. It +// is dependency injected so other go-fed compatible implementations could +// inject their own type. +func SetTypePropertyConstructor(f func() vocab.JSONLDTypeProperty) { + typePropertyConstructor = f +} diff --git a/streams/impl/forgefed/type_branch/gen_type_forgefed_branch.go b/streams/impl/forgefed/type_branch/gen_type_forgefed_branch.go new file mode 100644 index 0000000..81c057c --- /dev/null +++ b/streams/impl/forgefed/type_branch/gen_type_forgefed_branch.go @@ -0,0 +1,1778 @@ +// Code generated by astool. DO NOT EDIT. + +package typebranch + +import ( + "fmt" + vocab "github.com/go-fed/activity/streams/vocab" + "strings" +) + +// Represents a named variable reference to a version of the Repository, typically +// used for committing changes in parallel to other development, and usually +// eventually merging the changes into the main history line. +// +// { +// "@context": [ +// "https://www.w3.org/ns/activitystreams", +// "https://forgefed.peers.community/ns" +// ], +// "context": "https://example.dev/luke/myrepo", +// "id": "https://example.dev/luke/myrepo/branches/master", +// "name": "master", +// "ref": "refs/heads/master", +// "type": "Branch" +// } +type ForgeFedBranch struct { + ActivityStreamsAltitude vocab.ActivityStreamsAltitudeProperty + ActivityStreamsAttachment vocab.ActivityStreamsAttachmentProperty + ActivityStreamsAttributedTo vocab.ActivityStreamsAttributedToProperty + ActivityStreamsAudience vocab.ActivityStreamsAudienceProperty + ActivityStreamsBcc vocab.ActivityStreamsBccProperty + ActivityStreamsBto vocab.ActivityStreamsBtoProperty + ActivityStreamsCc vocab.ActivityStreamsCcProperty + ActivityStreamsContent vocab.ActivityStreamsContentProperty + ActivityStreamsContext vocab.ActivityStreamsContextProperty + ActivityStreamsDuration vocab.ActivityStreamsDurationProperty + ActivityStreamsEndTime vocab.ActivityStreamsEndTimeProperty + ActivityStreamsGenerator vocab.ActivityStreamsGeneratorProperty + ActivityStreamsIcon vocab.ActivityStreamsIconProperty + JSONLDId vocab.JSONLDIdProperty + ActivityStreamsImage vocab.ActivityStreamsImageProperty + ActivityStreamsInReplyTo vocab.ActivityStreamsInReplyToProperty + ActivityStreamsLikes vocab.ActivityStreamsLikesProperty + ActivityStreamsLocation vocab.ActivityStreamsLocationProperty + ActivityStreamsMediaType vocab.ActivityStreamsMediaTypeProperty + ActivityStreamsName vocab.ActivityStreamsNameProperty + ActivityStreamsObject vocab.ActivityStreamsObjectProperty + ActivityStreamsPreview vocab.ActivityStreamsPreviewProperty + ActivityStreamsPublished vocab.ActivityStreamsPublishedProperty + ForgeFedRef vocab.ForgeFedRefProperty + ActivityStreamsReplies vocab.ActivityStreamsRepliesProperty + ActivityStreamsShares vocab.ActivityStreamsSharesProperty + ActivityStreamsSource vocab.ActivityStreamsSourceProperty + ActivityStreamsStartTime vocab.ActivityStreamsStartTimeProperty + ActivityStreamsSummary vocab.ActivityStreamsSummaryProperty + ActivityStreamsTag vocab.ActivityStreamsTagProperty + ForgeFedTeam vocab.ForgeFedTeamProperty + ForgeFedTicketsTrackedBy vocab.ForgeFedTicketsTrackedByProperty + ActivityStreamsTo vocab.ActivityStreamsToProperty + ForgeFedTracksTicketsFor vocab.ForgeFedTracksTicketsForProperty + JSONLDType vocab.JSONLDTypeProperty + ActivityStreamsUpdated vocab.ActivityStreamsUpdatedProperty + ActivityStreamsUrl vocab.ActivityStreamsUrlProperty + alias string + unknown map[string]interface{} +} + +// BranchIsDisjointWith returns true if the other provided type is disjoint with +// the Branch type. +func BranchIsDisjointWith(other vocab.Type) bool { + disjointWith := []string{"Link", "Mention"} + for _, disjoint := range disjointWith { + if disjoint == other.GetTypeName() { + return true + } + } + return false +} + +// BranchIsExtendedBy returns true if the other provided type extends from the +// Branch type. Note that it returns false if the types are the same; see the +// "IsOrExtendsBranch" variant instead. +func BranchIsExtendedBy(other vocab.Type) bool { + // Shortcut implementation: is not extended by anything. + return false +} + +// DeserializeBranch creates a Branch from a map representation that has been +// unmarshalled from a text or binary format. +func DeserializeBranch(m map[string]interface{}, aliasMap map[string]string) (*ForgeFedBranch, error) { + alias := "" + aliasPrefix := "" + if a, ok := aliasMap["https://forgefed.peers.community/ns"]; ok { + alias = a + aliasPrefix = a + ":" + } + this := &ForgeFedBranch{ + alias: alias, + unknown: make(map[string]interface{}), + } + if typeValue, ok := m["type"]; !ok { + return nil, fmt.Errorf("no \"type\" property in map") + } else if typeString, ok := typeValue.(string); ok { + typeName := strings.TrimPrefix(typeString, aliasPrefix) + if typeName != "Branch" { + return nil, fmt.Errorf("\"type\" property is not of %q type: %s", "Branch", typeName) + } + // Fall through, success in finding a proper Type + } else if arrType, ok := typeValue.([]interface{}); ok { + found := false + for _, elemVal := range arrType { + if typeString, ok := elemVal.(string); ok && strings.TrimPrefix(typeString, aliasPrefix) == "Branch" { + found = true + break + } + } + if !found { + return nil, fmt.Errorf("could not find a \"type\" property of value %q", "Branch") + } + // Fall through, success in finding a proper Type + } else { + return nil, fmt.Errorf("\"type\" property is unrecognized type: %T", typeValue) + } + // Begin: Known property deserialization + if p, err := mgr.DeserializeAltitudePropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsAltitude = p + } + if p, err := mgr.DeserializeAttachmentPropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsAttachment = p + } + if p, err := mgr.DeserializeAttributedToPropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsAttributedTo = p + } + if p, err := mgr.DeserializeAudiencePropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsAudience = p + } + if p, err := mgr.DeserializeBccPropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsBcc = p + } + if p, err := mgr.DeserializeBtoPropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsBto = p + } + if p, err := mgr.DeserializeCcPropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsCc = p + } + if p, err := mgr.DeserializeContentPropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsContent = p + } + if p, err := mgr.DeserializeContextPropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsContext = p + } + if p, err := mgr.DeserializeDurationPropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsDuration = p + } + if p, err := mgr.DeserializeEndTimePropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsEndTime = p + } + if p, err := mgr.DeserializeGeneratorPropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsGenerator = p + } + if p, err := mgr.DeserializeIconPropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsIcon = p + } + if p, err := mgr.DeserializeIdPropertyJSONLD()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.JSONLDId = p + } + if p, err := mgr.DeserializeImagePropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsImage = p + } + if p, err := mgr.DeserializeInReplyToPropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsInReplyTo = p + } + if p, err := mgr.DeserializeLikesPropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsLikes = p + } + if p, err := mgr.DeserializeLocationPropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsLocation = p + } + if p, err := mgr.DeserializeMediaTypePropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsMediaType = p + } + if p, err := mgr.DeserializeNamePropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsName = p + } + if p, err := mgr.DeserializeObjectPropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsObject = p + } + if p, err := mgr.DeserializePreviewPropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsPreview = p + } + if p, err := mgr.DeserializePublishedPropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsPublished = p + } + if p, err := mgr.DeserializeRefPropertyForgeFed()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ForgeFedRef = p + } + if p, err := mgr.DeserializeRepliesPropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsReplies = p + } + if p, err := mgr.DeserializeSharesPropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsShares = p + } + if p, err := mgr.DeserializeSourcePropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsSource = p + } + if p, err := mgr.DeserializeStartTimePropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsStartTime = p + } + if p, err := mgr.DeserializeSummaryPropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsSummary = p + } + if p, err := mgr.DeserializeTagPropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsTag = p + } + if p, err := mgr.DeserializeTeamPropertyForgeFed()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ForgeFedTeam = p + } + if p, err := mgr.DeserializeTicketsTrackedByPropertyForgeFed()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ForgeFedTicketsTrackedBy = p + } + if p, err := mgr.DeserializeToPropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsTo = p + } + if p, err := mgr.DeserializeTracksTicketsForPropertyForgeFed()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ForgeFedTracksTicketsFor = p + } + if p, err := mgr.DeserializeTypePropertyJSONLD()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.JSONLDType = p + } + if p, err := mgr.DeserializeUpdatedPropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsUpdated = p + } + if p, err := mgr.DeserializeUrlPropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsUrl = p + } + // End: Known property deserialization + + // Begin: Unknown deserialization + for k, v := range m { + // Begin: Code that ensures a property name is unknown + if k == "altitude" { + continue + } else if k == "attachment" { + continue + } else if k == "attributedTo" { + continue + } else if k == "audience" { + continue + } else if k == "bcc" { + continue + } else if k == "bto" { + continue + } else if k == "cc" { + continue + } else if k == "content" { + continue + } else if k == "contentMap" { + continue + } else if k == "context" { + continue + } else if k == "duration" { + continue + } else if k == "endTime" { + continue + } else if k == "generator" { + continue + } else if k == "icon" { + continue + } else if k == "id" { + continue + } else if k == "image" { + continue + } else if k == "inReplyTo" { + continue + } else if k == "likes" { + continue + } else if k == "location" { + continue + } else if k == "mediaType" { + continue + } else if k == "name" { + continue + } else if k == "nameMap" { + continue + } else if k == "object" { + continue + } else if k == "preview" { + continue + } else if k == "published" { + continue + } else if k == "ref" { + continue + } else if k == "replies" { + continue + } else if k == "shares" { + continue + } else if k == "source" { + continue + } else if k == "startTime" { + continue + } else if k == "summary" { + continue + } else if k == "summaryMap" { + continue + } else if k == "tag" { + continue + } else if k == "team" { + continue + } else if k == "ticketsTrackedBy" { + continue + } else if k == "to" { + continue + } else if k == "tracksTicketsFor" { + continue + } else if k == "type" { + continue + } else if k == "updated" { + continue + } else if k == "url" { + continue + } // End: Code that ensures a property name is unknown + + this.unknown[k] = v + } + // End: Unknown deserialization + + return this, nil +} + +// ForgeFedBranchExtends returns true if the Branch type extends from the other +// type. +func ForgeFedBranchExtends(other vocab.Type) bool { + extensions := []string{"Object"} + for _, ext := range extensions { + if ext == other.GetTypeName() { + return true + } + } + return false +} + +// IsOrExtendsBranch returns true if the other provided type is the Branch type or +// extends from the Branch type. +func IsOrExtendsBranch(other vocab.Type) bool { + if other.GetTypeName() == "Branch" { + return true + } + return BranchIsExtendedBy(other) +} + +// NewForgeFedBranch creates a new Branch type +func NewForgeFedBranch() *ForgeFedBranch { + typeProp := typePropertyConstructor() + typeProp.AppendXMLSchemaString("Branch") + return &ForgeFedBranch{ + JSONLDType: typeProp, + alias: "", + unknown: make(map[string]interface{}), + } +} + +// GetActivityStreamsAltitude returns the "altitude" property if it exists, and +// nil otherwise. +func (this ForgeFedBranch) GetActivityStreamsAltitude() vocab.ActivityStreamsAltitudeProperty { + return this.ActivityStreamsAltitude +} + +// GetActivityStreamsAttachment returns the "attachment" property if it exists, +// and nil otherwise. +func (this ForgeFedBranch) GetActivityStreamsAttachment() vocab.ActivityStreamsAttachmentProperty { + return this.ActivityStreamsAttachment +} + +// GetActivityStreamsAttributedTo returns the "attributedTo" property if it +// exists, and nil otherwise. +func (this ForgeFedBranch) GetActivityStreamsAttributedTo() vocab.ActivityStreamsAttributedToProperty { + return this.ActivityStreamsAttributedTo +} + +// GetActivityStreamsAudience returns the "audience" property if it exists, and +// nil otherwise. +func (this ForgeFedBranch) GetActivityStreamsAudience() vocab.ActivityStreamsAudienceProperty { + return this.ActivityStreamsAudience +} + +// GetActivityStreamsBcc returns the "bcc" property if it exists, and nil +// otherwise. +func (this ForgeFedBranch) GetActivityStreamsBcc() vocab.ActivityStreamsBccProperty { + return this.ActivityStreamsBcc +} + +// GetActivityStreamsBto returns the "bto" property if it exists, and nil +// otherwise. +func (this ForgeFedBranch) GetActivityStreamsBto() vocab.ActivityStreamsBtoProperty { + return this.ActivityStreamsBto +} + +// GetActivityStreamsCc returns the "cc" property if it exists, and nil otherwise. +func (this ForgeFedBranch) GetActivityStreamsCc() vocab.ActivityStreamsCcProperty { + return this.ActivityStreamsCc +} + +// GetActivityStreamsContent returns the "content" property if it exists, and nil +// otherwise. +func (this ForgeFedBranch) GetActivityStreamsContent() vocab.ActivityStreamsContentProperty { + return this.ActivityStreamsContent +} + +// GetActivityStreamsContext returns the "context" property if it exists, and nil +// otherwise. +func (this ForgeFedBranch) GetActivityStreamsContext() vocab.ActivityStreamsContextProperty { + return this.ActivityStreamsContext +} + +// GetActivityStreamsDuration returns the "duration" property if it exists, and +// nil otherwise. +func (this ForgeFedBranch) GetActivityStreamsDuration() vocab.ActivityStreamsDurationProperty { + return this.ActivityStreamsDuration +} + +// GetActivityStreamsEndTime returns the "endTime" property if it exists, and nil +// otherwise. +func (this ForgeFedBranch) GetActivityStreamsEndTime() vocab.ActivityStreamsEndTimeProperty { + return this.ActivityStreamsEndTime +} + +// GetActivityStreamsGenerator returns the "generator" property if it exists, and +// nil otherwise. +func (this ForgeFedBranch) GetActivityStreamsGenerator() vocab.ActivityStreamsGeneratorProperty { + return this.ActivityStreamsGenerator +} + +// GetActivityStreamsIcon returns the "icon" property if it exists, and nil +// otherwise. +func (this ForgeFedBranch) GetActivityStreamsIcon() vocab.ActivityStreamsIconProperty { + return this.ActivityStreamsIcon +} + +// GetActivityStreamsImage returns the "image" property if it exists, and nil +// otherwise. +func (this ForgeFedBranch) GetActivityStreamsImage() vocab.ActivityStreamsImageProperty { + return this.ActivityStreamsImage +} + +// GetActivityStreamsInReplyTo returns the "inReplyTo" property if it exists, and +// nil otherwise. +func (this ForgeFedBranch) GetActivityStreamsInReplyTo() vocab.ActivityStreamsInReplyToProperty { + return this.ActivityStreamsInReplyTo +} + +// GetActivityStreamsLikes returns the "likes" property if it exists, and nil +// otherwise. +func (this ForgeFedBranch) GetActivityStreamsLikes() vocab.ActivityStreamsLikesProperty { + return this.ActivityStreamsLikes +} + +// GetActivityStreamsLocation returns the "location" property if it exists, and +// nil otherwise. +func (this ForgeFedBranch) GetActivityStreamsLocation() vocab.ActivityStreamsLocationProperty { + return this.ActivityStreamsLocation +} + +// GetActivityStreamsMediaType returns the "mediaType" property if it exists, and +// nil otherwise. +func (this ForgeFedBranch) GetActivityStreamsMediaType() vocab.ActivityStreamsMediaTypeProperty { + return this.ActivityStreamsMediaType +} + +// GetActivityStreamsName returns the "name" property if it exists, and nil +// otherwise. +func (this ForgeFedBranch) GetActivityStreamsName() vocab.ActivityStreamsNameProperty { + return this.ActivityStreamsName +} + +// GetActivityStreamsObject returns the "object" property if it exists, and nil +// otherwise. +func (this ForgeFedBranch) GetActivityStreamsObject() vocab.ActivityStreamsObjectProperty { + return this.ActivityStreamsObject +} + +// GetActivityStreamsPreview returns the "preview" property if it exists, and nil +// otherwise. +func (this ForgeFedBranch) GetActivityStreamsPreview() vocab.ActivityStreamsPreviewProperty { + return this.ActivityStreamsPreview +} + +// GetActivityStreamsPublished returns the "published" property if it exists, and +// nil otherwise. +func (this ForgeFedBranch) GetActivityStreamsPublished() vocab.ActivityStreamsPublishedProperty { + return this.ActivityStreamsPublished +} + +// GetActivityStreamsReplies returns the "replies" property if it exists, and nil +// otherwise. +func (this ForgeFedBranch) GetActivityStreamsReplies() vocab.ActivityStreamsRepliesProperty { + return this.ActivityStreamsReplies +} + +// GetActivityStreamsShares returns the "shares" property if it exists, and nil +// otherwise. +func (this ForgeFedBranch) GetActivityStreamsShares() vocab.ActivityStreamsSharesProperty { + return this.ActivityStreamsShares +} + +// GetActivityStreamsSource returns the "source" property if it exists, and nil +// otherwise. +func (this ForgeFedBranch) GetActivityStreamsSource() vocab.ActivityStreamsSourceProperty { + return this.ActivityStreamsSource +} + +// GetActivityStreamsStartTime returns the "startTime" property if it exists, and +// nil otherwise. +func (this ForgeFedBranch) GetActivityStreamsStartTime() vocab.ActivityStreamsStartTimeProperty { + return this.ActivityStreamsStartTime +} + +// GetActivityStreamsSummary returns the "summary" property if it exists, and nil +// otherwise. +func (this ForgeFedBranch) GetActivityStreamsSummary() vocab.ActivityStreamsSummaryProperty { + return this.ActivityStreamsSummary +} + +// GetActivityStreamsTag returns the "tag" property if it exists, and nil +// otherwise. +func (this ForgeFedBranch) GetActivityStreamsTag() vocab.ActivityStreamsTagProperty { + return this.ActivityStreamsTag +} + +// GetActivityStreamsTo returns the "to" property if it exists, and nil otherwise. +func (this ForgeFedBranch) GetActivityStreamsTo() vocab.ActivityStreamsToProperty { + return this.ActivityStreamsTo +} + +// GetActivityStreamsUpdated returns the "updated" property if it exists, and nil +// otherwise. +func (this ForgeFedBranch) GetActivityStreamsUpdated() vocab.ActivityStreamsUpdatedProperty { + return this.ActivityStreamsUpdated +} + +// GetActivityStreamsUrl returns the "url" property if it exists, and nil +// otherwise. +func (this ForgeFedBranch) GetActivityStreamsUrl() vocab.ActivityStreamsUrlProperty { + return this.ActivityStreamsUrl +} + +// GetForgeFedRef returns the "ref" property if it exists, and nil otherwise. +func (this ForgeFedBranch) GetForgeFedRef() vocab.ForgeFedRefProperty { + return this.ForgeFedRef +} + +// GetForgeFedTeam returns the "team" property if it exists, and nil otherwise. +func (this ForgeFedBranch) GetForgeFedTeam() vocab.ForgeFedTeamProperty { + return this.ForgeFedTeam +} + +// GetForgeFedTicketsTrackedBy returns the "ticketsTrackedBy" property if it +// exists, and nil otherwise. +func (this ForgeFedBranch) GetForgeFedTicketsTrackedBy() vocab.ForgeFedTicketsTrackedByProperty { + return this.ForgeFedTicketsTrackedBy +} + +// GetForgeFedTracksTicketsFor returns the "tracksTicketsFor" property if it +// exists, and nil otherwise. +func (this ForgeFedBranch) GetForgeFedTracksTicketsFor() vocab.ForgeFedTracksTicketsForProperty { + return this.ForgeFedTracksTicketsFor +} + +// GetJSONLDId returns the "id" property if it exists, and nil otherwise. +func (this ForgeFedBranch) GetJSONLDId() vocab.JSONLDIdProperty { + return this.JSONLDId +} + +// GetJSONLDType returns the "type" property if it exists, and nil otherwise. +func (this ForgeFedBranch) GetJSONLDType() vocab.JSONLDTypeProperty { + return this.JSONLDType +} + +// GetTypeName returns the name of this type. +func (this ForgeFedBranch) GetTypeName() string { + return "Branch" +} + +// GetUnknownProperties returns the unknown properties for the Branch type. Note +// that this should not be used by app developers. It is only used to help +// determine which implementation is LessThan the other. Developers who are +// creating a different implementation of this type's interface can use this +// method in their LessThan implementation, but routine ActivityPub +// applications should not use this to bypass the code generation tool. +func (this ForgeFedBranch) GetUnknownProperties() map[string]interface{} { + return this.unknown +} + +// IsExtending returns true if the Branch type extends from the other type. +func (this ForgeFedBranch) IsExtending(other vocab.Type) bool { + return ForgeFedBranchExtends(other) +} + +// JSONLDContext returns the JSONLD URIs required in the context string for this +// type and the specific properties that are set. The value in the map is the +// alias used to import the type and its properties. +func (this ForgeFedBranch) JSONLDContext() map[string]string { + m := map[string]string{"https://forgefed.peers.community/ns": this.alias} + m = this.helperJSONLDContext(this.ActivityStreamsAltitude, m) + m = this.helperJSONLDContext(this.ActivityStreamsAttachment, m) + m = this.helperJSONLDContext(this.ActivityStreamsAttributedTo, m) + m = this.helperJSONLDContext(this.ActivityStreamsAudience, m) + m = this.helperJSONLDContext(this.ActivityStreamsBcc, m) + m = this.helperJSONLDContext(this.ActivityStreamsBto, m) + m = this.helperJSONLDContext(this.ActivityStreamsCc, m) + m = this.helperJSONLDContext(this.ActivityStreamsContent, m) + m = this.helperJSONLDContext(this.ActivityStreamsContext, m) + m = this.helperJSONLDContext(this.ActivityStreamsDuration, m) + m = this.helperJSONLDContext(this.ActivityStreamsEndTime, m) + m = this.helperJSONLDContext(this.ActivityStreamsGenerator, m) + m = this.helperJSONLDContext(this.ActivityStreamsIcon, m) + m = this.helperJSONLDContext(this.JSONLDId, m) + m = this.helperJSONLDContext(this.ActivityStreamsImage, m) + m = this.helperJSONLDContext(this.ActivityStreamsInReplyTo, m) + m = this.helperJSONLDContext(this.ActivityStreamsLikes, m) + m = this.helperJSONLDContext(this.ActivityStreamsLocation, m) + m = this.helperJSONLDContext(this.ActivityStreamsMediaType, m) + m = this.helperJSONLDContext(this.ActivityStreamsName, m) + m = this.helperJSONLDContext(this.ActivityStreamsObject, m) + m = this.helperJSONLDContext(this.ActivityStreamsPreview, m) + m = this.helperJSONLDContext(this.ActivityStreamsPublished, m) + m = this.helperJSONLDContext(this.ForgeFedRef, m) + m = this.helperJSONLDContext(this.ActivityStreamsReplies, m) + m = this.helperJSONLDContext(this.ActivityStreamsShares, m) + m = this.helperJSONLDContext(this.ActivityStreamsSource, m) + m = this.helperJSONLDContext(this.ActivityStreamsStartTime, m) + m = this.helperJSONLDContext(this.ActivityStreamsSummary, m) + m = this.helperJSONLDContext(this.ActivityStreamsTag, m) + m = this.helperJSONLDContext(this.ForgeFedTeam, m) + m = this.helperJSONLDContext(this.ForgeFedTicketsTrackedBy, m) + m = this.helperJSONLDContext(this.ActivityStreamsTo, m) + m = this.helperJSONLDContext(this.ForgeFedTracksTicketsFor, m) + m = this.helperJSONLDContext(this.JSONLDType, m) + m = this.helperJSONLDContext(this.ActivityStreamsUpdated, m) + m = this.helperJSONLDContext(this.ActivityStreamsUrl, m) + + return m +} + +// LessThan computes if this Branch is lesser, with an arbitrary but stable +// determination. +func (this ForgeFedBranch) LessThan(o vocab.ForgeFedBranch) bool { + // Begin: Compare known properties + // Compare property "altitude" + if lhs, rhs := this.ActivityStreamsAltitude, o.GetActivityStreamsAltitude(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "attachment" + if lhs, rhs := this.ActivityStreamsAttachment, o.GetActivityStreamsAttachment(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "attributedTo" + if lhs, rhs := this.ActivityStreamsAttributedTo, o.GetActivityStreamsAttributedTo(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "audience" + if lhs, rhs := this.ActivityStreamsAudience, o.GetActivityStreamsAudience(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "bcc" + if lhs, rhs := this.ActivityStreamsBcc, o.GetActivityStreamsBcc(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "bto" + if lhs, rhs := this.ActivityStreamsBto, o.GetActivityStreamsBto(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "cc" + if lhs, rhs := this.ActivityStreamsCc, o.GetActivityStreamsCc(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "content" + if lhs, rhs := this.ActivityStreamsContent, o.GetActivityStreamsContent(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "context" + if lhs, rhs := this.ActivityStreamsContext, o.GetActivityStreamsContext(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "duration" + if lhs, rhs := this.ActivityStreamsDuration, o.GetActivityStreamsDuration(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "endTime" + if lhs, rhs := this.ActivityStreamsEndTime, o.GetActivityStreamsEndTime(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "generator" + if lhs, rhs := this.ActivityStreamsGenerator, o.GetActivityStreamsGenerator(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "icon" + if lhs, rhs := this.ActivityStreamsIcon, o.GetActivityStreamsIcon(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "id" + if lhs, rhs := this.JSONLDId, o.GetJSONLDId(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "image" + if lhs, rhs := this.ActivityStreamsImage, o.GetActivityStreamsImage(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "inReplyTo" + if lhs, rhs := this.ActivityStreamsInReplyTo, o.GetActivityStreamsInReplyTo(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "likes" + if lhs, rhs := this.ActivityStreamsLikes, o.GetActivityStreamsLikes(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "location" + if lhs, rhs := this.ActivityStreamsLocation, o.GetActivityStreamsLocation(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "mediaType" + if lhs, rhs := this.ActivityStreamsMediaType, o.GetActivityStreamsMediaType(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "name" + if lhs, rhs := this.ActivityStreamsName, o.GetActivityStreamsName(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "object" + if lhs, rhs := this.ActivityStreamsObject, o.GetActivityStreamsObject(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "preview" + if lhs, rhs := this.ActivityStreamsPreview, o.GetActivityStreamsPreview(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "published" + if lhs, rhs := this.ActivityStreamsPublished, o.GetActivityStreamsPublished(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "ref" + if lhs, rhs := this.ForgeFedRef, o.GetForgeFedRef(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "replies" + if lhs, rhs := this.ActivityStreamsReplies, o.GetActivityStreamsReplies(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "shares" + if lhs, rhs := this.ActivityStreamsShares, o.GetActivityStreamsShares(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "source" + if lhs, rhs := this.ActivityStreamsSource, o.GetActivityStreamsSource(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "startTime" + if lhs, rhs := this.ActivityStreamsStartTime, o.GetActivityStreamsStartTime(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "summary" + if lhs, rhs := this.ActivityStreamsSummary, o.GetActivityStreamsSummary(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "tag" + if lhs, rhs := this.ActivityStreamsTag, o.GetActivityStreamsTag(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "team" + if lhs, rhs := this.ForgeFedTeam, o.GetForgeFedTeam(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "ticketsTrackedBy" + if lhs, rhs := this.ForgeFedTicketsTrackedBy, o.GetForgeFedTicketsTrackedBy(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "to" + if lhs, rhs := this.ActivityStreamsTo, o.GetActivityStreamsTo(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "tracksTicketsFor" + if lhs, rhs := this.ForgeFedTracksTicketsFor, o.GetForgeFedTracksTicketsFor(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "type" + if lhs, rhs := this.JSONLDType, o.GetJSONLDType(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "updated" + if lhs, rhs := this.ActivityStreamsUpdated, o.GetActivityStreamsUpdated(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "url" + if lhs, rhs := this.ActivityStreamsUrl, o.GetActivityStreamsUrl(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // End: Compare known properties + + // Begin: Compare unknown properties (only by number of them) + if len(this.unknown) < len(o.GetUnknownProperties()) { + return true + } else if len(o.GetUnknownProperties()) < len(this.unknown) { + return false + } // End: Compare unknown properties (only by number of them) + + // All properties are the same. + return false +} + +// Serialize converts this into an interface representation suitable for +// marshalling into a text or binary format. +func (this ForgeFedBranch) Serialize() (map[string]interface{}, error) { + m := make(map[string]interface{}) + typeName := "Branch" + if len(this.alias) > 0 { + typeName = this.alias + ":" + "Branch" + } + m["type"] = typeName + // Begin: Serialize known properties + // Maybe serialize property "altitude" + if this.ActivityStreamsAltitude != nil { + if i, err := this.ActivityStreamsAltitude.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsAltitude.Name()] = i + } + } + // Maybe serialize property "attachment" + if this.ActivityStreamsAttachment != nil { + if i, err := this.ActivityStreamsAttachment.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsAttachment.Name()] = i + } + } + // Maybe serialize property "attributedTo" + if this.ActivityStreamsAttributedTo != nil { + if i, err := this.ActivityStreamsAttributedTo.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsAttributedTo.Name()] = i + } + } + // Maybe serialize property "audience" + if this.ActivityStreamsAudience != nil { + if i, err := this.ActivityStreamsAudience.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsAudience.Name()] = i + } + } + // Maybe serialize property "bcc" + if this.ActivityStreamsBcc != nil { + if i, err := this.ActivityStreamsBcc.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsBcc.Name()] = i + } + } + // Maybe serialize property "bto" + if this.ActivityStreamsBto != nil { + if i, err := this.ActivityStreamsBto.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsBto.Name()] = i + } + } + // Maybe serialize property "cc" + if this.ActivityStreamsCc != nil { + if i, err := this.ActivityStreamsCc.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsCc.Name()] = i + } + } + // Maybe serialize property "content" + if this.ActivityStreamsContent != nil { + if i, err := this.ActivityStreamsContent.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsContent.Name()] = i + } + } + // Maybe serialize property "context" + if this.ActivityStreamsContext != nil { + if i, err := this.ActivityStreamsContext.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsContext.Name()] = i + } + } + // Maybe serialize property "duration" + if this.ActivityStreamsDuration != nil { + if i, err := this.ActivityStreamsDuration.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsDuration.Name()] = i + } + } + // Maybe serialize property "endTime" + if this.ActivityStreamsEndTime != nil { + if i, err := this.ActivityStreamsEndTime.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsEndTime.Name()] = i + } + } + // Maybe serialize property "generator" + if this.ActivityStreamsGenerator != nil { + if i, err := this.ActivityStreamsGenerator.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsGenerator.Name()] = i + } + } + // Maybe serialize property "icon" + if this.ActivityStreamsIcon != nil { + if i, err := this.ActivityStreamsIcon.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsIcon.Name()] = i + } + } + // Maybe serialize property "id" + if this.JSONLDId != nil { + if i, err := this.JSONLDId.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.JSONLDId.Name()] = i + } + } + // Maybe serialize property "image" + if this.ActivityStreamsImage != nil { + if i, err := this.ActivityStreamsImage.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsImage.Name()] = i + } + } + // Maybe serialize property "inReplyTo" + if this.ActivityStreamsInReplyTo != nil { + if i, err := this.ActivityStreamsInReplyTo.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsInReplyTo.Name()] = i + } + } + // Maybe serialize property "likes" + if this.ActivityStreamsLikes != nil { + if i, err := this.ActivityStreamsLikes.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsLikes.Name()] = i + } + } + // Maybe serialize property "location" + if this.ActivityStreamsLocation != nil { + if i, err := this.ActivityStreamsLocation.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsLocation.Name()] = i + } + } + // Maybe serialize property "mediaType" + if this.ActivityStreamsMediaType != nil { + if i, err := this.ActivityStreamsMediaType.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsMediaType.Name()] = i + } + } + // Maybe serialize property "name" + if this.ActivityStreamsName != nil { + if i, err := this.ActivityStreamsName.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsName.Name()] = i + } + } + // Maybe serialize property "object" + if this.ActivityStreamsObject != nil { + if i, err := this.ActivityStreamsObject.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsObject.Name()] = i + } + } + // Maybe serialize property "preview" + if this.ActivityStreamsPreview != nil { + if i, err := this.ActivityStreamsPreview.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsPreview.Name()] = i + } + } + // Maybe serialize property "published" + if this.ActivityStreamsPublished != nil { + if i, err := this.ActivityStreamsPublished.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsPublished.Name()] = i + } + } + // Maybe serialize property "ref" + if this.ForgeFedRef != nil { + if i, err := this.ForgeFedRef.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ForgeFedRef.Name()] = i + } + } + // Maybe serialize property "replies" + if this.ActivityStreamsReplies != nil { + if i, err := this.ActivityStreamsReplies.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsReplies.Name()] = i + } + } + // Maybe serialize property "shares" + if this.ActivityStreamsShares != nil { + if i, err := this.ActivityStreamsShares.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsShares.Name()] = i + } + } + // Maybe serialize property "source" + if this.ActivityStreamsSource != nil { + if i, err := this.ActivityStreamsSource.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsSource.Name()] = i + } + } + // Maybe serialize property "startTime" + if this.ActivityStreamsStartTime != nil { + if i, err := this.ActivityStreamsStartTime.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsStartTime.Name()] = i + } + } + // Maybe serialize property "summary" + if this.ActivityStreamsSummary != nil { + if i, err := this.ActivityStreamsSummary.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsSummary.Name()] = i + } + } + // Maybe serialize property "tag" + if this.ActivityStreamsTag != nil { + if i, err := this.ActivityStreamsTag.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsTag.Name()] = i + } + } + // Maybe serialize property "team" + if this.ForgeFedTeam != nil { + if i, err := this.ForgeFedTeam.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ForgeFedTeam.Name()] = i + } + } + // Maybe serialize property "ticketsTrackedBy" + if this.ForgeFedTicketsTrackedBy != nil { + if i, err := this.ForgeFedTicketsTrackedBy.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ForgeFedTicketsTrackedBy.Name()] = i + } + } + // Maybe serialize property "to" + if this.ActivityStreamsTo != nil { + if i, err := this.ActivityStreamsTo.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsTo.Name()] = i + } + } + // Maybe serialize property "tracksTicketsFor" + if this.ForgeFedTracksTicketsFor != nil { + if i, err := this.ForgeFedTracksTicketsFor.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ForgeFedTracksTicketsFor.Name()] = i + } + } + // Maybe serialize property "type" + if this.JSONLDType != nil { + if i, err := this.JSONLDType.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.JSONLDType.Name()] = i + } + } + // Maybe serialize property "updated" + if this.ActivityStreamsUpdated != nil { + if i, err := this.ActivityStreamsUpdated.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsUpdated.Name()] = i + } + } + // Maybe serialize property "url" + if this.ActivityStreamsUrl != nil { + if i, err := this.ActivityStreamsUrl.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsUrl.Name()] = i + } + } + // End: Serialize known properties + + // Begin: Serialize unknown properties + for k, v := range this.unknown { + // To be safe, ensure we aren't overwriting a known property + if _, has := m[k]; !has { + m[k] = v + } + } + // End: Serialize unknown properties + + return m, nil +} + +// SetActivityStreamsAltitude sets the "altitude" property. +func (this *ForgeFedBranch) SetActivityStreamsAltitude(i vocab.ActivityStreamsAltitudeProperty) { + this.ActivityStreamsAltitude = i +} + +// SetActivityStreamsAttachment sets the "attachment" property. +func (this *ForgeFedBranch) SetActivityStreamsAttachment(i vocab.ActivityStreamsAttachmentProperty) { + this.ActivityStreamsAttachment = i +} + +// SetActivityStreamsAttributedTo sets the "attributedTo" property. +func (this *ForgeFedBranch) SetActivityStreamsAttributedTo(i vocab.ActivityStreamsAttributedToProperty) { + this.ActivityStreamsAttributedTo = i +} + +// SetActivityStreamsAudience sets the "audience" property. +func (this *ForgeFedBranch) SetActivityStreamsAudience(i vocab.ActivityStreamsAudienceProperty) { + this.ActivityStreamsAudience = i +} + +// SetActivityStreamsBcc sets the "bcc" property. +func (this *ForgeFedBranch) SetActivityStreamsBcc(i vocab.ActivityStreamsBccProperty) { + this.ActivityStreamsBcc = i +} + +// SetActivityStreamsBto sets the "bto" property. +func (this *ForgeFedBranch) SetActivityStreamsBto(i vocab.ActivityStreamsBtoProperty) { + this.ActivityStreamsBto = i +} + +// SetActivityStreamsCc sets the "cc" property. +func (this *ForgeFedBranch) SetActivityStreamsCc(i vocab.ActivityStreamsCcProperty) { + this.ActivityStreamsCc = i +} + +// SetActivityStreamsContent sets the "content" property. +func (this *ForgeFedBranch) SetActivityStreamsContent(i vocab.ActivityStreamsContentProperty) { + this.ActivityStreamsContent = i +} + +// SetActivityStreamsContext sets the "context" property. +func (this *ForgeFedBranch) SetActivityStreamsContext(i vocab.ActivityStreamsContextProperty) { + this.ActivityStreamsContext = i +} + +// SetActivityStreamsDuration sets the "duration" property. +func (this *ForgeFedBranch) SetActivityStreamsDuration(i vocab.ActivityStreamsDurationProperty) { + this.ActivityStreamsDuration = i +} + +// SetActivityStreamsEndTime sets the "endTime" property. +func (this *ForgeFedBranch) SetActivityStreamsEndTime(i vocab.ActivityStreamsEndTimeProperty) { + this.ActivityStreamsEndTime = i +} + +// SetActivityStreamsGenerator sets the "generator" property. +func (this *ForgeFedBranch) SetActivityStreamsGenerator(i vocab.ActivityStreamsGeneratorProperty) { + this.ActivityStreamsGenerator = i +} + +// SetActivityStreamsIcon sets the "icon" property. +func (this *ForgeFedBranch) SetActivityStreamsIcon(i vocab.ActivityStreamsIconProperty) { + this.ActivityStreamsIcon = i +} + +// SetActivityStreamsImage sets the "image" property. +func (this *ForgeFedBranch) SetActivityStreamsImage(i vocab.ActivityStreamsImageProperty) { + this.ActivityStreamsImage = i +} + +// SetActivityStreamsInReplyTo sets the "inReplyTo" property. +func (this *ForgeFedBranch) SetActivityStreamsInReplyTo(i vocab.ActivityStreamsInReplyToProperty) { + this.ActivityStreamsInReplyTo = i +} + +// SetActivityStreamsLikes sets the "likes" property. +func (this *ForgeFedBranch) SetActivityStreamsLikes(i vocab.ActivityStreamsLikesProperty) { + this.ActivityStreamsLikes = i +} + +// SetActivityStreamsLocation sets the "location" property. +func (this *ForgeFedBranch) SetActivityStreamsLocation(i vocab.ActivityStreamsLocationProperty) { + this.ActivityStreamsLocation = i +} + +// SetActivityStreamsMediaType sets the "mediaType" property. +func (this *ForgeFedBranch) SetActivityStreamsMediaType(i vocab.ActivityStreamsMediaTypeProperty) { + this.ActivityStreamsMediaType = i +} + +// SetActivityStreamsName sets the "name" property. +func (this *ForgeFedBranch) SetActivityStreamsName(i vocab.ActivityStreamsNameProperty) { + this.ActivityStreamsName = i +} + +// SetActivityStreamsObject sets the "object" property. +func (this *ForgeFedBranch) SetActivityStreamsObject(i vocab.ActivityStreamsObjectProperty) { + this.ActivityStreamsObject = i +} + +// SetActivityStreamsPreview sets the "preview" property. +func (this *ForgeFedBranch) SetActivityStreamsPreview(i vocab.ActivityStreamsPreviewProperty) { + this.ActivityStreamsPreview = i +} + +// SetActivityStreamsPublished sets the "published" property. +func (this *ForgeFedBranch) SetActivityStreamsPublished(i vocab.ActivityStreamsPublishedProperty) { + this.ActivityStreamsPublished = i +} + +// SetActivityStreamsReplies sets the "replies" property. +func (this *ForgeFedBranch) SetActivityStreamsReplies(i vocab.ActivityStreamsRepliesProperty) { + this.ActivityStreamsReplies = i +} + +// SetActivityStreamsShares sets the "shares" property. +func (this *ForgeFedBranch) SetActivityStreamsShares(i vocab.ActivityStreamsSharesProperty) { + this.ActivityStreamsShares = i +} + +// SetActivityStreamsSource sets the "source" property. +func (this *ForgeFedBranch) SetActivityStreamsSource(i vocab.ActivityStreamsSourceProperty) { + this.ActivityStreamsSource = i +} + +// SetActivityStreamsStartTime sets the "startTime" property. +func (this *ForgeFedBranch) SetActivityStreamsStartTime(i vocab.ActivityStreamsStartTimeProperty) { + this.ActivityStreamsStartTime = i +} + +// SetActivityStreamsSummary sets the "summary" property. +func (this *ForgeFedBranch) SetActivityStreamsSummary(i vocab.ActivityStreamsSummaryProperty) { + this.ActivityStreamsSummary = i +} + +// SetActivityStreamsTag sets the "tag" property. +func (this *ForgeFedBranch) SetActivityStreamsTag(i vocab.ActivityStreamsTagProperty) { + this.ActivityStreamsTag = i +} + +// SetActivityStreamsTo sets the "to" property. +func (this *ForgeFedBranch) SetActivityStreamsTo(i vocab.ActivityStreamsToProperty) { + this.ActivityStreamsTo = i +} + +// SetActivityStreamsUpdated sets the "updated" property. +func (this *ForgeFedBranch) SetActivityStreamsUpdated(i vocab.ActivityStreamsUpdatedProperty) { + this.ActivityStreamsUpdated = i +} + +// SetActivityStreamsUrl sets the "url" property. +func (this *ForgeFedBranch) SetActivityStreamsUrl(i vocab.ActivityStreamsUrlProperty) { + this.ActivityStreamsUrl = i +} + +// SetForgeFedRef sets the "ref" property. +func (this *ForgeFedBranch) SetForgeFedRef(i vocab.ForgeFedRefProperty) { + this.ForgeFedRef = i +} + +// SetForgeFedTeam sets the "team" property. +func (this *ForgeFedBranch) SetForgeFedTeam(i vocab.ForgeFedTeamProperty) { + this.ForgeFedTeam = i +} + +// SetForgeFedTicketsTrackedBy sets the "ticketsTrackedBy" property. +func (this *ForgeFedBranch) SetForgeFedTicketsTrackedBy(i vocab.ForgeFedTicketsTrackedByProperty) { + this.ForgeFedTicketsTrackedBy = i +} + +// SetForgeFedTracksTicketsFor sets the "tracksTicketsFor" property. +func (this *ForgeFedBranch) SetForgeFedTracksTicketsFor(i vocab.ForgeFedTracksTicketsForProperty) { + this.ForgeFedTracksTicketsFor = i +} + +// SetJSONLDId sets the "id" property. +func (this *ForgeFedBranch) SetJSONLDId(i vocab.JSONLDIdProperty) { + this.JSONLDId = i +} + +// SetJSONLDType sets the "type" property. +func (this *ForgeFedBranch) SetJSONLDType(i vocab.JSONLDTypeProperty) { + this.JSONLDType = i +} + +// VocabularyURI returns the vocabulary's URI as a string. +func (this ForgeFedBranch) VocabularyURI() string { + return "https://forgefed.peers.community/ns" +} + +// helperJSONLDContext obtains the context uris and their aliases from a property, +// if it is not nil. +func (this ForgeFedBranch) helperJSONLDContext(i jsonldContexter, toMerge map[string]string) map[string]string { + if i == nil { + return toMerge + } + for k, v := range i.JSONLDContext() { + /* + Since the literal maps in this function are determined at + code-generation time, this loop should not overwrite an existing key with a + new value. + */ + toMerge[k] = v + } + return toMerge +} diff --git a/streams/impl/forgefed/type_commit/gen_doc.go b/streams/impl/forgefed/type_commit/gen_doc.go new file mode 100644 index 0000000..d9954fc --- /dev/null +++ b/streams/impl/forgefed/type_commit/gen_doc.go @@ -0,0 +1,17 @@ +// Code generated by astool. DO NOT EDIT. + +// Package typecommit contains the implementation for the Commit type. All +// applications are strongly encouraged to use the interface instead of this +// concrete definition. The interfaces allow applications to consume only the +// types and properties needed and be independent of the go-fed implementation +// if another alternative implementation is created. This package is +// code-generated and subject to the same license as the go-fed tool used to +// generate it. +// +// This package is independent of other types' and properties' implementations +// by having a Manager injected into it to act as a factory for the concrete +// implementations. The implementations have been generated into their own +// separate subpackages for each vocabulary. +// +// Strongly consider using the interfaces instead of this package. +package typecommit diff --git a/streams/impl/forgefed/type_commit/gen_pkg.go b/streams/impl/forgefed/type_commit/gen_pkg.go new file mode 100644 index 0000000..59844de --- /dev/null +++ b/streams/impl/forgefed/type_commit/gen_pkg.go @@ -0,0 +1,215 @@ +// Code generated by astool. DO NOT EDIT. + +package typecommit + +import vocab "github.com/go-fed/activity/streams/vocab" + +var mgr privateManager + +var typePropertyConstructor func() vocab.JSONLDTypeProperty + +// privateManager abstracts the code-generated manager that provides access to +// concrete implementations. +type privateManager interface { + // DeserializeAltitudePropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsAltitudeProperty" non-functional + // property in the vocabulary "ActivityStreams" + DeserializeAltitudePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAltitudeProperty, error) + // DeserializeAttachmentPropertyActivityStreams returns the + // deserialization method for the "ActivityStreamsAttachmentProperty" + // non-functional property in the vocabulary "ActivityStreams" + DeserializeAttachmentPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAttachmentProperty, error) + // DeserializeAttributedToPropertyActivityStreams returns the + // deserialization method for the + // "ActivityStreamsAttributedToProperty" non-functional property in + // the vocabulary "ActivityStreams" + DeserializeAttributedToPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAttributedToProperty, error) + // DeserializeAudiencePropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsAudienceProperty" non-functional + // property in the vocabulary "ActivityStreams" + DeserializeAudiencePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAudienceProperty, error) + // DeserializeBccPropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsBccProperty" non-functional property + // in the vocabulary "ActivityStreams" + DeserializeBccPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsBccProperty, error) + // DeserializeBtoPropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsBtoProperty" non-functional property + // in the vocabulary "ActivityStreams" + DeserializeBtoPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsBtoProperty, error) + // DeserializeCcPropertyActivityStreams returns the deserialization method + // for the "ActivityStreamsCcProperty" non-functional property in the + // vocabulary "ActivityStreams" + DeserializeCcPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsCcProperty, error) + // DeserializeCommittedByPropertyForgeFed returns the deserialization + // method for the "ForgeFedCommittedByProperty" non-functional + // property in the vocabulary "ForgeFed" + DeserializeCommittedByPropertyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedCommittedByProperty, error) + // DeserializeCommittedPropertyForgeFed returns the deserialization method + // for the "ForgeFedCommittedProperty" non-functional property in the + // vocabulary "ForgeFed" + DeserializeCommittedPropertyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedCommittedProperty, error) + // DeserializeContentPropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsContentProperty" non-functional + // property in the vocabulary "ActivityStreams" + DeserializeContentPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsContentProperty, error) + // DeserializeContextPropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsContextProperty" non-functional + // property in the vocabulary "ActivityStreams" + DeserializeContextPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsContextProperty, error) + // DeserializeDescriptionPropertyForgeFed returns the deserialization + // method for the "ForgeFedDescriptionProperty" non-functional + // property in the vocabulary "ForgeFed" + DeserializeDescriptionPropertyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedDescriptionProperty, error) + // DeserializeDurationPropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsDurationProperty" non-functional + // property in the vocabulary "ActivityStreams" + DeserializeDurationPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsDurationProperty, error) + // DeserializeEndTimePropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsEndTimeProperty" non-functional + // property in the vocabulary "ActivityStreams" + DeserializeEndTimePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsEndTimeProperty, error) + // DeserializeFilesAddedPropertyForgeFed returns the deserialization + // method for the "ForgeFedFilesAddedProperty" non-functional property + // in the vocabulary "ForgeFed" + DeserializeFilesAddedPropertyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedFilesAddedProperty, error) + // DeserializeFilesModifiedPropertyForgeFed returns the deserialization + // method for the "ForgeFedFilesModifiedProperty" non-functional + // property in the vocabulary "ForgeFed" + DeserializeFilesModifiedPropertyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedFilesModifiedProperty, error) + // DeserializeFilesRemovedPropertyForgeFed returns the deserialization + // method for the "ForgeFedFilesRemovedProperty" non-functional + // property in the vocabulary "ForgeFed" + DeserializeFilesRemovedPropertyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedFilesRemovedProperty, error) + // DeserializeGeneratorPropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsGeneratorProperty" non-functional + // property in the vocabulary "ActivityStreams" + DeserializeGeneratorPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsGeneratorProperty, error) + // DeserializeHashPropertyForgeFed returns the deserialization method for + // the "ForgeFedHashProperty" non-functional property in the + // vocabulary "ForgeFed" + DeserializeHashPropertyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedHashProperty, error) + // DeserializeIconPropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsIconProperty" non-functional + // property in the vocabulary "ActivityStreams" + DeserializeIconPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsIconProperty, error) + // DeserializeIdPropertyJSONLD returns the deserialization method for the + // "JSONLDIdProperty" non-functional property in the vocabulary + // "JSONLD" + DeserializeIdPropertyJSONLD() func(map[string]interface{}, map[string]string) (vocab.JSONLDIdProperty, error) + // DeserializeImagePropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsImageProperty" non-functional + // property in the vocabulary "ActivityStreams" + DeserializeImagePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsImageProperty, error) + // DeserializeInReplyToPropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsInReplyToProperty" non-functional + // property in the vocabulary "ActivityStreams" + DeserializeInReplyToPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsInReplyToProperty, error) + // DeserializeLikesPropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsLikesProperty" non-functional + // property in the vocabulary "ActivityStreams" + DeserializeLikesPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLikesProperty, error) + // DeserializeLocationPropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsLocationProperty" non-functional + // property in the vocabulary "ActivityStreams" + DeserializeLocationPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLocationProperty, error) + // DeserializeMediaTypePropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsMediaTypeProperty" non-functional + // property in the vocabulary "ActivityStreams" + DeserializeMediaTypePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsMediaTypeProperty, error) + // DeserializeNamePropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsNameProperty" non-functional + // property in the vocabulary "ActivityStreams" + DeserializeNamePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsNameProperty, error) + // DeserializeObjectPropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsObjectProperty" non-functional + // property in the vocabulary "ActivityStreams" + DeserializeObjectPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsObjectProperty, error) + // DeserializePreviewPropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsPreviewProperty" non-functional + // property in the vocabulary "ActivityStreams" + DeserializePreviewPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsPreviewProperty, error) + // DeserializePublishedPropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsPublishedProperty" non-functional + // property in the vocabulary "ActivityStreams" + DeserializePublishedPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsPublishedProperty, error) + // DeserializeRepliesPropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsRepliesProperty" non-functional + // property in the vocabulary "ActivityStreams" + DeserializeRepliesPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsRepliesProperty, error) + // DeserializeSharesPropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsSharesProperty" non-functional + // property in the vocabulary "ActivityStreams" + DeserializeSharesPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSharesProperty, error) + // DeserializeSourcePropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsSourceProperty" non-functional + // property in the vocabulary "ActivityStreams" + DeserializeSourcePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSourceProperty, error) + // DeserializeStartTimePropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsStartTimeProperty" non-functional + // property in the vocabulary "ActivityStreams" + DeserializeStartTimePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsStartTimeProperty, error) + // DeserializeSummaryPropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsSummaryProperty" non-functional + // property in the vocabulary "ActivityStreams" + DeserializeSummaryPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSummaryProperty, error) + // DeserializeTagPropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsTagProperty" non-functional property + // in the vocabulary "ActivityStreams" + DeserializeTagPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTagProperty, error) + // DeserializeTeamPropertyForgeFed returns the deserialization method for + // the "ForgeFedTeamProperty" non-functional property in the + // vocabulary "ForgeFed" + DeserializeTeamPropertyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTeamProperty, error) + // DeserializeTicketsTrackedByPropertyForgeFed returns the deserialization + // method for the "ForgeFedTicketsTrackedByProperty" non-functional + // property in the vocabulary "ForgeFed" + DeserializeTicketsTrackedByPropertyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTicketsTrackedByProperty, error) + // DeserializeToPropertyActivityStreams returns the deserialization method + // for the "ActivityStreamsToProperty" non-functional property in the + // vocabulary "ActivityStreams" + DeserializeToPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsToProperty, error) + // DeserializeTracksTicketsForPropertyForgeFed returns the deserialization + // method for the "ForgeFedTracksTicketsForProperty" non-functional + // property in the vocabulary "ForgeFed" + DeserializeTracksTicketsForPropertyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTracksTicketsForProperty, error) + // DeserializeTypePropertyJSONLD returns the deserialization method for + // the "JSONLDTypeProperty" non-functional property in the vocabulary + // "JSONLD" + DeserializeTypePropertyJSONLD() func(map[string]interface{}, map[string]string) (vocab.JSONLDTypeProperty, error) + // DeserializeUpdatedPropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsUpdatedProperty" non-functional + // property in the vocabulary "ActivityStreams" + DeserializeUpdatedPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsUpdatedProperty, error) + // DeserializeUrlPropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsUrlProperty" non-functional property + // in the vocabulary "ActivityStreams" + DeserializeUrlPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsUrlProperty, error) +} + +// jsonldContexter is a private interface to determine the JSON-LD contexts and +// aliases needed for functional and non-functional properties. It is a helper +// interface for this implementation. +type jsonldContexter interface { + // JSONLDContext returns the JSONLD URIs required in the context string + // for this property and the specific values that are set. The value + // in the map is the alias used to import the property's value or + // values. + JSONLDContext() map[string]string +} + +// SetManager sets the manager package-global variable. For internal use only, do +// not use as part of Application behavior. Must be called at golang init time. +func SetManager(m privateManager) { + mgr = m +} + +// SetTypePropertyConstructor sets the "type" property's constructor in the +// package-global variable. For internal use only, do not use as part of +// Application behavior. Must be called at golang init time. Permits +// ActivityStreams types to correctly set their "type" property at +// construction time, so users don't have to remember to do so each time. It +// is dependency injected so other go-fed compatible implementations could +// inject their own type. +func SetTypePropertyConstructor(f func() vocab.JSONLDTypeProperty) { + typePropertyConstructor = f +} diff --git a/streams/impl/forgefed/type_commit/gen_type_forgefed_commit.go b/streams/impl/forgefed/type_commit/gen_type_forgefed_commit.go new file mode 100644 index 0000000..f963e0b --- /dev/null +++ b/streams/impl/forgefed/type_commit/gen_type_forgefed_commit.go @@ -0,0 +1,2040 @@ +// Code generated by astool. DO NOT EDIT. + +package typecommit + +import ( + "fmt" + vocab "github.com/go-fed/activity/streams/vocab" + "strings" +) + +// Represents a named set of changes in the history of a Repository. This is +// called "commit" in Git, Mercurial and Monotone; "patch" in Darcs; sometimes +// called "change set". Note that Commit is a set of changes that already +// exists in a repo’s history, while a Patch is a separate proposed change +// set, that could be applied and pushed to a repo, resulting with a Commit. +// +// { +// "@context": [ +// "https://www.w3.org/ns/activitystreams", +// "https://forgefed.peers.community/ns" +// ], +// "attributedTo": "https://example.dev/bob", +// "committed": "2019-07-26T23:45:01Z", +// "committedBy": "https://example.dev/alice", +// "context": "https://example.dev/alice/myrepo", +// "created": "2019-07-11T12:34:56Z", +// "description": { +// "content": "It's about time people can install on their computers!", +// "mediaType": "text/plain" +// }, +// "hash": "109ec9a09c7df7fec775d2ba0b9d466e5643ec8c", +// "id": "https://example.dev/alice/myrepo/commits/109ec9a09c7df7fec775d2ba0b9d466e5643ec8c", +// "summary": "Add an installation script, fixes issue #89", +// "type": "Commit" +// } +type ForgeFedCommit struct { + ActivityStreamsAltitude vocab.ActivityStreamsAltitudeProperty + ActivityStreamsAttachment vocab.ActivityStreamsAttachmentProperty + ActivityStreamsAttributedTo vocab.ActivityStreamsAttributedToProperty + ActivityStreamsAudience vocab.ActivityStreamsAudienceProperty + ActivityStreamsBcc vocab.ActivityStreamsBccProperty + ActivityStreamsBto vocab.ActivityStreamsBtoProperty + ActivityStreamsCc vocab.ActivityStreamsCcProperty + ForgeFedCommitted vocab.ForgeFedCommittedProperty + ForgeFedCommittedBy vocab.ForgeFedCommittedByProperty + ActivityStreamsContent vocab.ActivityStreamsContentProperty + ActivityStreamsContext vocab.ActivityStreamsContextProperty + ForgeFedDescription vocab.ForgeFedDescriptionProperty + ActivityStreamsDuration vocab.ActivityStreamsDurationProperty + ActivityStreamsEndTime vocab.ActivityStreamsEndTimeProperty + ForgeFedFilesAdded vocab.ForgeFedFilesAddedProperty + ForgeFedFilesModified vocab.ForgeFedFilesModifiedProperty + ForgeFedFilesRemoved vocab.ForgeFedFilesRemovedProperty + ActivityStreamsGenerator vocab.ActivityStreamsGeneratorProperty + ForgeFedHash vocab.ForgeFedHashProperty + ActivityStreamsIcon vocab.ActivityStreamsIconProperty + JSONLDId vocab.JSONLDIdProperty + ActivityStreamsImage vocab.ActivityStreamsImageProperty + ActivityStreamsInReplyTo vocab.ActivityStreamsInReplyToProperty + ActivityStreamsLikes vocab.ActivityStreamsLikesProperty + ActivityStreamsLocation vocab.ActivityStreamsLocationProperty + ActivityStreamsMediaType vocab.ActivityStreamsMediaTypeProperty + ActivityStreamsName vocab.ActivityStreamsNameProperty + ActivityStreamsObject vocab.ActivityStreamsObjectProperty + ActivityStreamsPreview vocab.ActivityStreamsPreviewProperty + ActivityStreamsPublished vocab.ActivityStreamsPublishedProperty + ActivityStreamsReplies vocab.ActivityStreamsRepliesProperty + ActivityStreamsShares vocab.ActivityStreamsSharesProperty + ActivityStreamsSource vocab.ActivityStreamsSourceProperty + ActivityStreamsStartTime vocab.ActivityStreamsStartTimeProperty + ActivityStreamsSummary vocab.ActivityStreamsSummaryProperty + ActivityStreamsTag vocab.ActivityStreamsTagProperty + ForgeFedTeam vocab.ForgeFedTeamProperty + ForgeFedTicketsTrackedBy vocab.ForgeFedTicketsTrackedByProperty + ActivityStreamsTo vocab.ActivityStreamsToProperty + ForgeFedTracksTicketsFor vocab.ForgeFedTracksTicketsForProperty + JSONLDType vocab.JSONLDTypeProperty + ActivityStreamsUpdated vocab.ActivityStreamsUpdatedProperty + ActivityStreamsUrl vocab.ActivityStreamsUrlProperty + alias string + unknown map[string]interface{} +} + +// CommitIsDisjointWith returns true if the other provided type is disjoint with +// the Commit type. +func CommitIsDisjointWith(other vocab.Type) bool { + disjointWith := []string{"Link", "Mention"} + for _, disjoint := range disjointWith { + if disjoint == other.GetTypeName() { + return true + } + } + return false +} + +// CommitIsExtendedBy returns true if the other provided type extends from the +// Commit type. Note that it returns false if the types are the same; see the +// "IsOrExtendsCommit" variant instead. +func CommitIsExtendedBy(other vocab.Type) bool { + // Shortcut implementation: is not extended by anything. + return false +} + +// DeserializeCommit creates a Commit from a map representation that has been +// unmarshalled from a text or binary format. +func DeserializeCommit(m map[string]interface{}, aliasMap map[string]string) (*ForgeFedCommit, error) { + alias := "" + aliasPrefix := "" + if a, ok := aliasMap["https://forgefed.peers.community/ns"]; ok { + alias = a + aliasPrefix = a + ":" + } + this := &ForgeFedCommit{ + alias: alias, + unknown: make(map[string]interface{}), + } + if typeValue, ok := m["type"]; !ok { + return nil, fmt.Errorf("no \"type\" property in map") + } else if typeString, ok := typeValue.(string); ok { + typeName := strings.TrimPrefix(typeString, aliasPrefix) + if typeName != "Commit" { + return nil, fmt.Errorf("\"type\" property is not of %q type: %s", "Commit", typeName) + } + // Fall through, success in finding a proper Type + } else if arrType, ok := typeValue.([]interface{}); ok { + found := false + for _, elemVal := range arrType { + if typeString, ok := elemVal.(string); ok && strings.TrimPrefix(typeString, aliasPrefix) == "Commit" { + found = true + break + } + } + if !found { + return nil, fmt.Errorf("could not find a \"type\" property of value %q", "Commit") + } + // Fall through, success in finding a proper Type + } else { + return nil, fmt.Errorf("\"type\" property is unrecognized type: %T", typeValue) + } + // Begin: Known property deserialization + if p, err := mgr.DeserializeAltitudePropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsAltitude = p + } + if p, err := mgr.DeserializeAttachmentPropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsAttachment = p + } + if p, err := mgr.DeserializeAttributedToPropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsAttributedTo = p + } + if p, err := mgr.DeserializeAudiencePropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsAudience = p + } + if p, err := mgr.DeserializeBccPropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsBcc = p + } + if p, err := mgr.DeserializeBtoPropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsBto = p + } + if p, err := mgr.DeserializeCcPropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsCc = p + } + if p, err := mgr.DeserializeCommittedPropertyForgeFed()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ForgeFedCommitted = p + } + if p, err := mgr.DeserializeCommittedByPropertyForgeFed()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ForgeFedCommittedBy = p + } + if p, err := mgr.DeserializeContentPropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsContent = p + } + if p, err := mgr.DeserializeContextPropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsContext = p + } + if p, err := mgr.DeserializeDescriptionPropertyForgeFed()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ForgeFedDescription = p + } + if p, err := mgr.DeserializeDurationPropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsDuration = p + } + if p, err := mgr.DeserializeEndTimePropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsEndTime = p + } + if p, err := mgr.DeserializeFilesAddedPropertyForgeFed()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ForgeFedFilesAdded = p + } + if p, err := mgr.DeserializeFilesModifiedPropertyForgeFed()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ForgeFedFilesModified = p + } + if p, err := mgr.DeserializeFilesRemovedPropertyForgeFed()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ForgeFedFilesRemoved = p + } + if p, err := mgr.DeserializeGeneratorPropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsGenerator = p + } + if p, err := mgr.DeserializeHashPropertyForgeFed()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ForgeFedHash = p + } + if p, err := mgr.DeserializeIconPropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsIcon = p + } + if p, err := mgr.DeserializeIdPropertyJSONLD()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.JSONLDId = p + } + if p, err := mgr.DeserializeImagePropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsImage = p + } + if p, err := mgr.DeserializeInReplyToPropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsInReplyTo = p + } + if p, err := mgr.DeserializeLikesPropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsLikes = p + } + if p, err := mgr.DeserializeLocationPropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsLocation = p + } + if p, err := mgr.DeserializeMediaTypePropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsMediaType = p + } + if p, err := mgr.DeserializeNamePropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsName = p + } + if p, err := mgr.DeserializeObjectPropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsObject = p + } + if p, err := mgr.DeserializePreviewPropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsPreview = p + } + if p, err := mgr.DeserializePublishedPropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsPublished = p + } + if p, err := mgr.DeserializeRepliesPropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsReplies = p + } + if p, err := mgr.DeserializeSharesPropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsShares = p + } + if p, err := mgr.DeserializeSourcePropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsSource = p + } + if p, err := mgr.DeserializeStartTimePropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsStartTime = p + } + if p, err := mgr.DeserializeSummaryPropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsSummary = p + } + if p, err := mgr.DeserializeTagPropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsTag = p + } + if p, err := mgr.DeserializeTeamPropertyForgeFed()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ForgeFedTeam = p + } + if p, err := mgr.DeserializeTicketsTrackedByPropertyForgeFed()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ForgeFedTicketsTrackedBy = p + } + if p, err := mgr.DeserializeToPropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsTo = p + } + if p, err := mgr.DeserializeTracksTicketsForPropertyForgeFed()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ForgeFedTracksTicketsFor = p + } + if p, err := mgr.DeserializeTypePropertyJSONLD()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.JSONLDType = p + } + if p, err := mgr.DeserializeUpdatedPropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsUpdated = p + } + if p, err := mgr.DeserializeUrlPropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsUrl = p + } + // End: Known property deserialization + + // Begin: Unknown deserialization + for k, v := range m { + // Begin: Code that ensures a property name is unknown + if k == "altitude" { + continue + } else if k == "attachment" { + continue + } else if k == "attributedTo" { + continue + } else if k == "audience" { + continue + } else if k == "bcc" { + continue + } else if k == "bto" { + continue + } else if k == "cc" { + continue + } else if k == "committed" { + continue + } else if k == "committedBy" { + continue + } else if k == "content" { + continue + } else if k == "contentMap" { + continue + } else if k == "context" { + continue + } else if k == "description" { + continue + } else if k == "duration" { + continue + } else if k == "endTime" { + continue + } else if k == "filesAdded" { + continue + } else if k == "filesModified" { + continue + } else if k == "filesRemoved" { + continue + } else if k == "generator" { + continue + } else if k == "hash" { + continue + } else if k == "icon" { + continue + } else if k == "id" { + continue + } else if k == "image" { + continue + } else if k == "inReplyTo" { + continue + } else if k == "likes" { + continue + } else if k == "location" { + continue + } else if k == "mediaType" { + continue + } else if k == "name" { + continue + } else if k == "nameMap" { + continue + } else if k == "object" { + continue + } else if k == "preview" { + continue + } else if k == "published" { + continue + } else if k == "replies" { + continue + } else if k == "shares" { + continue + } else if k == "source" { + continue + } else if k == "startTime" { + continue + } else if k == "summary" { + continue + } else if k == "summaryMap" { + continue + } else if k == "tag" { + continue + } else if k == "team" { + continue + } else if k == "ticketsTrackedBy" { + continue + } else if k == "to" { + continue + } else if k == "tracksTicketsFor" { + continue + } else if k == "type" { + continue + } else if k == "updated" { + continue + } else if k == "url" { + continue + } // End: Code that ensures a property name is unknown + + this.unknown[k] = v + } + // End: Unknown deserialization + + return this, nil +} + +// ForgeFedCommitExtends returns true if the Commit type extends from the other +// type. +func ForgeFedCommitExtends(other vocab.Type) bool { + extensions := []string{"Object"} + for _, ext := range extensions { + if ext == other.GetTypeName() { + return true + } + } + return false +} + +// IsOrExtendsCommit returns true if the other provided type is the Commit type or +// extends from the Commit type. +func IsOrExtendsCommit(other vocab.Type) bool { + if other.GetTypeName() == "Commit" { + return true + } + return CommitIsExtendedBy(other) +} + +// NewForgeFedCommit creates a new Commit type +func NewForgeFedCommit() *ForgeFedCommit { + typeProp := typePropertyConstructor() + typeProp.AppendXMLSchemaString("Commit") + return &ForgeFedCommit{ + JSONLDType: typeProp, + alias: "", + unknown: make(map[string]interface{}), + } +} + +// GetActivityStreamsAltitude returns the "altitude" property if it exists, and +// nil otherwise. +func (this ForgeFedCommit) GetActivityStreamsAltitude() vocab.ActivityStreamsAltitudeProperty { + return this.ActivityStreamsAltitude +} + +// GetActivityStreamsAttachment returns the "attachment" property if it exists, +// and nil otherwise. +func (this ForgeFedCommit) GetActivityStreamsAttachment() vocab.ActivityStreamsAttachmentProperty { + return this.ActivityStreamsAttachment +} + +// GetActivityStreamsAttributedTo returns the "attributedTo" property if it +// exists, and nil otherwise. +func (this ForgeFedCommit) GetActivityStreamsAttributedTo() vocab.ActivityStreamsAttributedToProperty { + return this.ActivityStreamsAttributedTo +} + +// GetActivityStreamsAudience returns the "audience" property if it exists, and +// nil otherwise. +func (this ForgeFedCommit) GetActivityStreamsAudience() vocab.ActivityStreamsAudienceProperty { + return this.ActivityStreamsAudience +} + +// GetActivityStreamsBcc returns the "bcc" property if it exists, and nil +// otherwise. +func (this ForgeFedCommit) GetActivityStreamsBcc() vocab.ActivityStreamsBccProperty { + return this.ActivityStreamsBcc +} + +// GetActivityStreamsBto returns the "bto" property if it exists, and nil +// otherwise. +func (this ForgeFedCommit) GetActivityStreamsBto() vocab.ActivityStreamsBtoProperty { + return this.ActivityStreamsBto +} + +// GetActivityStreamsCc returns the "cc" property if it exists, and nil otherwise. +func (this ForgeFedCommit) GetActivityStreamsCc() vocab.ActivityStreamsCcProperty { + return this.ActivityStreamsCc +} + +// GetActivityStreamsContent returns the "content" property if it exists, and nil +// otherwise. +func (this ForgeFedCommit) GetActivityStreamsContent() vocab.ActivityStreamsContentProperty { + return this.ActivityStreamsContent +} + +// GetActivityStreamsContext returns the "context" property if it exists, and nil +// otherwise. +func (this ForgeFedCommit) GetActivityStreamsContext() vocab.ActivityStreamsContextProperty { + return this.ActivityStreamsContext +} + +// GetActivityStreamsDuration returns the "duration" property if it exists, and +// nil otherwise. +func (this ForgeFedCommit) GetActivityStreamsDuration() vocab.ActivityStreamsDurationProperty { + return this.ActivityStreamsDuration +} + +// GetActivityStreamsEndTime returns the "endTime" property if it exists, and nil +// otherwise. +func (this ForgeFedCommit) GetActivityStreamsEndTime() vocab.ActivityStreamsEndTimeProperty { + return this.ActivityStreamsEndTime +} + +// GetActivityStreamsGenerator returns the "generator" property if it exists, and +// nil otherwise. +func (this ForgeFedCommit) GetActivityStreamsGenerator() vocab.ActivityStreamsGeneratorProperty { + return this.ActivityStreamsGenerator +} + +// GetActivityStreamsIcon returns the "icon" property if it exists, and nil +// otherwise. +func (this ForgeFedCommit) GetActivityStreamsIcon() vocab.ActivityStreamsIconProperty { + return this.ActivityStreamsIcon +} + +// GetActivityStreamsImage returns the "image" property if it exists, and nil +// otherwise. +func (this ForgeFedCommit) GetActivityStreamsImage() vocab.ActivityStreamsImageProperty { + return this.ActivityStreamsImage +} + +// GetActivityStreamsInReplyTo returns the "inReplyTo" property if it exists, and +// nil otherwise. +func (this ForgeFedCommit) GetActivityStreamsInReplyTo() vocab.ActivityStreamsInReplyToProperty { + return this.ActivityStreamsInReplyTo +} + +// GetActivityStreamsLikes returns the "likes" property if it exists, and nil +// otherwise. +func (this ForgeFedCommit) GetActivityStreamsLikes() vocab.ActivityStreamsLikesProperty { + return this.ActivityStreamsLikes +} + +// GetActivityStreamsLocation returns the "location" property if it exists, and +// nil otherwise. +func (this ForgeFedCommit) GetActivityStreamsLocation() vocab.ActivityStreamsLocationProperty { + return this.ActivityStreamsLocation +} + +// GetActivityStreamsMediaType returns the "mediaType" property if it exists, and +// nil otherwise. +func (this ForgeFedCommit) GetActivityStreamsMediaType() vocab.ActivityStreamsMediaTypeProperty { + return this.ActivityStreamsMediaType +} + +// GetActivityStreamsName returns the "name" property if it exists, and nil +// otherwise. +func (this ForgeFedCommit) GetActivityStreamsName() vocab.ActivityStreamsNameProperty { + return this.ActivityStreamsName +} + +// GetActivityStreamsObject returns the "object" property if it exists, and nil +// otherwise. +func (this ForgeFedCommit) GetActivityStreamsObject() vocab.ActivityStreamsObjectProperty { + return this.ActivityStreamsObject +} + +// GetActivityStreamsPreview returns the "preview" property if it exists, and nil +// otherwise. +func (this ForgeFedCommit) GetActivityStreamsPreview() vocab.ActivityStreamsPreviewProperty { + return this.ActivityStreamsPreview +} + +// GetActivityStreamsPublished returns the "published" property if it exists, and +// nil otherwise. +func (this ForgeFedCommit) GetActivityStreamsPublished() vocab.ActivityStreamsPublishedProperty { + return this.ActivityStreamsPublished +} + +// GetActivityStreamsReplies returns the "replies" property if it exists, and nil +// otherwise. +func (this ForgeFedCommit) GetActivityStreamsReplies() vocab.ActivityStreamsRepliesProperty { + return this.ActivityStreamsReplies +} + +// GetActivityStreamsShares returns the "shares" property if it exists, and nil +// otherwise. +func (this ForgeFedCommit) GetActivityStreamsShares() vocab.ActivityStreamsSharesProperty { + return this.ActivityStreamsShares +} + +// GetActivityStreamsSource returns the "source" property if it exists, and nil +// otherwise. +func (this ForgeFedCommit) GetActivityStreamsSource() vocab.ActivityStreamsSourceProperty { + return this.ActivityStreamsSource +} + +// GetActivityStreamsStartTime returns the "startTime" property if it exists, and +// nil otherwise. +func (this ForgeFedCommit) GetActivityStreamsStartTime() vocab.ActivityStreamsStartTimeProperty { + return this.ActivityStreamsStartTime +} + +// GetActivityStreamsSummary returns the "summary" property if it exists, and nil +// otherwise. +func (this ForgeFedCommit) GetActivityStreamsSummary() vocab.ActivityStreamsSummaryProperty { + return this.ActivityStreamsSummary +} + +// GetActivityStreamsTag returns the "tag" property if it exists, and nil +// otherwise. +func (this ForgeFedCommit) GetActivityStreamsTag() vocab.ActivityStreamsTagProperty { + return this.ActivityStreamsTag +} + +// GetActivityStreamsTo returns the "to" property if it exists, and nil otherwise. +func (this ForgeFedCommit) GetActivityStreamsTo() vocab.ActivityStreamsToProperty { + return this.ActivityStreamsTo +} + +// GetActivityStreamsUpdated returns the "updated" property if it exists, and nil +// otherwise. +func (this ForgeFedCommit) GetActivityStreamsUpdated() vocab.ActivityStreamsUpdatedProperty { + return this.ActivityStreamsUpdated +} + +// GetActivityStreamsUrl returns the "url" property if it exists, and nil +// otherwise. +func (this ForgeFedCommit) GetActivityStreamsUrl() vocab.ActivityStreamsUrlProperty { + return this.ActivityStreamsUrl +} + +// GetForgeFedCommitted returns the "committed" property if it exists, and nil +// otherwise. +func (this ForgeFedCommit) GetForgeFedCommitted() vocab.ForgeFedCommittedProperty { + return this.ForgeFedCommitted +} + +// GetForgeFedCommittedBy returns the "committedBy" property if it exists, and nil +// otherwise. +func (this ForgeFedCommit) GetForgeFedCommittedBy() vocab.ForgeFedCommittedByProperty { + return this.ForgeFedCommittedBy +} + +// GetForgeFedDescription returns the "description" property if it exists, and nil +// otherwise. +func (this ForgeFedCommit) GetForgeFedDescription() vocab.ForgeFedDescriptionProperty { + return this.ForgeFedDescription +} + +// GetForgeFedFilesAdded returns the "filesAdded" property if it exists, and nil +// otherwise. +func (this ForgeFedCommit) GetForgeFedFilesAdded() vocab.ForgeFedFilesAddedProperty { + return this.ForgeFedFilesAdded +} + +// GetForgeFedFilesModified returns the "filesModified" property if it exists, and +// nil otherwise. +func (this ForgeFedCommit) GetForgeFedFilesModified() vocab.ForgeFedFilesModifiedProperty { + return this.ForgeFedFilesModified +} + +// GetForgeFedFilesRemoved returns the "filesRemoved" property if it exists, and +// nil otherwise. +func (this ForgeFedCommit) GetForgeFedFilesRemoved() vocab.ForgeFedFilesRemovedProperty { + return this.ForgeFedFilesRemoved +} + +// GetForgeFedHash returns the "hash" property if it exists, and nil otherwise. +func (this ForgeFedCommit) GetForgeFedHash() vocab.ForgeFedHashProperty { + return this.ForgeFedHash +} + +// GetForgeFedTeam returns the "team" property if it exists, and nil otherwise. +func (this ForgeFedCommit) GetForgeFedTeam() vocab.ForgeFedTeamProperty { + return this.ForgeFedTeam +} + +// GetForgeFedTicketsTrackedBy returns the "ticketsTrackedBy" property if it +// exists, and nil otherwise. +func (this ForgeFedCommit) GetForgeFedTicketsTrackedBy() vocab.ForgeFedTicketsTrackedByProperty { + return this.ForgeFedTicketsTrackedBy +} + +// GetForgeFedTracksTicketsFor returns the "tracksTicketsFor" property if it +// exists, and nil otherwise. +func (this ForgeFedCommit) GetForgeFedTracksTicketsFor() vocab.ForgeFedTracksTicketsForProperty { + return this.ForgeFedTracksTicketsFor +} + +// GetJSONLDId returns the "id" property if it exists, and nil otherwise. +func (this ForgeFedCommit) GetJSONLDId() vocab.JSONLDIdProperty { + return this.JSONLDId +} + +// GetJSONLDType returns the "type" property if it exists, and nil otherwise. +func (this ForgeFedCommit) GetJSONLDType() vocab.JSONLDTypeProperty { + return this.JSONLDType +} + +// GetTypeName returns the name of this type. +func (this ForgeFedCommit) GetTypeName() string { + return "Commit" +} + +// GetUnknownProperties returns the unknown properties for the Commit type. Note +// that this should not be used by app developers. It is only used to help +// determine which implementation is LessThan the other. Developers who are +// creating a different implementation of this type's interface can use this +// method in their LessThan implementation, but routine ActivityPub +// applications should not use this to bypass the code generation tool. +func (this ForgeFedCommit) GetUnknownProperties() map[string]interface{} { + return this.unknown +} + +// IsExtending returns true if the Commit type extends from the other type. +func (this ForgeFedCommit) IsExtending(other vocab.Type) bool { + return ForgeFedCommitExtends(other) +} + +// JSONLDContext returns the JSONLD URIs required in the context string for this +// type and the specific properties that are set. The value in the map is the +// alias used to import the type and its properties. +func (this ForgeFedCommit) JSONLDContext() map[string]string { + m := map[string]string{"https://forgefed.peers.community/ns": this.alias} + m = this.helperJSONLDContext(this.ActivityStreamsAltitude, m) + m = this.helperJSONLDContext(this.ActivityStreamsAttachment, m) + m = this.helperJSONLDContext(this.ActivityStreamsAttributedTo, m) + m = this.helperJSONLDContext(this.ActivityStreamsAudience, m) + m = this.helperJSONLDContext(this.ActivityStreamsBcc, m) + m = this.helperJSONLDContext(this.ActivityStreamsBto, m) + m = this.helperJSONLDContext(this.ActivityStreamsCc, m) + m = this.helperJSONLDContext(this.ForgeFedCommitted, m) + m = this.helperJSONLDContext(this.ForgeFedCommittedBy, m) + m = this.helperJSONLDContext(this.ActivityStreamsContent, m) + m = this.helperJSONLDContext(this.ActivityStreamsContext, m) + m = this.helperJSONLDContext(this.ForgeFedDescription, m) + m = this.helperJSONLDContext(this.ActivityStreamsDuration, m) + m = this.helperJSONLDContext(this.ActivityStreamsEndTime, m) + m = this.helperJSONLDContext(this.ForgeFedFilesAdded, m) + m = this.helperJSONLDContext(this.ForgeFedFilesModified, m) + m = this.helperJSONLDContext(this.ForgeFedFilesRemoved, m) + m = this.helperJSONLDContext(this.ActivityStreamsGenerator, m) + m = this.helperJSONLDContext(this.ForgeFedHash, m) + m = this.helperJSONLDContext(this.ActivityStreamsIcon, m) + m = this.helperJSONLDContext(this.JSONLDId, m) + m = this.helperJSONLDContext(this.ActivityStreamsImage, m) + m = this.helperJSONLDContext(this.ActivityStreamsInReplyTo, m) + m = this.helperJSONLDContext(this.ActivityStreamsLikes, m) + m = this.helperJSONLDContext(this.ActivityStreamsLocation, m) + m = this.helperJSONLDContext(this.ActivityStreamsMediaType, m) + m = this.helperJSONLDContext(this.ActivityStreamsName, m) + m = this.helperJSONLDContext(this.ActivityStreamsObject, m) + m = this.helperJSONLDContext(this.ActivityStreamsPreview, m) + m = this.helperJSONLDContext(this.ActivityStreamsPublished, m) + m = this.helperJSONLDContext(this.ActivityStreamsReplies, m) + m = this.helperJSONLDContext(this.ActivityStreamsShares, m) + m = this.helperJSONLDContext(this.ActivityStreamsSource, m) + m = this.helperJSONLDContext(this.ActivityStreamsStartTime, m) + m = this.helperJSONLDContext(this.ActivityStreamsSummary, m) + m = this.helperJSONLDContext(this.ActivityStreamsTag, m) + m = this.helperJSONLDContext(this.ForgeFedTeam, m) + m = this.helperJSONLDContext(this.ForgeFedTicketsTrackedBy, m) + m = this.helperJSONLDContext(this.ActivityStreamsTo, m) + m = this.helperJSONLDContext(this.ForgeFedTracksTicketsFor, m) + m = this.helperJSONLDContext(this.JSONLDType, m) + m = this.helperJSONLDContext(this.ActivityStreamsUpdated, m) + m = this.helperJSONLDContext(this.ActivityStreamsUrl, m) + + return m +} + +// LessThan computes if this Commit is lesser, with an arbitrary but stable +// determination. +func (this ForgeFedCommit) LessThan(o vocab.ForgeFedCommit) bool { + // Begin: Compare known properties + // Compare property "altitude" + if lhs, rhs := this.ActivityStreamsAltitude, o.GetActivityStreamsAltitude(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "attachment" + if lhs, rhs := this.ActivityStreamsAttachment, o.GetActivityStreamsAttachment(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "attributedTo" + if lhs, rhs := this.ActivityStreamsAttributedTo, o.GetActivityStreamsAttributedTo(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "audience" + if lhs, rhs := this.ActivityStreamsAudience, o.GetActivityStreamsAudience(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "bcc" + if lhs, rhs := this.ActivityStreamsBcc, o.GetActivityStreamsBcc(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "bto" + if lhs, rhs := this.ActivityStreamsBto, o.GetActivityStreamsBto(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "cc" + if lhs, rhs := this.ActivityStreamsCc, o.GetActivityStreamsCc(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "committed" + if lhs, rhs := this.ForgeFedCommitted, o.GetForgeFedCommitted(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "committedBy" + if lhs, rhs := this.ForgeFedCommittedBy, o.GetForgeFedCommittedBy(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "content" + if lhs, rhs := this.ActivityStreamsContent, o.GetActivityStreamsContent(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "context" + if lhs, rhs := this.ActivityStreamsContext, o.GetActivityStreamsContext(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "description" + if lhs, rhs := this.ForgeFedDescription, o.GetForgeFedDescription(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "duration" + if lhs, rhs := this.ActivityStreamsDuration, o.GetActivityStreamsDuration(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "endTime" + if lhs, rhs := this.ActivityStreamsEndTime, o.GetActivityStreamsEndTime(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "filesAdded" + if lhs, rhs := this.ForgeFedFilesAdded, o.GetForgeFedFilesAdded(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "filesModified" + if lhs, rhs := this.ForgeFedFilesModified, o.GetForgeFedFilesModified(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "filesRemoved" + if lhs, rhs := this.ForgeFedFilesRemoved, o.GetForgeFedFilesRemoved(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "generator" + if lhs, rhs := this.ActivityStreamsGenerator, o.GetActivityStreamsGenerator(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "hash" + if lhs, rhs := this.ForgeFedHash, o.GetForgeFedHash(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "icon" + if lhs, rhs := this.ActivityStreamsIcon, o.GetActivityStreamsIcon(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "id" + if lhs, rhs := this.JSONLDId, o.GetJSONLDId(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "image" + if lhs, rhs := this.ActivityStreamsImage, o.GetActivityStreamsImage(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "inReplyTo" + if lhs, rhs := this.ActivityStreamsInReplyTo, o.GetActivityStreamsInReplyTo(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "likes" + if lhs, rhs := this.ActivityStreamsLikes, o.GetActivityStreamsLikes(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "location" + if lhs, rhs := this.ActivityStreamsLocation, o.GetActivityStreamsLocation(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "mediaType" + if lhs, rhs := this.ActivityStreamsMediaType, o.GetActivityStreamsMediaType(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "name" + if lhs, rhs := this.ActivityStreamsName, o.GetActivityStreamsName(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "object" + if lhs, rhs := this.ActivityStreamsObject, o.GetActivityStreamsObject(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "preview" + if lhs, rhs := this.ActivityStreamsPreview, o.GetActivityStreamsPreview(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "published" + if lhs, rhs := this.ActivityStreamsPublished, o.GetActivityStreamsPublished(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "replies" + if lhs, rhs := this.ActivityStreamsReplies, o.GetActivityStreamsReplies(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "shares" + if lhs, rhs := this.ActivityStreamsShares, o.GetActivityStreamsShares(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "source" + if lhs, rhs := this.ActivityStreamsSource, o.GetActivityStreamsSource(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "startTime" + if lhs, rhs := this.ActivityStreamsStartTime, o.GetActivityStreamsStartTime(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "summary" + if lhs, rhs := this.ActivityStreamsSummary, o.GetActivityStreamsSummary(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "tag" + if lhs, rhs := this.ActivityStreamsTag, o.GetActivityStreamsTag(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "team" + if lhs, rhs := this.ForgeFedTeam, o.GetForgeFedTeam(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "ticketsTrackedBy" + if lhs, rhs := this.ForgeFedTicketsTrackedBy, o.GetForgeFedTicketsTrackedBy(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "to" + if lhs, rhs := this.ActivityStreamsTo, o.GetActivityStreamsTo(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "tracksTicketsFor" + if lhs, rhs := this.ForgeFedTracksTicketsFor, o.GetForgeFedTracksTicketsFor(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "type" + if lhs, rhs := this.JSONLDType, o.GetJSONLDType(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "updated" + if lhs, rhs := this.ActivityStreamsUpdated, o.GetActivityStreamsUpdated(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "url" + if lhs, rhs := this.ActivityStreamsUrl, o.GetActivityStreamsUrl(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // End: Compare known properties + + // Begin: Compare unknown properties (only by number of them) + if len(this.unknown) < len(o.GetUnknownProperties()) { + return true + } else if len(o.GetUnknownProperties()) < len(this.unknown) { + return false + } // End: Compare unknown properties (only by number of them) + + // All properties are the same. + return false +} + +// Serialize converts this into an interface representation suitable for +// marshalling into a text or binary format. +func (this ForgeFedCommit) Serialize() (map[string]interface{}, error) { + m := make(map[string]interface{}) + typeName := "Commit" + if len(this.alias) > 0 { + typeName = this.alias + ":" + "Commit" + } + m["type"] = typeName + // Begin: Serialize known properties + // Maybe serialize property "altitude" + if this.ActivityStreamsAltitude != nil { + if i, err := this.ActivityStreamsAltitude.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsAltitude.Name()] = i + } + } + // Maybe serialize property "attachment" + if this.ActivityStreamsAttachment != nil { + if i, err := this.ActivityStreamsAttachment.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsAttachment.Name()] = i + } + } + // Maybe serialize property "attributedTo" + if this.ActivityStreamsAttributedTo != nil { + if i, err := this.ActivityStreamsAttributedTo.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsAttributedTo.Name()] = i + } + } + // Maybe serialize property "audience" + if this.ActivityStreamsAudience != nil { + if i, err := this.ActivityStreamsAudience.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsAudience.Name()] = i + } + } + // Maybe serialize property "bcc" + if this.ActivityStreamsBcc != nil { + if i, err := this.ActivityStreamsBcc.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsBcc.Name()] = i + } + } + // Maybe serialize property "bto" + if this.ActivityStreamsBto != nil { + if i, err := this.ActivityStreamsBto.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsBto.Name()] = i + } + } + // Maybe serialize property "cc" + if this.ActivityStreamsCc != nil { + if i, err := this.ActivityStreamsCc.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsCc.Name()] = i + } + } + // Maybe serialize property "committed" + if this.ForgeFedCommitted != nil { + if i, err := this.ForgeFedCommitted.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ForgeFedCommitted.Name()] = i + } + } + // Maybe serialize property "committedBy" + if this.ForgeFedCommittedBy != nil { + if i, err := this.ForgeFedCommittedBy.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ForgeFedCommittedBy.Name()] = i + } + } + // Maybe serialize property "content" + if this.ActivityStreamsContent != nil { + if i, err := this.ActivityStreamsContent.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsContent.Name()] = i + } + } + // Maybe serialize property "context" + if this.ActivityStreamsContext != nil { + if i, err := this.ActivityStreamsContext.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsContext.Name()] = i + } + } + // Maybe serialize property "description" + if this.ForgeFedDescription != nil { + if i, err := this.ForgeFedDescription.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ForgeFedDescription.Name()] = i + } + } + // Maybe serialize property "duration" + if this.ActivityStreamsDuration != nil { + if i, err := this.ActivityStreamsDuration.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsDuration.Name()] = i + } + } + // Maybe serialize property "endTime" + if this.ActivityStreamsEndTime != nil { + if i, err := this.ActivityStreamsEndTime.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsEndTime.Name()] = i + } + } + // Maybe serialize property "filesAdded" + if this.ForgeFedFilesAdded != nil { + if i, err := this.ForgeFedFilesAdded.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ForgeFedFilesAdded.Name()] = i + } + } + // Maybe serialize property "filesModified" + if this.ForgeFedFilesModified != nil { + if i, err := this.ForgeFedFilesModified.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ForgeFedFilesModified.Name()] = i + } + } + // Maybe serialize property "filesRemoved" + if this.ForgeFedFilesRemoved != nil { + if i, err := this.ForgeFedFilesRemoved.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ForgeFedFilesRemoved.Name()] = i + } + } + // Maybe serialize property "generator" + if this.ActivityStreamsGenerator != nil { + if i, err := this.ActivityStreamsGenerator.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsGenerator.Name()] = i + } + } + // Maybe serialize property "hash" + if this.ForgeFedHash != nil { + if i, err := this.ForgeFedHash.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ForgeFedHash.Name()] = i + } + } + // Maybe serialize property "icon" + if this.ActivityStreamsIcon != nil { + if i, err := this.ActivityStreamsIcon.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsIcon.Name()] = i + } + } + // Maybe serialize property "id" + if this.JSONLDId != nil { + if i, err := this.JSONLDId.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.JSONLDId.Name()] = i + } + } + // Maybe serialize property "image" + if this.ActivityStreamsImage != nil { + if i, err := this.ActivityStreamsImage.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsImage.Name()] = i + } + } + // Maybe serialize property "inReplyTo" + if this.ActivityStreamsInReplyTo != nil { + if i, err := this.ActivityStreamsInReplyTo.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsInReplyTo.Name()] = i + } + } + // Maybe serialize property "likes" + if this.ActivityStreamsLikes != nil { + if i, err := this.ActivityStreamsLikes.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsLikes.Name()] = i + } + } + // Maybe serialize property "location" + if this.ActivityStreamsLocation != nil { + if i, err := this.ActivityStreamsLocation.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsLocation.Name()] = i + } + } + // Maybe serialize property "mediaType" + if this.ActivityStreamsMediaType != nil { + if i, err := this.ActivityStreamsMediaType.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsMediaType.Name()] = i + } + } + // Maybe serialize property "name" + if this.ActivityStreamsName != nil { + if i, err := this.ActivityStreamsName.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsName.Name()] = i + } + } + // Maybe serialize property "object" + if this.ActivityStreamsObject != nil { + if i, err := this.ActivityStreamsObject.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsObject.Name()] = i + } + } + // Maybe serialize property "preview" + if this.ActivityStreamsPreview != nil { + if i, err := this.ActivityStreamsPreview.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsPreview.Name()] = i + } + } + // Maybe serialize property "published" + if this.ActivityStreamsPublished != nil { + if i, err := this.ActivityStreamsPublished.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsPublished.Name()] = i + } + } + // Maybe serialize property "replies" + if this.ActivityStreamsReplies != nil { + if i, err := this.ActivityStreamsReplies.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsReplies.Name()] = i + } + } + // Maybe serialize property "shares" + if this.ActivityStreamsShares != nil { + if i, err := this.ActivityStreamsShares.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsShares.Name()] = i + } + } + // Maybe serialize property "source" + if this.ActivityStreamsSource != nil { + if i, err := this.ActivityStreamsSource.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsSource.Name()] = i + } + } + // Maybe serialize property "startTime" + if this.ActivityStreamsStartTime != nil { + if i, err := this.ActivityStreamsStartTime.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsStartTime.Name()] = i + } + } + // Maybe serialize property "summary" + if this.ActivityStreamsSummary != nil { + if i, err := this.ActivityStreamsSummary.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsSummary.Name()] = i + } + } + // Maybe serialize property "tag" + if this.ActivityStreamsTag != nil { + if i, err := this.ActivityStreamsTag.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsTag.Name()] = i + } + } + // Maybe serialize property "team" + if this.ForgeFedTeam != nil { + if i, err := this.ForgeFedTeam.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ForgeFedTeam.Name()] = i + } + } + // Maybe serialize property "ticketsTrackedBy" + if this.ForgeFedTicketsTrackedBy != nil { + if i, err := this.ForgeFedTicketsTrackedBy.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ForgeFedTicketsTrackedBy.Name()] = i + } + } + // Maybe serialize property "to" + if this.ActivityStreamsTo != nil { + if i, err := this.ActivityStreamsTo.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsTo.Name()] = i + } + } + // Maybe serialize property "tracksTicketsFor" + if this.ForgeFedTracksTicketsFor != nil { + if i, err := this.ForgeFedTracksTicketsFor.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ForgeFedTracksTicketsFor.Name()] = i + } + } + // Maybe serialize property "type" + if this.JSONLDType != nil { + if i, err := this.JSONLDType.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.JSONLDType.Name()] = i + } + } + // Maybe serialize property "updated" + if this.ActivityStreamsUpdated != nil { + if i, err := this.ActivityStreamsUpdated.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsUpdated.Name()] = i + } + } + // Maybe serialize property "url" + if this.ActivityStreamsUrl != nil { + if i, err := this.ActivityStreamsUrl.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsUrl.Name()] = i + } + } + // End: Serialize known properties + + // Begin: Serialize unknown properties + for k, v := range this.unknown { + // To be safe, ensure we aren't overwriting a known property + if _, has := m[k]; !has { + m[k] = v + } + } + // End: Serialize unknown properties + + return m, nil +} + +// SetActivityStreamsAltitude sets the "altitude" property. +func (this *ForgeFedCommit) SetActivityStreamsAltitude(i vocab.ActivityStreamsAltitudeProperty) { + this.ActivityStreamsAltitude = i +} + +// SetActivityStreamsAttachment sets the "attachment" property. +func (this *ForgeFedCommit) SetActivityStreamsAttachment(i vocab.ActivityStreamsAttachmentProperty) { + this.ActivityStreamsAttachment = i +} + +// SetActivityStreamsAttributedTo sets the "attributedTo" property. +func (this *ForgeFedCommit) SetActivityStreamsAttributedTo(i vocab.ActivityStreamsAttributedToProperty) { + this.ActivityStreamsAttributedTo = i +} + +// SetActivityStreamsAudience sets the "audience" property. +func (this *ForgeFedCommit) SetActivityStreamsAudience(i vocab.ActivityStreamsAudienceProperty) { + this.ActivityStreamsAudience = i +} + +// SetActivityStreamsBcc sets the "bcc" property. +func (this *ForgeFedCommit) SetActivityStreamsBcc(i vocab.ActivityStreamsBccProperty) { + this.ActivityStreamsBcc = i +} + +// SetActivityStreamsBto sets the "bto" property. +func (this *ForgeFedCommit) SetActivityStreamsBto(i vocab.ActivityStreamsBtoProperty) { + this.ActivityStreamsBto = i +} + +// SetActivityStreamsCc sets the "cc" property. +func (this *ForgeFedCommit) SetActivityStreamsCc(i vocab.ActivityStreamsCcProperty) { + this.ActivityStreamsCc = i +} + +// SetActivityStreamsContent sets the "content" property. +func (this *ForgeFedCommit) SetActivityStreamsContent(i vocab.ActivityStreamsContentProperty) { + this.ActivityStreamsContent = i +} + +// SetActivityStreamsContext sets the "context" property. +func (this *ForgeFedCommit) SetActivityStreamsContext(i vocab.ActivityStreamsContextProperty) { + this.ActivityStreamsContext = i +} + +// SetActivityStreamsDuration sets the "duration" property. +func (this *ForgeFedCommit) SetActivityStreamsDuration(i vocab.ActivityStreamsDurationProperty) { + this.ActivityStreamsDuration = i +} + +// SetActivityStreamsEndTime sets the "endTime" property. +func (this *ForgeFedCommit) SetActivityStreamsEndTime(i vocab.ActivityStreamsEndTimeProperty) { + this.ActivityStreamsEndTime = i +} + +// SetActivityStreamsGenerator sets the "generator" property. +func (this *ForgeFedCommit) SetActivityStreamsGenerator(i vocab.ActivityStreamsGeneratorProperty) { + this.ActivityStreamsGenerator = i +} + +// SetActivityStreamsIcon sets the "icon" property. +func (this *ForgeFedCommit) SetActivityStreamsIcon(i vocab.ActivityStreamsIconProperty) { + this.ActivityStreamsIcon = i +} + +// SetActivityStreamsImage sets the "image" property. +func (this *ForgeFedCommit) SetActivityStreamsImage(i vocab.ActivityStreamsImageProperty) { + this.ActivityStreamsImage = i +} + +// SetActivityStreamsInReplyTo sets the "inReplyTo" property. +func (this *ForgeFedCommit) SetActivityStreamsInReplyTo(i vocab.ActivityStreamsInReplyToProperty) { + this.ActivityStreamsInReplyTo = i +} + +// SetActivityStreamsLikes sets the "likes" property. +func (this *ForgeFedCommit) SetActivityStreamsLikes(i vocab.ActivityStreamsLikesProperty) { + this.ActivityStreamsLikes = i +} + +// SetActivityStreamsLocation sets the "location" property. +func (this *ForgeFedCommit) SetActivityStreamsLocation(i vocab.ActivityStreamsLocationProperty) { + this.ActivityStreamsLocation = i +} + +// SetActivityStreamsMediaType sets the "mediaType" property. +func (this *ForgeFedCommit) SetActivityStreamsMediaType(i vocab.ActivityStreamsMediaTypeProperty) { + this.ActivityStreamsMediaType = i +} + +// SetActivityStreamsName sets the "name" property. +func (this *ForgeFedCommit) SetActivityStreamsName(i vocab.ActivityStreamsNameProperty) { + this.ActivityStreamsName = i +} + +// SetActivityStreamsObject sets the "object" property. +func (this *ForgeFedCommit) SetActivityStreamsObject(i vocab.ActivityStreamsObjectProperty) { + this.ActivityStreamsObject = i +} + +// SetActivityStreamsPreview sets the "preview" property. +func (this *ForgeFedCommit) SetActivityStreamsPreview(i vocab.ActivityStreamsPreviewProperty) { + this.ActivityStreamsPreview = i +} + +// SetActivityStreamsPublished sets the "published" property. +func (this *ForgeFedCommit) SetActivityStreamsPublished(i vocab.ActivityStreamsPublishedProperty) { + this.ActivityStreamsPublished = i +} + +// SetActivityStreamsReplies sets the "replies" property. +func (this *ForgeFedCommit) SetActivityStreamsReplies(i vocab.ActivityStreamsRepliesProperty) { + this.ActivityStreamsReplies = i +} + +// SetActivityStreamsShares sets the "shares" property. +func (this *ForgeFedCommit) SetActivityStreamsShares(i vocab.ActivityStreamsSharesProperty) { + this.ActivityStreamsShares = i +} + +// SetActivityStreamsSource sets the "source" property. +func (this *ForgeFedCommit) SetActivityStreamsSource(i vocab.ActivityStreamsSourceProperty) { + this.ActivityStreamsSource = i +} + +// SetActivityStreamsStartTime sets the "startTime" property. +func (this *ForgeFedCommit) SetActivityStreamsStartTime(i vocab.ActivityStreamsStartTimeProperty) { + this.ActivityStreamsStartTime = i +} + +// SetActivityStreamsSummary sets the "summary" property. +func (this *ForgeFedCommit) SetActivityStreamsSummary(i vocab.ActivityStreamsSummaryProperty) { + this.ActivityStreamsSummary = i +} + +// SetActivityStreamsTag sets the "tag" property. +func (this *ForgeFedCommit) SetActivityStreamsTag(i vocab.ActivityStreamsTagProperty) { + this.ActivityStreamsTag = i +} + +// SetActivityStreamsTo sets the "to" property. +func (this *ForgeFedCommit) SetActivityStreamsTo(i vocab.ActivityStreamsToProperty) { + this.ActivityStreamsTo = i +} + +// SetActivityStreamsUpdated sets the "updated" property. +func (this *ForgeFedCommit) SetActivityStreamsUpdated(i vocab.ActivityStreamsUpdatedProperty) { + this.ActivityStreamsUpdated = i +} + +// SetActivityStreamsUrl sets the "url" property. +func (this *ForgeFedCommit) SetActivityStreamsUrl(i vocab.ActivityStreamsUrlProperty) { + this.ActivityStreamsUrl = i +} + +// SetForgeFedCommitted sets the "committed" property. +func (this *ForgeFedCommit) SetForgeFedCommitted(i vocab.ForgeFedCommittedProperty) { + this.ForgeFedCommitted = i +} + +// SetForgeFedCommittedBy sets the "committedBy" property. +func (this *ForgeFedCommit) SetForgeFedCommittedBy(i vocab.ForgeFedCommittedByProperty) { + this.ForgeFedCommittedBy = i +} + +// SetForgeFedDescription sets the "description" property. +func (this *ForgeFedCommit) SetForgeFedDescription(i vocab.ForgeFedDescriptionProperty) { + this.ForgeFedDescription = i +} + +// SetForgeFedFilesAdded sets the "filesAdded" property. +func (this *ForgeFedCommit) SetForgeFedFilesAdded(i vocab.ForgeFedFilesAddedProperty) { + this.ForgeFedFilesAdded = i +} + +// SetForgeFedFilesModified sets the "filesModified" property. +func (this *ForgeFedCommit) SetForgeFedFilesModified(i vocab.ForgeFedFilesModifiedProperty) { + this.ForgeFedFilesModified = i +} + +// SetForgeFedFilesRemoved sets the "filesRemoved" property. +func (this *ForgeFedCommit) SetForgeFedFilesRemoved(i vocab.ForgeFedFilesRemovedProperty) { + this.ForgeFedFilesRemoved = i +} + +// SetForgeFedHash sets the "hash" property. +func (this *ForgeFedCommit) SetForgeFedHash(i vocab.ForgeFedHashProperty) { + this.ForgeFedHash = i +} + +// SetForgeFedTeam sets the "team" property. +func (this *ForgeFedCommit) SetForgeFedTeam(i vocab.ForgeFedTeamProperty) { + this.ForgeFedTeam = i +} + +// SetForgeFedTicketsTrackedBy sets the "ticketsTrackedBy" property. +func (this *ForgeFedCommit) SetForgeFedTicketsTrackedBy(i vocab.ForgeFedTicketsTrackedByProperty) { + this.ForgeFedTicketsTrackedBy = i +} + +// SetForgeFedTracksTicketsFor sets the "tracksTicketsFor" property. +func (this *ForgeFedCommit) SetForgeFedTracksTicketsFor(i vocab.ForgeFedTracksTicketsForProperty) { + this.ForgeFedTracksTicketsFor = i +} + +// SetJSONLDId sets the "id" property. +func (this *ForgeFedCommit) SetJSONLDId(i vocab.JSONLDIdProperty) { + this.JSONLDId = i +} + +// SetJSONLDType sets the "type" property. +func (this *ForgeFedCommit) SetJSONLDType(i vocab.JSONLDTypeProperty) { + this.JSONLDType = i +} + +// VocabularyURI returns the vocabulary's URI as a string. +func (this ForgeFedCommit) VocabularyURI() string { + return "https://forgefed.peers.community/ns" +} + +// helperJSONLDContext obtains the context uris and their aliases from a property, +// if it is not nil. +func (this ForgeFedCommit) helperJSONLDContext(i jsonldContexter, toMerge map[string]string) map[string]string { + if i == nil { + return toMerge + } + for k, v := range i.JSONLDContext() { + /* + Since the literal maps in this function are determined at + code-generation time, this loop should not overwrite an existing key with a + new value. + */ + toMerge[k] = v + } + return toMerge +} diff --git a/streams/impl/forgefed/type_push/gen_doc.go b/streams/impl/forgefed/type_push/gen_doc.go new file mode 100644 index 0000000..f9a39c3 --- /dev/null +++ b/streams/impl/forgefed/type_push/gen_doc.go @@ -0,0 +1,17 @@ +// Code generated by astool. DO NOT EDIT. + +// Package typepush contains the implementation for the Push type. All +// applications are strongly encouraged to use the interface instead of this +// concrete definition. The interfaces allow applications to consume only the +// types and properties needed and be independent of the go-fed implementation +// if another alternative implementation is created. This package is +// code-generated and subject to the same license as the go-fed tool used to +// generate it. +// +// This package is independent of other types' and properties' implementations +// by having a Manager injected into it to act as a factory for the concrete +// implementations. The implementations have been generated into their own +// separate subpackages for each vocabulary. +// +// Strongly consider using the interfaces instead of this package. +package typepush diff --git a/streams/impl/forgefed/type_push/gen_pkg.go b/streams/impl/forgefed/type_push/gen_pkg.go new file mode 100644 index 0000000..f81e3ac --- /dev/null +++ b/streams/impl/forgefed/type_push/gen_pkg.go @@ -0,0 +1,207 @@ +// Code generated by astool. DO NOT EDIT. + +package typepush + +import vocab "github.com/go-fed/activity/streams/vocab" + +var mgr privateManager + +var typePropertyConstructor func() vocab.JSONLDTypeProperty + +// privateManager abstracts the code-generated manager that provides access to +// concrete implementations. +type privateManager interface { + // DeserializeActorPropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsActorProperty" non-functional + // property in the vocabulary "ActivityStreams" + DeserializeActorPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsActorProperty, error) + // DeserializeAltitudePropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsAltitudeProperty" non-functional + // property in the vocabulary "ActivityStreams" + DeserializeAltitudePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAltitudeProperty, error) + // DeserializeAttachmentPropertyActivityStreams returns the + // deserialization method for the "ActivityStreamsAttachmentProperty" + // non-functional property in the vocabulary "ActivityStreams" + DeserializeAttachmentPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAttachmentProperty, error) + // DeserializeAttributedToPropertyActivityStreams returns the + // deserialization method for the + // "ActivityStreamsAttributedToProperty" non-functional property in + // the vocabulary "ActivityStreams" + DeserializeAttributedToPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAttributedToProperty, error) + // DeserializeAudiencePropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsAudienceProperty" non-functional + // property in the vocabulary "ActivityStreams" + DeserializeAudiencePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAudienceProperty, error) + // DeserializeBccPropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsBccProperty" non-functional property + // in the vocabulary "ActivityStreams" + DeserializeBccPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsBccProperty, error) + // DeserializeBtoPropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsBtoProperty" non-functional property + // in the vocabulary "ActivityStreams" + DeserializeBtoPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsBtoProperty, error) + // DeserializeCcPropertyActivityStreams returns the deserialization method + // for the "ActivityStreamsCcProperty" non-functional property in the + // vocabulary "ActivityStreams" + DeserializeCcPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsCcProperty, error) + // DeserializeContentPropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsContentProperty" non-functional + // property in the vocabulary "ActivityStreams" + DeserializeContentPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsContentProperty, error) + // DeserializeContextPropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsContextProperty" non-functional + // property in the vocabulary "ActivityStreams" + DeserializeContextPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsContextProperty, error) + // DeserializeDurationPropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsDurationProperty" non-functional + // property in the vocabulary "ActivityStreams" + DeserializeDurationPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsDurationProperty, error) + // DeserializeEndTimePropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsEndTimeProperty" non-functional + // property in the vocabulary "ActivityStreams" + DeserializeEndTimePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsEndTimeProperty, error) + // DeserializeGeneratorPropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsGeneratorProperty" non-functional + // property in the vocabulary "ActivityStreams" + DeserializeGeneratorPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsGeneratorProperty, error) + // DeserializeIconPropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsIconProperty" non-functional + // property in the vocabulary "ActivityStreams" + DeserializeIconPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsIconProperty, error) + // DeserializeIdPropertyJSONLD returns the deserialization method for the + // "JSONLDIdProperty" non-functional property in the vocabulary + // "JSONLD" + DeserializeIdPropertyJSONLD() func(map[string]interface{}, map[string]string) (vocab.JSONLDIdProperty, error) + // DeserializeImagePropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsImageProperty" non-functional + // property in the vocabulary "ActivityStreams" + DeserializeImagePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsImageProperty, error) + // DeserializeInReplyToPropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsInReplyToProperty" non-functional + // property in the vocabulary "ActivityStreams" + DeserializeInReplyToPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsInReplyToProperty, error) + // DeserializeInstrumentPropertyActivityStreams returns the + // deserialization method for the "ActivityStreamsInstrumentProperty" + // non-functional property in the vocabulary "ActivityStreams" + DeserializeInstrumentPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsInstrumentProperty, error) + // DeserializeLikesPropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsLikesProperty" non-functional + // property in the vocabulary "ActivityStreams" + DeserializeLikesPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLikesProperty, error) + // DeserializeLocationPropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsLocationProperty" non-functional + // property in the vocabulary "ActivityStreams" + DeserializeLocationPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLocationProperty, error) + // DeserializeMediaTypePropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsMediaTypeProperty" non-functional + // property in the vocabulary "ActivityStreams" + DeserializeMediaTypePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsMediaTypeProperty, error) + // DeserializeNamePropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsNameProperty" non-functional + // property in the vocabulary "ActivityStreams" + DeserializeNamePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsNameProperty, error) + // DeserializeObjectPropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsObjectProperty" non-functional + // property in the vocabulary "ActivityStreams" + DeserializeObjectPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsObjectProperty, error) + // DeserializeOriginPropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsOriginProperty" non-functional + // property in the vocabulary "ActivityStreams" + DeserializeOriginPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsOriginProperty, error) + // DeserializePreviewPropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsPreviewProperty" non-functional + // property in the vocabulary "ActivityStreams" + DeserializePreviewPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsPreviewProperty, error) + // DeserializePublishedPropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsPublishedProperty" non-functional + // property in the vocabulary "ActivityStreams" + DeserializePublishedPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsPublishedProperty, error) + // DeserializeRepliesPropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsRepliesProperty" non-functional + // property in the vocabulary "ActivityStreams" + DeserializeRepliesPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsRepliesProperty, error) + // DeserializeResultPropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsResultProperty" non-functional + // property in the vocabulary "ActivityStreams" + DeserializeResultPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsResultProperty, error) + // DeserializeSharesPropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsSharesProperty" non-functional + // property in the vocabulary "ActivityStreams" + DeserializeSharesPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSharesProperty, error) + // DeserializeSourcePropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsSourceProperty" non-functional + // property in the vocabulary "ActivityStreams" + DeserializeSourcePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSourceProperty, error) + // DeserializeStartTimePropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsStartTimeProperty" non-functional + // property in the vocabulary "ActivityStreams" + DeserializeStartTimePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsStartTimeProperty, error) + // DeserializeSummaryPropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsSummaryProperty" non-functional + // property in the vocabulary "ActivityStreams" + DeserializeSummaryPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSummaryProperty, error) + // DeserializeTagPropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsTagProperty" non-functional property + // in the vocabulary "ActivityStreams" + DeserializeTagPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTagProperty, error) + // DeserializeTargetPropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsTargetProperty" non-functional + // property in the vocabulary "ActivityStreams" + DeserializeTargetPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTargetProperty, error) + // DeserializeTeamPropertyForgeFed returns the deserialization method for + // the "ForgeFedTeamProperty" non-functional property in the + // vocabulary "ForgeFed" + DeserializeTeamPropertyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTeamProperty, error) + // DeserializeTicketsTrackedByPropertyForgeFed returns the deserialization + // method for the "ForgeFedTicketsTrackedByProperty" non-functional + // property in the vocabulary "ForgeFed" + DeserializeTicketsTrackedByPropertyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTicketsTrackedByProperty, error) + // DeserializeToPropertyActivityStreams returns the deserialization method + // for the "ActivityStreamsToProperty" non-functional property in the + // vocabulary "ActivityStreams" + DeserializeToPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsToProperty, error) + // DeserializeTracksTicketsForPropertyForgeFed returns the deserialization + // method for the "ForgeFedTracksTicketsForProperty" non-functional + // property in the vocabulary "ForgeFed" + DeserializeTracksTicketsForPropertyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTracksTicketsForProperty, error) + // DeserializeTypePropertyJSONLD returns the deserialization method for + // the "JSONLDTypeProperty" non-functional property in the vocabulary + // "JSONLD" + DeserializeTypePropertyJSONLD() func(map[string]interface{}, map[string]string) (vocab.JSONLDTypeProperty, error) + // DeserializeUpdatedPropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsUpdatedProperty" non-functional + // property in the vocabulary "ActivityStreams" + DeserializeUpdatedPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsUpdatedProperty, error) + // DeserializeUrlPropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsUrlProperty" non-functional property + // in the vocabulary "ActivityStreams" + DeserializeUrlPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsUrlProperty, error) +} + +// jsonldContexter is a private interface to determine the JSON-LD contexts and +// aliases needed for functional and non-functional properties. It is a helper +// interface for this implementation. +type jsonldContexter interface { + // JSONLDContext returns the JSONLD URIs required in the context string + // for this property and the specific values that are set. The value + // in the map is the alias used to import the property's value or + // values. + JSONLDContext() map[string]string +} + +// SetManager sets the manager package-global variable. For internal use only, do +// not use as part of Application behavior. Must be called at golang init time. +func SetManager(m privateManager) { + mgr = m +} + +// SetTypePropertyConstructor sets the "type" property's constructor in the +// package-global variable. For internal use only, do not use as part of +// Application behavior. Must be called at golang init time. Permits +// ActivityStreams types to correctly set their "type" property at +// construction time, so users don't have to remember to do so each time. It +// is dependency injected so other go-fed compatible implementations could +// inject their own type. +func SetTypePropertyConstructor(f func() vocab.JSONLDTypeProperty) { + typePropertyConstructor = f +} diff --git a/streams/impl/forgefed/type_push/gen_type_forgefed_push.go b/streams/impl/forgefed/type_push/gen_type_forgefed_push.go new file mode 100644 index 0000000..f7e65ec --- /dev/null +++ b/streams/impl/forgefed/type_push/gen_type_forgefed_push.go @@ -0,0 +1,1967 @@ +// Code generated by astool. DO NOT EDIT. + +package typepush + +import ( + "fmt" + vocab "github.com/go-fed/activity/streams/vocab" + "strings" +) + +// Indicates that new content has been pushed to the Repository. +// +// { +// "@context": [ +// "https://www.w3.org/ns/activitystreams", +// "https://forgefed.peers.community/ns" +// ], +// "actor": "https://example.dev/aviva", +// "context": "https://example.dev/aviva/myproject", +// "id": "https://example.dev/aviva/outbox/reBGo", +// "object": { +// "items": [ +// { +// "attributedTo": "https://example.dev/aviva", +// "context": "https://example.dev/aviva/myproject", +// "created": "2019-11-03T13:43:59Z", +// "hash": "d96596230322716bd6f87a232a648ca9822a1c20", +// "id": "https://example.dev/aviva/myproject/commits/d96596230322716bd6f87a232a648ca9822a1c20", +// "summary": "Provide hints in sign-up form fields", +// "type": "Commit" +// } +// ], +// "totalItems": 1, +// "type": "OrderedCollection" +// }, +// "summary": "\u003cp\u003eAviva pushed a commit to +// myproject\u003c/p\u003e", +// "target": "https://example.dev/aviva/myproject/branches/master", +// "to": [ +// "https://example.dev/aviva/followers", +// "https://example.dev/aviva/myproject", +// "https://example.dev/aviva/myproject/team", +// "https://example.dev/aviva/myproject/followers" +// ], +// "type": "Push" +// } +type ForgeFedPush struct { + ActivityStreamsActor vocab.ActivityStreamsActorProperty + ActivityStreamsAltitude vocab.ActivityStreamsAltitudeProperty + ActivityStreamsAttachment vocab.ActivityStreamsAttachmentProperty + ActivityStreamsAttributedTo vocab.ActivityStreamsAttributedToProperty + ActivityStreamsAudience vocab.ActivityStreamsAudienceProperty + ActivityStreamsBcc vocab.ActivityStreamsBccProperty + ActivityStreamsBto vocab.ActivityStreamsBtoProperty + ActivityStreamsCc vocab.ActivityStreamsCcProperty + ActivityStreamsContent vocab.ActivityStreamsContentProperty + ActivityStreamsContext vocab.ActivityStreamsContextProperty + ActivityStreamsDuration vocab.ActivityStreamsDurationProperty + ActivityStreamsEndTime vocab.ActivityStreamsEndTimeProperty + ActivityStreamsGenerator vocab.ActivityStreamsGeneratorProperty + ActivityStreamsIcon vocab.ActivityStreamsIconProperty + JSONLDId vocab.JSONLDIdProperty + ActivityStreamsImage vocab.ActivityStreamsImageProperty + ActivityStreamsInReplyTo vocab.ActivityStreamsInReplyToProperty + ActivityStreamsInstrument vocab.ActivityStreamsInstrumentProperty + ActivityStreamsLikes vocab.ActivityStreamsLikesProperty + ActivityStreamsLocation vocab.ActivityStreamsLocationProperty + ActivityStreamsMediaType vocab.ActivityStreamsMediaTypeProperty + ActivityStreamsName vocab.ActivityStreamsNameProperty + ActivityStreamsObject vocab.ActivityStreamsObjectProperty + ActivityStreamsOrigin vocab.ActivityStreamsOriginProperty + ActivityStreamsPreview vocab.ActivityStreamsPreviewProperty + ActivityStreamsPublished vocab.ActivityStreamsPublishedProperty + ActivityStreamsReplies vocab.ActivityStreamsRepliesProperty + ActivityStreamsResult vocab.ActivityStreamsResultProperty + ActivityStreamsShares vocab.ActivityStreamsSharesProperty + ActivityStreamsSource vocab.ActivityStreamsSourceProperty + ActivityStreamsStartTime vocab.ActivityStreamsStartTimeProperty + ActivityStreamsSummary vocab.ActivityStreamsSummaryProperty + ActivityStreamsTag vocab.ActivityStreamsTagProperty + ActivityStreamsTarget vocab.ActivityStreamsTargetProperty + ForgeFedTeam vocab.ForgeFedTeamProperty + ForgeFedTicketsTrackedBy vocab.ForgeFedTicketsTrackedByProperty + ActivityStreamsTo vocab.ActivityStreamsToProperty + ForgeFedTracksTicketsFor vocab.ForgeFedTracksTicketsForProperty + JSONLDType vocab.JSONLDTypeProperty + ActivityStreamsUpdated vocab.ActivityStreamsUpdatedProperty + ActivityStreamsUrl vocab.ActivityStreamsUrlProperty + alias string + unknown map[string]interface{} +} + +// DeserializePush creates a Push from a map representation that has been +// unmarshalled from a text or binary format. +func DeserializePush(m map[string]interface{}, aliasMap map[string]string) (*ForgeFedPush, error) { + alias := "" + aliasPrefix := "" + if a, ok := aliasMap["https://forgefed.peers.community/ns"]; ok { + alias = a + aliasPrefix = a + ":" + } + this := &ForgeFedPush{ + alias: alias, + unknown: make(map[string]interface{}), + } + if typeValue, ok := m["type"]; !ok { + return nil, fmt.Errorf("no \"type\" property in map") + } else if typeString, ok := typeValue.(string); ok { + typeName := strings.TrimPrefix(typeString, aliasPrefix) + if typeName != "Push" { + return nil, fmt.Errorf("\"type\" property is not of %q type: %s", "Push", typeName) + } + // Fall through, success in finding a proper Type + } else if arrType, ok := typeValue.([]interface{}); ok { + found := false + for _, elemVal := range arrType { + if typeString, ok := elemVal.(string); ok && strings.TrimPrefix(typeString, aliasPrefix) == "Push" { + found = true + break + } + } + if !found { + return nil, fmt.Errorf("could not find a \"type\" property of value %q", "Push") + } + // Fall through, success in finding a proper Type + } else { + return nil, fmt.Errorf("\"type\" property is unrecognized type: %T", typeValue) + } + // Begin: Known property deserialization + if p, err := mgr.DeserializeActorPropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsActor = p + } + if p, err := mgr.DeserializeAltitudePropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsAltitude = p + } + if p, err := mgr.DeserializeAttachmentPropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsAttachment = p + } + if p, err := mgr.DeserializeAttributedToPropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsAttributedTo = p + } + if p, err := mgr.DeserializeAudiencePropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsAudience = p + } + if p, err := mgr.DeserializeBccPropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsBcc = p + } + if p, err := mgr.DeserializeBtoPropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsBto = p + } + if p, err := mgr.DeserializeCcPropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsCc = p + } + if p, err := mgr.DeserializeContentPropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsContent = p + } + if p, err := mgr.DeserializeContextPropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsContext = p + } + if p, err := mgr.DeserializeDurationPropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsDuration = p + } + if p, err := mgr.DeserializeEndTimePropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsEndTime = p + } + if p, err := mgr.DeserializeGeneratorPropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsGenerator = p + } + if p, err := mgr.DeserializeIconPropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsIcon = p + } + if p, err := mgr.DeserializeIdPropertyJSONLD()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.JSONLDId = p + } + if p, err := mgr.DeserializeImagePropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsImage = p + } + if p, err := mgr.DeserializeInReplyToPropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsInReplyTo = p + } + if p, err := mgr.DeserializeInstrumentPropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsInstrument = p + } + if p, err := mgr.DeserializeLikesPropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsLikes = p + } + if p, err := mgr.DeserializeLocationPropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsLocation = p + } + if p, err := mgr.DeserializeMediaTypePropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsMediaType = p + } + if p, err := mgr.DeserializeNamePropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsName = p + } + if p, err := mgr.DeserializeObjectPropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsObject = p + } + if p, err := mgr.DeserializeOriginPropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsOrigin = p + } + if p, err := mgr.DeserializePreviewPropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsPreview = p + } + if p, err := mgr.DeserializePublishedPropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsPublished = p + } + if p, err := mgr.DeserializeRepliesPropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsReplies = p + } + if p, err := mgr.DeserializeResultPropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsResult = p + } + if p, err := mgr.DeserializeSharesPropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsShares = p + } + if p, err := mgr.DeserializeSourcePropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsSource = p + } + if p, err := mgr.DeserializeStartTimePropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsStartTime = p + } + if p, err := mgr.DeserializeSummaryPropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsSummary = p + } + if p, err := mgr.DeserializeTagPropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsTag = p + } + if p, err := mgr.DeserializeTargetPropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsTarget = p + } + if p, err := mgr.DeserializeTeamPropertyForgeFed()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ForgeFedTeam = p + } + if p, err := mgr.DeserializeTicketsTrackedByPropertyForgeFed()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ForgeFedTicketsTrackedBy = p + } + if p, err := mgr.DeserializeToPropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsTo = p + } + if p, err := mgr.DeserializeTracksTicketsForPropertyForgeFed()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ForgeFedTracksTicketsFor = p + } + if p, err := mgr.DeserializeTypePropertyJSONLD()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.JSONLDType = p + } + if p, err := mgr.DeserializeUpdatedPropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsUpdated = p + } + if p, err := mgr.DeserializeUrlPropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsUrl = p + } + // End: Known property deserialization + + // Begin: Unknown deserialization + for k, v := range m { + // Begin: Code that ensures a property name is unknown + if k == "actor" { + continue + } else if k == "altitude" { + continue + } else if k == "attachment" { + continue + } else if k == "attributedTo" { + continue + } else if k == "audience" { + continue + } else if k == "bcc" { + continue + } else if k == "bto" { + continue + } else if k == "cc" { + continue + } else if k == "content" { + continue + } else if k == "contentMap" { + continue + } else if k == "context" { + continue + } else if k == "duration" { + continue + } else if k == "endTime" { + continue + } else if k == "generator" { + continue + } else if k == "icon" { + continue + } else if k == "id" { + continue + } else if k == "image" { + continue + } else if k == "inReplyTo" { + continue + } else if k == "instrument" { + continue + } else if k == "likes" { + continue + } else if k == "location" { + continue + } else if k == "mediaType" { + continue + } else if k == "name" { + continue + } else if k == "nameMap" { + continue + } else if k == "object" { + continue + } else if k == "origin" { + continue + } else if k == "preview" { + continue + } else if k == "published" { + continue + } else if k == "replies" { + continue + } else if k == "result" { + continue + } else if k == "shares" { + continue + } else if k == "source" { + continue + } else if k == "startTime" { + continue + } else if k == "summary" { + continue + } else if k == "summaryMap" { + continue + } else if k == "tag" { + continue + } else if k == "target" { + continue + } else if k == "team" { + continue + } else if k == "ticketsTrackedBy" { + continue + } else if k == "to" { + continue + } else if k == "tracksTicketsFor" { + continue + } else if k == "type" { + continue + } else if k == "updated" { + continue + } else if k == "url" { + continue + } // End: Code that ensures a property name is unknown + + this.unknown[k] = v + } + // End: Unknown deserialization + + return this, nil +} + +// ForgeFedPushExtends returns true if the Push type extends from the other type. +func ForgeFedPushExtends(other vocab.Type) bool { + extensions := []string{"Activity", "Object"} + for _, ext := range extensions { + if ext == other.GetTypeName() { + return true + } + } + return false +} + +// IsOrExtendsPush returns true if the other provided type is the Push type or +// extends from the Push type. +func IsOrExtendsPush(other vocab.Type) bool { + if other.GetTypeName() == "Push" { + return true + } + return PushIsExtendedBy(other) +} + +// NewForgeFedPush creates a new Push type +func NewForgeFedPush() *ForgeFedPush { + typeProp := typePropertyConstructor() + typeProp.AppendXMLSchemaString("Push") + return &ForgeFedPush{ + JSONLDType: typeProp, + alias: "", + unknown: make(map[string]interface{}), + } +} + +// PushIsDisjointWith returns true if the other provided type is disjoint with the +// Push type. +func PushIsDisjointWith(other vocab.Type) bool { + disjointWith := []string{"Link", "Mention"} + for _, disjoint := range disjointWith { + if disjoint == other.GetTypeName() { + return true + } + } + return false +} + +// PushIsExtendedBy returns true if the other provided type extends from the Push +// type. Note that it returns false if the types are the same; see the +// "IsOrExtendsPush" variant instead. +func PushIsExtendedBy(other vocab.Type) bool { + // Shortcut implementation: is not extended by anything. + return false +} + +// GetActivityStreamsActor returns the "actor" property if it exists, and nil +// otherwise. +func (this ForgeFedPush) GetActivityStreamsActor() vocab.ActivityStreamsActorProperty { + return this.ActivityStreamsActor +} + +// GetActivityStreamsAltitude returns the "altitude" property if it exists, and +// nil otherwise. +func (this ForgeFedPush) GetActivityStreamsAltitude() vocab.ActivityStreamsAltitudeProperty { + return this.ActivityStreamsAltitude +} + +// GetActivityStreamsAttachment returns the "attachment" property if it exists, +// and nil otherwise. +func (this ForgeFedPush) GetActivityStreamsAttachment() vocab.ActivityStreamsAttachmentProperty { + return this.ActivityStreamsAttachment +} + +// GetActivityStreamsAttributedTo returns the "attributedTo" property if it +// exists, and nil otherwise. +func (this ForgeFedPush) GetActivityStreamsAttributedTo() vocab.ActivityStreamsAttributedToProperty { + return this.ActivityStreamsAttributedTo +} + +// GetActivityStreamsAudience returns the "audience" property if it exists, and +// nil otherwise. +func (this ForgeFedPush) GetActivityStreamsAudience() vocab.ActivityStreamsAudienceProperty { + return this.ActivityStreamsAudience +} + +// GetActivityStreamsBcc returns the "bcc" property if it exists, and nil +// otherwise. +func (this ForgeFedPush) GetActivityStreamsBcc() vocab.ActivityStreamsBccProperty { + return this.ActivityStreamsBcc +} + +// GetActivityStreamsBto returns the "bto" property if it exists, and nil +// otherwise. +func (this ForgeFedPush) GetActivityStreamsBto() vocab.ActivityStreamsBtoProperty { + return this.ActivityStreamsBto +} + +// GetActivityStreamsCc returns the "cc" property if it exists, and nil otherwise. +func (this ForgeFedPush) GetActivityStreamsCc() vocab.ActivityStreamsCcProperty { + return this.ActivityStreamsCc +} + +// GetActivityStreamsContent returns the "content" property if it exists, and nil +// otherwise. +func (this ForgeFedPush) GetActivityStreamsContent() vocab.ActivityStreamsContentProperty { + return this.ActivityStreamsContent +} + +// GetActivityStreamsContext returns the "context" property if it exists, and nil +// otherwise. +func (this ForgeFedPush) GetActivityStreamsContext() vocab.ActivityStreamsContextProperty { + return this.ActivityStreamsContext +} + +// GetActivityStreamsDuration returns the "duration" property if it exists, and +// nil otherwise. +func (this ForgeFedPush) GetActivityStreamsDuration() vocab.ActivityStreamsDurationProperty { + return this.ActivityStreamsDuration +} + +// GetActivityStreamsEndTime returns the "endTime" property if it exists, and nil +// otherwise. +func (this ForgeFedPush) GetActivityStreamsEndTime() vocab.ActivityStreamsEndTimeProperty { + return this.ActivityStreamsEndTime +} + +// GetActivityStreamsGenerator returns the "generator" property if it exists, and +// nil otherwise. +func (this ForgeFedPush) GetActivityStreamsGenerator() vocab.ActivityStreamsGeneratorProperty { + return this.ActivityStreamsGenerator +} + +// GetActivityStreamsIcon returns the "icon" property if it exists, and nil +// otherwise. +func (this ForgeFedPush) GetActivityStreamsIcon() vocab.ActivityStreamsIconProperty { + return this.ActivityStreamsIcon +} + +// GetActivityStreamsImage returns the "image" property if it exists, and nil +// otherwise. +func (this ForgeFedPush) GetActivityStreamsImage() vocab.ActivityStreamsImageProperty { + return this.ActivityStreamsImage +} + +// GetActivityStreamsInReplyTo returns the "inReplyTo" property if it exists, and +// nil otherwise. +func (this ForgeFedPush) GetActivityStreamsInReplyTo() vocab.ActivityStreamsInReplyToProperty { + return this.ActivityStreamsInReplyTo +} + +// GetActivityStreamsInstrument returns the "instrument" property if it exists, +// and nil otherwise. +func (this ForgeFedPush) GetActivityStreamsInstrument() vocab.ActivityStreamsInstrumentProperty { + return this.ActivityStreamsInstrument +} + +// GetActivityStreamsLikes returns the "likes" property if it exists, and nil +// otherwise. +func (this ForgeFedPush) GetActivityStreamsLikes() vocab.ActivityStreamsLikesProperty { + return this.ActivityStreamsLikes +} + +// GetActivityStreamsLocation returns the "location" property if it exists, and +// nil otherwise. +func (this ForgeFedPush) GetActivityStreamsLocation() vocab.ActivityStreamsLocationProperty { + return this.ActivityStreamsLocation +} + +// GetActivityStreamsMediaType returns the "mediaType" property if it exists, and +// nil otherwise. +func (this ForgeFedPush) GetActivityStreamsMediaType() vocab.ActivityStreamsMediaTypeProperty { + return this.ActivityStreamsMediaType +} + +// GetActivityStreamsName returns the "name" property if it exists, and nil +// otherwise. +func (this ForgeFedPush) GetActivityStreamsName() vocab.ActivityStreamsNameProperty { + return this.ActivityStreamsName +} + +// GetActivityStreamsObject returns the "object" property if it exists, and nil +// otherwise. +func (this ForgeFedPush) GetActivityStreamsObject() vocab.ActivityStreamsObjectProperty { + return this.ActivityStreamsObject +} + +// GetActivityStreamsOrigin returns the "origin" property if it exists, and nil +// otherwise. +func (this ForgeFedPush) GetActivityStreamsOrigin() vocab.ActivityStreamsOriginProperty { + return this.ActivityStreamsOrigin +} + +// GetActivityStreamsPreview returns the "preview" property if it exists, and nil +// otherwise. +func (this ForgeFedPush) GetActivityStreamsPreview() vocab.ActivityStreamsPreviewProperty { + return this.ActivityStreamsPreview +} + +// GetActivityStreamsPublished returns the "published" property if it exists, and +// nil otherwise. +func (this ForgeFedPush) GetActivityStreamsPublished() vocab.ActivityStreamsPublishedProperty { + return this.ActivityStreamsPublished +} + +// GetActivityStreamsReplies returns the "replies" property if it exists, and nil +// otherwise. +func (this ForgeFedPush) GetActivityStreamsReplies() vocab.ActivityStreamsRepliesProperty { + return this.ActivityStreamsReplies +} + +// GetActivityStreamsResult returns the "result" property if it exists, and nil +// otherwise. +func (this ForgeFedPush) GetActivityStreamsResult() vocab.ActivityStreamsResultProperty { + return this.ActivityStreamsResult +} + +// GetActivityStreamsShares returns the "shares" property if it exists, and nil +// otherwise. +func (this ForgeFedPush) GetActivityStreamsShares() vocab.ActivityStreamsSharesProperty { + return this.ActivityStreamsShares +} + +// GetActivityStreamsSource returns the "source" property if it exists, and nil +// otherwise. +func (this ForgeFedPush) GetActivityStreamsSource() vocab.ActivityStreamsSourceProperty { + return this.ActivityStreamsSource +} + +// GetActivityStreamsStartTime returns the "startTime" property if it exists, and +// nil otherwise. +func (this ForgeFedPush) GetActivityStreamsStartTime() vocab.ActivityStreamsStartTimeProperty { + return this.ActivityStreamsStartTime +} + +// GetActivityStreamsSummary returns the "summary" property if it exists, and nil +// otherwise. +func (this ForgeFedPush) GetActivityStreamsSummary() vocab.ActivityStreamsSummaryProperty { + return this.ActivityStreamsSummary +} + +// GetActivityStreamsTag returns the "tag" property if it exists, and nil +// otherwise. +func (this ForgeFedPush) GetActivityStreamsTag() vocab.ActivityStreamsTagProperty { + return this.ActivityStreamsTag +} + +// GetActivityStreamsTarget returns the "target" property if it exists, and nil +// otherwise. +func (this ForgeFedPush) GetActivityStreamsTarget() vocab.ActivityStreamsTargetProperty { + return this.ActivityStreamsTarget +} + +// GetActivityStreamsTo returns the "to" property if it exists, and nil otherwise. +func (this ForgeFedPush) GetActivityStreamsTo() vocab.ActivityStreamsToProperty { + return this.ActivityStreamsTo +} + +// GetActivityStreamsUpdated returns the "updated" property if it exists, and nil +// otherwise. +func (this ForgeFedPush) GetActivityStreamsUpdated() vocab.ActivityStreamsUpdatedProperty { + return this.ActivityStreamsUpdated +} + +// GetActivityStreamsUrl returns the "url" property if it exists, and nil +// otherwise. +func (this ForgeFedPush) GetActivityStreamsUrl() vocab.ActivityStreamsUrlProperty { + return this.ActivityStreamsUrl +} + +// GetForgeFedTeam returns the "team" property if it exists, and nil otherwise. +func (this ForgeFedPush) GetForgeFedTeam() vocab.ForgeFedTeamProperty { + return this.ForgeFedTeam +} + +// GetForgeFedTicketsTrackedBy returns the "ticketsTrackedBy" property if it +// exists, and nil otherwise. +func (this ForgeFedPush) GetForgeFedTicketsTrackedBy() vocab.ForgeFedTicketsTrackedByProperty { + return this.ForgeFedTicketsTrackedBy +} + +// GetForgeFedTracksTicketsFor returns the "tracksTicketsFor" property if it +// exists, and nil otherwise. +func (this ForgeFedPush) GetForgeFedTracksTicketsFor() vocab.ForgeFedTracksTicketsForProperty { + return this.ForgeFedTracksTicketsFor +} + +// GetJSONLDId returns the "id" property if it exists, and nil otherwise. +func (this ForgeFedPush) GetJSONLDId() vocab.JSONLDIdProperty { + return this.JSONLDId +} + +// GetJSONLDType returns the "type" property if it exists, and nil otherwise. +func (this ForgeFedPush) GetJSONLDType() vocab.JSONLDTypeProperty { + return this.JSONLDType +} + +// GetTypeName returns the name of this type. +func (this ForgeFedPush) GetTypeName() string { + return "Push" +} + +// GetUnknownProperties returns the unknown properties for the Push type. Note +// that this should not be used by app developers. It is only used to help +// determine which implementation is LessThan the other. Developers who are +// creating a different implementation of this type's interface can use this +// method in their LessThan implementation, but routine ActivityPub +// applications should not use this to bypass the code generation tool. +func (this ForgeFedPush) GetUnknownProperties() map[string]interface{} { + return this.unknown +} + +// IsExtending returns true if the Push type extends from the other type. +func (this ForgeFedPush) IsExtending(other vocab.Type) bool { + return ForgeFedPushExtends(other) +} + +// JSONLDContext returns the JSONLD URIs required in the context string for this +// type and the specific properties that are set. The value in the map is the +// alias used to import the type and its properties. +func (this ForgeFedPush) JSONLDContext() map[string]string { + m := map[string]string{"https://forgefed.peers.community/ns": this.alias} + m = this.helperJSONLDContext(this.ActivityStreamsActor, m) + m = this.helperJSONLDContext(this.ActivityStreamsAltitude, m) + m = this.helperJSONLDContext(this.ActivityStreamsAttachment, m) + m = this.helperJSONLDContext(this.ActivityStreamsAttributedTo, m) + m = this.helperJSONLDContext(this.ActivityStreamsAudience, m) + m = this.helperJSONLDContext(this.ActivityStreamsBcc, m) + m = this.helperJSONLDContext(this.ActivityStreamsBto, m) + m = this.helperJSONLDContext(this.ActivityStreamsCc, m) + m = this.helperJSONLDContext(this.ActivityStreamsContent, m) + m = this.helperJSONLDContext(this.ActivityStreamsContext, m) + m = this.helperJSONLDContext(this.ActivityStreamsDuration, m) + m = this.helperJSONLDContext(this.ActivityStreamsEndTime, m) + m = this.helperJSONLDContext(this.ActivityStreamsGenerator, m) + m = this.helperJSONLDContext(this.ActivityStreamsIcon, m) + m = this.helperJSONLDContext(this.JSONLDId, m) + m = this.helperJSONLDContext(this.ActivityStreamsImage, m) + m = this.helperJSONLDContext(this.ActivityStreamsInReplyTo, m) + m = this.helperJSONLDContext(this.ActivityStreamsInstrument, m) + m = this.helperJSONLDContext(this.ActivityStreamsLikes, m) + m = this.helperJSONLDContext(this.ActivityStreamsLocation, m) + m = this.helperJSONLDContext(this.ActivityStreamsMediaType, m) + m = this.helperJSONLDContext(this.ActivityStreamsName, m) + m = this.helperJSONLDContext(this.ActivityStreamsObject, m) + m = this.helperJSONLDContext(this.ActivityStreamsOrigin, m) + m = this.helperJSONLDContext(this.ActivityStreamsPreview, m) + m = this.helperJSONLDContext(this.ActivityStreamsPublished, m) + m = this.helperJSONLDContext(this.ActivityStreamsReplies, m) + m = this.helperJSONLDContext(this.ActivityStreamsResult, m) + m = this.helperJSONLDContext(this.ActivityStreamsShares, m) + m = this.helperJSONLDContext(this.ActivityStreamsSource, m) + m = this.helperJSONLDContext(this.ActivityStreamsStartTime, m) + m = this.helperJSONLDContext(this.ActivityStreamsSummary, m) + m = this.helperJSONLDContext(this.ActivityStreamsTag, m) + m = this.helperJSONLDContext(this.ActivityStreamsTarget, m) + m = this.helperJSONLDContext(this.ForgeFedTeam, m) + m = this.helperJSONLDContext(this.ForgeFedTicketsTrackedBy, m) + m = this.helperJSONLDContext(this.ActivityStreamsTo, m) + m = this.helperJSONLDContext(this.ForgeFedTracksTicketsFor, m) + m = this.helperJSONLDContext(this.JSONLDType, m) + m = this.helperJSONLDContext(this.ActivityStreamsUpdated, m) + m = this.helperJSONLDContext(this.ActivityStreamsUrl, m) + + return m +} + +// LessThan computes if this Push is lesser, with an arbitrary but stable +// determination. +func (this ForgeFedPush) LessThan(o vocab.ForgeFedPush) bool { + // Begin: Compare known properties + // Compare property "actor" + if lhs, rhs := this.ActivityStreamsActor, o.GetActivityStreamsActor(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "altitude" + if lhs, rhs := this.ActivityStreamsAltitude, o.GetActivityStreamsAltitude(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "attachment" + if lhs, rhs := this.ActivityStreamsAttachment, o.GetActivityStreamsAttachment(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "attributedTo" + if lhs, rhs := this.ActivityStreamsAttributedTo, o.GetActivityStreamsAttributedTo(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "audience" + if lhs, rhs := this.ActivityStreamsAudience, o.GetActivityStreamsAudience(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "bcc" + if lhs, rhs := this.ActivityStreamsBcc, o.GetActivityStreamsBcc(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "bto" + if lhs, rhs := this.ActivityStreamsBto, o.GetActivityStreamsBto(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "cc" + if lhs, rhs := this.ActivityStreamsCc, o.GetActivityStreamsCc(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "content" + if lhs, rhs := this.ActivityStreamsContent, o.GetActivityStreamsContent(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "context" + if lhs, rhs := this.ActivityStreamsContext, o.GetActivityStreamsContext(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "duration" + if lhs, rhs := this.ActivityStreamsDuration, o.GetActivityStreamsDuration(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "endTime" + if lhs, rhs := this.ActivityStreamsEndTime, o.GetActivityStreamsEndTime(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "generator" + if lhs, rhs := this.ActivityStreamsGenerator, o.GetActivityStreamsGenerator(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "icon" + if lhs, rhs := this.ActivityStreamsIcon, o.GetActivityStreamsIcon(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "id" + if lhs, rhs := this.JSONLDId, o.GetJSONLDId(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "image" + if lhs, rhs := this.ActivityStreamsImage, o.GetActivityStreamsImage(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "inReplyTo" + if lhs, rhs := this.ActivityStreamsInReplyTo, o.GetActivityStreamsInReplyTo(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "instrument" + if lhs, rhs := this.ActivityStreamsInstrument, o.GetActivityStreamsInstrument(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "likes" + if lhs, rhs := this.ActivityStreamsLikes, o.GetActivityStreamsLikes(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "location" + if lhs, rhs := this.ActivityStreamsLocation, o.GetActivityStreamsLocation(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "mediaType" + if lhs, rhs := this.ActivityStreamsMediaType, o.GetActivityStreamsMediaType(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "name" + if lhs, rhs := this.ActivityStreamsName, o.GetActivityStreamsName(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "object" + if lhs, rhs := this.ActivityStreamsObject, o.GetActivityStreamsObject(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "origin" + if lhs, rhs := this.ActivityStreamsOrigin, o.GetActivityStreamsOrigin(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "preview" + if lhs, rhs := this.ActivityStreamsPreview, o.GetActivityStreamsPreview(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "published" + if lhs, rhs := this.ActivityStreamsPublished, o.GetActivityStreamsPublished(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "replies" + if lhs, rhs := this.ActivityStreamsReplies, o.GetActivityStreamsReplies(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "result" + if lhs, rhs := this.ActivityStreamsResult, o.GetActivityStreamsResult(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "shares" + if lhs, rhs := this.ActivityStreamsShares, o.GetActivityStreamsShares(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "source" + if lhs, rhs := this.ActivityStreamsSource, o.GetActivityStreamsSource(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "startTime" + if lhs, rhs := this.ActivityStreamsStartTime, o.GetActivityStreamsStartTime(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "summary" + if lhs, rhs := this.ActivityStreamsSummary, o.GetActivityStreamsSummary(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "tag" + if lhs, rhs := this.ActivityStreamsTag, o.GetActivityStreamsTag(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "target" + if lhs, rhs := this.ActivityStreamsTarget, o.GetActivityStreamsTarget(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "team" + if lhs, rhs := this.ForgeFedTeam, o.GetForgeFedTeam(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "ticketsTrackedBy" + if lhs, rhs := this.ForgeFedTicketsTrackedBy, o.GetForgeFedTicketsTrackedBy(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "to" + if lhs, rhs := this.ActivityStreamsTo, o.GetActivityStreamsTo(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "tracksTicketsFor" + if lhs, rhs := this.ForgeFedTracksTicketsFor, o.GetForgeFedTracksTicketsFor(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "type" + if lhs, rhs := this.JSONLDType, o.GetJSONLDType(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "updated" + if lhs, rhs := this.ActivityStreamsUpdated, o.GetActivityStreamsUpdated(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "url" + if lhs, rhs := this.ActivityStreamsUrl, o.GetActivityStreamsUrl(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // End: Compare known properties + + // Begin: Compare unknown properties (only by number of them) + if len(this.unknown) < len(o.GetUnknownProperties()) { + return true + } else if len(o.GetUnknownProperties()) < len(this.unknown) { + return false + } // End: Compare unknown properties (only by number of them) + + // All properties are the same. + return false +} + +// Serialize converts this into an interface representation suitable for +// marshalling into a text or binary format. +func (this ForgeFedPush) Serialize() (map[string]interface{}, error) { + m := make(map[string]interface{}) + typeName := "Push" + if len(this.alias) > 0 { + typeName = this.alias + ":" + "Push" + } + m["type"] = typeName + // Begin: Serialize known properties + // Maybe serialize property "actor" + if this.ActivityStreamsActor != nil { + if i, err := this.ActivityStreamsActor.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsActor.Name()] = i + } + } + // Maybe serialize property "altitude" + if this.ActivityStreamsAltitude != nil { + if i, err := this.ActivityStreamsAltitude.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsAltitude.Name()] = i + } + } + // Maybe serialize property "attachment" + if this.ActivityStreamsAttachment != nil { + if i, err := this.ActivityStreamsAttachment.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsAttachment.Name()] = i + } + } + // Maybe serialize property "attributedTo" + if this.ActivityStreamsAttributedTo != nil { + if i, err := this.ActivityStreamsAttributedTo.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsAttributedTo.Name()] = i + } + } + // Maybe serialize property "audience" + if this.ActivityStreamsAudience != nil { + if i, err := this.ActivityStreamsAudience.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsAudience.Name()] = i + } + } + // Maybe serialize property "bcc" + if this.ActivityStreamsBcc != nil { + if i, err := this.ActivityStreamsBcc.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsBcc.Name()] = i + } + } + // Maybe serialize property "bto" + if this.ActivityStreamsBto != nil { + if i, err := this.ActivityStreamsBto.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsBto.Name()] = i + } + } + // Maybe serialize property "cc" + if this.ActivityStreamsCc != nil { + if i, err := this.ActivityStreamsCc.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsCc.Name()] = i + } + } + // Maybe serialize property "content" + if this.ActivityStreamsContent != nil { + if i, err := this.ActivityStreamsContent.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsContent.Name()] = i + } + } + // Maybe serialize property "context" + if this.ActivityStreamsContext != nil { + if i, err := this.ActivityStreamsContext.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsContext.Name()] = i + } + } + // Maybe serialize property "duration" + if this.ActivityStreamsDuration != nil { + if i, err := this.ActivityStreamsDuration.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsDuration.Name()] = i + } + } + // Maybe serialize property "endTime" + if this.ActivityStreamsEndTime != nil { + if i, err := this.ActivityStreamsEndTime.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsEndTime.Name()] = i + } + } + // Maybe serialize property "generator" + if this.ActivityStreamsGenerator != nil { + if i, err := this.ActivityStreamsGenerator.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsGenerator.Name()] = i + } + } + // Maybe serialize property "icon" + if this.ActivityStreamsIcon != nil { + if i, err := this.ActivityStreamsIcon.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsIcon.Name()] = i + } + } + // Maybe serialize property "id" + if this.JSONLDId != nil { + if i, err := this.JSONLDId.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.JSONLDId.Name()] = i + } + } + // Maybe serialize property "image" + if this.ActivityStreamsImage != nil { + if i, err := this.ActivityStreamsImage.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsImage.Name()] = i + } + } + // Maybe serialize property "inReplyTo" + if this.ActivityStreamsInReplyTo != nil { + if i, err := this.ActivityStreamsInReplyTo.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsInReplyTo.Name()] = i + } + } + // Maybe serialize property "instrument" + if this.ActivityStreamsInstrument != nil { + if i, err := this.ActivityStreamsInstrument.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsInstrument.Name()] = i + } + } + // Maybe serialize property "likes" + if this.ActivityStreamsLikes != nil { + if i, err := this.ActivityStreamsLikes.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsLikes.Name()] = i + } + } + // Maybe serialize property "location" + if this.ActivityStreamsLocation != nil { + if i, err := this.ActivityStreamsLocation.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsLocation.Name()] = i + } + } + // Maybe serialize property "mediaType" + if this.ActivityStreamsMediaType != nil { + if i, err := this.ActivityStreamsMediaType.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsMediaType.Name()] = i + } + } + // Maybe serialize property "name" + if this.ActivityStreamsName != nil { + if i, err := this.ActivityStreamsName.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsName.Name()] = i + } + } + // Maybe serialize property "object" + if this.ActivityStreamsObject != nil { + if i, err := this.ActivityStreamsObject.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsObject.Name()] = i + } + } + // Maybe serialize property "origin" + if this.ActivityStreamsOrigin != nil { + if i, err := this.ActivityStreamsOrigin.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsOrigin.Name()] = i + } + } + // Maybe serialize property "preview" + if this.ActivityStreamsPreview != nil { + if i, err := this.ActivityStreamsPreview.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsPreview.Name()] = i + } + } + // Maybe serialize property "published" + if this.ActivityStreamsPublished != nil { + if i, err := this.ActivityStreamsPublished.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsPublished.Name()] = i + } + } + // Maybe serialize property "replies" + if this.ActivityStreamsReplies != nil { + if i, err := this.ActivityStreamsReplies.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsReplies.Name()] = i + } + } + // Maybe serialize property "result" + if this.ActivityStreamsResult != nil { + if i, err := this.ActivityStreamsResult.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsResult.Name()] = i + } + } + // Maybe serialize property "shares" + if this.ActivityStreamsShares != nil { + if i, err := this.ActivityStreamsShares.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsShares.Name()] = i + } + } + // Maybe serialize property "source" + if this.ActivityStreamsSource != nil { + if i, err := this.ActivityStreamsSource.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsSource.Name()] = i + } + } + // Maybe serialize property "startTime" + if this.ActivityStreamsStartTime != nil { + if i, err := this.ActivityStreamsStartTime.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsStartTime.Name()] = i + } + } + // Maybe serialize property "summary" + if this.ActivityStreamsSummary != nil { + if i, err := this.ActivityStreamsSummary.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsSummary.Name()] = i + } + } + // Maybe serialize property "tag" + if this.ActivityStreamsTag != nil { + if i, err := this.ActivityStreamsTag.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsTag.Name()] = i + } + } + // Maybe serialize property "target" + if this.ActivityStreamsTarget != nil { + if i, err := this.ActivityStreamsTarget.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsTarget.Name()] = i + } + } + // Maybe serialize property "team" + if this.ForgeFedTeam != nil { + if i, err := this.ForgeFedTeam.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ForgeFedTeam.Name()] = i + } + } + // Maybe serialize property "ticketsTrackedBy" + if this.ForgeFedTicketsTrackedBy != nil { + if i, err := this.ForgeFedTicketsTrackedBy.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ForgeFedTicketsTrackedBy.Name()] = i + } + } + // Maybe serialize property "to" + if this.ActivityStreamsTo != nil { + if i, err := this.ActivityStreamsTo.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsTo.Name()] = i + } + } + // Maybe serialize property "tracksTicketsFor" + if this.ForgeFedTracksTicketsFor != nil { + if i, err := this.ForgeFedTracksTicketsFor.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ForgeFedTracksTicketsFor.Name()] = i + } + } + // Maybe serialize property "type" + if this.JSONLDType != nil { + if i, err := this.JSONLDType.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.JSONLDType.Name()] = i + } + } + // Maybe serialize property "updated" + if this.ActivityStreamsUpdated != nil { + if i, err := this.ActivityStreamsUpdated.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsUpdated.Name()] = i + } + } + // Maybe serialize property "url" + if this.ActivityStreamsUrl != nil { + if i, err := this.ActivityStreamsUrl.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsUrl.Name()] = i + } + } + // End: Serialize known properties + + // Begin: Serialize unknown properties + for k, v := range this.unknown { + // To be safe, ensure we aren't overwriting a known property + if _, has := m[k]; !has { + m[k] = v + } + } + // End: Serialize unknown properties + + return m, nil +} + +// SetActivityStreamsActor sets the "actor" property. +func (this *ForgeFedPush) SetActivityStreamsActor(i vocab.ActivityStreamsActorProperty) { + this.ActivityStreamsActor = i +} + +// SetActivityStreamsAltitude sets the "altitude" property. +func (this *ForgeFedPush) SetActivityStreamsAltitude(i vocab.ActivityStreamsAltitudeProperty) { + this.ActivityStreamsAltitude = i +} + +// SetActivityStreamsAttachment sets the "attachment" property. +func (this *ForgeFedPush) SetActivityStreamsAttachment(i vocab.ActivityStreamsAttachmentProperty) { + this.ActivityStreamsAttachment = i +} + +// SetActivityStreamsAttributedTo sets the "attributedTo" property. +func (this *ForgeFedPush) SetActivityStreamsAttributedTo(i vocab.ActivityStreamsAttributedToProperty) { + this.ActivityStreamsAttributedTo = i +} + +// SetActivityStreamsAudience sets the "audience" property. +func (this *ForgeFedPush) SetActivityStreamsAudience(i vocab.ActivityStreamsAudienceProperty) { + this.ActivityStreamsAudience = i +} + +// SetActivityStreamsBcc sets the "bcc" property. +func (this *ForgeFedPush) SetActivityStreamsBcc(i vocab.ActivityStreamsBccProperty) { + this.ActivityStreamsBcc = i +} + +// SetActivityStreamsBto sets the "bto" property. +func (this *ForgeFedPush) SetActivityStreamsBto(i vocab.ActivityStreamsBtoProperty) { + this.ActivityStreamsBto = i +} + +// SetActivityStreamsCc sets the "cc" property. +func (this *ForgeFedPush) SetActivityStreamsCc(i vocab.ActivityStreamsCcProperty) { + this.ActivityStreamsCc = i +} + +// SetActivityStreamsContent sets the "content" property. +func (this *ForgeFedPush) SetActivityStreamsContent(i vocab.ActivityStreamsContentProperty) { + this.ActivityStreamsContent = i +} + +// SetActivityStreamsContext sets the "context" property. +func (this *ForgeFedPush) SetActivityStreamsContext(i vocab.ActivityStreamsContextProperty) { + this.ActivityStreamsContext = i +} + +// SetActivityStreamsDuration sets the "duration" property. +func (this *ForgeFedPush) SetActivityStreamsDuration(i vocab.ActivityStreamsDurationProperty) { + this.ActivityStreamsDuration = i +} + +// SetActivityStreamsEndTime sets the "endTime" property. +func (this *ForgeFedPush) SetActivityStreamsEndTime(i vocab.ActivityStreamsEndTimeProperty) { + this.ActivityStreamsEndTime = i +} + +// SetActivityStreamsGenerator sets the "generator" property. +func (this *ForgeFedPush) SetActivityStreamsGenerator(i vocab.ActivityStreamsGeneratorProperty) { + this.ActivityStreamsGenerator = i +} + +// SetActivityStreamsIcon sets the "icon" property. +func (this *ForgeFedPush) SetActivityStreamsIcon(i vocab.ActivityStreamsIconProperty) { + this.ActivityStreamsIcon = i +} + +// SetActivityStreamsImage sets the "image" property. +func (this *ForgeFedPush) SetActivityStreamsImage(i vocab.ActivityStreamsImageProperty) { + this.ActivityStreamsImage = i +} + +// SetActivityStreamsInReplyTo sets the "inReplyTo" property. +func (this *ForgeFedPush) SetActivityStreamsInReplyTo(i vocab.ActivityStreamsInReplyToProperty) { + this.ActivityStreamsInReplyTo = i +} + +// SetActivityStreamsInstrument sets the "instrument" property. +func (this *ForgeFedPush) SetActivityStreamsInstrument(i vocab.ActivityStreamsInstrumentProperty) { + this.ActivityStreamsInstrument = i +} + +// SetActivityStreamsLikes sets the "likes" property. +func (this *ForgeFedPush) SetActivityStreamsLikes(i vocab.ActivityStreamsLikesProperty) { + this.ActivityStreamsLikes = i +} + +// SetActivityStreamsLocation sets the "location" property. +func (this *ForgeFedPush) SetActivityStreamsLocation(i vocab.ActivityStreamsLocationProperty) { + this.ActivityStreamsLocation = i +} + +// SetActivityStreamsMediaType sets the "mediaType" property. +func (this *ForgeFedPush) SetActivityStreamsMediaType(i vocab.ActivityStreamsMediaTypeProperty) { + this.ActivityStreamsMediaType = i +} + +// SetActivityStreamsName sets the "name" property. +func (this *ForgeFedPush) SetActivityStreamsName(i vocab.ActivityStreamsNameProperty) { + this.ActivityStreamsName = i +} + +// SetActivityStreamsObject sets the "object" property. +func (this *ForgeFedPush) SetActivityStreamsObject(i vocab.ActivityStreamsObjectProperty) { + this.ActivityStreamsObject = i +} + +// SetActivityStreamsOrigin sets the "origin" property. +func (this *ForgeFedPush) SetActivityStreamsOrigin(i vocab.ActivityStreamsOriginProperty) { + this.ActivityStreamsOrigin = i +} + +// SetActivityStreamsPreview sets the "preview" property. +func (this *ForgeFedPush) SetActivityStreamsPreview(i vocab.ActivityStreamsPreviewProperty) { + this.ActivityStreamsPreview = i +} + +// SetActivityStreamsPublished sets the "published" property. +func (this *ForgeFedPush) SetActivityStreamsPublished(i vocab.ActivityStreamsPublishedProperty) { + this.ActivityStreamsPublished = i +} + +// SetActivityStreamsReplies sets the "replies" property. +func (this *ForgeFedPush) SetActivityStreamsReplies(i vocab.ActivityStreamsRepliesProperty) { + this.ActivityStreamsReplies = i +} + +// SetActivityStreamsResult sets the "result" property. +func (this *ForgeFedPush) SetActivityStreamsResult(i vocab.ActivityStreamsResultProperty) { + this.ActivityStreamsResult = i +} + +// SetActivityStreamsShares sets the "shares" property. +func (this *ForgeFedPush) SetActivityStreamsShares(i vocab.ActivityStreamsSharesProperty) { + this.ActivityStreamsShares = i +} + +// SetActivityStreamsSource sets the "source" property. +func (this *ForgeFedPush) SetActivityStreamsSource(i vocab.ActivityStreamsSourceProperty) { + this.ActivityStreamsSource = i +} + +// SetActivityStreamsStartTime sets the "startTime" property. +func (this *ForgeFedPush) SetActivityStreamsStartTime(i vocab.ActivityStreamsStartTimeProperty) { + this.ActivityStreamsStartTime = i +} + +// SetActivityStreamsSummary sets the "summary" property. +func (this *ForgeFedPush) SetActivityStreamsSummary(i vocab.ActivityStreamsSummaryProperty) { + this.ActivityStreamsSummary = i +} + +// SetActivityStreamsTag sets the "tag" property. +func (this *ForgeFedPush) SetActivityStreamsTag(i vocab.ActivityStreamsTagProperty) { + this.ActivityStreamsTag = i +} + +// SetActivityStreamsTarget sets the "target" property. +func (this *ForgeFedPush) SetActivityStreamsTarget(i vocab.ActivityStreamsTargetProperty) { + this.ActivityStreamsTarget = i +} + +// SetActivityStreamsTo sets the "to" property. +func (this *ForgeFedPush) SetActivityStreamsTo(i vocab.ActivityStreamsToProperty) { + this.ActivityStreamsTo = i +} + +// SetActivityStreamsUpdated sets the "updated" property. +func (this *ForgeFedPush) SetActivityStreamsUpdated(i vocab.ActivityStreamsUpdatedProperty) { + this.ActivityStreamsUpdated = i +} + +// SetActivityStreamsUrl sets the "url" property. +func (this *ForgeFedPush) SetActivityStreamsUrl(i vocab.ActivityStreamsUrlProperty) { + this.ActivityStreamsUrl = i +} + +// SetForgeFedTeam sets the "team" property. +func (this *ForgeFedPush) SetForgeFedTeam(i vocab.ForgeFedTeamProperty) { + this.ForgeFedTeam = i +} + +// SetForgeFedTicketsTrackedBy sets the "ticketsTrackedBy" property. +func (this *ForgeFedPush) SetForgeFedTicketsTrackedBy(i vocab.ForgeFedTicketsTrackedByProperty) { + this.ForgeFedTicketsTrackedBy = i +} + +// SetForgeFedTracksTicketsFor sets the "tracksTicketsFor" property. +func (this *ForgeFedPush) SetForgeFedTracksTicketsFor(i vocab.ForgeFedTracksTicketsForProperty) { + this.ForgeFedTracksTicketsFor = i +} + +// SetJSONLDId sets the "id" property. +func (this *ForgeFedPush) SetJSONLDId(i vocab.JSONLDIdProperty) { + this.JSONLDId = i +} + +// SetJSONLDType sets the "type" property. +func (this *ForgeFedPush) SetJSONLDType(i vocab.JSONLDTypeProperty) { + this.JSONLDType = i +} + +// VocabularyURI returns the vocabulary's URI as a string. +func (this ForgeFedPush) VocabularyURI() string { + return "https://forgefed.peers.community/ns" +} + +// helperJSONLDContext obtains the context uris and their aliases from a property, +// if it is not nil. +func (this ForgeFedPush) helperJSONLDContext(i jsonldContexter, toMerge map[string]string) map[string]string { + if i == nil { + return toMerge + } + for k, v := range i.JSONLDContext() { + /* + Since the literal maps in this function are determined at + code-generation time, this loop should not overwrite an existing key with a + new value. + */ + toMerge[k] = v + } + return toMerge +} diff --git a/streams/impl/forgefed/type_repository/gen_doc.go b/streams/impl/forgefed/type_repository/gen_doc.go new file mode 100644 index 0000000..194a0ad --- /dev/null +++ b/streams/impl/forgefed/type_repository/gen_doc.go @@ -0,0 +1,17 @@ +// Code generated by astool. DO NOT EDIT. + +// Package typerepository contains the implementation for the Repository type. All +// applications are strongly encouraged to use the interface instead of this +// concrete definition. The interfaces allow applications to consume only the +// types and properties needed and be independent of the go-fed implementation +// if another alternative implementation is created. This package is +// code-generated and subject to the same license as the go-fed tool used to +// generate it. +// +// This package is independent of other types' and properties' implementations +// by having a Manager injected into it to act as a factory for the concrete +// implementations. The implementations have been generated into their own +// separate subpackages for each vocabulary. +// +// Strongly consider using the interfaces instead of this package. +package typerepository diff --git a/streams/impl/forgefed/type_repository/gen_pkg.go b/streams/impl/forgefed/type_repository/gen_pkg.go new file mode 100644 index 0000000..95985e7 --- /dev/null +++ b/streams/impl/forgefed/type_repository/gen_pkg.go @@ -0,0 +1,191 @@ +// Code generated by astool. DO NOT EDIT. + +package typerepository + +import vocab "github.com/go-fed/activity/streams/vocab" + +var mgr privateManager + +var typePropertyConstructor func() vocab.JSONLDTypeProperty + +// privateManager abstracts the code-generated manager that provides access to +// concrete implementations. +type privateManager interface { + // DeserializeAltitudePropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsAltitudeProperty" non-functional + // property in the vocabulary "ActivityStreams" + DeserializeAltitudePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAltitudeProperty, error) + // DeserializeAttachmentPropertyActivityStreams returns the + // deserialization method for the "ActivityStreamsAttachmentProperty" + // non-functional property in the vocabulary "ActivityStreams" + DeserializeAttachmentPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAttachmentProperty, error) + // DeserializeAttributedToPropertyActivityStreams returns the + // deserialization method for the + // "ActivityStreamsAttributedToProperty" non-functional property in + // the vocabulary "ActivityStreams" + DeserializeAttributedToPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAttributedToProperty, error) + // DeserializeAudiencePropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsAudienceProperty" non-functional + // property in the vocabulary "ActivityStreams" + DeserializeAudiencePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAudienceProperty, error) + // DeserializeBccPropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsBccProperty" non-functional property + // in the vocabulary "ActivityStreams" + DeserializeBccPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsBccProperty, error) + // DeserializeBtoPropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsBtoProperty" non-functional property + // in the vocabulary "ActivityStreams" + DeserializeBtoPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsBtoProperty, error) + // DeserializeCcPropertyActivityStreams returns the deserialization method + // for the "ActivityStreamsCcProperty" non-functional property in the + // vocabulary "ActivityStreams" + DeserializeCcPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsCcProperty, error) + // DeserializeContentPropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsContentProperty" non-functional + // property in the vocabulary "ActivityStreams" + DeserializeContentPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsContentProperty, error) + // DeserializeContextPropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsContextProperty" non-functional + // property in the vocabulary "ActivityStreams" + DeserializeContextPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsContextProperty, error) + // DeserializeDurationPropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsDurationProperty" non-functional + // property in the vocabulary "ActivityStreams" + DeserializeDurationPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsDurationProperty, error) + // DeserializeEndTimePropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsEndTimeProperty" non-functional + // property in the vocabulary "ActivityStreams" + DeserializeEndTimePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsEndTimeProperty, error) + // DeserializeForksPropertyForgeFed returns the deserialization method for + // the "ForgeFedForksProperty" non-functional property in the + // vocabulary "ForgeFed" + DeserializeForksPropertyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedForksProperty, error) + // DeserializeGeneratorPropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsGeneratorProperty" non-functional + // property in the vocabulary "ActivityStreams" + DeserializeGeneratorPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsGeneratorProperty, error) + // DeserializeIconPropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsIconProperty" non-functional + // property in the vocabulary "ActivityStreams" + DeserializeIconPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsIconProperty, error) + // DeserializeIdPropertyJSONLD returns the deserialization method for the + // "JSONLDIdProperty" non-functional property in the vocabulary + // "JSONLD" + DeserializeIdPropertyJSONLD() func(map[string]interface{}, map[string]string) (vocab.JSONLDIdProperty, error) + // DeserializeImagePropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsImageProperty" non-functional + // property in the vocabulary "ActivityStreams" + DeserializeImagePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsImageProperty, error) + // DeserializeInReplyToPropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsInReplyToProperty" non-functional + // property in the vocabulary "ActivityStreams" + DeserializeInReplyToPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsInReplyToProperty, error) + // DeserializeLikesPropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsLikesProperty" non-functional + // property in the vocabulary "ActivityStreams" + DeserializeLikesPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLikesProperty, error) + // DeserializeLocationPropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsLocationProperty" non-functional + // property in the vocabulary "ActivityStreams" + DeserializeLocationPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLocationProperty, error) + // DeserializeMediaTypePropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsMediaTypeProperty" non-functional + // property in the vocabulary "ActivityStreams" + DeserializeMediaTypePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsMediaTypeProperty, error) + // DeserializeNamePropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsNameProperty" non-functional + // property in the vocabulary "ActivityStreams" + DeserializeNamePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsNameProperty, error) + // DeserializeObjectPropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsObjectProperty" non-functional + // property in the vocabulary "ActivityStreams" + DeserializeObjectPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsObjectProperty, error) + // DeserializePreviewPropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsPreviewProperty" non-functional + // property in the vocabulary "ActivityStreams" + DeserializePreviewPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsPreviewProperty, error) + // DeserializePublishedPropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsPublishedProperty" non-functional + // property in the vocabulary "ActivityStreams" + DeserializePublishedPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsPublishedProperty, error) + // DeserializeRepliesPropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsRepliesProperty" non-functional + // property in the vocabulary "ActivityStreams" + DeserializeRepliesPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsRepliesProperty, error) + // DeserializeSharesPropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsSharesProperty" non-functional + // property in the vocabulary "ActivityStreams" + DeserializeSharesPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSharesProperty, error) + // DeserializeSourcePropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsSourceProperty" non-functional + // property in the vocabulary "ActivityStreams" + DeserializeSourcePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSourceProperty, error) + // DeserializeStartTimePropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsStartTimeProperty" non-functional + // property in the vocabulary "ActivityStreams" + DeserializeStartTimePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsStartTimeProperty, error) + // DeserializeSummaryPropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsSummaryProperty" non-functional + // property in the vocabulary "ActivityStreams" + DeserializeSummaryPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSummaryProperty, error) + // DeserializeTagPropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsTagProperty" non-functional property + // in the vocabulary "ActivityStreams" + DeserializeTagPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTagProperty, error) + // DeserializeTeamPropertyForgeFed returns the deserialization method for + // the "ForgeFedTeamProperty" non-functional property in the + // vocabulary "ForgeFed" + DeserializeTeamPropertyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTeamProperty, error) + // DeserializeTicketsTrackedByPropertyForgeFed returns the deserialization + // method for the "ForgeFedTicketsTrackedByProperty" non-functional + // property in the vocabulary "ForgeFed" + DeserializeTicketsTrackedByPropertyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTicketsTrackedByProperty, error) + // DeserializeToPropertyActivityStreams returns the deserialization method + // for the "ActivityStreamsToProperty" non-functional property in the + // vocabulary "ActivityStreams" + DeserializeToPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsToProperty, error) + // DeserializeTracksTicketsForPropertyForgeFed returns the deserialization + // method for the "ForgeFedTracksTicketsForProperty" non-functional + // property in the vocabulary "ForgeFed" + DeserializeTracksTicketsForPropertyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTracksTicketsForProperty, error) + // DeserializeTypePropertyJSONLD returns the deserialization method for + // the "JSONLDTypeProperty" non-functional property in the vocabulary + // "JSONLD" + DeserializeTypePropertyJSONLD() func(map[string]interface{}, map[string]string) (vocab.JSONLDTypeProperty, error) + // DeserializeUpdatedPropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsUpdatedProperty" non-functional + // property in the vocabulary "ActivityStreams" + DeserializeUpdatedPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsUpdatedProperty, error) + // DeserializeUrlPropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsUrlProperty" non-functional property + // in the vocabulary "ActivityStreams" + DeserializeUrlPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsUrlProperty, error) +} + +// jsonldContexter is a private interface to determine the JSON-LD contexts and +// aliases needed for functional and non-functional properties. It is a helper +// interface for this implementation. +type jsonldContexter interface { + // JSONLDContext returns the JSONLD URIs required in the context string + // for this property and the specific values that are set. The value + // in the map is the alias used to import the property's value or + // values. + JSONLDContext() map[string]string +} + +// SetManager sets the manager package-global variable. For internal use only, do +// not use as part of Application behavior. Must be called at golang init time. +func SetManager(m privateManager) { + mgr = m +} + +// SetTypePropertyConstructor sets the "type" property's constructor in the +// package-global variable. For internal use only, do not use as part of +// Application behavior. Must be called at golang init time. Permits +// ActivityStreams types to correctly set their "type" property at +// construction time, so users don't have to remember to do so each time. It +// is dependency injected so other go-fed compatible implementations could +// inject their own type. +func SetTypePropertyConstructor(f func() vocab.JSONLDTypeProperty) { + typePropertyConstructor = f +} diff --git a/streams/impl/forgefed/type_repository/gen_type_forgefed_repository.go b/streams/impl/forgefed/type_repository/gen_type_forgefed_repository.go new file mode 100644 index 0000000..819e5a2 --- /dev/null +++ b/streams/impl/forgefed/type_repository/gen_type_forgefed_repository.go @@ -0,0 +1,1786 @@ +// Code generated by astool. DO NOT EDIT. + +package typerepository + +import ( + "fmt" + vocab "github.com/go-fed/activity/streams/vocab" + "strings" +) + +// Represents a version control system repository. +// +// { +// "@context": [ +// "https://www.w3.org/ns/activitystreams", +// "https://w3id.org/security/v1", +// "https://forgefed.peers.community/ns" +// ], +// "followers": "https://dev.example/aviva/treesim/followers", +// "id": "https://dev.example/aviva/treesim", +// "inbox": "https://dev.example/aviva/treesim/inbox", +// "name": "Tree Growth 3D Simulation", +// "outbox": "https://dev.example/aviva/treesim/outbox", +// "publicKey": { +// "id": "https://dev.example/aviva/treesim#main-key", +// "owner": "https://dev.example/aviva/treesim", +// "publicKeyPem": "-----BEGIN PUBLIC KEY-----\nMIIBIjANBgkqhki....." +// }, +// "summary": "\u003cp\u003eTree growth 3D simulator for my nature +// exploration game\u003c/p\u003e", +// "team": "https://dev.example/aviva/treesim/team", +// "type": "Repository" +// } +type ForgeFedRepository struct { + ActivityStreamsAltitude vocab.ActivityStreamsAltitudeProperty + ActivityStreamsAttachment vocab.ActivityStreamsAttachmentProperty + ActivityStreamsAttributedTo vocab.ActivityStreamsAttributedToProperty + ActivityStreamsAudience vocab.ActivityStreamsAudienceProperty + ActivityStreamsBcc vocab.ActivityStreamsBccProperty + ActivityStreamsBto vocab.ActivityStreamsBtoProperty + ActivityStreamsCc vocab.ActivityStreamsCcProperty + ActivityStreamsContent vocab.ActivityStreamsContentProperty + ActivityStreamsContext vocab.ActivityStreamsContextProperty + ActivityStreamsDuration vocab.ActivityStreamsDurationProperty + ActivityStreamsEndTime vocab.ActivityStreamsEndTimeProperty + ForgeFedForks vocab.ForgeFedForksProperty + ActivityStreamsGenerator vocab.ActivityStreamsGeneratorProperty + ActivityStreamsIcon vocab.ActivityStreamsIconProperty + JSONLDId vocab.JSONLDIdProperty + ActivityStreamsImage vocab.ActivityStreamsImageProperty + ActivityStreamsInReplyTo vocab.ActivityStreamsInReplyToProperty + ActivityStreamsLikes vocab.ActivityStreamsLikesProperty + ActivityStreamsLocation vocab.ActivityStreamsLocationProperty + ActivityStreamsMediaType vocab.ActivityStreamsMediaTypeProperty + ActivityStreamsName vocab.ActivityStreamsNameProperty + ActivityStreamsObject vocab.ActivityStreamsObjectProperty + ActivityStreamsPreview vocab.ActivityStreamsPreviewProperty + ActivityStreamsPublished vocab.ActivityStreamsPublishedProperty + ActivityStreamsReplies vocab.ActivityStreamsRepliesProperty + ActivityStreamsShares vocab.ActivityStreamsSharesProperty + ActivityStreamsSource vocab.ActivityStreamsSourceProperty + ActivityStreamsStartTime vocab.ActivityStreamsStartTimeProperty + ActivityStreamsSummary vocab.ActivityStreamsSummaryProperty + ActivityStreamsTag vocab.ActivityStreamsTagProperty + ForgeFedTeam vocab.ForgeFedTeamProperty + ForgeFedTicketsTrackedBy vocab.ForgeFedTicketsTrackedByProperty + ActivityStreamsTo vocab.ActivityStreamsToProperty + ForgeFedTracksTicketsFor vocab.ForgeFedTracksTicketsForProperty + JSONLDType vocab.JSONLDTypeProperty + ActivityStreamsUpdated vocab.ActivityStreamsUpdatedProperty + ActivityStreamsUrl vocab.ActivityStreamsUrlProperty + alias string + unknown map[string]interface{} +} + +// DeserializeRepository creates a Repository from a map representation that has +// been unmarshalled from a text or binary format. +func DeserializeRepository(m map[string]interface{}, aliasMap map[string]string) (*ForgeFedRepository, error) { + alias := "" + aliasPrefix := "" + if a, ok := aliasMap["https://forgefed.peers.community/ns"]; ok { + alias = a + aliasPrefix = a + ":" + } + this := &ForgeFedRepository{ + alias: alias, + unknown: make(map[string]interface{}), + } + if typeValue, ok := m["type"]; !ok { + return nil, fmt.Errorf("no \"type\" property in map") + } else if typeString, ok := typeValue.(string); ok { + typeName := strings.TrimPrefix(typeString, aliasPrefix) + if typeName != "Repository" { + return nil, fmt.Errorf("\"type\" property is not of %q type: %s", "Repository", typeName) + } + // Fall through, success in finding a proper Type + } else if arrType, ok := typeValue.([]interface{}); ok { + found := false + for _, elemVal := range arrType { + if typeString, ok := elemVal.(string); ok && strings.TrimPrefix(typeString, aliasPrefix) == "Repository" { + found = true + break + } + } + if !found { + return nil, fmt.Errorf("could not find a \"type\" property of value %q", "Repository") + } + // Fall through, success in finding a proper Type + } else { + return nil, fmt.Errorf("\"type\" property is unrecognized type: %T", typeValue) + } + // Begin: Known property deserialization + if p, err := mgr.DeserializeAltitudePropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsAltitude = p + } + if p, err := mgr.DeserializeAttachmentPropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsAttachment = p + } + if p, err := mgr.DeserializeAttributedToPropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsAttributedTo = p + } + if p, err := mgr.DeserializeAudiencePropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsAudience = p + } + if p, err := mgr.DeserializeBccPropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsBcc = p + } + if p, err := mgr.DeserializeBtoPropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsBto = p + } + if p, err := mgr.DeserializeCcPropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsCc = p + } + if p, err := mgr.DeserializeContentPropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsContent = p + } + if p, err := mgr.DeserializeContextPropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsContext = p + } + if p, err := mgr.DeserializeDurationPropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsDuration = p + } + if p, err := mgr.DeserializeEndTimePropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsEndTime = p + } + if p, err := mgr.DeserializeForksPropertyForgeFed()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ForgeFedForks = p + } + if p, err := mgr.DeserializeGeneratorPropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsGenerator = p + } + if p, err := mgr.DeserializeIconPropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsIcon = p + } + if p, err := mgr.DeserializeIdPropertyJSONLD()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.JSONLDId = p + } + if p, err := mgr.DeserializeImagePropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsImage = p + } + if p, err := mgr.DeserializeInReplyToPropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsInReplyTo = p + } + if p, err := mgr.DeserializeLikesPropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsLikes = p + } + if p, err := mgr.DeserializeLocationPropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsLocation = p + } + if p, err := mgr.DeserializeMediaTypePropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsMediaType = p + } + if p, err := mgr.DeserializeNamePropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsName = p + } + if p, err := mgr.DeserializeObjectPropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsObject = p + } + if p, err := mgr.DeserializePreviewPropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsPreview = p + } + if p, err := mgr.DeserializePublishedPropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsPublished = p + } + if p, err := mgr.DeserializeRepliesPropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsReplies = p + } + if p, err := mgr.DeserializeSharesPropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsShares = p + } + if p, err := mgr.DeserializeSourcePropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsSource = p + } + if p, err := mgr.DeserializeStartTimePropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsStartTime = p + } + if p, err := mgr.DeserializeSummaryPropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsSummary = p + } + if p, err := mgr.DeserializeTagPropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsTag = p + } + if p, err := mgr.DeserializeTeamPropertyForgeFed()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ForgeFedTeam = p + } + if p, err := mgr.DeserializeTicketsTrackedByPropertyForgeFed()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ForgeFedTicketsTrackedBy = p + } + if p, err := mgr.DeserializeToPropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsTo = p + } + if p, err := mgr.DeserializeTracksTicketsForPropertyForgeFed()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ForgeFedTracksTicketsFor = p + } + if p, err := mgr.DeserializeTypePropertyJSONLD()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.JSONLDType = p + } + if p, err := mgr.DeserializeUpdatedPropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsUpdated = p + } + if p, err := mgr.DeserializeUrlPropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsUrl = p + } + // End: Known property deserialization + + // Begin: Unknown deserialization + for k, v := range m { + // Begin: Code that ensures a property name is unknown + if k == "altitude" { + continue + } else if k == "attachment" { + continue + } else if k == "attributedTo" { + continue + } else if k == "audience" { + continue + } else if k == "bcc" { + continue + } else if k == "bto" { + continue + } else if k == "cc" { + continue + } else if k == "content" { + continue + } else if k == "contentMap" { + continue + } else if k == "context" { + continue + } else if k == "duration" { + continue + } else if k == "endTime" { + continue + } else if k == "forks" { + continue + } else if k == "generator" { + continue + } else if k == "icon" { + continue + } else if k == "id" { + continue + } else if k == "image" { + continue + } else if k == "inReplyTo" { + continue + } else if k == "likes" { + continue + } else if k == "location" { + continue + } else if k == "mediaType" { + continue + } else if k == "name" { + continue + } else if k == "nameMap" { + continue + } else if k == "object" { + continue + } else if k == "preview" { + continue + } else if k == "published" { + continue + } else if k == "replies" { + continue + } else if k == "shares" { + continue + } else if k == "source" { + continue + } else if k == "startTime" { + continue + } else if k == "summary" { + continue + } else if k == "summaryMap" { + continue + } else if k == "tag" { + continue + } else if k == "team" { + continue + } else if k == "ticketsTrackedBy" { + continue + } else if k == "to" { + continue + } else if k == "tracksTicketsFor" { + continue + } else if k == "type" { + continue + } else if k == "updated" { + continue + } else if k == "url" { + continue + } // End: Code that ensures a property name is unknown + + this.unknown[k] = v + } + // End: Unknown deserialization + + return this, nil +} + +// ForgeFedRepositoryExtends returns true if the Repository type extends from the +// other type. +func ForgeFedRepositoryExtends(other vocab.Type) bool { + extensions := []string{"Object"} + for _, ext := range extensions { + if ext == other.GetTypeName() { + return true + } + } + return false +} + +// IsOrExtendsRepository returns true if the other provided type is the Repository +// type or extends from the Repository type. +func IsOrExtendsRepository(other vocab.Type) bool { + if other.GetTypeName() == "Repository" { + return true + } + return RepositoryIsExtendedBy(other) +} + +// NewForgeFedRepository creates a new Repository type +func NewForgeFedRepository() *ForgeFedRepository { + typeProp := typePropertyConstructor() + typeProp.AppendXMLSchemaString("Repository") + return &ForgeFedRepository{ + JSONLDType: typeProp, + alias: "", + unknown: make(map[string]interface{}), + } +} + +// RepositoryIsDisjointWith returns true if the other provided type is disjoint +// with the Repository type. +func RepositoryIsDisjointWith(other vocab.Type) bool { + disjointWith := []string{"Link", "Mention"} + for _, disjoint := range disjointWith { + if disjoint == other.GetTypeName() { + return true + } + } + return false +} + +// RepositoryIsExtendedBy returns true if the other provided type extends from the +// Repository type. Note that it returns false if the types are the same; see +// the "IsOrExtendsRepository" variant instead. +func RepositoryIsExtendedBy(other vocab.Type) bool { + // Shortcut implementation: is not extended by anything. + return false +} + +// GetActivityStreamsAltitude returns the "altitude" property if it exists, and +// nil otherwise. +func (this ForgeFedRepository) GetActivityStreamsAltitude() vocab.ActivityStreamsAltitudeProperty { + return this.ActivityStreamsAltitude +} + +// GetActivityStreamsAttachment returns the "attachment" property if it exists, +// and nil otherwise. +func (this ForgeFedRepository) GetActivityStreamsAttachment() vocab.ActivityStreamsAttachmentProperty { + return this.ActivityStreamsAttachment +} + +// GetActivityStreamsAttributedTo returns the "attributedTo" property if it +// exists, and nil otherwise. +func (this ForgeFedRepository) GetActivityStreamsAttributedTo() vocab.ActivityStreamsAttributedToProperty { + return this.ActivityStreamsAttributedTo +} + +// GetActivityStreamsAudience returns the "audience" property if it exists, and +// nil otherwise. +func (this ForgeFedRepository) GetActivityStreamsAudience() vocab.ActivityStreamsAudienceProperty { + return this.ActivityStreamsAudience +} + +// GetActivityStreamsBcc returns the "bcc" property if it exists, and nil +// otherwise. +func (this ForgeFedRepository) GetActivityStreamsBcc() vocab.ActivityStreamsBccProperty { + return this.ActivityStreamsBcc +} + +// GetActivityStreamsBto returns the "bto" property if it exists, and nil +// otherwise. +func (this ForgeFedRepository) GetActivityStreamsBto() vocab.ActivityStreamsBtoProperty { + return this.ActivityStreamsBto +} + +// GetActivityStreamsCc returns the "cc" property if it exists, and nil otherwise. +func (this ForgeFedRepository) GetActivityStreamsCc() vocab.ActivityStreamsCcProperty { + return this.ActivityStreamsCc +} + +// GetActivityStreamsContent returns the "content" property if it exists, and nil +// otherwise. +func (this ForgeFedRepository) GetActivityStreamsContent() vocab.ActivityStreamsContentProperty { + return this.ActivityStreamsContent +} + +// GetActivityStreamsContext returns the "context" property if it exists, and nil +// otherwise. +func (this ForgeFedRepository) GetActivityStreamsContext() vocab.ActivityStreamsContextProperty { + return this.ActivityStreamsContext +} + +// GetActivityStreamsDuration returns the "duration" property if it exists, and +// nil otherwise. +func (this ForgeFedRepository) GetActivityStreamsDuration() vocab.ActivityStreamsDurationProperty { + return this.ActivityStreamsDuration +} + +// GetActivityStreamsEndTime returns the "endTime" property if it exists, and nil +// otherwise. +func (this ForgeFedRepository) GetActivityStreamsEndTime() vocab.ActivityStreamsEndTimeProperty { + return this.ActivityStreamsEndTime +} + +// GetActivityStreamsGenerator returns the "generator" property if it exists, and +// nil otherwise. +func (this ForgeFedRepository) GetActivityStreamsGenerator() vocab.ActivityStreamsGeneratorProperty { + return this.ActivityStreamsGenerator +} + +// GetActivityStreamsIcon returns the "icon" property if it exists, and nil +// otherwise. +func (this ForgeFedRepository) GetActivityStreamsIcon() vocab.ActivityStreamsIconProperty { + return this.ActivityStreamsIcon +} + +// GetActivityStreamsImage returns the "image" property if it exists, and nil +// otherwise. +func (this ForgeFedRepository) GetActivityStreamsImage() vocab.ActivityStreamsImageProperty { + return this.ActivityStreamsImage +} + +// GetActivityStreamsInReplyTo returns the "inReplyTo" property if it exists, and +// nil otherwise. +func (this ForgeFedRepository) GetActivityStreamsInReplyTo() vocab.ActivityStreamsInReplyToProperty { + return this.ActivityStreamsInReplyTo +} + +// GetActivityStreamsLikes returns the "likes" property if it exists, and nil +// otherwise. +func (this ForgeFedRepository) GetActivityStreamsLikes() vocab.ActivityStreamsLikesProperty { + return this.ActivityStreamsLikes +} + +// GetActivityStreamsLocation returns the "location" property if it exists, and +// nil otherwise. +func (this ForgeFedRepository) GetActivityStreamsLocation() vocab.ActivityStreamsLocationProperty { + return this.ActivityStreamsLocation +} + +// GetActivityStreamsMediaType returns the "mediaType" property if it exists, and +// nil otherwise. +func (this ForgeFedRepository) GetActivityStreamsMediaType() vocab.ActivityStreamsMediaTypeProperty { + return this.ActivityStreamsMediaType +} + +// GetActivityStreamsName returns the "name" property if it exists, and nil +// otherwise. +func (this ForgeFedRepository) GetActivityStreamsName() vocab.ActivityStreamsNameProperty { + return this.ActivityStreamsName +} + +// GetActivityStreamsObject returns the "object" property if it exists, and nil +// otherwise. +func (this ForgeFedRepository) GetActivityStreamsObject() vocab.ActivityStreamsObjectProperty { + return this.ActivityStreamsObject +} + +// GetActivityStreamsPreview returns the "preview" property if it exists, and nil +// otherwise. +func (this ForgeFedRepository) GetActivityStreamsPreview() vocab.ActivityStreamsPreviewProperty { + return this.ActivityStreamsPreview +} + +// GetActivityStreamsPublished returns the "published" property if it exists, and +// nil otherwise. +func (this ForgeFedRepository) GetActivityStreamsPublished() vocab.ActivityStreamsPublishedProperty { + return this.ActivityStreamsPublished +} + +// GetActivityStreamsReplies returns the "replies" property if it exists, and nil +// otherwise. +func (this ForgeFedRepository) GetActivityStreamsReplies() vocab.ActivityStreamsRepliesProperty { + return this.ActivityStreamsReplies +} + +// GetActivityStreamsShares returns the "shares" property if it exists, and nil +// otherwise. +func (this ForgeFedRepository) GetActivityStreamsShares() vocab.ActivityStreamsSharesProperty { + return this.ActivityStreamsShares +} + +// GetActivityStreamsSource returns the "source" property if it exists, and nil +// otherwise. +func (this ForgeFedRepository) GetActivityStreamsSource() vocab.ActivityStreamsSourceProperty { + return this.ActivityStreamsSource +} + +// GetActivityStreamsStartTime returns the "startTime" property if it exists, and +// nil otherwise. +func (this ForgeFedRepository) GetActivityStreamsStartTime() vocab.ActivityStreamsStartTimeProperty { + return this.ActivityStreamsStartTime +} + +// GetActivityStreamsSummary returns the "summary" property if it exists, and nil +// otherwise. +func (this ForgeFedRepository) GetActivityStreamsSummary() vocab.ActivityStreamsSummaryProperty { + return this.ActivityStreamsSummary +} + +// GetActivityStreamsTag returns the "tag" property if it exists, and nil +// otherwise. +func (this ForgeFedRepository) GetActivityStreamsTag() vocab.ActivityStreamsTagProperty { + return this.ActivityStreamsTag +} + +// GetActivityStreamsTo returns the "to" property if it exists, and nil otherwise. +func (this ForgeFedRepository) GetActivityStreamsTo() vocab.ActivityStreamsToProperty { + return this.ActivityStreamsTo +} + +// GetActivityStreamsUpdated returns the "updated" property if it exists, and nil +// otherwise. +func (this ForgeFedRepository) GetActivityStreamsUpdated() vocab.ActivityStreamsUpdatedProperty { + return this.ActivityStreamsUpdated +} + +// GetActivityStreamsUrl returns the "url" property if it exists, and nil +// otherwise. +func (this ForgeFedRepository) GetActivityStreamsUrl() vocab.ActivityStreamsUrlProperty { + return this.ActivityStreamsUrl +} + +// GetForgeFedForks returns the "forks" property if it exists, and nil otherwise. +func (this ForgeFedRepository) GetForgeFedForks() vocab.ForgeFedForksProperty { + return this.ForgeFedForks +} + +// GetForgeFedTeam returns the "team" property if it exists, and nil otherwise. +func (this ForgeFedRepository) GetForgeFedTeam() vocab.ForgeFedTeamProperty { + return this.ForgeFedTeam +} + +// GetForgeFedTicketsTrackedBy returns the "ticketsTrackedBy" property if it +// exists, and nil otherwise. +func (this ForgeFedRepository) GetForgeFedTicketsTrackedBy() vocab.ForgeFedTicketsTrackedByProperty { + return this.ForgeFedTicketsTrackedBy +} + +// GetForgeFedTracksTicketsFor returns the "tracksTicketsFor" property if it +// exists, and nil otherwise. +func (this ForgeFedRepository) GetForgeFedTracksTicketsFor() vocab.ForgeFedTracksTicketsForProperty { + return this.ForgeFedTracksTicketsFor +} + +// GetJSONLDId returns the "id" property if it exists, and nil otherwise. +func (this ForgeFedRepository) GetJSONLDId() vocab.JSONLDIdProperty { + return this.JSONLDId +} + +// GetJSONLDType returns the "type" property if it exists, and nil otherwise. +func (this ForgeFedRepository) GetJSONLDType() vocab.JSONLDTypeProperty { + return this.JSONLDType +} + +// GetTypeName returns the name of this type. +func (this ForgeFedRepository) GetTypeName() string { + return "Repository" +} + +// GetUnknownProperties returns the unknown properties for the Repository type. +// Note that this should not be used by app developers. It is only used to +// help determine which implementation is LessThan the other. Developers who +// are creating a different implementation of this type's interface can use +// this method in their LessThan implementation, but routine ActivityPub +// applications should not use this to bypass the code generation tool. +func (this ForgeFedRepository) GetUnknownProperties() map[string]interface{} { + return this.unknown +} + +// IsExtending returns true if the Repository type extends from the other type. +func (this ForgeFedRepository) IsExtending(other vocab.Type) bool { + return ForgeFedRepositoryExtends(other) +} + +// JSONLDContext returns the JSONLD URIs required in the context string for this +// type and the specific properties that are set. The value in the map is the +// alias used to import the type and its properties. +func (this ForgeFedRepository) JSONLDContext() map[string]string { + m := map[string]string{"https://forgefed.peers.community/ns": this.alias} + m = this.helperJSONLDContext(this.ActivityStreamsAltitude, m) + m = this.helperJSONLDContext(this.ActivityStreamsAttachment, m) + m = this.helperJSONLDContext(this.ActivityStreamsAttributedTo, m) + m = this.helperJSONLDContext(this.ActivityStreamsAudience, m) + m = this.helperJSONLDContext(this.ActivityStreamsBcc, m) + m = this.helperJSONLDContext(this.ActivityStreamsBto, m) + m = this.helperJSONLDContext(this.ActivityStreamsCc, m) + m = this.helperJSONLDContext(this.ActivityStreamsContent, m) + m = this.helperJSONLDContext(this.ActivityStreamsContext, m) + m = this.helperJSONLDContext(this.ActivityStreamsDuration, m) + m = this.helperJSONLDContext(this.ActivityStreamsEndTime, m) + m = this.helperJSONLDContext(this.ForgeFedForks, m) + m = this.helperJSONLDContext(this.ActivityStreamsGenerator, m) + m = this.helperJSONLDContext(this.ActivityStreamsIcon, m) + m = this.helperJSONLDContext(this.JSONLDId, m) + m = this.helperJSONLDContext(this.ActivityStreamsImage, m) + m = this.helperJSONLDContext(this.ActivityStreamsInReplyTo, m) + m = this.helperJSONLDContext(this.ActivityStreamsLikes, m) + m = this.helperJSONLDContext(this.ActivityStreamsLocation, m) + m = this.helperJSONLDContext(this.ActivityStreamsMediaType, m) + m = this.helperJSONLDContext(this.ActivityStreamsName, m) + m = this.helperJSONLDContext(this.ActivityStreamsObject, m) + m = this.helperJSONLDContext(this.ActivityStreamsPreview, m) + m = this.helperJSONLDContext(this.ActivityStreamsPublished, m) + m = this.helperJSONLDContext(this.ActivityStreamsReplies, m) + m = this.helperJSONLDContext(this.ActivityStreamsShares, m) + m = this.helperJSONLDContext(this.ActivityStreamsSource, m) + m = this.helperJSONLDContext(this.ActivityStreamsStartTime, m) + m = this.helperJSONLDContext(this.ActivityStreamsSummary, m) + m = this.helperJSONLDContext(this.ActivityStreamsTag, m) + m = this.helperJSONLDContext(this.ForgeFedTeam, m) + m = this.helperJSONLDContext(this.ForgeFedTicketsTrackedBy, m) + m = this.helperJSONLDContext(this.ActivityStreamsTo, m) + m = this.helperJSONLDContext(this.ForgeFedTracksTicketsFor, m) + m = this.helperJSONLDContext(this.JSONLDType, m) + m = this.helperJSONLDContext(this.ActivityStreamsUpdated, m) + m = this.helperJSONLDContext(this.ActivityStreamsUrl, m) + + return m +} + +// LessThan computes if this Repository is lesser, with an arbitrary but stable +// determination. +func (this ForgeFedRepository) LessThan(o vocab.ForgeFedRepository) bool { + // Begin: Compare known properties + // Compare property "altitude" + if lhs, rhs := this.ActivityStreamsAltitude, o.GetActivityStreamsAltitude(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "attachment" + if lhs, rhs := this.ActivityStreamsAttachment, o.GetActivityStreamsAttachment(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "attributedTo" + if lhs, rhs := this.ActivityStreamsAttributedTo, o.GetActivityStreamsAttributedTo(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "audience" + if lhs, rhs := this.ActivityStreamsAudience, o.GetActivityStreamsAudience(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "bcc" + if lhs, rhs := this.ActivityStreamsBcc, o.GetActivityStreamsBcc(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "bto" + if lhs, rhs := this.ActivityStreamsBto, o.GetActivityStreamsBto(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "cc" + if lhs, rhs := this.ActivityStreamsCc, o.GetActivityStreamsCc(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "content" + if lhs, rhs := this.ActivityStreamsContent, o.GetActivityStreamsContent(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "context" + if lhs, rhs := this.ActivityStreamsContext, o.GetActivityStreamsContext(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "duration" + if lhs, rhs := this.ActivityStreamsDuration, o.GetActivityStreamsDuration(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "endTime" + if lhs, rhs := this.ActivityStreamsEndTime, o.GetActivityStreamsEndTime(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "forks" + if lhs, rhs := this.ForgeFedForks, o.GetForgeFedForks(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "generator" + if lhs, rhs := this.ActivityStreamsGenerator, o.GetActivityStreamsGenerator(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "icon" + if lhs, rhs := this.ActivityStreamsIcon, o.GetActivityStreamsIcon(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "id" + if lhs, rhs := this.JSONLDId, o.GetJSONLDId(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "image" + if lhs, rhs := this.ActivityStreamsImage, o.GetActivityStreamsImage(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "inReplyTo" + if lhs, rhs := this.ActivityStreamsInReplyTo, o.GetActivityStreamsInReplyTo(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "likes" + if lhs, rhs := this.ActivityStreamsLikes, o.GetActivityStreamsLikes(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "location" + if lhs, rhs := this.ActivityStreamsLocation, o.GetActivityStreamsLocation(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "mediaType" + if lhs, rhs := this.ActivityStreamsMediaType, o.GetActivityStreamsMediaType(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "name" + if lhs, rhs := this.ActivityStreamsName, o.GetActivityStreamsName(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "object" + if lhs, rhs := this.ActivityStreamsObject, o.GetActivityStreamsObject(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "preview" + if lhs, rhs := this.ActivityStreamsPreview, o.GetActivityStreamsPreview(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "published" + if lhs, rhs := this.ActivityStreamsPublished, o.GetActivityStreamsPublished(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "replies" + if lhs, rhs := this.ActivityStreamsReplies, o.GetActivityStreamsReplies(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "shares" + if lhs, rhs := this.ActivityStreamsShares, o.GetActivityStreamsShares(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "source" + if lhs, rhs := this.ActivityStreamsSource, o.GetActivityStreamsSource(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "startTime" + if lhs, rhs := this.ActivityStreamsStartTime, o.GetActivityStreamsStartTime(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "summary" + if lhs, rhs := this.ActivityStreamsSummary, o.GetActivityStreamsSummary(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "tag" + if lhs, rhs := this.ActivityStreamsTag, o.GetActivityStreamsTag(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "team" + if lhs, rhs := this.ForgeFedTeam, o.GetForgeFedTeam(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "ticketsTrackedBy" + if lhs, rhs := this.ForgeFedTicketsTrackedBy, o.GetForgeFedTicketsTrackedBy(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "to" + if lhs, rhs := this.ActivityStreamsTo, o.GetActivityStreamsTo(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "tracksTicketsFor" + if lhs, rhs := this.ForgeFedTracksTicketsFor, o.GetForgeFedTracksTicketsFor(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "type" + if lhs, rhs := this.JSONLDType, o.GetJSONLDType(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "updated" + if lhs, rhs := this.ActivityStreamsUpdated, o.GetActivityStreamsUpdated(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "url" + if lhs, rhs := this.ActivityStreamsUrl, o.GetActivityStreamsUrl(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // End: Compare known properties + + // Begin: Compare unknown properties (only by number of them) + if len(this.unknown) < len(o.GetUnknownProperties()) { + return true + } else if len(o.GetUnknownProperties()) < len(this.unknown) { + return false + } // End: Compare unknown properties (only by number of them) + + // All properties are the same. + return false +} + +// Serialize converts this into an interface representation suitable for +// marshalling into a text or binary format. +func (this ForgeFedRepository) Serialize() (map[string]interface{}, error) { + m := make(map[string]interface{}) + typeName := "Repository" + if len(this.alias) > 0 { + typeName = this.alias + ":" + "Repository" + } + m["type"] = typeName + // Begin: Serialize known properties + // Maybe serialize property "altitude" + if this.ActivityStreamsAltitude != nil { + if i, err := this.ActivityStreamsAltitude.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsAltitude.Name()] = i + } + } + // Maybe serialize property "attachment" + if this.ActivityStreamsAttachment != nil { + if i, err := this.ActivityStreamsAttachment.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsAttachment.Name()] = i + } + } + // Maybe serialize property "attributedTo" + if this.ActivityStreamsAttributedTo != nil { + if i, err := this.ActivityStreamsAttributedTo.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsAttributedTo.Name()] = i + } + } + // Maybe serialize property "audience" + if this.ActivityStreamsAudience != nil { + if i, err := this.ActivityStreamsAudience.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsAudience.Name()] = i + } + } + // Maybe serialize property "bcc" + if this.ActivityStreamsBcc != nil { + if i, err := this.ActivityStreamsBcc.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsBcc.Name()] = i + } + } + // Maybe serialize property "bto" + if this.ActivityStreamsBto != nil { + if i, err := this.ActivityStreamsBto.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsBto.Name()] = i + } + } + // Maybe serialize property "cc" + if this.ActivityStreamsCc != nil { + if i, err := this.ActivityStreamsCc.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsCc.Name()] = i + } + } + // Maybe serialize property "content" + if this.ActivityStreamsContent != nil { + if i, err := this.ActivityStreamsContent.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsContent.Name()] = i + } + } + // Maybe serialize property "context" + if this.ActivityStreamsContext != nil { + if i, err := this.ActivityStreamsContext.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsContext.Name()] = i + } + } + // Maybe serialize property "duration" + if this.ActivityStreamsDuration != nil { + if i, err := this.ActivityStreamsDuration.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsDuration.Name()] = i + } + } + // Maybe serialize property "endTime" + if this.ActivityStreamsEndTime != nil { + if i, err := this.ActivityStreamsEndTime.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsEndTime.Name()] = i + } + } + // Maybe serialize property "forks" + if this.ForgeFedForks != nil { + if i, err := this.ForgeFedForks.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ForgeFedForks.Name()] = i + } + } + // Maybe serialize property "generator" + if this.ActivityStreamsGenerator != nil { + if i, err := this.ActivityStreamsGenerator.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsGenerator.Name()] = i + } + } + // Maybe serialize property "icon" + if this.ActivityStreamsIcon != nil { + if i, err := this.ActivityStreamsIcon.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsIcon.Name()] = i + } + } + // Maybe serialize property "id" + if this.JSONLDId != nil { + if i, err := this.JSONLDId.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.JSONLDId.Name()] = i + } + } + // Maybe serialize property "image" + if this.ActivityStreamsImage != nil { + if i, err := this.ActivityStreamsImage.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsImage.Name()] = i + } + } + // Maybe serialize property "inReplyTo" + if this.ActivityStreamsInReplyTo != nil { + if i, err := this.ActivityStreamsInReplyTo.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsInReplyTo.Name()] = i + } + } + // Maybe serialize property "likes" + if this.ActivityStreamsLikes != nil { + if i, err := this.ActivityStreamsLikes.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsLikes.Name()] = i + } + } + // Maybe serialize property "location" + if this.ActivityStreamsLocation != nil { + if i, err := this.ActivityStreamsLocation.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsLocation.Name()] = i + } + } + // Maybe serialize property "mediaType" + if this.ActivityStreamsMediaType != nil { + if i, err := this.ActivityStreamsMediaType.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsMediaType.Name()] = i + } + } + // Maybe serialize property "name" + if this.ActivityStreamsName != nil { + if i, err := this.ActivityStreamsName.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsName.Name()] = i + } + } + // Maybe serialize property "object" + if this.ActivityStreamsObject != nil { + if i, err := this.ActivityStreamsObject.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsObject.Name()] = i + } + } + // Maybe serialize property "preview" + if this.ActivityStreamsPreview != nil { + if i, err := this.ActivityStreamsPreview.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsPreview.Name()] = i + } + } + // Maybe serialize property "published" + if this.ActivityStreamsPublished != nil { + if i, err := this.ActivityStreamsPublished.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsPublished.Name()] = i + } + } + // Maybe serialize property "replies" + if this.ActivityStreamsReplies != nil { + if i, err := this.ActivityStreamsReplies.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsReplies.Name()] = i + } + } + // Maybe serialize property "shares" + if this.ActivityStreamsShares != nil { + if i, err := this.ActivityStreamsShares.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsShares.Name()] = i + } + } + // Maybe serialize property "source" + if this.ActivityStreamsSource != nil { + if i, err := this.ActivityStreamsSource.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsSource.Name()] = i + } + } + // Maybe serialize property "startTime" + if this.ActivityStreamsStartTime != nil { + if i, err := this.ActivityStreamsStartTime.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsStartTime.Name()] = i + } + } + // Maybe serialize property "summary" + if this.ActivityStreamsSummary != nil { + if i, err := this.ActivityStreamsSummary.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsSummary.Name()] = i + } + } + // Maybe serialize property "tag" + if this.ActivityStreamsTag != nil { + if i, err := this.ActivityStreamsTag.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsTag.Name()] = i + } + } + // Maybe serialize property "team" + if this.ForgeFedTeam != nil { + if i, err := this.ForgeFedTeam.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ForgeFedTeam.Name()] = i + } + } + // Maybe serialize property "ticketsTrackedBy" + if this.ForgeFedTicketsTrackedBy != nil { + if i, err := this.ForgeFedTicketsTrackedBy.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ForgeFedTicketsTrackedBy.Name()] = i + } + } + // Maybe serialize property "to" + if this.ActivityStreamsTo != nil { + if i, err := this.ActivityStreamsTo.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsTo.Name()] = i + } + } + // Maybe serialize property "tracksTicketsFor" + if this.ForgeFedTracksTicketsFor != nil { + if i, err := this.ForgeFedTracksTicketsFor.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ForgeFedTracksTicketsFor.Name()] = i + } + } + // Maybe serialize property "type" + if this.JSONLDType != nil { + if i, err := this.JSONLDType.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.JSONLDType.Name()] = i + } + } + // Maybe serialize property "updated" + if this.ActivityStreamsUpdated != nil { + if i, err := this.ActivityStreamsUpdated.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsUpdated.Name()] = i + } + } + // Maybe serialize property "url" + if this.ActivityStreamsUrl != nil { + if i, err := this.ActivityStreamsUrl.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsUrl.Name()] = i + } + } + // End: Serialize known properties + + // Begin: Serialize unknown properties + for k, v := range this.unknown { + // To be safe, ensure we aren't overwriting a known property + if _, has := m[k]; !has { + m[k] = v + } + } + // End: Serialize unknown properties + + return m, nil +} + +// SetActivityStreamsAltitude sets the "altitude" property. +func (this *ForgeFedRepository) SetActivityStreamsAltitude(i vocab.ActivityStreamsAltitudeProperty) { + this.ActivityStreamsAltitude = i +} + +// SetActivityStreamsAttachment sets the "attachment" property. +func (this *ForgeFedRepository) SetActivityStreamsAttachment(i vocab.ActivityStreamsAttachmentProperty) { + this.ActivityStreamsAttachment = i +} + +// SetActivityStreamsAttributedTo sets the "attributedTo" property. +func (this *ForgeFedRepository) SetActivityStreamsAttributedTo(i vocab.ActivityStreamsAttributedToProperty) { + this.ActivityStreamsAttributedTo = i +} + +// SetActivityStreamsAudience sets the "audience" property. +func (this *ForgeFedRepository) SetActivityStreamsAudience(i vocab.ActivityStreamsAudienceProperty) { + this.ActivityStreamsAudience = i +} + +// SetActivityStreamsBcc sets the "bcc" property. +func (this *ForgeFedRepository) SetActivityStreamsBcc(i vocab.ActivityStreamsBccProperty) { + this.ActivityStreamsBcc = i +} + +// SetActivityStreamsBto sets the "bto" property. +func (this *ForgeFedRepository) SetActivityStreamsBto(i vocab.ActivityStreamsBtoProperty) { + this.ActivityStreamsBto = i +} + +// SetActivityStreamsCc sets the "cc" property. +func (this *ForgeFedRepository) SetActivityStreamsCc(i vocab.ActivityStreamsCcProperty) { + this.ActivityStreamsCc = i +} + +// SetActivityStreamsContent sets the "content" property. +func (this *ForgeFedRepository) SetActivityStreamsContent(i vocab.ActivityStreamsContentProperty) { + this.ActivityStreamsContent = i +} + +// SetActivityStreamsContext sets the "context" property. +func (this *ForgeFedRepository) SetActivityStreamsContext(i vocab.ActivityStreamsContextProperty) { + this.ActivityStreamsContext = i +} + +// SetActivityStreamsDuration sets the "duration" property. +func (this *ForgeFedRepository) SetActivityStreamsDuration(i vocab.ActivityStreamsDurationProperty) { + this.ActivityStreamsDuration = i +} + +// SetActivityStreamsEndTime sets the "endTime" property. +func (this *ForgeFedRepository) SetActivityStreamsEndTime(i vocab.ActivityStreamsEndTimeProperty) { + this.ActivityStreamsEndTime = i +} + +// SetActivityStreamsGenerator sets the "generator" property. +func (this *ForgeFedRepository) SetActivityStreamsGenerator(i vocab.ActivityStreamsGeneratorProperty) { + this.ActivityStreamsGenerator = i +} + +// SetActivityStreamsIcon sets the "icon" property. +func (this *ForgeFedRepository) SetActivityStreamsIcon(i vocab.ActivityStreamsIconProperty) { + this.ActivityStreamsIcon = i +} + +// SetActivityStreamsImage sets the "image" property. +func (this *ForgeFedRepository) SetActivityStreamsImage(i vocab.ActivityStreamsImageProperty) { + this.ActivityStreamsImage = i +} + +// SetActivityStreamsInReplyTo sets the "inReplyTo" property. +func (this *ForgeFedRepository) SetActivityStreamsInReplyTo(i vocab.ActivityStreamsInReplyToProperty) { + this.ActivityStreamsInReplyTo = i +} + +// SetActivityStreamsLikes sets the "likes" property. +func (this *ForgeFedRepository) SetActivityStreamsLikes(i vocab.ActivityStreamsLikesProperty) { + this.ActivityStreamsLikes = i +} + +// SetActivityStreamsLocation sets the "location" property. +func (this *ForgeFedRepository) SetActivityStreamsLocation(i vocab.ActivityStreamsLocationProperty) { + this.ActivityStreamsLocation = i +} + +// SetActivityStreamsMediaType sets the "mediaType" property. +func (this *ForgeFedRepository) SetActivityStreamsMediaType(i vocab.ActivityStreamsMediaTypeProperty) { + this.ActivityStreamsMediaType = i +} + +// SetActivityStreamsName sets the "name" property. +func (this *ForgeFedRepository) SetActivityStreamsName(i vocab.ActivityStreamsNameProperty) { + this.ActivityStreamsName = i +} + +// SetActivityStreamsObject sets the "object" property. +func (this *ForgeFedRepository) SetActivityStreamsObject(i vocab.ActivityStreamsObjectProperty) { + this.ActivityStreamsObject = i +} + +// SetActivityStreamsPreview sets the "preview" property. +func (this *ForgeFedRepository) SetActivityStreamsPreview(i vocab.ActivityStreamsPreviewProperty) { + this.ActivityStreamsPreview = i +} + +// SetActivityStreamsPublished sets the "published" property. +func (this *ForgeFedRepository) SetActivityStreamsPublished(i vocab.ActivityStreamsPublishedProperty) { + this.ActivityStreamsPublished = i +} + +// SetActivityStreamsReplies sets the "replies" property. +func (this *ForgeFedRepository) SetActivityStreamsReplies(i vocab.ActivityStreamsRepliesProperty) { + this.ActivityStreamsReplies = i +} + +// SetActivityStreamsShares sets the "shares" property. +func (this *ForgeFedRepository) SetActivityStreamsShares(i vocab.ActivityStreamsSharesProperty) { + this.ActivityStreamsShares = i +} + +// SetActivityStreamsSource sets the "source" property. +func (this *ForgeFedRepository) SetActivityStreamsSource(i vocab.ActivityStreamsSourceProperty) { + this.ActivityStreamsSource = i +} + +// SetActivityStreamsStartTime sets the "startTime" property. +func (this *ForgeFedRepository) SetActivityStreamsStartTime(i vocab.ActivityStreamsStartTimeProperty) { + this.ActivityStreamsStartTime = i +} + +// SetActivityStreamsSummary sets the "summary" property. +func (this *ForgeFedRepository) SetActivityStreamsSummary(i vocab.ActivityStreamsSummaryProperty) { + this.ActivityStreamsSummary = i +} + +// SetActivityStreamsTag sets the "tag" property. +func (this *ForgeFedRepository) SetActivityStreamsTag(i vocab.ActivityStreamsTagProperty) { + this.ActivityStreamsTag = i +} + +// SetActivityStreamsTo sets the "to" property. +func (this *ForgeFedRepository) SetActivityStreamsTo(i vocab.ActivityStreamsToProperty) { + this.ActivityStreamsTo = i +} + +// SetActivityStreamsUpdated sets the "updated" property. +func (this *ForgeFedRepository) SetActivityStreamsUpdated(i vocab.ActivityStreamsUpdatedProperty) { + this.ActivityStreamsUpdated = i +} + +// SetActivityStreamsUrl sets the "url" property. +func (this *ForgeFedRepository) SetActivityStreamsUrl(i vocab.ActivityStreamsUrlProperty) { + this.ActivityStreamsUrl = i +} + +// SetForgeFedForks sets the "forks" property. +func (this *ForgeFedRepository) SetForgeFedForks(i vocab.ForgeFedForksProperty) { + this.ForgeFedForks = i +} + +// SetForgeFedTeam sets the "team" property. +func (this *ForgeFedRepository) SetForgeFedTeam(i vocab.ForgeFedTeamProperty) { + this.ForgeFedTeam = i +} + +// SetForgeFedTicketsTrackedBy sets the "ticketsTrackedBy" property. +func (this *ForgeFedRepository) SetForgeFedTicketsTrackedBy(i vocab.ForgeFedTicketsTrackedByProperty) { + this.ForgeFedTicketsTrackedBy = i +} + +// SetForgeFedTracksTicketsFor sets the "tracksTicketsFor" property. +func (this *ForgeFedRepository) SetForgeFedTracksTicketsFor(i vocab.ForgeFedTracksTicketsForProperty) { + this.ForgeFedTracksTicketsFor = i +} + +// SetJSONLDId sets the "id" property. +func (this *ForgeFedRepository) SetJSONLDId(i vocab.JSONLDIdProperty) { + this.JSONLDId = i +} + +// SetJSONLDType sets the "type" property. +func (this *ForgeFedRepository) SetJSONLDType(i vocab.JSONLDTypeProperty) { + this.JSONLDType = i +} + +// VocabularyURI returns the vocabulary's URI as a string. +func (this ForgeFedRepository) VocabularyURI() string { + return "https://forgefed.peers.community/ns" +} + +// helperJSONLDContext obtains the context uris and their aliases from a property, +// if it is not nil. +func (this ForgeFedRepository) helperJSONLDContext(i jsonldContexter, toMerge map[string]string) map[string]string { + if i == nil { + return toMerge + } + for k, v := range i.JSONLDContext() { + /* + Since the literal maps in this function are determined at + code-generation time, this loop should not overwrite an existing key with a + new value. + */ + toMerge[k] = v + } + return toMerge +} diff --git a/streams/impl/forgefed/type_ticket/gen_doc.go b/streams/impl/forgefed/type_ticket/gen_doc.go new file mode 100644 index 0000000..3268d6d --- /dev/null +++ b/streams/impl/forgefed/type_ticket/gen_doc.go @@ -0,0 +1,17 @@ +// Code generated by astool. DO NOT EDIT. + +// Package typeticket contains the implementation for the Ticket type. All +// applications are strongly encouraged to use the interface instead of this +// concrete definition. The interfaces allow applications to consume only the +// types and properties needed and be independent of the go-fed implementation +// if another alternative implementation is created. This package is +// code-generated and subject to the same license as the go-fed tool used to +// generate it. +// +// This package is independent of other types' and properties' implementations +// by having a Manager injected into it to act as a factory for the concrete +// implementations. The implementations have been generated into their own +// separate subpackages for each vocabulary. +// +// Strongly consider using the interfaces instead of this package. +package typeticket diff --git a/streams/impl/forgefed/type_ticket/gen_pkg.go b/streams/impl/forgefed/type_ticket/gen_pkg.go new file mode 100644 index 0000000..1c57f8b --- /dev/null +++ b/streams/impl/forgefed/type_ticket/gen_pkg.go @@ -0,0 +1,211 @@ +// Code generated by astool. DO NOT EDIT. + +package typeticket + +import vocab "github.com/go-fed/activity/streams/vocab" + +var mgr privateManager + +var typePropertyConstructor func() vocab.JSONLDTypeProperty + +// privateManager abstracts the code-generated manager that provides access to +// concrete implementations. +type privateManager interface { + // DeserializeAltitudePropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsAltitudeProperty" non-functional + // property in the vocabulary "ActivityStreams" + DeserializeAltitudePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAltitudeProperty, error) + // DeserializeAssignedToPropertyForgeFed returns the deserialization + // method for the "ForgeFedAssignedToProperty" non-functional property + // in the vocabulary "ForgeFed" + DeserializeAssignedToPropertyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedAssignedToProperty, error) + // DeserializeAttachmentPropertyActivityStreams returns the + // deserialization method for the "ActivityStreamsAttachmentProperty" + // non-functional property in the vocabulary "ActivityStreams" + DeserializeAttachmentPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAttachmentProperty, error) + // DeserializeAttributedToPropertyActivityStreams returns the + // deserialization method for the + // "ActivityStreamsAttributedToProperty" non-functional property in + // the vocabulary "ActivityStreams" + DeserializeAttributedToPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAttributedToProperty, error) + // DeserializeAudiencePropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsAudienceProperty" non-functional + // property in the vocabulary "ActivityStreams" + DeserializeAudiencePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAudienceProperty, error) + // DeserializeBccPropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsBccProperty" non-functional property + // in the vocabulary "ActivityStreams" + DeserializeBccPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsBccProperty, error) + // DeserializeBtoPropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsBtoProperty" non-functional property + // in the vocabulary "ActivityStreams" + DeserializeBtoPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsBtoProperty, error) + // DeserializeCcPropertyActivityStreams returns the deserialization method + // for the "ActivityStreamsCcProperty" non-functional property in the + // vocabulary "ActivityStreams" + DeserializeCcPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsCcProperty, error) + // DeserializeContentPropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsContentProperty" non-functional + // property in the vocabulary "ActivityStreams" + DeserializeContentPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsContentProperty, error) + // DeserializeContextPropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsContextProperty" non-functional + // property in the vocabulary "ActivityStreams" + DeserializeContextPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsContextProperty, error) + // DeserializeDependantsPropertyForgeFed returns the deserialization + // method for the "ForgeFedDependantsProperty" non-functional property + // in the vocabulary "ForgeFed" + DeserializeDependantsPropertyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedDependantsProperty, error) + // DeserializeDependedByPropertyForgeFed returns the deserialization + // method for the "ForgeFedDependedByProperty" non-functional property + // in the vocabulary "ForgeFed" + DeserializeDependedByPropertyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedDependedByProperty, error) + // DeserializeDependenciesPropertyForgeFed returns the deserialization + // method for the "ForgeFedDependenciesProperty" non-functional + // property in the vocabulary "ForgeFed" + DeserializeDependenciesPropertyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedDependenciesProperty, error) + // DeserializeDependsOnPropertyForgeFed returns the deserialization method + // for the "ForgeFedDependsOnProperty" non-functional property in the + // vocabulary "ForgeFed" + DeserializeDependsOnPropertyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedDependsOnProperty, error) + // DeserializeDurationPropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsDurationProperty" non-functional + // property in the vocabulary "ActivityStreams" + DeserializeDurationPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsDurationProperty, error) + // DeserializeEndTimePropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsEndTimeProperty" non-functional + // property in the vocabulary "ActivityStreams" + DeserializeEndTimePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsEndTimeProperty, error) + // DeserializeGeneratorPropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsGeneratorProperty" non-functional + // property in the vocabulary "ActivityStreams" + DeserializeGeneratorPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsGeneratorProperty, error) + // DeserializeIconPropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsIconProperty" non-functional + // property in the vocabulary "ActivityStreams" + DeserializeIconPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsIconProperty, error) + // DeserializeIdPropertyJSONLD returns the deserialization method for the + // "JSONLDIdProperty" non-functional property in the vocabulary + // "JSONLD" + DeserializeIdPropertyJSONLD() func(map[string]interface{}, map[string]string) (vocab.JSONLDIdProperty, error) + // DeserializeImagePropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsImageProperty" non-functional + // property in the vocabulary "ActivityStreams" + DeserializeImagePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsImageProperty, error) + // DeserializeInReplyToPropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsInReplyToProperty" non-functional + // property in the vocabulary "ActivityStreams" + DeserializeInReplyToPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsInReplyToProperty, error) + // DeserializeIsResolvedPropertyForgeFed returns the deserialization + // method for the "ForgeFedIsResolvedProperty" non-functional property + // in the vocabulary "ForgeFed" + DeserializeIsResolvedPropertyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedIsResolvedProperty, error) + // DeserializeLikesPropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsLikesProperty" non-functional + // property in the vocabulary "ActivityStreams" + DeserializeLikesPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLikesProperty, error) + // DeserializeLocationPropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsLocationProperty" non-functional + // property in the vocabulary "ActivityStreams" + DeserializeLocationPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLocationProperty, error) + // DeserializeMediaTypePropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsMediaTypeProperty" non-functional + // property in the vocabulary "ActivityStreams" + DeserializeMediaTypePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsMediaTypeProperty, error) + // DeserializeNamePropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsNameProperty" non-functional + // property in the vocabulary "ActivityStreams" + DeserializeNamePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsNameProperty, error) + // DeserializeObjectPropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsObjectProperty" non-functional + // property in the vocabulary "ActivityStreams" + DeserializeObjectPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsObjectProperty, error) + // DeserializePreviewPropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsPreviewProperty" non-functional + // property in the vocabulary "ActivityStreams" + DeserializePreviewPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsPreviewProperty, error) + // DeserializePublishedPropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsPublishedProperty" non-functional + // property in the vocabulary "ActivityStreams" + DeserializePublishedPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsPublishedProperty, error) + // DeserializeRepliesPropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsRepliesProperty" non-functional + // property in the vocabulary "ActivityStreams" + DeserializeRepliesPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsRepliesProperty, error) + // DeserializeSharesPropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsSharesProperty" non-functional + // property in the vocabulary "ActivityStreams" + DeserializeSharesPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSharesProperty, error) + // DeserializeSourcePropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsSourceProperty" non-functional + // property in the vocabulary "ActivityStreams" + DeserializeSourcePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSourceProperty, error) + // DeserializeStartTimePropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsStartTimeProperty" non-functional + // property in the vocabulary "ActivityStreams" + DeserializeStartTimePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsStartTimeProperty, error) + // DeserializeSummaryPropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsSummaryProperty" non-functional + // property in the vocabulary "ActivityStreams" + DeserializeSummaryPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSummaryProperty, error) + // DeserializeTagPropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsTagProperty" non-functional property + // in the vocabulary "ActivityStreams" + DeserializeTagPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTagProperty, error) + // DeserializeTeamPropertyForgeFed returns the deserialization method for + // the "ForgeFedTeamProperty" non-functional property in the + // vocabulary "ForgeFed" + DeserializeTeamPropertyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTeamProperty, error) + // DeserializeTicketsTrackedByPropertyForgeFed returns the deserialization + // method for the "ForgeFedTicketsTrackedByProperty" non-functional + // property in the vocabulary "ForgeFed" + DeserializeTicketsTrackedByPropertyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTicketsTrackedByProperty, error) + // DeserializeToPropertyActivityStreams returns the deserialization method + // for the "ActivityStreamsToProperty" non-functional property in the + // vocabulary "ActivityStreams" + DeserializeToPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsToProperty, error) + // DeserializeTracksTicketsForPropertyForgeFed returns the deserialization + // method for the "ForgeFedTracksTicketsForProperty" non-functional + // property in the vocabulary "ForgeFed" + DeserializeTracksTicketsForPropertyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTracksTicketsForProperty, error) + // DeserializeTypePropertyJSONLD returns the deserialization method for + // the "JSONLDTypeProperty" non-functional property in the vocabulary + // "JSONLD" + DeserializeTypePropertyJSONLD() func(map[string]interface{}, map[string]string) (vocab.JSONLDTypeProperty, error) + // DeserializeUpdatedPropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsUpdatedProperty" non-functional + // property in the vocabulary "ActivityStreams" + DeserializeUpdatedPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsUpdatedProperty, error) + // DeserializeUrlPropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsUrlProperty" non-functional property + // in the vocabulary "ActivityStreams" + DeserializeUrlPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsUrlProperty, error) +} + +// jsonldContexter is a private interface to determine the JSON-LD contexts and +// aliases needed for functional and non-functional properties. It is a helper +// interface for this implementation. +type jsonldContexter interface { + // JSONLDContext returns the JSONLD URIs required in the context string + // for this property and the specific values that are set. The value + // in the map is the alias used to import the property's value or + // values. + JSONLDContext() map[string]string +} + +// SetManager sets the manager package-global variable. For internal use only, do +// not use as part of Application behavior. Must be called at golang init time. +func SetManager(m privateManager) { + mgr = m +} + +// SetTypePropertyConstructor sets the "type" property's constructor in the +// package-global variable. For internal use only, do not use as part of +// Application behavior. Must be called at golang init time. Permits +// ActivityStreams types to correctly set their "type" property at +// construction time, so users don't have to remember to do so each time. It +// is dependency injected so other go-fed compatible implementations could +// inject their own type. +func SetTypePropertyConstructor(f func() vocab.JSONLDTypeProperty) { + typePropertyConstructor = f +} diff --git a/streams/impl/forgefed/type_ticket/gen_type_forgefed_ticket.go b/streams/impl/forgefed/type_ticket/gen_type_forgefed_ticket.go new file mode 100644 index 0000000..a2902da --- /dev/null +++ b/streams/impl/forgefed/type_ticket/gen_type_forgefed_ticket.go @@ -0,0 +1,1998 @@ +// Code generated by astool. DO NOT EDIT. + +package typeticket + +import ( + "fmt" + vocab "github.com/go-fed/activity/streams/vocab" + "strings" +) + +// Represents an item that requires work or attention. Tickets exist in the +// context of a project (which may or may not be a version-control +// repository), and are used to track ideas, proposals, tasks, bugs and more. +// +// { +// "@context": [ +// "https://www.w3.org/ns/activitystreams", +// "https://forgefed.peers.community/ns" +// ], +// "assignedTo": "https://example.dev/alice", +// "attributedTo": "https://dev.community/bob", +// "content": "\u003cp\u003ePlease fix. +// \u003ci\u003eEverything\u003c/i\u003e is broken!\u003c/p\u003e", +// "context": "https://example.dev/alice/myrepo", +// "id": "https://example.dev/alice/myrepo/issues/42", +// "isResolved": false, +// "mediaType": "text/html", +// "source": { +// "content": "Please fix. *Everything* is broken!", +// "mediaType": "text/markdown; variant=CommonMark" +// }, +// "summary": "Nothing works!", +// "type": "Ticket" +// } +type ForgeFedTicket struct { + ActivityStreamsAltitude vocab.ActivityStreamsAltitudeProperty + ForgeFedAssignedTo vocab.ForgeFedAssignedToProperty + ActivityStreamsAttachment vocab.ActivityStreamsAttachmentProperty + ActivityStreamsAttributedTo vocab.ActivityStreamsAttributedToProperty + ActivityStreamsAudience vocab.ActivityStreamsAudienceProperty + ActivityStreamsBcc vocab.ActivityStreamsBccProperty + ActivityStreamsBto vocab.ActivityStreamsBtoProperty + ActivityStreamsCc vocab.ActivityStreamsCcProperty + ActivityStreamsContent vocab.ActivityStreamsContentProperty + ActivityStreamsContext vocab.ActivityStreamsContextProperty + ForgeFedDependants vocab.ForgeFedDependantsProperty + ForgeFedDependedBy vocab.ForgeFedDependedByProperty + ForgeFedDependencies vocab.ForgeFedDependenciesProperty + ForgeFedDependsOn vocab.ForgeFedDependsOnProperty + ActivityStreamsDuration vocab.ActivityStreamsDurationProperty + ActivityStreamsEndTime vocab.ActivityStreamsEndTimeProperty + ActivityStreamsGenerator vocab.ActivityStreamsGeneratorProperty + ActivityStreamsIcon vocab.ActivityStreamsIconProperty + JSONLDId vocab.JSONLDIdProperty + ActivityStreamsImage vocab.ActivityStreamsImageProperty + ActivityStreamsInReplyTo vocab.ActivityStreamsInReplyToProperty + ForgeFedIsResolved vocab.ForgeFedIsResolvedProperty + ActivityStreamsLikes vocab.ActivityStreamsLikesProperty + ActivityStreamsLocation vocab.ActivityStreamsLocationProperty + ActivityStreamsMediaType vocab.ActivityStreamsMediaTypeProperty + ActivityStreamsName vocab.ActivityStreamsNameProperty + ActivityStreamsObject vocab.ActivityStreamsObjectProperty + ActivityStreamsPreview vocab.ActivityStreamsPreviewProperty + ActivityStreamsPublished vocab.ActivityStreamsPublishedProperty + ActivityStreamsReplies vocab.ActivityStreamsRepliesProperty + ActivityStreamsShares vocab.ActivityStreamsSharesProperty + ActivityStreamsSource vocab.ActivityStreamsSourceProperty + ActivityStreamsStartTime vocab.ActivityStreamsStartTimeProperty + ActivityStreamsSummary vocab.ActivityStreamsSummaryProperty + ActivityStreamsTag vocab.ActivityStreamsTagProperty + ForgeFedTeam vocab.ForgeFedTeamProperty + ForgeFedTicketsTrackedBy vocab.ForgeFedTicketsTrackedByProperty + ActivityStreamsTo vocab.ActivityStreamsToProperty + ForgeFedTracksTicketsFor vocab.ForgeFedTracksTicketsForProperty + JSONLDType vocab.JSONLDTypeProperty + ActivityStreamsUpdated vocab.ActivityStreamsUpdatedProperty + ActivityStreamsUrl vocab.ActivityStreamsUrlProperty + alias string + unknown map[string]interface{} +} + +// DeserializeTicket creates a Ticket from a map representation that has been +// unmarshalled from a text or binary format. +func DeserializeTicket(m map[string]interface{}, aliasMap map[string]string) (*ForgeFedTicket, error) { + alias := "" + aliasPrefix := "" + if a, ok := aliasMap["https://forgefed.peers.community/ns"]; ok { + alias = a + aliasPrefix = a + ":" + } + this := &ForgeFedTicket{ + alias: alias, + unknown: make(map[string]interface{}), + } + if typeValue, ok := m["type"]; !ok { + return nil, fmt.Errorf("no \"type\" property in map") + } else if typeString, ok := typeValue.(string); ok { + typeName := strings.TrimPrefix(typeString, aliasPrefix) + if typeName != "Ticket" { + return nil, fmt.Errorf("\"type\" property is not of %q type: %s", "Ticket", typeName) + } + // Fall through, success in finding a proper Type + } else if arrType, ok := typeValue.([]interface{}); ok { + found := false + for _, elemVal := range arrType { + if typeString, ok := elemVal.(string); ok && strings.TrimPrefix(typeString, aliasPrefix) == "Ticket" { + found = true + break + } + } + if !found { + return nil, fmt.Errorf("could not find a \"type\" property of value %q", "Ticket") + } + // Fall through, success in finding a proper Type + } else { + return nil, fmt.Errorf("\"type\" property is unrecognized type: %T", typeValue) + } + // Begin: Known property deserialization + if p, err := mgr.DeserializeAltitudePropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsAltitude = p + } + if p, err := mgr.DeserializeAssignedToPropertyForgeFed()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ForgeFedAssignedTo = p + } + if p, err := mgr.DeserializeAttachmentPropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsAttachment = p + } + if p, err := mgr.DeserializeAttributedToPropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsAttributedTo = p + } + if p, err := mgr.DeserializeAudiencePropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsAudience = p + } + if p, err := mgr.DeserializeBccPropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsBcc = p + } + if p, err := mgr.DeserializeBtoPropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsBto = p + } + if p, err := mgr.DeserializeCcPropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsCc = p + } + if p, err := mgr.DeserializeContentPropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsContent = p + } + if p, err := mgr.DeserializeContextPropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsContext = p + } + if p, err := mgr.DeserializeDependantsPropertyForgeFed()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ForgeFedDependants = p + } + if p, err := mgr.DeserializeDependedByPropertyForgeFed()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ForgeFedDependedBy = p + } + if p, err := mgr.DeserializeDependenciesPropertyForgeFed()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ForgeFedDependencies = p + } + if p, err := mgr.DeserializeDependsOnPropertyForgeFed()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ForgeFedDependsOn = p + } + if p, err := mgr.DeserializeDurationPropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsDuration = p + } + if p, err := mgr.DeserializeEndTimePropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsEndTime = p + } + if p, err := mgr.DeserializeGeneratorPropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsGenerator = p + } + if p, err := mgr.DeserializeIconPropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsIcon = p + } + if p, err := mgr.DeserializeIdPropertyJSONLD()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.JSONLDId = p + } + if p, err := mgr.DeserializeImagePropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsImage = p + } + if p, err := mgr.DeserializeInReplyToPropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsInReplyTo = p + } + if p, err := mgr.DeserializeIsResolvedPropertyForgeFed()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ForgeFedIsResolved = p + } + if p, err := mgr.DeserializeLikesPropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsLikes = p + } + if p, err := mgr.DeserializeLocationPropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsLocation = p + } + if p, err := mgr.DeserializeMediaTypePropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsMediaType = p + } + if p, err := mgr.DeserializeNamePropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsName = p + } + if p, err := mgr.DeserializeObjectPropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsObject = p + } + if p, err := mgr.DeserializePreviewPropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsPreview = p + } + if p, err := mgr.DeserializePublishedPropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsPublished = p + } + if p, err := mgr.DeserializeRepliesPropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsReplies = p + } + if p, err := mgr.DeserializeSharesPropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsShares = p + } + if p, err := mgr.DeserializeSourcePropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsSource = p + } + if p, err := mgr.DeserializeStartTimePropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsStartTime = p + } + if p, err := mgr.DeserializeSummaryPropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsSummary = p + } + if p, err := mgr.DeserializeTagPropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsTag = p + } + if p, err := mgr.DeserializeTeamPropertyForgeFed()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ForgeFedTeam = p + } + if p, err := mgr.DeserializeTicketsTrackedByPropertyForgeFed()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ForgeFedTicketsTrackedBy = p + } + if p, err := mgr.DeserializeToPropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsTo = p + } + if p, err := mgr.DeserializeTracksTicketsForPropertyForgeFed()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ForgeFedTracksTicketsFor = p + } + if p, err := mgr.DeserializeTypePropertyJSONLD()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.JSONLDType = p + } + if p, err := mgr.DeserializeUpdatedPropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsUpdated = p + } + if p, err := mgr.DeserializeUrlPropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsUrl = p + } + // End: Known property deserialization + + // Begin: Unknown deserialization + for k, v := range m { + // Begin: Code that ensures a property name is unknown + if k == "altitude" { + continue + } else if k == "assignedTo" { + continue + } else if k == "attachment" { + continue + } else if k == "attributedTo" { + continue + } else if k == "audience" { + continue + } else if k == "bcc" { + continue + } else if k == "bto" { + continue + } else if k == "cc" { + continue + } else if k == "content" { + continue + } else if k == "contentMap" { + continue + } else if k == "context" { + continue + } else if k == "dependants" { + continue + } else if k == "dependedBy" { + continue + } else if k == "dependencies" { + continue + } else if k == "dependsOn" { + continue + } else if k == "duration" { + continue + } else if k == "endTime" { + continue + } else if k == "generator" { + continue + } else if k == "icon" { + continue + } else if k == "id" { + continue + } else if k == "image" { + continue + } else if k == "inReplyTo" { + continue + } else if k == "isResolved" { + continue + } else if k == "likes" { + continue + } else if k == "location" { + continue + } else if k == "mediaType" { + continue + } else if k == "name" { + continue + } else if k == "nameMap" { + continue + } else if k == "object" { + continue + } else if k == "preview" { + continue + } else if k == "published" { + continue + } else if k == "replies" { + continue + } else if k == "shares" { + continue + } else if k == "source" { + continue + } else if k == "startTime" { + continue + } else if k == "summary" { + continue + } else if k == "summaryMap" { + continue + } else if k == "tag" { + continue + } else if k == "team" { + continue + } else if k == "ticketsTrackedBy" { + continue + } else if k == "to" { + continue + } else if k == "tracksTicketsFor" { + continue + } else if k == "type" { + continue + } else if k == "updated" { + continue + } else if k == "url" { + continue + } // End: Code that ensures a property name is unknown + + this.unknown[k] = v + } + // End: Unknown deserialization + + return this, nil +} + +// ForgeFedTicketExtends returns true if the Ticket type extends from the other +// type. +func ForgeFedTicketExtends(other vocab.Type) bool { + extensions := []string{"Object"} + for _, ext := range extensions { + if ext == other.GetTypeName() { + return true + } + } + return false +} + +// IsOrExtendsTicket returns true if the other provided type is the Ticket type or +// extends from the Ticket type. +func IsOrExtendsTicket(other vocab.Type) bool { + if other.GetTypeName() == "Ticket" { + return true + } + return TicketIsExtendedBy(other) +} + +// NewForgeFedTicket creates a new Ticket type +func NewForgeFedTicket() *ForgeFedTicket { + typeProp := typePropertyConstructor() + typeProp.AppendXMLSchemaString("Ticket") + return &ForgeFedTicket{ + JSONLDType: typeProp, + alias: "", + unknown: make(map[string]interface{}), + } +} + +// TicketIsDisjointWith returns true if the other provided type is disjoint with +// the Ticket type. +func TicketIsDisjointWith(other vocab.Type) bool { + disjointWith := []string{"Link", "Mention"} + for _, disjoint := range disjointWith { + if disjoint == other.GetTypeName() { + return true + } + } + return false +} + +// TicketIsExtendedBy returns true if the other provided type extends from the +// Ticket type. Note that it returns false if the types are the same; see the +// "IsOrExtendsTicket" variant instead. +func TicketIsExtendedBy(other vocab.Type) bool { + // Shortcut implementation: is not extended by anything. + return false +} + +// GetActivityStreamsAltitude returns the "altitude" property if it exists, and +// nil otherwise. +func (this ForgeFedTicket) GetActivityStreamsAltitude() vocab.ActivityStreamsAltitudeProperty { + return this.ActivityStreamsAltitude +} + +// GetActivityStreamsAttachment returns the "attachment" property if it exists, +// and nil otherwise. +func (this ForgeFedTicket) GetActivityStreamsAttachment() vocab.ActivityStreamsAttachmentProperty { + return this.ActivityStreamsAttachment +} + +// GetActivityStreamsAttributedTo returns the "attributedTo" property if it +// exists, and nil otherwise. +func (this ForgeFedTicket) GetActivityStreamsAttributedTo() vocab.ActivityStreamsAttributedToProperty { + return this.ActivityStreamsAttributedTo +} + +// GetActivityStreamsAudience returns the "audience" property if it exists, and +// nil otherwise. +func (this ForgeFedTicket) GetActivityStreamsAudience() vocab.ActivityStreamsAudienceProperty { + return this.ActivityStreamsAudience +} + +// GetActivityStreamsBcc returns the "bcc" property if it exists, and nil +// otherwise. +func (this ForgeFedTicket) GetActivityStreamsBcc() vocab.ActivityStreamsBccProperty { + return this.ActivityStreamsBcc +} + +// GetActivityStreamsBto returns the "bto" property if it exists, and nil +// otherwise. +func (this ForgeFedTicket) GetActivityStreamsBto() vocab.ActivityStreamsBtoProperty { + return this.ActivityStreamsBto +} + +// GetActivityStreamsCc returns the "cc" property if it exists, and nil otherwise. +func (this ForgeFedTicket) GetActivityStreamsCc() vocab.ActivityStreamsCcProperty { + return this.ActivityStreamsCc +} + +// GetActivityStreamsContent returns the "content" property if it exists, and nil +// otherwise. +func (this ForgeFedTicket) GetActivityStreamsContent() vocab.ActivityStreamsContentProperty { + return this.ActivityStreamsContent +} + +// GetActivityStreamsContext returns the "context" property if it exists, and nil +// otherwise. +func (this ForgeFedTicket) GetActivityStreamsContext() vocab.ActivityStreamsContextProperty { + return this.ActivityStreamsContext +} + +// GetActivityStreamsDuration returns the "duration" property if it exists, and +// nil otherwise. +func (this ForgeFedTicket) GetActivityStreamsDuration() vocab.ActivityStreamsDurationProperty { + return this.ActivityStreamsDuration +} + +// GetActivityStreamsEndTime returns the "endTime" property if it exists, and nil +// otherwise. +func (this ForgeFedTicket) GetActivityStreamsEndTime() vocab.ActivityStreamsEndTimeProperty { + return this.ActivityStreamsEndTime +} + +// GetActivityStreamsGenerator returns the "generator" property if it exists, and +// nil otherwise. +func (this ForgeFedTicket) GetActivityStreamsGenerator() vocab.ActivityStreamsGeneratorProperty { + return this.ActivityStreamsGenerator +} + +// GetActivityStreamsIcon returns the "icon" property if it exists, and nil +// otherwise. +func (this ForgeFedTicket) GetActivityStreamsIcon() vocab.ActivityStreamsIconProperty { + return this.ActivityStreamsIcon +} + +// GetActivityStreamsImage returns the "image" property if it exists, and nil +// otherwise. +func (this ForgeFedTicket) GetActivityStreamsImage() vocab.ActivityStreamsImageProperty { + return this.ActivityStreamsImage +} + +// GetActivityStreamsInReplyTo returns the "inReplyTo" property if it exists, and +// nil otherwise. +func (this ForgeFedTicket) GetActivityStreamsInReplyTo() vocab.ActivityStreamsInReplyToProperty { + return this.ActivityStreamsInReplyTo +} + +// GetActivityStreamsLikes returns the "likes" property if it exists, and nil +// otherwise. +func (this ForgeFedTicket) GetActivityStreamsLikes() vocab.ActivityStreamsLikesProperty { + return this.ActivityStreamsLikes +} + +// GetActivityStreamsLocation returns the "location" property if it exists, and +// nil otherwise. +func (this ForgeFedTicket) GetActivityStreamsLocation() vocab.ActivityStreamsLocationProperty { + return this.ActivityStreamsLocation +} + +// GetActivityStreamsMediaType returns the "mediaType" property if it exists, and +// nil otherwise. +func (this ForgeFedTicket) GetActivityStreamsMediaType() vocab.ActivityStreamsMediaTypeProperty { + return this.ActivityStreamsMediaType +} + +// GetActivityStreamsName returns the "name" property if it exists, and nil +// otherwise. +func (this ForgeFedTicket) GetActivityStreamsName() vocab.ActivityStreamsNameProperty { + return this.ActivityStreamsName +} + +// GetActivityStreamsObject returns the "object" property if it exists, and nil +// otherwise. +func (this ForgeFedTicket) GetActivityStreamsObject() vocab.ActivityStreamsObjectProperty { + return this.ActivityStreamsObject +} + +// GetActivityStreamsPreview returns the "preview" property if it exists, and nil +// otherwise. +func (this ForgeFedTicket) GetActivityStreamsPreview() vocab.ActivityStreamsPreviewProperty { + return this.ActivityStreamsPreview +} + +// GetActivityStreamsPublished returns the "published" property if it exists, and +// nil otherwise. +func (this ForgeFedTicket) GetActivityStreamsPublished() vocab.ActivityStreamsPublishedProperty { + return this.ActivityStreamsPublished +} + +// GetActivityStreamsReplies returns the "replies" property if it exists, and nil +// otherwise. +func (this ForgeFedTicket) GetActivityStreamsReplies() vocab.ActivityStreamsRepliesProperty { + return this.ActivityStreamsReplies +} + +// GetActivityStreamsShares returns the "shares" property if it exists, and nil +// otherwise. +func (this ForgeFedTicket) GetActivityStreamsShares() vocab.ActivityStreamsSharesProperty { + return this.ActivityStreamsShares +} + +// GetActivityStreamsSource returns the "source" property if it exists, and nil +// otherwise. +func (this ForgeFedTicket) GetActivityStreamsSource() vocab.ActivityStreamsSourceProperty { + return this.ActivityStreamsSource +} + +// GetActivityStreamsStartTime returns the "startTime" property if it exists, and +// nil otherwise. +func (this ForgeFedTicket) GetActivityStreamsStartTime() vocab.ActivityStreamsStartTimeProperty { + return this.ActivityStreamsStartTime +} + +// GetActivityStreamsSummary returns the "summary" property if it exists, and nil +// otherwise. +func (this ForgeFedTicket) GetActivityStreamsSummary() vocab.ActivityStreamsSummaryProperty { + return this.ActivityStreamsSummary +} + +// GetActivityStreamsTag returns the "tag" property if it exists, and nil +// otherwise. +func (this ForgeFedTicket) GetActivityStreamsTag() vocab.ActivityStreamsTagProperty { + return this.ActivityStreamsTag +} + +// GetActivityStreamsTo returns the "to" property if it exists, and nil otherwise. +func (this ForgeFedTicket) GetActivityStreamsTo() vocab.ActivityStreamsToProperty { + return this.ActivityStreamsTo +} + +// GetActivityStreamsUpdated returns the "updated" property if it exists, and nil +// otherwise. +func (this ForgeFedTicket) GetActivityStreamsUpdated() vocab.ActivityStreamsUpdatedProperty { + return this.ActivityStreamsUpdated +} + +// GetActivityStreamsUrl returns the "url" property if it exists, and nil +// otherwise. +func (this ForgeFedTicket) GetActivityStreamsUrl() vocab.ActivityStreamsUrlProperty { + return this.ActivityStreamsUrl +} + +// GetForgeFedAssignedTo returns the "assignedTo" property if it exists, and nil +// otherwise. +func (this ForgeFedTicket) GetForgeFedAssignedTo() vocab.ForgeFedAssignedToProperty { + return this.ForgeFedAssignedTo +} + +// GetForgeFedDependants returns the "dependants" property if it exists, and nil +// otherwise. +func (this ForgeFedTicket) GetForgeFedDependants() vocab.ForgeFedDependantsProperty { + return this.ForgeFedDependants +} + +// GetForgeFedDependedBy returns the "dependedBy" property if it exists, and nil +// otherwise. +func (this ForgeFedTicket) GetForgeFedDependedBy() vocab.ForgeFedDependedByProperty { + return this.ForgeFedDependedBy +} + +// GetForgeFedDependencies returns the "dependencies" property if it exists, and +// nil otherwise. +func (this ForgeFedTicket) GetForgeFedDependencies() vocab.ForgeFedDependenciesProperty { + return this.ForgeFedDependencies +} + +// GetForgeFedDependsOn returns the "dependsOn" property if it exists, and nil +// otherwise. +func (this ForgeFedTicket) GetForgeFedDependsOn() vocab.ForgeFedDependsOnProperty { + return this.ForgeFedDependsOn +} + +// GetForgeFedIsResolved returns the "isResolved" property if it exists, and nil +// otherwise. +func (this ForgeFedTicket) GetForgeFedIsResolved() vocab.ForgeFedIsResolvedProperty { + return this.ForgeFedIsResolved +} + +// GetForgeFedTeam returns the "team" property if it exists, and nil otherwise. +func (this ForgeFedTicket) GetForgeFedTeam() vocab.ForgeFedTeamProperty { + return this.ForgeFedTeam +} + +// GetForgeFedTicketsTrackedBy returns the "ticketsTrackedBy" property if it +// exists, and nil otherwise. +func (this ForgeFedTicket) GetForgeFedTicketsTrackedBy() vocab.ForgeFedTicketsTrackedByProperty { + return this.ForgeFedTicketsTrackedBy +} + +// GetForgeFedTracksTicketsFor returns the "tracksTicketsFor" property if it +// exists, and nil otherwise. +func (this ForgeFedTicket) GetForgeFedTracksTicketsFor() vocab.ForgeFedTracksTicketsForProperty { + return this.ForgeFedTracksTicketsFor +} + +// GetJSONLDId returns the "id" property if it exists, and nil otherwise. +func (this ForgeFedTicket) GetJSONLDId() vocab.JSONLDIdProperty { + return this.JSONLDId +} + +// GetJSONLDType returns the "type" property if it exists, and nil otherwise. +func (this ForgeFedTicket) GetJSONLDType() vocab.JSONLDTypeProperty { + return this.JSONLDType +} + +// GetTypeName returns the name of this type. +func (this ForgeFedTicket) GetTypeName() string { + return "Ticket" +} + +// GetUnknownProperties returns the unknown properties for the Ticket type. Note +// that this should not be used by app developers. It is only used to help +// determine which implementation is LessThan the other. Developers who are +// creating a different implementation of this type's interface can use this +// method in their LessThan implementation, but routine ActivityPub +// applications should not use this to bypass the code generation tool. +func (this ForgeFedTicket) GetUnknownProperties() map[string]interface{} { + return this.unknown +} + +// IsExtending returns true if the Ticket type extends from the other type. +func (this ForgeFedTicket) IsExtending(other vocab.Type) bool { + return ForgeFedTicketExtends(other) +} + +// JSONLDContext returns the JSONLD URIs required in the context string for this +// type and the specific properties that are set. The value in the map is the +// alias used to import the type and its properties. +func (this ForgeFedTicket) JSONLDContext() map[string]string { + m := map[string]string{"https://forgefed.peers.community/ns": this.alias} + m = this.helperJSONLDContext(this.ActivityStreamsAltitude, m) + m = this.helperJSONLDContext(this.ForgeFedAssignedTo, m) + m = this.helperJSONLDContext(this.ActivityStreamsAttachment, m) + m = this.helperJSONLDContext(this.ActivityStreamsAttributedTo, m) + m = this.helperJSONLDContext(this.ActivityStreamsAudience, m) + m = this.helperJSONLDContext(this.ActivityStreamsBcc, m) + m = this.helperJSONLDContext(this.ActivityStreamsBto, m) + m = this.helperJSONLDContext(this.ActivityStreamsCc, m) + m = this.helperJSONLDContext(this.ActivityStreamsContent, m) + m = this.helperJSONLDContext(this.ActivityStreamsContext, m) + m = this.helperJSONLDContext(this.ForgeFedDependants, m) + m = this.helperJSONLDContext(this.ForgeFedDependedBy, m) + m = this.helperJSONLDContext(this.ForgeFedDependencies, m) + m = this.helperJSONLDContext(this.ForgeFedDependsOn, m) + m = this.helperJSONLDContext(this.ActivityStreamsDuration, m) + m = this.helperJSONLDContext(this.ActivityStreamsEndTime, m) + m = this.helperJSONLDContext(this.ActivityStreamsGenerator, m) + m = this.helperJSONLDContext(this.ActivityStreamsIcon, m) + m = this.helperJSONLDContext(this.JSONLDId, m) + m = this.helperJSONLDContext(this.ActivityStreamsImage, m) + m = this.helperJSONLDContext(this.ActivityStreamsInReplyTo, m) + m = this.helperJSONLDContext(this.ForgeFedIsResolved, m) + m = this.helperJSONLDContext(this.ActivityStreamsLikes, m) + m = this.helperJSONLDContext(this.ActivityStreamsLocation, m) + m = this.helperJSONLDContext(this.ActivityStreamsMediaType, m) + m = this.helperJSONLDContext(this.ActivityStreamsName, m) + m = this.helperJSONLDContext(this.ActivityStreamsObject, m) + m = this.helperJSONLDContext(this.ActivityStreamsPreview, m) + m = this.helperJSONLDContext(this.ActivityStreamsPublished, m) + m = this.helperJSONLDContext(this.ActivityStreamsReplies, m) + m = this.helperJSONLDContext(this.ActivityStreamsShares, m) + m = this.helperJSONLDContext(this.ActivityStreamsSource, m) + m = this.helperJSONLDContext(this.ActivityStreamsStartTime, m) + m = this.helperJSONLDContext(this.ActivityStreamsSummary, m) + m = this.helperJSONLDContext(this.ActivityStreamsTag, m) + m = this.helperJSONLDContext(this.ForgeFedTeam, m) + m = this.helperJSONLDContext(this.ForgeFedTicketsTrackedBy, m) + m = this.helperJSONLDContext(this.ActivityStreamsTo, m) + m = this.helperJSONLDContext(this.ForgeFedTracksTicketsFor, m) + m = this.helperJSONLDContext(this.JSONLDType, m) + m = this.helperJSONLDContext(this.ActivityStreamsUpdated, m) + m = this.helperJSONLDContext(this.ActivityStreamsUrl, m) + + return m +} + +// LessThan computes if this Ticket is lesser, with an arbitrary but stable +// determination. +func (this ForgeFedTicket) LessThan(o vocab.ForgeFedTicket) bool { + // Begin: Compare known properties + // Compare property "altitude" + if lhs, rhs := this.ActivityStreamsAltitude, o.GetActivityStreamsAltitude(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "assignedTo" + if lhs, rhs := this.ForgeFedAssignedTo, o.GetForgeFedAssignedTo(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "attachment" + if lhs, rhs := this.ActivityStreamsAttachment, o.GetActivityStreamsAttachment(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "attributedTo" + if lhs, rhs := this.ActivityStreamsAttributedTo, o.GetActivityStreamsAttributedTo(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "audience" + if lhs, rhs := this.ActivityStreamsAudience, o.GetActivityStreamsAudience(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "bcc" + if lhs, rhs := this.ActivityStreamsBcc, o.GetActivityStreamsBcc(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "bto" + if lhs, rhs := this.ActivityStreamsBto, o.GetActivityStreamsBto(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "cc" + if lhs, rhs := this.ActivityStreamsCc, o.GetActivityStreamsCc(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "content" + if lhs, rhs := this.ActivityStreamsContent, o.GetActivityStreamsContent(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "context" + if lhs, rhs := this.ActivityStreamsContext, o.GetActivityStreamsContext(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "dependants" + if lhs, rhs := this.ForgeFedDependants, o.GetForgeFedDependants(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "dependedBy" + if lhs, rhs := this.ForgeFedDependedBy, o.GetForgeFedDependedBy(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "dependencies" + if lhs, rhs := this.ForgeFedDependencies, o.GetForgeFedDependencies(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "dependsOn" + if lhs, rhs := this.ForgeFedDependsOn, o.GetForgeFedDependsOn(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "duration" + if lhs, rhs := this.ActivityStreamsDuration, o.GetActivityStreamsDuration(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "endTime" + if lhs, rhs := this.ActivityStreamsEndTime, o.GetActivityStreamsEndTime(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "generator" + if lhs, rhs := this.ActivityStreamsGenerator, o.GetActivityStreamsGenerator(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "icon" + if lhs, rhs := this.ActivityStreamsIcon, o.GetActivityStreamsIcon(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "id" + if lhs, rhs := this.JSONLDId, o.GetJSONLDId(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "image" + if lhs, rhs := this.ActivityStreamsImage, o.GetActivityStreamsImage(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "inReplyTo" + if lhs, rhs := this.ActivityStreamsInReplyTo, o.GetActivityStreamsInReplyTo(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "isResolved" + if lhs, rhs := this.ForgeFedIsResolved, o.GetForgeFedIsResolved(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "likes" + if lhs, rhs := this.ActivityStreamsLikes, o.GetActivityStreamsLikes(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "location" + if lhs, rhs := this.ActivityStreamsLocation, o.GetActivityStreamsLocation(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "mediaType" + if lhs, rhs := this.ActivityStreamsMediaType, o.GetActivityStreamsMediaType(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "name" + if lhs, rhs := this.ActivityStreamsName, o.GetActivityStreamsName(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "object" + if lhs, rhs := this.ActivityStreamsObject, o.GetActivityStreamsObject(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "preview" + if lhs, rhs := this.ActivityStreamsPreview, o.GetActivityStreamsPreview(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "published" + if lhs, rhs := this.ActivityStreamsPublished, o.GetActivityStreamsPublished(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "replies" + if lhs, rhs := this.ActivityStreamsReplies, o.GetActivityStreamsReplies(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "shares" + if lhs, rhs := this.ActivityStreamsShares, o.GetActivityStreamsShares(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "source" + if lhs, rhs := this.ActivityStreamsSource, o.GetActivityStreamsSource(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "startTime" + if lhs, rhs := this.ActivityStreamsStartTime, o.GetActivityStreamsStartTime(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "summary" + if lhs, rhs := this.ActivityStreamsSummary, o.GetActivityStreamsSummary(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "tag" + if lhs, rhs := this.ActivityStreamsTag, o.GetActivityStreamsTag(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "team" + if lhs, rhs := this.ForgeFedTeam, o.GetForgeFedTeam(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "ticketsTrackedBy" + if lhs, rhs := this.ForgeFedTicketsTrackedBy, o.GetForgeFedTicketsTrackedBy(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "to" + if lhs, rhs := this.ActivityStreamsTo, o.GetActivityStreamsTo(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "tracksTicketsFor" + if lhs, rhs := this.ForgeFedTracksTicketsFor, o.GetForgeFedTracksTicketsFor(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "type" + if lhs, rhs := this.JSONLDType, o.GetJSONLDType(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "updated" + if lhs, rhs := this.ActivityStreamsUpdated, o.GetActivityStreamsUpdated(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "url" + if lhs, rhs := this.ActivityStreamsUrl, o.GetActivityStreamsUrl(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // End: Compare known properties + + // Begin: Compare unknown properties (only by number of them) + if len(this.unknown) < len(o.GetUnknownProperties()) { + return true + } else if len(o.GetUnknownProperties()) < len(this.unknown) { + return false + } // End: Compare unknown properties (only by number of them) + + // All properties are the same. + return false +} + +// Serialize converts this into an interface representation suitable for +// marshalling into a text or binary format. +func (this ForgeFedTicket) Serialize() (map[string]interface{}, error) { + m := make(map[string]interface{}) + typeName := "Ticket" + if len(this.alias) > 0 { + typeName = this.alias + ":" + "Ticket" + } + m["type"] = typeName + // Begin: Serialize known properties + // Maybe serialize property "altitude" + if this.ActivityStreamsAltitude != nil { + if i, err := this.ActivityStreamsAltitude.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsAltitude.Name()] = i + } + } + // Maybe serialize property "assignedTo" + if this.ForgeFedAssignedTo != nil { + if i, err := this.ForgeFedAssignedTo.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ForgeFedAssignedTo.Name()] = i + } + } + // Maybe serialize property "attachment" + if this.ActivityStreamsAttachment != nil { + if i, err := this.ActivityStreamsAttachment.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsAttachment.Name()] = i + } + } + // Maybe serialize property "attributedTo" + if this.ActivityStreamsAttributedTo != nil { + if i, err := this.ActivityStreamsAttributedTo.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsAttributedTo.Name()] = i + } + } + // Maybe serialize property "audience" + if this.ActivityStreamsAudience != nil { + if i, err := this.ActivityStreamsAudience.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsAudience.Name()] = i + } + } + // Maybe serialize property "bcc" + if this.ActivityStreamsBcc != nil { + if i, err := this.ActivityStreamsBcc.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsBcc.Name()] = i + } + } + // Maybe serialize property "bto" + if this.ActivityStreamsBto != nil { + if i, err := this.ActivityStreamsBto.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsBto.Name()] = i + } + } + // Maybe serialize property "cc" + if this.ActivityStreamsCc != nil { + if i, err := this.ActivityStreamsCc.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsCc.Name()] = i + } + } + // Maybe serialize property "content" + if this.ActivityStreamsContent != nil { + if i, err := this.ActivityStreamsContent.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsContent.Name()] = i + } + } + // Maybe serialize property "context" + if this.ActivityStreamsContext != nil { + if i, err := this.ActivityStreamsContext.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsContext.Name()] = i + } + } + // Maybe serialize property "dependants" + if this.ForgeFedDependants != nil { + if i, err := this.ForgeFedDependants.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ForgeFedDependants.Name()] = i + } + } + // Maybe serialize property "dependedBy" + if this.ForgeFedDependedBy != nil { + if i, err := this.ForgeFedDependedBy.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ForgeFedDependedBy.Name()] = i + } + } + // Maybe serialize property "dependencies" + if this.ForgeFedDependencies != nil { + if i, err := this.ForgeFedDependencies.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ForgeFedDependencies.Name()] = i + } + } + // Maybe serialize property "dependsOn" + if this.ForgeFedDependsOn != nil { + if i, err := this.ForgeFedDependsOn.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ForgeFedDependsOn.Name()] = i + } + } + // Maybe serialize property "duration" + if this.ActivityStreamsDuration != nil { + if i, err := this.ActivityStreamsDuration.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsDuration.Name()] = i + } + } + // Maybe serialize property "endTime" + if this.ActivityStreamsEndTime != nil { + if i, err := this.ActivityStreamsEndTime.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsEndTime.Name()] = i + } + } + // Maybe serialize property "generator" + if this.ActivityStreamsGenerator != nil { + if i, err := this.ActivityStreamsGenerator.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsGenerator.Name()] = i + } + } + // Maybe serialize property "icon" + if this.ActivityStreamsIcon != nil { + if i, err := this.ActivityStreamsIcon.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsIcon.Name()] = i + } + } + // Maybe serialize property "id" + if this.JSONLDId != nil { + if i, err := this.JSONLDId.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.JSONLDId.Name()] = i + } + } + // Maybe serialize property "image" + if this.ActivityStreamsImage != nil { + if i, err := this.ActivityStreamsImage.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsImage.Name()] = i + } + } + // Maybe serialize property "inReplyTo" + if this.ActivityStreamsInReplyTo != nil { + if i, err := this.ActivityStreamsInReplyTo.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsInReplyTo.Name()] = i + } + } + // Maybe serialize property "isResolved" + if this.ForgeFedIsResolved != nil { + if i, err := this.ForgeFedIsResolved.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ForgeFedIsResolved.Name()] = i + } + } + // Maybe serialize property "likes" + if this.ActivityStreamsLikes != nil { + if i, err := this.ActivityStreamsLikes.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsLikes.Name()] = i + } + } + // Maybe serialize property "location" + if this.ActivityStreamsLocation != nil { + if i, err := this.ActivityStreamsLocation.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsLocation.Name()] = i + } + } + // Maybe serialize property "mediaType" + if this.ActivityStreamsMediaType != nil { + if i, err := this.ActivityStreamsMediaType.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsMediaType.Name()] = i + } + } + // Maybe serialize property "name" + if this.ActivityStreamsName != nil { + if i, err := this.ActivityStreamsName.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsName.Name()] = i + } + } + // Maybe serialize property "object" + if this.ActivityStreamsObject != nil { + if i, err := this.ActivityStreamsObject.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsObject.Name()] = i + } + } + // Maybe serialize property "preview" + if this.ActivityStreamsPreview != nil { + if i, err := this.ActivityStreamsPreview.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsPreview.Name()] = i + } + } + // Maybe serialize property "published" + if this.ActivityStreamsPublished != nil { + if i, err := this.ActivityStreamsPublished.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsPublished.Name()] = i + } + } + // Maybe serialize property "replies" + if this.ActivityStreamsReplies != nil { + if i, err := this.ActivityStreamsReplies.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsReplies.Name()] = i + } + } + // Maybe serialize property "shares" + if this.ActivityStreamsShares != nil { + if i, err := this.ActivityStreamsShares.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsShares.Name()] = i + } + } + // Maybe serialize property "source" + if this.ActivityStreamsSource != nil { + if i, err := this.ActivityStreamsSource.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsSource.Name()] = i + } + } + // Maybe serialize property "startTime" + if this.ActivityStreamsStartTime != nil { + if i, err := this.ActivityStreamsStartTime.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsStartTime.Name()] = i + } + } + // Maybe serialize property "summary" + if this.ActivityStreamsSummary != nil { + if i, err := this.ActivityStreamsSummary.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsSummary.Name()] = i + } + } + // Maybe serialize property "tag" + if this.ActivityStreamsTag != nil { + if i, err := this.ActivityStreamsTag.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsTag.Name()] = i + } + } + // Maybe serialize property "team" + if this.ForgeFedTeam != nil { + if i, err := this.ForgeFedTeam.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ForgeFedTeam.Name()] = i + } + } + // Maybe serialize property "ticketsTrackedBy" + if this.ForgeFedTicketsTrackedBy != nil { + if i, err := this.ForgeFedTicketsTrackedBy.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ForgeFedTicketsTrackedBy.Name()] = i + } + } + // Maybe serialize property "to" + if this.ActivityStreamsTo != nil { + if i, err := this.ActivityStreamsTo.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsTo.Name()] = i + } + } + // Maybe serialize property "tracksTicketsFor" + if this.ForgeFedTracksTicketsFor != nil { + if i, err := this.ForgeFedTracksTicketsFor.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ForgeFedTracksTicketsFor.Name()] = i + } + } + // Maybe serialize property "type" + if this.JSONLDType != nil { + if i, err := this.JSONLDType.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.JSONLDType.Name()] = i + } + } + // Maybe serialize property "updated" + if this.ActivityStreamsUpdated != nil { + if i, err := this.ActivityStreamsUpdated.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsUpdated.Name()] = i + } + } + // Maybe serialize property "url" + if this.ActivityStreamsUrl != nil { + if i, err := this.ActivityStreamsUrl.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsUrl.Name()] = i + } + } + // End: Serialize known properties + + // Begin: Serialize unknown properties + for k, v := range this.unknown { + // To be safe, ensure we aren't overwriting a known property + if _, has := m[k]; !has { + m[k] = v + } + } + // End: Serialize unknown properties + + return m, nil +} + +// SetActivityStreamsAltitude sets the "altitude" property. +func (this *ForgeFedTicket) SetActivityStreamsAltitude(i vocab.ActivityStreamsAltitudeProperty) { + this.ActivityStreamsAltitude = i +} + +// SetActivityStreamsAttachment sets the "attachment" property. +func (this *ForgeFedTicket) SetActivityStreamsAttachment(i vocab.ActivityStreamsAttachmentProperty) { + this.ActivityStreamsAttachment = i +} + +// SetActivityStreamsAttributedTo sets the "attributedTo" property. +func (this *ForgeFedTicket) SetActivityStreamsAttributedTo(i vocab.ActivityStreamsAttributedToProperty) { + this.ActivityStreamsAttributedTo = i +} + +// SetActivityStreamsAudience sets the "audience" property. +func (this *ForgeFedTicket) SetActivityStreamsAudience(i vocab.ActivityStreamsAudienceProperty) { + this.ActivityStreamsAudience = i +} + +// SetActivityStreamsBcc sets the "bcc" property. +func (this *ForgeFedTicket) SetActivityStreamsBcc(i vocab.ActivityStreamsBccProperty) { + this.ActivityStreamsBcc = i +} + +// SetActivityStreamsBto sets the "bto" property. +func (this *ForgeFedTicket) SetActivityStreamsBto(i vocab.ActivityStreamsBtoProperty) { + this.ActivityStreamsBto = i +} + +// SetActivityStreamsCc sets the "cc" property. +func (this *ForgeFedTicket) SetActivityStreamsCc(i vocab.ActivityStreamsCcProperty) { + this.ActivityStreamsCc = i +} + +// SetActivityStreamsContent sets the "content" property. +func (this *ForgeFedTicket) SetActivityStreamsContent(i vocab.ActivityStreamsContentProperty) { + this.ActivityStreamsContent = i +} + +// SetActivityStreamsContext sets the "context" property. +func (this *ForgeFedTicket) SetActivityStreamsContext(i vocab.ActivityStreamsContextProperty) { + this.ActivityStreamsContext = i +} + +// SetActivityStreamsDuration sets the "duration" property. +func (this *ForgeFedTicket) SetActivityStreamsDuration(i vocab.ActivityStreamsDurationProperty) { + this.ActivityStreamsDuration = i +} + +// SetActivityStreamsEndTime sets the "endTime" property. +func (this *ForgeFedTicket) SetActivityStreamsEndTime(i vocab.ActivityStreamsEndTimeProperty) { + this.ActivityStreamsEndTime = i +} + +// SetActivityStreamsGenerator sets the "generator" property. +func (this *ForgeFedTicket) SetActivityStreamsGenerator(i vocab.ActivityStreamsGeneratorProperty) { + this.ActivityStreamsGenerator = i +} + +// SetActivityStreamsIcon sets the "icon" property. +func (this *ForgeFedTicket) SetActivityStreamsIcon(i vocab.ActivityStreamsIconProperty) { + this.ActivityStreamsIcon = i +} + +// SetActivityStreamsImage sets the "image" property. +func (this *ForgeFedTicket) SetActivityStreamsImage(i vocab.ActivityStreamsImageProperty) { + this.ActivityStreamsImage = i +} + +// SetActivityStreamsInReplyTo sets the "inReplyTo" property. +func (this *ForgeFedTicket) SetActivityStreamsInReplyTo(i vocab.ActivityStreamsInReplyToProperty) { + this.ActivityStreamsInReplyTo = i +} + +// SetActivityStreamsLikes sets the "likes" property. +func (this *ForgeFedTicket) SetActivityStreamsLikes(i vocab.ActivityStreamsLikesProperty) { + this.ActivityStreamsLikes = i +} + +// SetActivityStreamsLocation sets the "location" property. +func (this *ForgeFedTicket) SetActivityStreamsLocation(i vocab.ActivityStreamsLocationProperty) { + this.ActivityStreamsLocation = i +} + +// SetActivityStreamsMediaType sets the "mediaType" property. +func (this *ForgeFedTicket) SetActivityStreamsMediaType(i vocab.ActivityStreamsMediaTypeProperty) { + this.ActivityStreamsMediaType = i +} + +// SetActivityStreamsName sets the "name" property. +func (this *ForgeFedTicket) SetActivityStreamsName(i vocab.ActivityStreamsNameProperty) { + this.ActivityStreamsName = i +} + +// SetActivityStreamsObject sets the "object" property. +func (this *ForgeFedTicket) SetActivityStreamsObject(i vocab.ActivityStreamsObjectProperty) { + this.ActivityStreamsObject = i +} + +// SetActivityStreamsPreview sets the "preview" property. +func (this *ForgeFedTicket) SetActivityStreamsPreview(i vocab.ActivityStreamsPreviewProperty) { + this.ActivityStreamsPreview = i +} + +// SetActivityStreamsPublished sets the "published" property. +func (this *ForgeFedTicket) SetActivityStreamsPublished(i vocab.ActivityStreamsPublishedProperty) { + this.ActivityStreamsPublished = i +} + +// SetActivityStreamsReplies sets the "replies" property. +func (this *ForgeFedTicket) SetActivityStreamsReplies(i vocab.ActivityStreamsRepliesProperty) { + this.ActivityStreamsReplies = i +} + +// SetActivityStreamsShares sets the "shares" property. +func (this *ForgeFedTicket) SetActivityStreamsShares(i vocab.ActivityStreamsSharesProperty) { + this.ActivityStreamsShares = i +} + +// SetActivityStreamsSource sets the "source" property. +func (this *ForgeFedTicket) SetActivityStreamsSource(i vocab.ActivityStreamsSourceProperty) { + this.ActivityStreamsSource = i +} + +// SetActivityStreamsStartTime sets the "startTime" property. +func (this *ForgeFedTicket) SetActivityStreamsStartTime(i vocab.ActivityStreamsStartTimeProperty) { + this.ActivityStreamsStartTime = i +} + +// SetActivityStreamsSummary sets the "summary" property. +func (this *ForgeFedTicket) SetActivityStreamsSummary(i vocab.ActivityStreamsSummaryProperty) { + this.ActivityStreamsSummary = i +} + +// SetActivityStreamsTag sets the "tag" property. +func (this *ForgeFedTicket) SetActivityStreamsTag(i vocab.ActivityStreamsTagProperty) { + this.ActivityStreamsTag = i +} + +// SetActivityStreamsTo sets the "to" property. +func (this *ForgeFedTicket) SetActivityStreamsTo(i vocab.ActivityStreamsToProperty) { + this.ActivityStreamsTo = i +} + +// SetActivityStreamsUpdated sets the "updated" property. +func (this *ForgeFedTicket) SetActivityStreamsUpdated(i vocab.ActivityStreamsUpdatedProperty) { + this.ActivityStreamsUpdated = i +} + +// SetActivityStreamsUrl sets the "url" property. +func (this *ForgeFedTicket) SetActivityStreamsUrl(i vocab.ActivityStreamsUrlProperty) { + this.ActivityStreamsUrl = i +} + +// SetForgeFedAssignedTo sets the "assignedTo" property. +func (this *ForgeFedTicket) SetForgeFedAssignedTo(i vocab.ForgeFedAssignedToProperty) { + this.ForgeFedAssignedTo = i +} + +// SetForgeFedDependants sets the "dependants" property. +func (this *ForgeFedTicket) SetForgeFedDependants(i vocab.ForgeFedDependantsProperty) { + this.ForgeFedDependants = i +} + +// SetForgeFedDependedBy sets the "dependedBy" property. +func (this *ForgeFedTicket) SetForgeFedDependedBy(i vocab.ForgeFedDependedByProperty) { + this.ForgeFedDependedBy = i +} + +// SetForgeFedDependencies sets the "dependencies" property. +func (this *ForgeFedTicket) SetForgeFedDependencies(i vocab.ForgeFedDependenciesProperty) { + this.ForgeFedDependencies = i +} + +// SetForgeFedDependsOn sets the "dependsOn" property. +func (this *ForgeFedTicket) SetForgeFedDependsOn(i vocab.ForgeFedDependsOnProperty) { + this.ForgeFedDependsOn = i +} + +// SetForgeFedIsResolved sets the "isResolved" property. +func (this *ForgeFedTicket) SetForgeFedIsResolved(i vocab.ForgeFedIsResolvedProperty) { + this.ForgeFedIsResolved = i +} + +// SetForgeFedTeam sets the "team" property. +func (this *ForgeFedTicket) SetForgeFedTeam(i vocab.ForgeFedTeamProperty) { + this.ForgeFedTeam = i +} + +// SetForgeFedTicketsTrackedBy sets the "ticketsTrackedBy" property. +func (this *ForgeFedTicket) SetForgeFedTicketsTrackedBy(i vocab.ForgeFedTicketsTrackedByProperty) { + this.ForgeFedTicketsTrackedBy = i +} + +// SetForgeFedTracksTicketsFor sets the "tracksTicketsFor" property. +func (this *ForgeFedTicket) SetForgeFedTracksTicketsFor(i vocab.ForgeFedTracksTicketsForProperty) { + this.ForgeFedTracksTicketsFor = i +} + +// SetJSONLDId sets the "id" property. +func (this *ForgeFedTicket) SetJSONLDId(i vocab.JSONLDIdProperty) { + this.JSONLDId = i +} + +// SetJSONLDType sets the "type" property. +func (this *ForgeFedTicket) SetJSONLDType(i vocab.JSONLDTypeProperty) { + this.JSONLDType = i +} + +// VocabularyURI returns the vocabulary's URI as a string. +func (this ForgeFedTicket) VocabularyURI() string { + return "https://forgefed.peers.community/ns" +} + +// helperJSONLDContext obtains the context uris and their aliases from a property, +// if it is not nil. +func (this ForgeFedTicket) helperJSONLDContext(i jsonldContexter, toMerge map[string]string) map[string]string { + if i == nil { + return toMerge + } + for k, v := range i.JSONLDContext() { + /* + Since the literal maps in this function are determined at + code-generation time, this loop should not overwrite an existing key with a + new value. + */ + toMerge[k] = v + } + return toMerge +} diff --git a/streams/impl/forgefed/type_ticketdependency/gen_doc.go b/streams/impl/forgefed/type_ticketdependency/gen_doc.go new file mode 100644 index 0000000..90610f7 --- /dev/null +++ b/streams/impl/forgefed/type_ticketdependency/gen_doc.go @@ -0,0 +1,17 @@ +// Code generated by astool. DO NOT EDIT. + +// Package typeticketdependency contains the implementation for the +// TicketDependency type. All applications are strongly encouraged to use the +// interface instead of this concrete definition. The interfaces allow +// applications to consume only the types and properties needed and be +// independent of the go-fed implementation if another alternative +// implementation is created. This package is code-generated and subject to +// the same license as the go-fed tool used to generate it. +// +// This package is independent of other types' and properties' implementations +// by having a Manager injected into it to act as a factory for the concrete +// implementations. The implementations have been generated into their own +// separate subpackages for each vocabulary. +// +// Strongly consider using the interfaces instead of this package. +package typeticketdependency diff --git a/streams/impl/forgefed/type_ticketdependency/gen_pkg.go b/streams/impl/forgefed/type_ticketdependency/gen_pkg.go new file mode 100644 index 0000000..f3f8ba6 --- /dev/null +++ b/streams/impl/forgefed/type_ticketdependency/gen_pkg.go @@ -0,0 +1,196 @@ +// Code generated by astool. DO NOT EDIT. + +package typeticketdependency + +import vocab "github.com/go-fed/activity/streams/vocab" + +var mgr privateManager + +var typePropertyConstructor func() vocab.JSONLDTypeProperty + +// privateManager abstracts the code-generated manager that provides access to +// concrete implementations. +type privateManager interface { + // DeserializeAltitudePropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsAltitudeProperty" non-functional + // property in the vocabulary "ActivityStreams" + DeserializeAltitudePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAltitudeProperty, error) + // DeserializeAttachmentPropertyActivityStreams returns the + // deserialization method for the "ActivityStreamsAttachmentProperty" + // non-functional property in the vocabulary "ActivityStreams" + DeserializeAttachmentPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAttachmentProperty, error) + // DeserializeAttributedToPropertyActivityStreams returns the + // deserialization method for the + // "ActivityStreamsAttributedToProperty" non-functional property in + // the vocabulary "ActivityStreams" + DeserializeAttributedToPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAttributedToProperty, error) + // DeserializeAudiencePropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsAudienceProperty" non-functional + // property in the vocabulary "ActivityStreams" + DeserializeAudiencePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAudienceProperty, error) + // DeserializeBccPropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsBccProperty" non-functional property + // in the vocabulary "ActivityStreams" + DeserializeBccPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsBccProperty, error) + // DeserializeBtoPropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsBtoProperty" non-functional property + // in the vocabulary "ActivityStreams" + DeserializeBtoPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsBtoProperty, error) + // DeserializeCcPropertyActivityStreams returns the deserialization method + // for the "ActivityStreamsCcProperty" non-functional property in the + // vocabulary "ActivityStreams" + DeserializeCcPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsCcProperty, error) + // DeserializeContentPropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsContentProperty" non-functional + // property in the vocabulary "ActivityStreams" + DeserializeContentPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsContentProperty, error) + // DeserializeContextPropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsContextProperty" non-functional + // property in the vocabulary "ActivityStreams" + DeserializeContextPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsContextProperty, error) + // DeserializeDurationPropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsDurationProperty" non-functional + // property in the vocabulary "ActivityStreams" + DeserializeDurationPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsDurationProperty, error) + // DeserializeEndTimePropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsEndTimeProperty" non-functional + // property in the vocabulary "ActivityStreams" + DeserializeEndTimePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsEndTimeProperty, error) + // DeserializeGeneratorPropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsGeneratorProperty" non-functional + // property in the vocabulary "ActivityStreams" + DeserializeGeneratorPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsGeneratorProperty, error) + // DeserializeIconPropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsIconProperty" non-functional + // property in the vocabulary "ActivityStreams" + DeserializeIconPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsIconProperty, error) + // DeserializeIdPropertyJSONLD returns the deserialization method for the + // "JSONLDIdProperty" non-functional property in the vocabulary + // "JSONLD" + DeserializeIdPropertyJSONLD() func(map[string]interface{}, map[string]string) (vocab.JSONLDIdProperty, error) + // DeserializeImagePropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsImageProperty" non-functional + // property in the vocabulary "ActivityStreams" + DeserializeImagePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsImageProperty, error) + // DeserializeInReplyToPropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsInReplyToProperty" non-functional + // property in the vocabulary "ActivityStreams" + DeserializeInReplyToPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsInReplyToProperty, error) + // DeserializeLikesPropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsLikesProperty" non-functional + // property in the vocabulary "ActivityStreams" + DeserializeLikesPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLikesProperty, error) + // DeserializeLocationPropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsLocationProperty" non-functional + // property in the vocabulary "ActivityStreams" + DeserializeLocationPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLocationProperty, error) + // DeserializeMediaTypePropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsMediaTypeProperty" non-functional + // property in the vocabulary "ActivityStreams" + DeserializeMediaTypePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsMediaTypeProperty, error) + // DeserializeNamePropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsNameProperty" non-functional + // property in the vocabulary "ActivityStreams" + DeserializeNamePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsNameProperty, error) + // DeserializeObjectPropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsObjectProperty" non-functional + // property in the vocabulary "ActivityStreams" + DeserializeObjectPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsObjectProperty, error) + // DeserializePreviewPropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsPreviewProperty" non-functional + // property in the vocabulary "ActivityStreams" + DeserializePreviewPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsPreviewProperty, error) + // DeserializePublishedPropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsPublishedProperty" non-functional + // property in the vocabulary "ActivityStreams" + DeserializePublishedPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsPublishedProperty, error) + // DeserializeRelationshipPropertyActivityStreams returns the + // deserialization method for the + // "ActivityStreamsRelationshipProperty" non-functional property in + // the vocabulary "ActivityStreams" + DeserializeRelationshipPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsRelationshipProperty, error) + // DeserializeRepliesPropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsRepliesProperty" non-functional + // property in the vocabulary "ActivityStreams" + DeserializeRepliesPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsRepliesProperty, error) + // DeserializeSharesPropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsSharesProperty" non-functional + // property in the vocabulary "ActivityStreams" + DeserializeSharesPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSharesProperty, error) + // DeserializeSourcePropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsSourceProperty" non-functional + // property in the vocabulary "ActivityStreams" + DeserializeSourcePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSourceProperty, error) + // DeserializeStartTimePropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsStartTimeProperty" non-functional + // property in the vocabulary "ActivityStreams" + DeserializeStartTimePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsStartTimeProperty, error) + // DeserializeSubjectPropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsSubjectProperty" non-functional + // property in the vocabulary "ActivityStreams" + DeserializeSubjectPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSubjectProperty, error) + // DeserializeSummaryPropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsSummaryProperty" non-functional + // property in the vocabulary "ActivityStreams" + DeserializeSummaryPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSummaryProperty, error) + // DeserializeTagPropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsTagProperty" non-functional property + // in the vocabulary "ActivityStreams" + DeserializeTagPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTagProperty, error) + // DeserializeTeamPropertyForgeFed returns the deserialization method for + // the "ForgeFedTeamProperty" non-functional property in the + // vocabulary "ForgeFed" + DeserializeTeamPropertyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTeamProperty, error) + // DeserializeTicketsTrackedByPropertyForgeFed returns the deserialization + // method for the "ForgeFedTicketsTrackedByProperty" non-functional + // property in the vocabulary "ForgeFed" + DeserializeTicketsTrackedByPropertyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTicketsTrackedByProperty, error) + // DeserializeToPropertyActivityStreams returns the deserialization method + // for the "ActivityStreamsToProperty" non-functional property in the + // vocabulary "ActivityStreams" + DeserializeToPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsToProperty, error) + // DeserializeTracksTicketsForPropertyForgeFed returns the deserialization + // method for the "ForgeFedTracksTicketsForProperty" non-functional + // property in the vocabulary "ForgeFed" + DeserializeTracksTicketsForPropertyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTracksTicketsForProperty, error) + // DeserializeTypePropertyJSONLD returns the deserialization method for + // the "JSONLDTypeProperty" non-functional property in the vocabulary + // "JSONLD" + DeserializeTypePropertyJSONLD() func(map[string]interface{}, map[string]string) (vocab.JSONLDTypeProperty, error) + // DeserializeUpdatedPropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsUpdatedProperty" non-functional + // property in the vocabulary "ActivityStreams" + DeserializeUpdatedPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsUpdatedProperty, error) + // DeserializeUrlPropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsUrlProperty" non-functional property + // in the vocabulary "ActivityStreams" + DeserializeUrlPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsUrlProperty, error) +} + +// jsonldContexter is a private interface to determine the JSON-LD contexts and +// aliases needed for functional and non-functional properties. It is a helper +// interface for this implementation. +type jsonldContexter interface { + // JSONLDContext returns the JSONLD URIs required in the context string + // for this property and the specific values that are set. The value + // in the map is the alias used to import the property's value or + // values. + JSONLDContext() map[string]string +} + +// SetManager sets the manager package-global variable. For internal use only, do +// not use as part of Application behavior. Must be called at golang init time. +func SetManager(m privateManager) { + mgr = m +} + +// SetTypePropertyConstructor sets the "type" property's constructor in the +// package-global variable. For internal use only, do not use as part of +// Application behavior. Must be called at golang init time. Permits +// ActivityStreams types to correctly set their "type" property at +// construction time, so users don't have to remember to do so each time. It +// is dependency injected so other go-fed compatible implementations could +// inject their own type. +func SetTypePropertyConstructor(f func() vocab.JSONLDTypeProperty) { + typePropertyConstructor = f +} diff --git a/streams/impl/forgefed/type_ticketdependency/gen_type_forgefed_ticketdependency.go b/streams/impl/forgefed/type_ticketdependency/gen_type_forgefed_ticketdependency.go new file mode 100644 index 0000000..f65ea43 --- /dev/null +++ b/streams/impl/forgefed/type_ticketdependency/gen_type_forgefed_ticketdependency.go @@ -0,0 +1,1829 @@ +// Code generated by astool. DO NOT EDIT. + +package typeticketdependency + +import ( + "fmt" + vocab "github.com/go-fed/activity/streams/vocab" + "strings" +) + +// Represents a relationship between 2 Tickets, in which the resolution of one +// ticket requires the other ticket to be resolved too. It MUST specify the +// subject, object and relationship properties, and the relationship property +// MUST be dependsOn. +// +// { +// "@context": [ +// "https://www.w3.org/ns/activitystreams", +// "https://forgefed.peers.community/ns" +// ], +// "attributedTo": "https://example.dev/alice", +// "id": "https://example.dev/ticket-deps/2342593", +// "object": "https://dev.community/bob/coolproj/issues/85", +// "published": "2019-07-11T12:34:56Z", +// "relationship": "dependsOn", +// "subject": "https://example.dev/alice/myproj/issues/42", +// "summary": "Alice's ticket depends on Bob's ticket", +// "type": [ +// "Relationship", +// "TicketDependency" +// ] +// } +type ForgeFedTicketDependency struct { + ActivityStreamsAltitude vocab.ActivityStreamsAltitudeProperty + ActivityStreamsAttachment vocab.ActivityStreamsAttachmentProperty + ActivityStreamsAttributedTo vocab.ActivityStreamsAttributedToProperty + ActivityStreamsAudience vocab.ActivityStreamsAudienceProperty + ActivityStreamsBcc vocab.ActivityStreamsBccProperty + ActivityStreamsBto vocab.ActivityStreamsBtoProperty + ActivityStreamsCc vocab.ActivityStreamsCcProperty + ActivityStreamsContent vocab.ActivityStreamsContentProperty + ActivityStreamsContext vocab.ActivityStreamsContextProperty + ActivityStreamsDuration vocab.ActivityStreamsDurationProperty + ActivityStreamsEndTime vocab.ActivityStreamsEndTimeProperty + ActivityStreamsGenerator vocab.ActivityStreamsGeneratorProperty + ActivityStreamsIcon vocab.ActivityStreamsIconProperty + JSONLDId vocab.JSONLDIdProperty + ActivityStreamsImage vocab.ActivityStreamsImageProperty + ActivityStreamsInReplyTo vocab.ActivityStreamsInReplyToProperty + ActivityStreamsLikes vocab.ActivityStreamsLikesProperty + ActivityStreamsLocation vocab.ActivityStreamsLocationProperty + ActivityStreamsMediaType vocab.ActivityStreamsMediaTypeProperty + ActivityStreamsName vocab.ActivityStreamsNameProperty + ActivityStreamsObject vocab.ActivityStreamsObjectProperty + ActivityStreamsPreview vocab.ActivityStreamsPreviewProperty + ActivityStreamsPublished vocab.ActivityStreamsPublishedProperty + ActivityStreamsRelationship vocab.ActivityStreamsRelationshipProperty + ActivityStreamsReplies vocab.ActivityStreamsRepliesProperty + ActivityStreamsShares vocab.ActivityStreamsSharesProperty + ActivityStreamsSource vocab.ActivityStreamsSourceProperty + ActivityStreamsStartTime vocab.ActivityStreamsStartTimeProperty + ActivityStreamsSubject vocab.ActivityStreamsSubjectProperty + ActivityStreamsSummary vocab.ActivityStreamsSummaryProperty + ActivityStreamsTag vocab.ActivityStreamsTagProperty + ForgeFedTeam vocab.ForgeFedTeamProperty + ForgeFedTicketsTrackedBy vocab.ForgeFedTicketsTrackedByProperty + ActivityStreamsTo vocab.ActivityStreamsToProperty + ForgeFedTracksTicketsFor vocab.ForgeFedTracksTicketsForProperty + JSONLDType vocab.JSONLDTypeProperty + ActivityStreamsUpdated vocab.ActivityStreamsUpdatedProperty + ActivityStreamsUrl vocab.ActivityStreamsUrlProperty + alias string + unknown map[string]interface{} +} + +// DeserializeTicketDependency creates a TicketDependency from a map +// representation that has been unmarshalled from a text or binary format. +func DeserializeTicketDependency(m map[string]interface{}, aliasMap map[string]string) (*ForgeFedTicketDependency, error) { + alias := "" + aliasPrefix := "" + if a, ok := aliasMap["https://forgefed.peers.community/ns"]; ok { + alias = a + aliasPrefix = a + ":" + } + this := &ForgeFedTicketDependency{ + alias: alias, + unknown: make(map[string]interface{}), + } + if typeValue, ok := m["type"]; !ok { + return nil, fmt.Errorf("no \"type\" property in map") + } else if typeString, ok := typeValue.(string); ok { + typeName := strings.TrimPrefix(typeString, aliasPrefix) + if typeName != "TicketDependency" { + return nil, fmt.Errorf("\"type\" property is not of %q type: %s", "TicketDependency", typeName) + } + // Fall through, success in finding a proper Type + } else if arrType, ok := typeValue.([]interface{}); ok { + found := false + for _, elemVal := range arrType { + if typeString, ok := elemVal.(string); ok && strings.TrimPrefix(typeString, aliasPrefix) == "TicketDependency" { + found = true + break + } + } + if !found { + return nil, fmt.Errorf("could not find a \"type\" property of value %q", "TicketDependency") + } + // Fall through, success in finding a proper Type + } else { + return nil, fmt.Errorf("\"type\" property is unrecognized type: %T", typeValue) + } + // Begin: Known property deserialization + if p, err := mgr.DeserializeAltitudePropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsAltitude = p + } + if p, err := mgr.DeserializeAttachmentPropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsAttachment = p + } + if p, err := mgr.DeserializeAttributedToPropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsAttributedTo = p + } + if p, err := mgr.DeserializeAudiencePropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsAudience = p + } + if p, err := mgr.DeserializeBccPropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsBcc = p + } + if p, err := mgr.DeserializeBtoPropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsBto = p + } + if p, err := mgr.DeserializeCcPropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsCc = p + } + if p, err := mgr.DeserializeContentPropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsContent = p + } + if p, err := mgr.DeserializeContextPropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsContext = p + } + if p, err := mgr.DeserializeDurationPropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsDuration = p + } + if p, err := mgr.DeserializeEndTimePropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsEndTime = p + } + if p, err := mgr.DeserializeGeneratorPropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsGenerator = p + } + if p, err := mgr.DeserializeIconPropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsIcon = p + } + if p, err := mgr.DeserializeIdPropertyJSONLD()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.JSONLDId = p + } + if p, err := mgr.DeserializeImagePropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsImage = p + } + if p, err := mgr.DeserializeInReplyToPropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsInReplyTo = p + } + if p, err := mgr.DeserializeLikesPropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsLikes = p + } + if p, err := mgr.DeserializeLocationPropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsLocation = p + } + if p, err := mgr.DeserializeMediaTypePropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsMediaType = p + } + if p, err := mgr.DeserializeNamePropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsName = p + } + if p, err := mgr.DeserializeObjectPropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsObject = p + } + if p, err := mgr.DeserializePreviewPropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsPreview = p + } + if p, err := mgr.DeserializePublishedPropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsPublished = p + } + if p, err := mgr.DeserializeRelationshipPropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsRelationship = p + } + if p, err := mgr.DeserializeRepliesPropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsReplies = p + } + if p, err := mgr.DeserializeSharesPropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsShares = p + } + if p, err := mgr.DeserializeSourcePropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsSource = p + } + if p, err := mgr.DeserializeStartTimePropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsStartTime = p + } + if p, err := mgr.DeserializeSubjectPropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsSubject = p + } + if p, err := mgr.DeserializeSummaryPropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsSummary = p + } + if p, err := mgr.DeserializeTagPropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsTag = p + } + if p, err := mgr.DeserializeTeamPropertyForgeFed()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ForgeFedTeam = p + } + if p, err := mgr.DeserializeTicketsTrackedByPropertyForgeFed()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ForgeFedTicketsTrackedBy = p + } + if p, err := mgr.DeserializeToPropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsTo = p + } + if p, err := mgr.DeserializeTracksTicketsForPropertyForgeFed()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ForgeFedTracksTicketsFor = p + } + if p, err := mgr.DeserializeTypePropertyJSONLD()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.JSONLDType = p + } + if p, err := mgr.DeserializeUpdatedPropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsUpdated = p + } + if p, err := mgr.DeserializeUrlPropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsUrl = p + } + // End: Known property deserialization + + // Begin: Unknown deserialization + for k, v := range m { + // Begin: Code that ensures a property name is unknown + if k == "altitude" { + continue + } else if k == "attachment" { + continue + } else if k == "attributedTo" { + continue + } else if k == "audience" { + continue + } else if k == "bcc" { + continue + } else if k == "bto" { + continue + } else if k == "cc" { + continue + } else if k == "content" { + continue + } else if k == "contentMap" { + continue + } else if k == "context" { + continue + } else if k == "duration" { + continue + } else if k == "endTime" { + continue + } else if k == "generator" { + continue + } else if k == "icon" { + continue + } else if k == "id" { + continue + } else if k == "image" { + continue + } else if k == "inReplyTo" { + continue + } else if k == "likes" { + continue + } else if k == "location" { + continue + } else if k == "mediaType" { + continue + } else if k == "name" { + continue + } else if k == "nameMap" { + continue + } else if k == "object" { + continue + } else if k == "preview" { + continue + } else if k == "published" { + continue + } else if k == "relationship" { + continue + } else if k == "replies" { + continue + } else if k == "shares" { + continue + } else if k == "source" { + continue + } else if k == "startTime" { + continue + } else if k == "subject" { + continue + } else if k == "summary" { + continue + } else if k == "summaryMap" { + continue + } else if k == "tag" { + continue + } else if k == "team" { + continue + } else if k == "ticketsTrackedBy" { + continue + } else if k == "to" { + continue + } else if k == "tracksTicketsFor" { + continue + } else if k == "type" { + continue + } else if k == "updated" { + continue + } else if k == "url" { + continue + } // End: Code that ensures a property name is unknown + + this.unknown[k] = v + } + // End: Unknown deserialization + + return this, nil +} + +// ForgeFedTicketDependencyExtends returns true if the TicketDependency type +// extends from the other type. +func ForgeFedTicketDependencyExtends(other vocab.Type) bool { + extensions := []string{"Object", "Relationship"} + for _, ext := range extensions { + if ext == other.GetTypeName() { + return true + } + } + return false +} + +// IsOrExtendsTicketDependency returns true if the other provided type is the +// TicketDependency type or extends from the TicketDependency type. +func IsOrExtendsTicketDependency(other vocab.Type) bool { + if other.GetTypeName() == "TicketDependency" { + return true + } + return TicketDependencyIsExtendedBy(other) +} + +// NewForgeFedTicketDependency creates a new TicketDependency type +func NewForgeFedTicketDependency() *ForgeFedTicketDependency { + typeProp := typePropertyConstructor() + typeProp.AppendXMLSchemaString("TicketDependency") + return &ForgeFedTicketDependency{ + JSONLDType: typeProp, + alias: "", + unknown: make(map[string]interface{}), + } +} + +// TicketDependencyIsDisjointWith returns true if the other provided type is +// disjoint with the TicketDependency type. +func TicketDependencyIsDisjointWith(other vocab.Type) bool { + disjointWith := []string{"Link", "Mention"} + for _, disjoint := range disjointWith { + if disjoint == other.GetTypeName() { + return true + } + } + return false +} + +// TicketDependencyIsExtendedBy returns true if the other provided type extends +// from the TicketDependency type. Note that it returns false if the types are +// the same; see the "IsOrExtendsTicketDependency" variant instead. +func TicketDependencyIsExtendedBy(other vocab.Type) bool { + // Shortcut implementation: is not extended by anything. + return false +} + +// GetActivityStreamsAltitude returns the "altitude" property if it exists, and +// nil otherwise. +func (this ForgeFedTicketDependency) GetActivityStreamsAltitude() vocab.ActivityStreamsAltitudeProperty { + return this.ActivityStreamsAltitude +} + +// GetActivityStreamsAttachment returns the "attachment" property if it exists, +// and nil otherwise. +func (this ForgeFedTicketDependency) GetActivityStreamsAttachment() vocab.ActivityStreamsAttachmentProperty { + return this.ActivityStreamsAttachment +} + +// GetActivityStreamsAttributedTo returns the "attributedTo" property if it +// exists, and nil otherwise. +func (this ForgeFedTicketDependency) GetActivityStreamsAttributedTo() vocab.ActivityStreamsAttributedToProperty { + return this.ActivityStreamsAttributedTo +} + +// GetActivityStreamsAudience returns the "audience" property if it exists, and +// nil otherwise. +func (this ForgeFedTicketDependency) GetActivityStreamsAudience() vocab.ActivityStreamsAudienceProperty { + return this.ActivityStreamsAudience +} + +// GetActivityStreamsBcc returns the "bcc" property if it exists, and nil +// otherwise. +func (this ForgeFedTicketDependency) GetActivityStreamsBcc() vocab.ActivityStreamsBccProperty { + return this.ActivityStreamsBcc +} + +// GetActivityStreamsBto returns the "bto" property if it exists, and nil +// otherwise. +func (this ForgeFedTicketDependency) GetActivityStreamsBto() vocab.ActivityStreamsBtoProperty { + return this.ActivityStreamsBto +} + +// GetActivityStreamsCc returns the "cc" property if it exists, and nil otherwise. +func (this ForgeFedTicketDependency) GetActivityStreamsCc() vocab.ActivityStreamsCcProperty { + return this.ActivityStreamsCc +} + +// GetActivityStreamsContent returns the "content" property if it exists, and nil +// otherwise. +func (this ForgeFedTicketDependency) GetActivityStreamsContent() vocab.ActivityStreamsContentProperty { + return this.ActivityStreamsContent +} + +// GetActivityStreamsContext returns the "context" property if it exists, and nil +// otherwise. +func (this ForgeFedTicketDependency) GetActivityStreamsContext() vocab.ActivityStreamsContextProperty { + return this.ActivityStreamsContext +} + +// GetActivityStreamsDuration returns the "duration" property if it exists, and +// nil otherwise. +func (this ForgeFedTicketDependency) GetActivityStreamsDuration() vocab.ActivityStreamsDurationProperty { + return this.ActivityStreamsDuration +} + +// GetActivityStreamsEndTime returns the "endTime" property if it exists, and nil +// otherwise. +func (this ForgeFedTicketDependency) GetActivityStreamsEndTime() vocab.ActivityStreamsEndTimeProperty { + return this.ActivityStreamsEndTime +} + +// GetActivityStreamsGenerator returns the "generator" property if it exists, and +// nil otherwise. +func (this ForgeFedTicketDependency) GetActivityStreamsGenerator() vocab.ActivityStreamsGeneratorProperty { + return this.ActivityStreamsGenerator +} + +// GetActivityStreamsIcon returns the "icon" property if it exists, and nil +// otherwise. +func (this ForgeFedTicketDependency) GetActivityStreamsIcon() vocab.ActivityStreamsIconProperty { + return this.ActivityStreamsIcon +} + +// GetActivityStreamsImage returns the "image" property if it exists, and nil +// otherwise. +func (this ForgeFedTicketDependency) GetActivityStreamsImage() vocab.ActivityStreamsImageProperty { + return this.ActivityStreamsImage +} + +// GetActivityStreamsInReplyTo returns the "inReplyTo" property if it exists, and +// nil otherwise. +func (this ForgeFedTicketDependency) GetActivityStreamsInReplyTo() vocab.ActivityStreamsInReplyToProperty { + return this.ActivityStreamsInReplyTo +} + +// GetActivityStreamsLikes returns the "likes" property if it exists, and nil +// otherwise. +func (this ForgeFedTicketDependency) GetActivityStreamsLikes() vocab.ActivityStreamsLikesProperty { + return this.ActivityStreamsLikes +} + +// GetActivityStreamsLocation returns the "location" property if it exists, and +// nil otherwise. +func (this ForgeFedTicketDependency) GetActivityStreamsLocation() vocab.ActivityStreamsLocationProperty { + return this.ActivityStreamsLocation +} + +// GetActivityStreamsMediaType returns the "mediaType" property if it exists, and +// nil otherwise. +func (this ForgeFedTicketDependency) GetActivityStreamsMediaType() vocab.ActivityStreamsMediaTypeProperty { + return this.ActivityStreamsMediaType +} + +// GetActivityStreamsName returns the "name" property if it exists, and nil +// otherwise. +func (this ForgeFedTicketDependency) GetActivityStreamsName() vocab.ActivityStreamsNameProperty { + return this.ActivityStreamsName +} + +// GetActivityStreamsObject returns the "object" property if it exists, and nil +// otherwise. +func (this ForgeFedTicketDependency) GetActivityStreamsObject() vocab.ActivityStreamsObjectProperty { + return this.ActivityStreamsObject +} + +// GetActivityStreamsPreview returns the "preview" property if it exists, and nil +// otherwise. +func (this ForgeFedTicketDependency) GetActivityStreamsPreview() vocab.ActivityStreamsPreviewProperty { + return this.ActivityStreamsPreview +} + +// GetActivityStreamsPublished returns the "published" property if it exists, and +// nil otherwise. +func (this ForgeFedTicketDependency) GetActivityStreamsPublished() vocab.ActivityStreamsPublishedProperty { + return this.ActivityStreamsPublished +} + +// GetActivityStreamsRelationship returns the "relationship" property if it +// exists, and nil otherwise. +func (this ForgeFedTicketDependency) GetActivityStreamsRelationship() vocab.ActivityStreamsRelationshipProperty { + return this.ActivityStreamsRelationship +} + +// GetActivityStreamsReplies returns the "replies" property if it exists, and nil +// otherwise. +func (this ForgeFedTicketDependency) GetActivityStreamsReplies() vocab.ActivityStreamsRepliesProperty { + return this.ActivityStreamsReplies +} + +// GetActivityStreamsShares returns the "shares" property if it exists, and nil +// otherwise. +func (this ForgeFedTicketDependency) GetActivityStreamsShares() vocab.ActivityStreamsSharesProperty { + return this.ActivityStreamsShares +} + +// GetActivityStreamsSource returns the "source" property if it exists, and nil +// otherwise. +func (this ForgeFedTicketDependency) GetActivityStreamsSource() vocab.ActivityStreamsSourceProperty { + return this.ActivityStreamsSource +} + +// GetActivityStreamsStartTime returns the "startTime" property if it exists, and +// nil otherwise. +func (this ForgeFedTicketDependency) GetActivityStreamsStartTime() vocab.ActivityStreamsStartTimeProperty { + return this.ActivityStreamsStartTime +} + +// GetActivityStreamsSubject returns the "subject" property if it exists, and nil +// otherwise. +func (this ForgeFedTicketDependency) GetActivityStreamsSubject() vocab.ActivityStreamsSubjectProperty { + return this.ActivityStreamsSubject +} + +// GetActivityStreamsSummary returns the "summary" property if it exists, and nil +// otherwise. +func (this ForgeFedTicketDependency) GetActivityStreamsSummary() vocab.ActivityStreamsSummaryProperty { + return this.ActivityStreamsSummary +} + +// GetActivityStreamsTag returns the "tag" property if it exists, and nil +// otherwise. +func (this ForgeFedTicketDependency) GetActivityStreamsTag() vocab.ActivityStreamsTagProperty { + return this.ActivityStreamsTag +} + +// GetActivityStreamsTo returns the "to" property if it exists, and nil otherwise. +func (this ForgeFedTicketDependency) GetActivityStreamsTo() vocab.ActivityStreamsToProperty { + return this.ActivityStreamsTo +} + +// GetActivityStreamsUpdated returns the "updated" property if it exists, and nil +// otherwise. +func (this ForgeFedTicketDependency) GetActivityStreamsUpdated() vocab.ActivityStreamsUpdatedProperty { + return this.ActivityStreamsUpdated +} + +// GetActivityStreamsUrl returns the "url" property if it exists, and nil +// otherwise. +func (this ForgeFedTicketDependency) GetActivityStreamsUrl() vocab.ActivityStreamsUrlProperty { + return this.ActivityStreamsUrl +} + +// GetForgeFedTeam returns the "team" property if it exists, and nil otherwise. +func (this ForgeFedTicketDependency) GetForgeFedTeam() vocab.ForgeFedTeamProperty { + return this.ForgeFedTeam +} + +// GetForgeFedTicketsTrackedBy returns the "ticketsTrackedBy" property if it +// exists, and nil otherwise. +func (this ForgeFedTicketDependency) GetForgeFedTicketsTrackedBy() vocab.ForgeFedTicketsTrackedByProperty { + return this.ForgeFedTicketsTrackedBy +} + +// GetForgeFedTracksTicketsFor returns the "tracksTicketsFor" property if it +// exists, and nil otherwise. +func (this ForgeFedTicketDependency) GetForgeFedTracksTicketsFor() vocab.ForgeFedTracksTicketsForProperty { + return this.ForgeFedTracksTicketsFor +} + +// GetJSONLDId returns the "id" property if it exists, and nil otherwise. +func (this ForgeFedTicketDependency) GetJSONLDId() vocab.JSONLDIdProperty { + return this.JSONLDId +} + +// GetJSONLDType returns the "type" property if it exists, and nil otherwise. +func (this ForgeFedTicketDependency) GetJSONLDType() vocab.JSONLDTypeProperty { + return this.JSONLDType +} + +// GetTypeName returns the name of this type. +func (this ForgeFedTicketDependency) GetTypeName() string { + return "TicketDependency" +} + +// GetUnknownProperties returns the unknown properties for the TicketDependency +// type. Note that this should not be used by app developers. It is only used +// to help determine which implementation is LessThan the other. Developers +// who are creating a different implementation of this type's interface can +// use this method in their LessThan implementation, but routine ActivityPub +// applications should not use this to bypass the code generation tool. +func (this ForgeFedTicketDependency) GetUnknownProperties() map[string]interface{} { + return this.unknown +} + +// IsExtending returns true if the TicketDependency type extends from the other +// type. +func (this ForgeFedTicketDependency) IsExtending(other vocab.Type) bool { + return ForgeFedTicketDependencyExtends(other) +} + +// JSONLDContext returns the JSONLD URIs required in the context string for this +// type and the specific properties that are set. The value in the map is the +// alias used to import the type and its properties. +func (this ForgeFedTicketDependency) JSONLDContext() map[string]string { + m := map[string]string{"https://forgefed.peers.community/ns": this.alias} + m = this.helperJSONLDContext(this.ActivityStreamsAltitude, m) + m = this.helperJSONLDContext(this.ActivityStreamsAttachment, m) + m = this.helperJSONLDContext(this.ActivityStreamsAttributedTo, m) + m = this.helperJSONLDContext(this.ActivityStreamsAudience, m) + m = this.helperJSONLDContext(this.ActivityStreamsBcc, m) + m = this.helperJSONLDContext(this.ActivityStreamsBto, m) + m = this.helperJSONLDContext(this.ActivityStreamsCc, m) + m = this.helperJSONLDContext(this.ActivityStreamsContent, m) + m = this.helperJSONLDContext(this.ActivityStreamsContext, m) + m = this.helperJSONLDContext(this.ActivityStreamsDuration, m) + m = this.helperJSONLDContext(this.ActivityStreamsEndTime, m) + m = this.helperJSONLDContext(this.ActivityStreamsGenerator, m) + m = this.helperJSONLDContext(this.ActivityStreamsIcon, m) + m = this.helperJSONLDContext(this.JSONLDId, m) + m = this.helperJSONLDContext(this.ActivityStreamsImage, m) + m = this.helperJSONLDContext(this.ActivityStreamsInReplyTo, m) + m = this.helperJSONLDContext(this.ActivityStreamsLikes, m) + m = this.helperJSONLDContext(this.ActivityStreamsLocation, m) + m = this.helperJSONLDContext(this.ActivityStreamsMediaType, m) + m = this.helperJSONLDContext(this.ActivityStreamsName, m) + m = this.helperJSONLDContext(this.ActivityStreamsObject, m) + m = this.helperJSONLDContext(this.ActivityStreamsPreview, m) + m = this.helperJSONLDContext(this.ActivityStreamsPublished, m) + m = this.helperJSONLDContext(this.ActivityStreamsRelationship, m) + m = this.helperJSONLDContext(this.ActivityStreamsReplies, m) + m = this.helperJSONLDContext(this.ActivityStreamsShares, m) + m = this.helperJSONLDContext(this.ActivityStreamsSource, m) + m = this.helperJSONLDContext(this.ActivityStreamsStartTime, m) + m = this.helperJSONLDContext(this.ActivityStreamsSubject, m) + m = this.helperJSONLDContext(this.ActivityStreamsSummary, m) + m = this.helperJSONLDContext(this.ActivityStreamsTag, m) + m = this.helperJSONLDContext(this.ForgeFedTeam, m) + m = this.helperJSONLDContext(this.ForgeFedTicketsTrackedBy, m) + m = this.helperJSONLDContext(this.ActivityStreamsTo, m) + m = this.helperJSONLDContext(this.ForgeFedTracksTicketsFor, m) + m = this.helperJSONLDContext(this.JSONLDType, m) + m = this.helperJSONLDContext(this.ActivityStreamsUpdated, m) + m = this.helperJSONLDContext(this.ActivityStreamsUrl, m) + + return m +} + +// LessThan computes if this TicketDependency is lesser, with an arbitrary but +// stable determination. +func (this ForgeFedTicketDependency) LessThan(o vocab.ForgeFedTicketDependency) bool { + // Begin: Compare known properties + // Compare property "altitude" + if lhs, rhs := this.ActivityStreamsAltitude, o.GetActivityStreamsAltitude(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "attachment" + if lhs, rhs := this.ActivityStreamsAttachment, o.GetActivityStreamsAttachment(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "attributedTo" + if lhs, rhs := this.ActivityStreamsAttributedTo, o.GetActivityStreamsAttributedTo(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "audience" + if lhs, rhs := this.ActivityStreamsAudience, o.GetActivityStreamsAudience(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "bcc" + if lhs, rhs := this.ActivityStreamsBcc, o.GetActivityStreamsBcc(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "bto" + if lhs, rhs := this.ActivityStreamsBto, o.GetActivityStreamsBto(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "cc" + if lhs, rhs := this.ActivityStreamsCc, o.GetActivityStreamsCc(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "content" + if lhs, rhs := this.ActivityStreamsContent, o.GetActivityStreamsContent(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "context" + if lhs, rhs := this.ActivityStreamsContext, o.GetActivityStreamsContext(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "duration" + if lhs, rhs := this.ActivityStreamsDuration, o.GetActivityStreamsDuration(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "endTime" + if lhs, rhs := this.ActivityStreamsEndTime, o.GetActivityStreamsEndTime(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "generator" + if lhs, rhs := this.ActivityStreamsGenerator, o.GetActivityStreamsGenerator(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "icon" + if lhs, rhs := this.ActivityStreamsIcon, o.GetActivityStreamsIcon(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "id" + if lhs, rhs := this.JSONLDId, o.GetJSONLDId(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "image" + if lhs, rhs := this.ActivityStreamsImage, o.GetActivityStreamsImage(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "inReplyTo" + if lhs, rhs := this.ActivityStreamsInReplyTo, o.GetActivityStreamsInReplyTo(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "likes" + if lhs, rhs := this.ActivityStreamsLikes, o.GetActivityStreamsLikes(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "location" + if lhs, rhs := this.ActivityStreamsLocation, o.GetActivityStreamsLocation(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "mediaType" + if lhs, rhs := this.ActivityStreamsMediaType, o.GetActivityStreamsMediaType(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "name" + if lhs, rhs := this.ActivityStreamsName, o.GetActivityStreamsName(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "object" + if lhs, rhs := this.ActivityStreamsObject, o.GetActivityStreamsObject(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "preview" + if lhs, rhs := this.ActivityStreamsPreview, o.GetActivityStreamsPreview(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "published" + if lhs, rhs := this.ActivityStreamsPublished, o.GetActivityStreamsPublished(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "relationship" + if lhs, rhs := this.ActivityStreamsRelationship, o.GetActivityStreamsRelationship(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "replies" + if lhs, rhs := this.ActivityStreamsReplies, o.GetActivityStreamsReplies(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "shares" + if lhs, rhs := this.ActivityStreamsShares, o.GetActivityStreamsShares(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "source" + if lhs, rhs := this.ActivityStreamsSource, o.GetActivityStreamsSource(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "startTime" + if lhs, rhs := this.ActivityStreamsStartTime, o.GetActivityStreamsStartTime(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "subject" + if lhs, rhs := this.ActivityStreamsSubject, o.GetActivityStreamsSubject(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "summary" + if lhs, rhs := this.ActivityStreamsSummary, o.GetActivityStreamsSummary(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "tag" + if lhs, rhs := this.ActivityStreamsTag, o.GetActivityStreamsTag(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "team" + if lhs, rhs := this.ForgeFedTeam, o.GetForgeFedTeam(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "ticketsTrackedBy" + if lhs, rhs := this.ForgeFedTicketsTrackedBy, o.GetForgeFedTicketsTrackedBy(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "to" + if lhs, rhs := this.ActivityStreamsTo, o.GetActivityStreamsTo(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "tracksTicketsFor" + if lhs, rhs := this.ForgeFedTracksTicketsFor, o.GetForgeFedTracksTicketsFor(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "type" + if lhs, rhs := this.JSONLDType, o.GetJSONLDType(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "updated" + if lhs, rhs := this.ActivityStreamsUpdated, o.GetActivityStreamsUpdated(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "url" + if lhs, rhs := this.ActivityStreamsUrl, o.GetActivityStreamsUrl(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // End: Compare known properties + + // Begin: Compare unknown properties (only by number of them) + if len(this.unknown) < len(o.GetUnknownProperties()) { + return true + } else if len(o.GetUnknownProperties()) < len(this.unknown) { + return false + } // End: Compare unknown properties (only by number of them) + + // All properties are the same. + return false +} + +// Serialize converts this into an interface representation suitable for +// marshalling into a text or binary format. +func (this ForgeFedTicketDependency) Serialize() (map[string]interface{}, error) { + m := make(map[string]interface{}) + typeName := "TicketDependency" + if len(this.alias) > 0 { + typeName = this.alias + ":" + "TicketDependency" + } + m["type"] = typeName + // Begin: Serialize known properties + // Maybe serialize property "altitude" + if this.ActivityStreamsAltitude != nil { + if i, err := this.ActivityStreamsAltitude.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsAltitude.Name()] = i + } + } + // Maybe serialize property "attachment" + if this.ActivityStreamsAttachment != nil { + if i, err := this.ActivityStreamsAttachment.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsAttachment.Name()] = i + } + } + // Maybe serialize property "attributedTo" + if this.ActivityStreamsAttributedTo != nil { + if i, err := this.ActivityStreamsAttributedTo.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsAttributedTo.Name()] = i + } + } + // Maybe serialize property "audience" + if this.ActivityStreamsAudience != nil { + if i, err := this.ActivityStreamsAudience.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsAudience.Name()] = i + } + } + // Maybe serialize property "bcc" + if this.ActivityStreamsBcc != nil { + if i, err := this.ActivityStreamsBcc.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsBcc.Name()] = i + } + } + // Maybe serialize property "bto" + if this.ActivityStreamsBto != nil { + if i, err := this.ActivityStreamsBto.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsBto.Name()] = i + } + } + // Maybe serialize property "cc" + if this.ActivityStreamsCc != nil { + if i, err := this.ActivityStreamsCc.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsCc.Name()] = i + } + } + // Maybe serialize property "content" + if this.ActivityStreamsContent != nil { + if i, err := this.ActivityStreamsContent.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsContent.Name()] = i + } + } + // Maybe serialize property "context" + if this.ActivityStreamsContext != nil { + if i, err := this.ActivityStreamsContext.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsContext.Name()] = i + } + } + // Maybe serialize property "duration" + if this.ActivityStreamsDuration != nil { + if i, err := this.ActivityStreamsDuration.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsDuration.Name()] = i + } + } + // Maybe serialize property "endTime" + if this.ActivityStreamsEndTime != nil { + if i, err := this.ActivityStreamsEndTime.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsEndTime.Name()] = i + } + } + // Maybe serialize property "generator" + if this.ActivityStreamsGenerator != nil { + if i, err := this.ActivityStreamsGenerator.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsGenerator.Name()] = i + } + } + // Maybe serialize property "icon" + if this.ActivityStreamsIcon != nil { + if i, err := this.ActivityStreamsIcon.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsIcon.Name()] = i + } + } + // Maybe serialize property "id" + if this.JSONLDId != nil { + if i, err := this.JSONLDId.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.JSONLDId.Name()] = i + } + } + // Maybe serialize property "image" + if this.ActivityStreamsImage != nil { + if i, err := this.ActivityStreamsImage.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsImage.Name()] = i + } + } + // Maybe serialize property "inReplyTo" + if this.ActivityStreamsInReplyTo != nil { + if i, err := this.ActivityStreamsInReplyTo.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsInReplyTo.Name()] = i + } + } + // Maybe serialize property "likes" + if this.ActivityStreamsLikes != nil { + if i, err := this.ActivityStreamsLikes.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsLikes.Name()] = i + } + } + // Maybe serialize property "location" + if this.ActivityStreamsLocation != nil { + if i, err := this.ActivityStreamsLocation.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsLocation.Name()] = i + } + } + // Maybe serialize property "mediaType" + if this.ActivityStreamsMediaType != nil { + if i, err := this.ActivityStreamsMediaType.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsMediaType.Name()] = i + } + } + // Maybe serialize property "name" + if this.ActivityStreamsName != nil { + if i, err := this.ActivityStreamsName.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsName.Name()] = i + } + } + // Maybe serialize property "object" + if this.ActivityStreamsObject != nil { + if i, err := this.ActivityStreamsObject.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsObject.Name()] = i + } + } + // Maybe serialize property "preview" + if this.ActivityStreamsPreview != nil { + if i, err := this.ActivityStreamsPreview.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsPreview.Name()] = i + } + } + // Maybe serialize property "published" + if this.ActivityStreamsPublished != nil { + if i, err := this.ActivityStreamsPublished.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsPublished.Name()] = i + } + } + // Maybe serialize property "relationship" + if this.ActivityStreamsRelationship != nil { + if i, err := this.ActivityStreamsRelationship.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsRelationship.Name()] = i + } + } + // Maybe serialize property "replies" + if this.ActivityStreamsReplies != nil { + if i, err := this.ActivityStreamsReplies.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsReplies.Name()] = i + } + } + // Maybe serialize property "shares" + if this.ActivityStreamsShares != nil { + if i, err := this.ActivityStreamsShares.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsShares.Name()] = i + } + } + // Maybe serialize property "source" + if this.ActivityStreamsSource != nil { + if i, err := this.ActivityStreamsSource.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsSource.Name()] = i + } + } + // Maybe serialize property "startTime" + if this.ActivityStreamsStartTime != nil { + if i, err := this.ActivityStreamsStartTime.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsStartTime.Name()] = i + } + } + // Maybe serialize property "subject" + if this.ActivityStreamsSubject != nil { + if i, err := this.ActivityStreamsSubject.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsSubject.Name()] = i + } + } + // Maybe serialize property "summary" + if this.ActivityStreamsSummary != nil { + if i, err := this.ActivityStreamsSummary.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsSummary.Name()] = i + } + } + // Maybe serialize property "tag" + if this.ActivityStreamsTag != nil { + if i, err := this.ActivityStreamsTag.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsTag.Name()] = i + } + } + // Maybe serialize property "team" + if this.ForgeFedTeam != nil { + if i, err := this.ForgeFedTeam.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ForgeFedTeam.Name()] = i + } + } + // Maybe serialize property "ticketsTrackedBy" + if this.ForgeFedTicketsTrackedBy != nil { + if i, err := this.ForgeFedTicketsTrackedBy.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ForgeFedTicketsTrackedBy.Name()] = i + } + } + // Maybe serialize property "to" + if this.ActivityStreamsTo != nil { + if i, err := this.ActivityStreamsTo.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsTo.Name()] = i + } + } + // Maybe serialize property "tracksTicketsFor" + if this.ForgeFedTracksTicketsFor != nil { + if i, err := this.ForgeFedTracksTicketsFor.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ForgeFedTracksTicketsFor.Name()] = i + } + } + // Maybe serialize property "type" + if this.JSONLDType != nil { + if i, err := this.JSONLDType.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.JSONLDType.Name()] = i + } + } + // Maybe serialize property "updated" + if this.ActivityStreamsUpdated != nil { + if i, err := this.ActivityStreamsUpdated.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsUpdated.Name()] = i + } + } + // Maybe serialize property "url" + if this.ActivityStreamsUrl != nil { + if i, err := this.ActivityStreamsUrl.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsUrl.Name()] = i + } + } + // End: Serialize known properties + + // Begin: Serialize unknown properties + for k, v := range this.unknown { + // To be safe, ensure we aren't overwriting a known property + if _, has := m[k]; !has { + m[k] = v + } + } + // End: Serialize unknown properties + + return m, nil +} + +// SetActivityStreamsAltitude sets the "altitude" property. +func (this *ForgeFedTicketDependency) SetActivityStreamsAltitude(i vocab.ActivityStreamsAltitudeProperty) { + this.ActivityStreamsAltitude = i +} + +// SetActivityStreamsAttachment sets the "attachment" property. +func (this *ForgeFedTicketDependency) SetActivityStreamsAttachment(i vocab.ActivityStreamsAttachmentProperty) { + this.ActivityStreamsAttachment = i +} + +// SetActivityStreamsAttributedTo sets the "attributedTo" property. +func (this *ForgeFedTicketDependency) SetActivityStreamsAttributedTo(i vocab.ActivityStreamsAttributedToProperty) { + this.ActivityStreamsAttributedTo = i +} + +// SetActivityStreamsAudience sets the "audience" property. +func (this *ForgeFedTicketDependency) SetActivityStreamsAudience(i vocab.ActivityStreamsAudienceProperty) { + this.ActivityStreamsAudience = i +} + +// SetActivityStreamsBcc sets the "bcc" property. +func (this *ForgeFedTicketDependency) SetActivityStreamsBcc(i vocab.ActivityStreamsBccProperty) { + this.ActivityStreamsBcc = i +} + +// SetActivityStreamsBto sets the "bto" property. +func (this *ForgeFedTicketDependency) SetActivityStreamsBto(i vocab.ActivityStreamsBtoProperty) { + this.ActivityStreamsBto = i +} + +// SetActivityStreamsCc sets the "cc" property. +func (this *ForgeFedTicketDependency) SetActivityStreamsCc(i vocab.ActivityStreamsCcProperty) { + this.ActivityStreamsCc = i +} + +// SetActivityStreamsContent sets the "content" property. +func (this *ForgeFedTicketDependency) SetActivityStreamsContent(i vocab.ActivityStreamsContentProperty) { + this.ActivityStreamsContent = i +} + +// SetActivityStreamsContext sets the "context" property. +func (this *ForgeFedTicketDependency) SetActivityStreamsContext(i vocab.ActivityStreamsContextProperty) { + this.ActivityStreamsContext = i +} + +// SetActivityStreamsDuration sets the "duration" property. +func (this *ForgeFedTicketDependency) SetActivityStreamsDuration(i vocab.ActivityStreamsDurationProperty) { + this.ActivityStreamsDuration = i +} + +// SetActivityStreamsEndTime sets the "endTime" property. +func (this *ForgeFedTicketDependency) SetActivityStreamsEndTime(i vocab.ActivityStreamsEndTimeProperty) { + this.ActivityStreamsEndTime = i +} + +// SetActivityStreamsGenerator sets the "generator" property. +func (this *ForgeFedTicketDependency) SetActivityStreamsGenerator(i vocab.ActivityStreamsGeneratorProperty) { + this.ActivityStreamsGenerator = i +} + +// SetActivityStreamsIcon sets the "icon" property. +func (this *ForgeFedTicketDependency) SetActivityStreamsIcon(i vocab.ActivityStreamsIconProperty) { + this.ActivityStreamsIcon = i +} + +// SetActivityStreamsImage sets the "image" property. +func (this *ForgeFedTicketDependency) SetActivityStreamsImage(i vocab.ActivityStreamsImageProperty) { + this.ActivityStreamsImage = i +} + +// SetActivityStreamsInReplyTo sets the "inReplyTo" property. +func (this *ForgeFedTicketDependency) SetActivityStreamsInReplyTo(i vocab.ActivityStreamsInReplyToProperty) { + this.ActivityStreamsInReplyTo = i +} + +// SetActivityStreamsLikes sets the "likes" property. +func (this *ForgeFedTicketDependency) SetActivityStreamsLikes(i vocab.ActivityStreamsLikesProperty) { + this.ActivityStreamsLikes = i +} + +// SetActivityStreamsLocation sets the "location" property. +func (this *ForgeFedTicketDependency) SetActivityStreamsLocation(i vocab.ActivityStreamsLocationProperty) { + this.ActivityStreamsLocation = i +} + +// SetActivityStreamsMediaType sets the "mediaType" property. +func (this *ForgeFedTicketDependency) SetActivityStreamsMediaType(i vocab.ActivityStreamsMediaTypeProperty) { + this.ActivityStreamsMediaType = i +} + +// SetActivityStreamsName sets the "name" property. +func (this *ForgeFedTicketDependency) SetActivityStreamsName(i vocab.ActivityStreamsNameProperty) { + this.ActivityStreamsName = i +} + +// SetActivityStreamsObject sets the "object" property. +func (this *ForgeFedTicketDependency) SetActivityStreamsObject(i vocab.ActivityStreamsObjectProperty) { + this.ActivityStreamsObject = i +} + +// SetActivityStreamsPreview sets the "preview" property. +func (this *ForgeFedTicketDependency) SetActivityStreamsPreview(i vocab.ActivityStreamsPreviewProperty) { + this.ActivityStreamsPreview = i +} + +// SetActivityStreamsPublished sets the "published" property. +func (this *ForgeFedTicketDependency) SetActivityStreamsPublished(i vocab.ActivityStreamsPublishedProperty) { + this.ActivityStreamsPublished = i +} + +// SetActivityStreamsRelationship sets the "relationship" property. +func (this *ForgeFedTicketDependency) SetActivityStreamsRelationship(i vocab.ActivityStreamsRelationshipProperty) { + this.ActivityStreamsRelationship = i +} + +// SetActivityStreamsReplies sets the "replies" property. +func (this *ForgeFedTicketDependency) SetActivityStreamsReplies(i vocab.ActivityStreamsRepliesProperty) { + this.ActivityStreamsReplies = i +} + +// SetActivityStreamsShares sets the "shares" property. +func (this *ForgeFedTicketDependency) SetActivityStreamsShares(i vocab.ActivityStreamsSharesProperty) { + this.ActivityStreamsShares = i +} + +// SetActivityStreamsSource sets the "source" property. +func (this *ForgeFedTicketDependency) SetActivityStreamsSource(i vocab.ActivityStreamsSourceProperty) { + this.ActivityStreamsSource = i +} + +// SetActivityStreamsStartTime sets the "startTime" property. +func (this *ForgeFedTicketDependency) SetActivityStreamsStartTime(i vocab.ActivityStreamsStartTimeProperty) { + this.ActivityStreamsStartTime = i +} + +// SetActivityStreamsSubject sets the "subject" property. +func (this *ForgeFedTicketDependency) SetActivityStreamsSubject(i vocab.ActivityStreamsSubjectProperty) { + this.ActivityStreamsSubject = i +} + +// SetActivityStreamsSummary sets the "summary" property. +func (this *ForgeFedTicketDependency) SetActivityStreamsSummary(i vocab.ActivityStreamsSummaryProperty) { + this.ActivityStreamsSummary = i +} + +// SetActivityStreamsTag sets the "tag" property. +func (this *ForgeFedTicketDependency) SetActivityStreamsTag(i vocab.ActivityStreamsTagProperty) { + this.ActivityStreamsTag = i +} + +// SetActivityStreamsTo sets the "to" property. +func (this *ForgeFedTicketDependency) SetActivityStreamsTo(i vocab.ActivityStreamsToProperty) { + this.ActivityStreamsTo = i +} + +// SetActivityStreamsUpdated sets the "updated" property. +func (this *ForgeFedTicketDependency) SetActivityStreamsUpdated(i vocab.ActivityStreamsUpdatedProperty) { + this.ActivityStreamsUpdated = i +} + +// SetActivityStreamsUrl sets the "url" property. +func (this *ForgeFedTicketDependency) SetActivityStreamsUrl(i vocab.ActivityStreamsUrlProperty) { + this.ActivityStreamsUrl = i +} + +// SetForgeFedTeam sets the "team" property. +func (this *ForgeFedTicketDependency) SetForgeFedTeam(i vocab.ForgeFedTeamProperty) { + this.ForgeFedTeam = i +} + +// SetForgeFedTicketsTrackedBy sets the "ticketsTrackedBy" property. +func (this *ForgeFedTicketDependency) SetForgeFedTicketsTrackedBy(i vocab.ForgeFedTicketsTrackedByProperty) { + this.ForgeFedTicketsTrackedBy = i +} + +// SetForgeFedTracksTicketsFor sets the "tracksTicketsFor" property. +func (this *ForgeFedTicketDependency) SetForgeFedTracksTicketsFor(i vocab.ForgeFedTracksTicketsForProperty) { + this.ForgeFedTracksTicketsFor = i +} + +// SetJSONLDId sets the "id" property. +func (this *ForgeFedTicketDependency) SetJSONLDId(i vocab.JSONLDIdProperty) { + this.JSONLDId = i +} + +// SetJSONLDType sets the "type" property. +func (this *ForgeFedTicketDependency) SetJSONLDType(i vocab.JSONLDTypeProperty) { + this.JSONLDType = i +} + +// VocabularyURI returns the vocabulary's URI as a string. +func (this ForgeFedTicketDependency) VocabularyURI() string { + return "https://forgefed.peers.community/ns" +} + +// helperJSONLDContext obtains the context uris and their aliases from a property, +// if it is not nil. +func (this ForgeFedTicketDependency) helperJSONLDContext(i jsonldContexter, toMerge map[string]string) map[string]string { + if i == nil { + return toMerge + } + for k, v := range i.JSONLDContext() { + /* + Since the literal maps in this function are determined at + code-generation time, this loop should not overwrite an existing key with a + new value. + */ + toMerge[k] = v + } + return toMerge +} diff --git a/streams/impl/toot/type_emoji/gen_pkg.go b/streams/impl/toot/type_emoji/gen_pkg.go index eedf4cd..560ec45 100644 --- a/streams/impl/toot/type_emoji/gen_pkg.go +++ b/streams/impl/toot/type_emoji/gen_pkg.go @@ -128,10 +128,22 @@ type privateManager interface { // method for the "ActivityStreamsTagProperty" non-functional property // in the vocabulary "ActivityStreams" DeserializeTagPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTagProperty, error) + // DeserializeTeamPropertyForgeFed returns the deserialization method for + // the "ForgeFedTeamProperty" non-functional property in the + // vocabulary "ForgeFed" + DeserializeTeamPropertyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTeamProperty, error) + // DeserializeTicketsTrackedByPropertyForgeFed returns the deserialization + // method for the "ForgeFedTicketsTrackedByProperty" non-functional + // property in the vocabulary "ForgeFed" + DeserializeTicketsTrackedByPropertyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTicketsTrackedByProperty, error) // DeserializeToPropertyActivityStreams returns the deserialization method // for the "ActivityStreamsToProperty" non-functional property in the // vocabulary "ActivityStreams" DeserializeToPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsToProperty, error) + // DeserializeTracksTicketsForPropertyForgeFed returns the deserialization + // method for the "ForgeFedTracksTicketsForProperty" non-functional + // property in the vocabulary "ForgeFed" + DeserializeTracksTicketsForPropertyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTracksTicketsForProperty, error) // DeserializeTypePropertyJSONLD returns the deserialization method for // the "JSONLDTypeProperty" non-functional property in the vocabulary // "JSONLD" diff --git a/streams/impl/toot/type_emoji/gen_type_toot_emoji.go b/streams/impl/toot/type_emoji/gen_type_toot_emoji.go index 8d9b6c9..c24b9fa 100644 --- a/streams/impl/toot/type_emoji/gen_type_toot_emoji.go +++ b/streams/impl/toot/type_emoji/gen_type_toot_emoji.go @@ -57,7 +57,10 @@ type TootEmoji struct { ActivityStreamsStartTime vocab.ActivityStreamsStartTimeProperty ActivityStreamsSummary vocab.ActivityStreamsSummaryProperty ActivityStreamsTag vocab.ActivityStreamsTagProperty + ForgeFedTeam vocab.ForgeFedTeamProperty + ForgeFedTicketsTrackedBy vocab.ForgeFedTicketsTrackedByProperty ActivityStreamsTo vocab.ActivityStreamsToProperty + ForgeFedTracksTicketsFor vocab.ForgeFedTracksTicketsForProperty JSONLDType vocab.JSONLDTypeProperty ActivityStreamsUpdated vocab.ActivityStreamsUpdatedProperty ActivityStreamsUrl vocab.ActivityStreamsUrlProperty @@ -247,11 +250,26 @@ func DeserializeEmoji(m map[string]interface{}, aliasMap map[string]string) (*To } else if p != nil { this.ActivityStreamsTag = p } + if p, err := mgr.DeserializeTeamPropertyForgeFed()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ForgeFedTeam = p + } + if p, err := mgr.DeserializeTicketsTrackedByPropertyForgeFed()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ForgeFedTicketsTrackedBy = p + } if p, err := mgr.DeserializeToPropertyActivityStreams()(m, aliasMap); err != nil { return nil, err } else if p != nil { this.ActivityStreamsTo = p } + if p, err := mgr.DeserializeTracksTicketsForPropertyForgeFed()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ForgeFedTracksTicketsFor = p + } if p, err := mgr.DeserializeTypePropertyJSONLD()(m, aliasMap); err != nil { return nil, err } else if p != nil { @@ -336,8 +354,14 @@ func DeserializeEmoji(m map[string]interface{}, aliasMap map[string]string) (*To continue } else if k == "tag" { continue + } else if k == "team" { + continue + } else if k == "ticketsTrackedBy" { + continue } else if k == "to" { continue + } else if k == "tracksTicketsFor" { + continue } else if k == "type" { continue } else if k == "updated" { @@ -588,6 +612,23 @@ func (this TootEmoji) GetActivityStreamsUrl() vocab.ActivityStreamsUrlProperty { return this.ActivityStreamsUrl } +// GetForgeFedTeam returns the "team" property if it exists, and nil otherwise. +func (this TootEmoji) GetForgeFedTeam() vocab.ForgeFedTeamProperty { + return this.ForgeFedTeam +} + +// GetForgeFedTicketsTrackedBy returns the "ticketsTrackedBy" property if it +// exists, and nil otherwise. +func (this TootEmoji) GetForgeFedTicketsTrackedBy() vocab.ForgeFedTicketsTrackedByProperty { + return this.ForgeFedTicketsTrackedBy +} + +// GetForgeFedTracksTicketsFor returns the "tracksTicketsFor" property if it +// exists, and nil otherwise. +func (this TootEmoji) GetForgeFedTracksTicketsFor() vocab.ForgeFedTracksTicketsForProperty { + return this.ForgeFedTracksTicketsFor +} + // GetJSONLDId returns the "id" property if it exists, and nil otherwise. func (this TootEmoji) GetJSONLDId() vocab.JSONLDIdProperty { return this.JSONLDId @@ -652,7 +693,10 @@ func (this TootEmoji) JSONLDContext() map[string]string { m = this.helperJSONLDContext(this.ActivityStreamsStartTime, m) m = this.helperJSONLDContext(this.ActivityStreamsSummary, m) m = this.helperJSONLDContext(this.ActivityStreamsTag, m) + m = this.helperJSONLDContext(this.ForgeFedTeam, m) + m = this.helperJSONLDContext(this.ForgeFedTicketsTrackedBy, m) m = this.helperJSONLDContext(this.ActivityStreamsTo, m) + m = this.helperJSONLDContext(this.ForgeFedTracksTicketsFor, m) m = this.helperJSONLDContext(this.JSONLDType, m) m = this.helperJSONLDContext(this.ActivityStreamsUpdated, m) m = this.helperJSONLDContext(this.ActivityStreamsUrl, m) @@ -1070,6 +1114,34 @@ func (this TootEmoji) LessThan(o vocab.TootEmoji) bool { // Anything else is greater than nil return false } // Else: Both are nil + // Compare property "team" + if lhs, rhs := this.ForgeFedTeam, o.GetForgeFedTeam(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "ticketsTrackedBy" + if lhs, rhs := this.ForgeFedTicketsTrackedBy, o.GetForgeFedTicketsTrackedBy(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil // Compare property "to" if lhs, rhs := this.ActivityStreamsTo, o.GetActivityStreamsTo(); lhs != nil && rhs != nil { if lhs.LessThan(rhs) { @@ -1084,6 +1156,20 @@ func (this TootEmoji) LessThan(o vocab.TootEmoji) bool { // Anything else is greater than nil return false } // Else: Both are nil + // Compare property "tracksTicketsFor" + if lhs, rhs := this.ForgeFedTracksTicketsFor, o.GetForgeFedTracksTicketsFor(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil // Compare property "type" if lhs, rhs := this.JSONLDType, o.GetJSONLDType(); lhs != nil && rhs != nil { if lhs.LessThan(rhs) { @@ -1381,6 +1467,22 @@ func (this TootEmoji) Serialize() (map[string]interface{}, error) { m[this.ActivityStreamsTag.Name()] = i } } + // Maybe serialize property "team" + if this.ForgeFedTeam != nil { + if i, err := this.ForgeFedTeam.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ForgeFedTeam.Name()] = i + } + } + // Maybe serialize property "ticketsTrackedBy" + if this.ForgeFedTicketsTrackedBy != nil { + if i, err := this.ForgeFedTicketsTrackedBy.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ForgeFedTicketsTrackedBy.Name()] = i + } + } // Maybe serialize property "to" if this.ActivityStreamsTo != nil { if i, err := this.ActivityStreamsTo.Serialize(); err != nil { @@ -1389,6 +1491,14 @@ func (this TootEmoji) Serialize() (map[string]interface{}, error) { m[this.ActivityStreamsTo.Name()] = i } } + // Maybe serialize property "tracksTicketsFor" + if this.ForgeFedTracksTicketsFor != nil { + if i, err := this.ForgeFedTracksTicketsFor.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ForgeFedTracksTicketsFor.Name()] = i + } + } // Maybe serialize property "type" if this.JSONLDType != nil { if i, err := this.JSONLDType.Serialize(); err != nil { @@ -1582,6 +1692,21 @@ func (this *TootEmoji) SetActivityStreamsUrl(i vocab.ActivityStreamsUrlProperty) this.ActivityStreamsUrl = i } +// SetForgeFedTeam sets the "team" property. +func (this *TootEmoji) SetForgeFedTeam(i vocab.ForgeFedTeamProperty) { + this.ForgeFedTeam = i +} + +// SetForgeFedTicketsTrackedBy sets the "ticketsTrackedBy" property. +func (this *TootEmoji) SetForgeFedTicketsTrackedBy(i vocab.ForgeFedTicketsTrackedByProperty) { + this.ForgeFedTicketsTrackedBy = i +} + +// SetForgeFedTracksTicketsFor sets the "tracksTicketsFor" property. +func (this *TootEmoji) SetForgeFedTracksTicketsFor(i vocab.ForgeFedTracksTicketsForProperty) { + this.ForgeFedTracksTicketsFor = i +} + // SetJSONLDId sets the "id" property. func (this *TootEmoji) SetJSONLDId(i vocab.JSONLDIdProperty) { this.JSONLDId = i diff --git a/streams/impl/toot/type_identityproof/gen_pkg.go b/streams/impl/toot/type_identityproof/gen_pkg.go index cbef4d0..5e72ca4 100644 --- a/streams/impl/toot/type_identityproof/gen_pkg.go +++ b/streams/impl/toot/type_identityproof/gen_pkg.go @@ -136,10 +136,22 @@ type privateManager interface { // method for the "ActivityStreamsTagProperty" non-functional property // in the vocabulary "ActivityStreams" DeserializeTagPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTagProperty, error) + // DeserializeTeamPropertyForgeFed returns the deserialization method for + // the "ForgeFedTeamProperty" non-functional property in the + // vocabulary "ForgeFed" + DeserializeTeamPropertyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTeamProperty, error) + // DeserializeTicketsTrackedByPropertyForgeFed returns the deserialization + // method for the "ForgeFedTicketsTrackedByProperty" non-functional + // property in the vocabulary "ForgeFed" + DeserializeTicketsTrackedByPropertyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTicketsTrackedByProperty, error) // DeserializeToPropertyActivityStreams returns the deserialization method // for the "ActivityStreamsToProperty" non-functional property in the // vocabulary "ActivityStreams" DeserializeToPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsToProperty, error) + // DeserializeTracksTicketsForPropertyForgeFed returns the deserialization + // method for the "ForgeFedTracksTicketsForProperty" non-functional + // property in the vocabulary "ForgeFed" + DeserializeTracksTicketsForPropertyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTracksTicketsForProperty, error) // DeserializeTypePropertyJSONLD returns the deserialization method for // the "JSONLDTypeProperty" non-functional property in the vocabulary // "JSONLD" diff --git a/streams/impl/toot/type_identityproof/gen_type_toot_identityproof.go b/streams/impl/toot/type_identityproof/gen_type_toot_identityproof.go index d19ed58..01e9d95 100644 --- a/streams/impl/toot/type_identityproof/gen_type_toot_identityproof.go +++ b/streams/impl/toot/type_identityproof/gen_type_toot_identityproof.go @@ -43,7 +43,10 @@ type TootIdentityProof struct { ActivityStreamsStartTime vocab.ActivityStreamsStartTimeProperty ActivityStreamsSummary vocab.ActivityStreamsSummaryProperty ActivityStreamsTag vocab.ActivityStreamsTagProperty + ForgeFedTeam vocab.ForgeFedTeamProperty + ForgeFedTicketsTrackedBy vocab.ForgeFedTicketsTrackedByProperty ActivityStreamsTo vocab.ActivityStreamsToProperty + ForgeFedTracksTicketsFor vocab.ForgeFedTracksTicketsForProperty JSONLDType vocab.JSONLDTypeProperty ActivityStreamsUpdated vocab.ActivityStreamsUpdatedProperty ActivityStreamsUrl vocab.ActivityStreamsUrlProperty @@ -243,11 +246,26 @@ func DeserializeIdentityProof(m map[string]interface{}, aliasMap map[string]stri } else if p != nil { this.ActivityStreamsTag = p } + if p, err := mgr.DeserializeTeamPropertyForgeFed()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ForgeFedTeam = p + } + if p, err := mgr.DeserializeTicketsTrackedByPropertyForgeFed()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ForgeFedTicketsTrackedBy = p + } if p, err := mgr.DeserializeToPropertyActivityStreams()(m, aliasMap); err != nil { return nil, err } else if p != nil { this.ActivityStreamsTo = p } + if p, err := mgr.DeserializeTracksTicketsForPropertyForgeFed()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ForgeFedTracksTicketsFor = p + } if p, err := mgr.DeserializeTypePropertyJSONLD()(m, aliasMap); err != nil { return nil, err } else if p != nil { @@ -336,8 +354,14 @@ func DeserializeIdentityProof(m map[string]interface{}, aliasMap map[string]stri continue } else if k == "tag" { continue + } else if k == "team" { + continue + } else if k == "ticketsTrackedBy" { + continue } else if k == "to" { continue + } else if k == "tracksTicketsFor" { + continue } else if k == "type" { continue } else if k == "updated" { @@ -589,6 +613,23 @@ func (this TootIdentityProof) GetActivityStreamsUrl() vocab.ActivityStreamsUrlPr return this.ActivityStreamsUrl } +// GetForgeFedTeam returns the "team" property if it exists, and nil otherwise. +func (this TootIdentityProof) GetForgeFedTeam() vocab.ForgeFedTeamProperty { + return this.ForgeFedTeam +} + +// GetForgeFedTicketsTrackedBy returns the "ticketsTrackedBy" property if it +// exists, and nil otherwise. +func (this TootIdentityProof) GetForgeFedTicketsTrackedBy() vocab.ForgeFedTicketsTrackedByProperty { + return this.ForgeFedTicketsTrackedBy +} + +// GetForgeFedTracksTicketsFor returns the "tracksTicketsFor" property if it +// exists, and nil otherwise. +func (this TootIdentityProof) GetForgeFedTracksTicketsFor() vocab.ForgeFedTracksTicketsForProperty { + return this.ForgeFedTracksTicketsFor +} + // GetJSONLDId returns the "id" property if it exists, and nil otherwise. func (this TootIdentityProof) GetJSONLDId() vocab.JSONLDIdProperty { return this.JSONLDId @@ -667,7 +708,10 @@ func (this TootIdentityProof) JSONLDContext() map[string]string { m = this.helperJSONLDContext(this.ActivityStreamsStartTime, m) m = this.helperJSONLDContext(this.ActivityStreamsSummary, m) m = this.helperJSONLDContext(this.ActivityStreamsTag, m) + m = this.helperJSONLDContext(this.ForgeFedTeam, m) + m = this.helperJSONLDContext(this.ForgeFedTicketsTrackedBy, m) m = this.helperJSONLDContext(this.ActivityStreamsTo, m) + m = this.helperJSONLDContext(this.ForgeFedTracksTicketsFor, m) m = this.helperJSONLDContext(this.JSONLDType, m) m = this.helperJSONLDContext(this.ActivityStreamsUpdated, m) m = this.helperJSONLDContext(this.ActivityStreamsUrl, m) @@ -1113,6 +1157,34 @@ func (this TootIdentityProof) LessThan(o vocab.TootIdentityProof) bool { // Anything else is greater than nil return false } // Else: Both are nil + // Compare property "team" + if lhs, rhs := this.ForgeFedTeam, o.GetForgeFedTeam(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "ticketsTrackedBy" + if lhs, rhs := this.ForgeFedTicketsTrackedBy, o.GetForgeFedTicketsTrackedBy(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil // Compare property "to" if lhs, rhs := this.ActivityStreamsTo, o.GetActivityStreamsTo(); lhs != nil && rhs != nil { if lhs.LessThan(rhs) { @@ -1127,6 +1199,20 @@ func (this TootIdentityProof) LessThan(o vocab.TootIdentityProof) bool { // Anything else is greater than nil return false } // Else: Both are nil + // Compare property "tracksTicketsFor" + if lhs, rhs := this.ForgeFedTracksTicketsFor, o.GetForgeFedTracksTicketsFor(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil // Compare property "type" if lhs, rhs := this.JSONLDType, o.GetJSONLDType(); lhs != nil && rhs != nil { if lhs.LessThan(rhs) { @@ -1440,6 +1526,22 @@ func (this TootIdentityProof) Serialize() (map[string]interface{}, error) { m[this.ActivityStreamsTag.Name()] = i } } + // Maybe serialize property "team" + if this.ForgeFedTeam != nil { + if i, err := this.ForgeFedTeam.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ForgeFedTeam.Name()] = i + } + } + // Maybe serialize property "ticketsTrackedBy" + if this.ForgeFedTicketsTrackedBy != nil { + if i, err := this.ForgeFedTicketsTrackedBy.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ForgeFedTicketsTrackedBy.Name()] = i + } + } // Maybe serialize property "to" if this.ActivityStreamsTo != nil { if i, err := this.ActivityStreamsTo.Serialize(); err != nil { @@ -1448,6 +1550,14 @@ func (this TootIdentityProof) Serialize() (map[string]interface{}, error) { m[this.ActivityStreamsTo.Name()] = i } } + // Maybe serialize property "tracksTicketsFor" + if this.ForgeFedTracksTicketsFor != nil { + if i, err := this.ForgeFedTracksTicketsFor.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ForgeFedTracksTicketsFor.Name()] = i + } + } // Maybe serialize property "type" if this.JSONLDType != nil { if i, err := this.JSONLDType.Serialize(); err != nil { @@ -1641,6 +1751,21 @@ func (this *TootIdentityProof) SetActivityStreamsUrl(i vocab.ActivityStreamsUrlP this.ActivityStreamsUrl = i } +// SetForgeFedTeam sets the "team" property. +func (this *TootIdentityProof) SetForgeFedTeam(i vocab.ForgeFedTeamProperty) { + this.ForgeFedTeam = i +} + +// SetForgeFedTicketsTrackedBy sets the "ticketsTrackedBy" property. +func (this *TootIdentityProof) SetForgeFedTicketsTrackedBy(i vocab.ForgeFedTicketsTrackedByProperty) { + this.ForgeFedTicketsTrackedBy = i +} + +// SetForgeFedTracksTicketsFor sets the "tracksTicketsFor" property. +func (this *TootIdentityProof) SetForgeFedTracksTicketsFor(i vocab.ForgeFedTracksTicketsForProperty) { + this.ForgeFedTracksTicketsFor = i +} + // SetJSONLDId sets the "id" property. func (this *TootIdentityProof) SetJSONLDId(i vocab.JSONLDIdProperty) { this.JSONLDId = i diff --git a/streams/vocab/gen_property_activitystreams_actor_interface.go b/streams/vocab/gen_property_activitystreams_actor_interface.go index faa9f8d..f72626e 100644 --- a/streams/vocab/gen_property_activitystreams_actor_interface.go +++ b/streams/vocab/gen_property_activitystreams_actor_interface.go @@ -225,6 +225,29 @@ type ActivityStreamsActorPropertyIterator interface { // IsActivityStreamsView returns false, GetActivityStreamsView will // return an arbitrary value. GetActivityStreamsView() ActivityStreamsView + // GetForgeFedBranch returns the value of this property. When + // IsForgeFedBranch returns false, GetForgeFedBranch will return an + // arbitrary value. + GetForgeFedBranch() ForgeFedBranch + // GetForgeFedCommit returns the value of this property. When + // IsForgeFedCommit returns false, GetForgeFedCommit will return an + // arbitrary value. + GetForgeFedCommit() ForgeFedCommit + // GetForgeFedPush returns the value of this property. When IsForgeFedPush + // returns false, GetForgeFedPush will return an arbitrary value. + GetForgeFedPush() ForgeFedPush + // GetForgeFedRepository returns the value of this property. When + // IsForgeFedRepository returns false, GetForgeFedRepository will + // return an arbitrary value. + GetForgeFedRepository() ForgeFedRepository + // GetForgeFedTicket returns the value of this property. When + // IsForgeFedTicket returns false, GetForgeFedTicket will return an + // arbitrary value. + GetForgeFedTicket() ForgeFedTicket + // GetForgeFedTicketDependency returns the value of this property. When + // IsForgeFedTicketDependency returns false, + // GetForgeFedTicketDependency will return an arbitrary value. + GetForgeFedTicketDependency() ForgeFedTicketDependency // GetIRI returns the IRI of this property. When IsIRI returns false, // GetIRI will return an arbitrary value. GetIRI() *url.URL @@ -473,6 +496,31 @@ type ActivityStreamsActorPropertyIterator interface { // "View". When true, use the GetActivityStreamsView and // SetActivityStreamsView methods to access and set this property. IsActivityStreamsView() bool + // IsForgeFedBranch returns true if this property has a type of "Branch". + // When true, use the GetForgeFedBranch and SetForgeFedBranch methods + // to access and set this property. + IsForgeFedBranch() bool + // IsForgeFedCommit returns true if this property has a type of "Commit". + // When true, use the GetForgeFedCommit and SetForgeFedCommit methods + // to access and set this property. + IsForgeFedCommit() bool + // IsForgeFedPush returns true if this property has a type of "Push". When + // true, use the GetForgeFedPush and SetForgeFedPush methods to access + // and set this property. + IsForgeFedPush() bool + // IsForgeFedRepository returns true if this property has a type of + // "Repository". When true, use the GetForgeFedRepository and + // SetForgeFedRepository methods to access and set this property. + IsForgeFedRepository() bool + // IsForgeFedTicket returns true if this property has a type of "Ticket". + // When true, use the GetForgeFedTicket and SetForgeFedTicket methods + // to access and set this property. + IsForgeFedTicket() bool + // IsForgeFedTicketDependency returns true if this property has a type of + // "TicketDependency". When true, use the GetForgeFedTicketDependency + // and SetForgeFedTicketDependency methods to access and set this + // property. + IsForgeFedTicketDependency() bool // IsIRI returns true if this property is an IRI. When true, use GetIRI // and SetIRI to access and set this property IsIRI() bool @@ -669,6 +717,24 @@ type ActivityStreamsActorPropertyIterator interface { // SetActivityStreamsView sets the value of this property. Calling // IsActivityStreamsView afterwards returns true. SetActivityStreamsView(v ActivityStreamsView) + // SetForgeFedBranch sets the value of this property. Calling + // IsForgeFedBranch afterwards returns true. + SetForgeFedBranch(v ForgeFedBranch) + // SetForgeFedCommit sets the value of this property. Calling + // IsForgeFedCommit afterwards returns true. + SetForgeFedCommit(v ForgeFedCommit) + // SetForgeFedPush sets the value of this property. Calling IsForgeFedPush + // afterwards returns true. + SetForgeFedPush(v ForgeFedPush) + // SetForgeFedRepository sets the value of this property. Calling + // IsForgeFedRepository afterwards returns true. + SetForgeFedRepository(v ForgeFedRepository) + // SetForgeFedTicket sets the value of this property. Calling + // IsForgeFedTicket afterwards returns true. + SetForgeFedTicket(v ForgeFedTicket) + // SetForgeFedTicketDependency sets the value of this property. Calling + // IsForgeFedTicketDependency afterwards returns true. + SetForgeFedTicketDependency(v ForgeFedTicketDependency) // SetIRI sets the value of this property. Calling IsIRI afterwards // returns true. SetIRI(v *url.URL) @@ -938,6 +1004,30 @@ type ActivityStreamsActorProperty interface { // the property "actor". Invalidates iterators that are traversing // using Prev. AppendActivityStreamsView(v ActivityStreamsView) + // AppendForgeFedBranch appends a Branch value to the back of a list of + // the property "actor". Invalidates iterators that are traversing + // using Prev. + AppendForgeFedBranch(v ForgeFedBranch) + // AppendForgeFedCommit appends a Commit value to the back of a list of + // the property "actor". Invalidates iterators that are traversing + // using Prev. + AppendForgeFedCommit(v ForgeFedCommit) + // AppendForgeFedPush appends a Push value to the back of a list of the + // property "actor". Invalidates iterators that are traversing using + // Prev. + AppendForgeFedPush(v ForgeFedPush) + // AppendForgeFedRepository appends a Repository value to the back of a + // list of the property "actor". Invalidates iterators that are + // traversing using Prev. + AppendForgeFedRepository(v ForgeFedRepository) + // AppendForgeFedTicket appends a Ticket value to the back of a list of + // the property "actor". Invalidates iterators that are traversing + // using Prev. + AppendForgeFedTicket(v ForgeFedTicket) + // AppendForgeFedTicketDependency appends a TicketDependency value to the + // back of a list of the property "actor". Invalidates iterators that + // are traversing using Prev. + AppendForgeFedTicketDependency(v ForgeFedTicketDependency) // AppendIRI appends an IRI value to the back of a list of the property // "actor" AppendIRI(v *url.URL) @@ -1189,6 +1279,30 @@ type ActivityStreamsActorProperty interface { // for a property "actor". Existing elements at that index and higher // are shifted back once. Invalidates all iterators. InsertActivityStreamsView(idx int, v ActivityStreamsView) + // InsertForgeFedBranch inserts a Branch value at the specified index for + // a property "actor". Existing elements at that index and higher are + // shifted back once. Invalidates all iterators. + InsertForgeFedBranch(idx int, v ForgeFedBranch) + // InsertForgeFedCommit inserts a Commit value at the specified index for + // a property "actor". Existing elements at that index and higher are + // shifted back once. Invalidates all iterators. + InsertForgeFedCommit(idx int, v ForgeFedCommit) + // InsertForgeFedPush inserts a Push value at the specified index for a + // property "actor". Existing elements at that index and higher are + // shifted back once. Invalidates all iterators. + InsertForgeFedPush(idx int, v ForgeFedPush) + // InsertForgeFedRepository inserts a Repository value at the specified + // index for a property "actor". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertForgeFedRepository(idx int, v ForgeFedRepository) + // InsertForgeFedTicket inserts a Ticket value at the specified index for + // a property "actor". Existing elements at that index and higher are + // shifted back once. Invalidates all iterators. + InsertForgeFedTicket(idx int, v ForgeFedTicket) + // InsertForgeFedTicketDependency inserts a TicketDependency value at the + // specified index for a property "actor". Existing elements at that + // index and higher are shifted back once. Invalidates all iterators. + InsertForgeFedTicketDependency(idx int, v ForgeFedTicketDependency) // Insert inserts an IRI value at the specified index for a property // "actor". Existing elements at that index and higher are shifted // back once. Invalidates all iterators. @@ -1395,6 +1509,25 @@ type ActivityStreamsActorProperty interface { // PrependActivityStreamsView prepends a View value to the front of a list // of the property "actor". Invalidates all iterators. PrependActivityStreamsView(v ActivityStreamsView) + // PrependForgeFedBranch prepends a Branch value to the front of a list of + // the property "actor". Invalidates all iterators. + PrependForgeFedBranch(v ForgeFedBranch) + // PrependForgeFedCommit prepends a Commit value to the front of a list of + // the property "actor". Invalidates all iterators. + PrependForgeFedCommit(v ForgeFedCommit) + // PrependForgeFedPush prepends a Push value to the front of a list of the + // property "actor". Invalidates all iterators. + PrependForgeFedPush(v ForgeFedPush) + // PrependForgeFedRepository prepends a Repository value to the front of a + // list of the property "actor". Invalidates all iterators. + PrependForgeFedRepository(v ForgeFedRepository) + // PrependForgeFedTicket prepends a Ticket value to the front of a list of + // the property "actor". Invalidates all iterators. + PrependForgeFedTicket(v ForgeFedTicket) + // PrependForgeFedTicketDependency prepends a TicketDependency value to + // the front of a list of the property "actor". Invalidates all + // iterators. + PrependForgeFedTicketDependency(v ForgeFedTicketDependency) // PrependIRI prepends an IRI value to the front of a list of the property // "actor". PrependIRI(v *url.URL) @@ -1634,6 +1767,30 @@ type ActivityStreamsActorProperty interface { // for the property "actor". Panics if the index is out of bounds. // Invalidates all iterators. SetActivityStreamsView(idx int, v ActivityStreamsView) + // SetForgeFedBranch sets a Branch value to be at the specified index for + // the property "actor". Panics if the index is out of bounds. + // Invalidates all iterators. + SetForgeFedBranch(idx int, v ForgeFedBranch) + // SetForgeFedCommit sets a Commit value to be at the specified index for + // the property "actor". Panics if the index is out of bounds. + // Invalidates all iterators. + SetForgeFedCommit(idx int, v ForgeFedCommit) + // SetForgeFedPush sets a Push value to be at the specified index for the + // property "actor". Panics if the index is out of bounds. Invalidates + // all iterators. + SetForgeFedPush(idx int, v ForgeFedPush) + // SetForgeFedRepository sets a Repository value to be at the specified + // index for the property "actor". Panics if the index is out of + // bounds. Invalidates all iterators. + SetForgeFedRepository(idx int, v ForgeFedRepository) + // SetForgeFedTicket sets a Ticket value to be at the specified index for + // the property "actor". Panics if the index is out of bounds. + // Invalidates all iterators. + SetForgeFedTicket(idx int, v ForgeFedTicket) + // SetForgeFedTicketDependency sets a TicketDependency value to be at the + // specified index for the property "actor". Panics if the index is + // out of bounds. Invalidates all iterators. + SetForgeFedTicketDependency(idx int, v ForgeFedTicketDependency) // SetIRI sets an IRI value to be at the specified index for the property // "actor". Panics if the index is out of bounds. SetIRI(idx int, v *url.URL) diff --git a/streams/vocab/gen_property_activitystreams_anyOf_interface.go b/streams/vocab/gen_property_activitystreams_anyOf_interface.go index 82924d5..eb4332f 100644 --- a/streams/vocab/gen_property_activitystreams_anyOf_interface.go +++ b/streams/vocab/gen_property_activitystreams_anyOf_interface.go @@ -225,6 +225,29 @@ type ActivityStreamsAnyOfPropertyIterator interface { // IsActivityStreamsView returns false, GetActivityStreamsView will // return an arbitrary value. GetActivityStreamsView() ActivityStreamsView + // GetForgeFedBranch returns the value of this property. When + // IsForgeFedBranch returns false, GetForgeFedBranch will return an + // arbitrary value. + GetForgeFedBranch() ForgeFedBranch + // GetForgeFedCommit returns the value of this property. When + // IsForgeFedCommit returns false, GetForgeFedCommit will return an + // arbitrary value. + GetForgeFedCommit() ForgeFedCommit + // GetForgeFedPush returns the value of this property. When IsForgeFedPush + // returns false, GetForgeFedPush will return an arbitrary value. + GetForgeFedPush() ForgeFedPush + // GetForgeFedRepository returns the value of this property. When + // IsForgeFedRepository returns false, GetForgeFedRepository will + // return an arbitrary value. + GetForgeFedRepository() ForgeFedRepository + // GetForgeFedTicket returns the value of this property. When + // IsForgeFedTicket returns false, GetForgeFedTicket will return an + // arbitrary value. + GetForgeFedTicket() ForgeFedTicket + // GetForgeFedTicketDependency returns the value of this property. When + // IsForgeFedTicketDependency returns false, + // GetForgeFedTicketDependency will return an arbitrary value. + GetForgeFedTicketDependency() ForgeFedTicketDependency // GetIRI returns the IRI of this property. When IsIRI returns false, // GetIRI will return an arbitrary value. GetIRI() *url.URL @@ -473,6 +496,31 @@ type ActivityStreamsAnyOfPropertyIterator interface { // "View". When true, use the GetActivityStreamsView and // SetActivityStreamsView methods to access and set this property. IsActivityStreamsView() bool + // IsForgeFedBranch returns true if this property has a type of "Branch". + // When true, use the GetForgeFedBranch and SetForgeFedBranch methods + // to access and set this property. + IsForgeFedBranch() bool + // IsForgeFedCommit returns true if this property has a type of "Commit". + // When true, use the GetForgeFedCommit and SetForgeFedCommit methods + // to access and set this property. + IsForgeFedCommit() bool + // IsForgeFedPush returns true if this property has a type of "Push". When + // true, use the GetForgeFedPush and SetForgeFedPush methods to access + // and set this property. + IsForgeFedPush() bool + // IsForgeFedRepository returns true if this property has a type of + // "Repository". When true, use the GetForgeFedRepository and + // SetForgeFedRepository methods to access and set this property. + IsForgeFedRepository() bool + // IsForgeFedTicket returns true if this property has a type of "Ticket". + // When true, use the GetForgeFedTicket and SetForgeFedTicket methods + // to access and set this property. + IsForgeFedTicket() bool + // IsForgeFedTicketDependency returns true if this property has a type of + // "TicketDependency". When true, use the GetForgeFedTicketDependency + // and SetForgeFedTicketDependency methods to access and set this + // property. + IsForgeFedTicketDependency() bool // IsIRI returns true if this property is an IRI. When true, use GetIRI // and SetIRI to access and set this property IsIRI() bool @@ -669,6 +717,24 @@ type ActivityStreamsAnyOfPropertyIterator interface { // SetActivityStreamsView sets the value of this property. Calling // IsActivityStreamsView afterwards returns true. SetActivityStreamsView(v ActivityStreamsView) + // SetForgeFedBranch sets the value of this property. Calling + // IsForgeFedBranch afterwards returns true. + SetForgeFedBranch(v ForgeFedBranch) + // SetForgeFedCommit sets the value of this property. Calling + // IsForgeFedCommit afterwards returns true. + SetForgeFedCommit(v ForgeFedCommit) + // SetForgeFedPush sets the value of this property. Calling IsForgeFedPush + // afterwards returns true. + SetForgeFedPush(v ForgeFedPush) + // SetForgeFedRepository sets the value of this property. Calling + // IsForgeFedRepository afterwards returns true. + SetForgeFedRepository(v ForgeFedRepository) + // SetForgeFedTicket sets the value of this property. Calling + // IsForgeFedTicket afterwards returns true. + SetForgeFedTicket(v ForgeFedTicket) + // SetForgeFedTicketDependency sets the value of this property. Calling + // IsForgeFedTicketDependency afterwards returns true. + SetForgeFedTicketDependency(v ForgeFedTicketDependency) // SetIRI sets the value of this property. Calling IsIRI afterwards // returns true. SetIRI(v *url.URL) @@ -919,6 +985,30 @@ type ActivityStreamsAnyOfProperty interface { // the property "anyOf". Invalidates iterators that are traversing // using Prev. AppendActivityStreamsView(v ActivityStreamsView) + // AppendForgeFedBranch appends a Branch value to the back of a list of + // the property "anyOf". Invalidates iterators that are traversing + // using Prev. + AppendForgeFedBranch(v ForgeFedBranch) + // AppendForgeFedCommit appends a Commit value to the back of a list of + // the property "anyOf". Invalidates iterators that are traversing + // using Prev. + AppendForgeFedCommit(v ForgeFedCommit) + // AppendForgeFedPush appends a Push value to the back of a list of the + // property "anyOf". Invalidates iterators that are traversing using + // Prev. + AppendForgeFedPush(v ForgeFedPush) + // AppendForgeFedRepository appends a Repository value to the back of a + // list of the property "anyOf". Invalidates iterators that are + // traversing using Prev. + AppendForgeFedRepository(v ForgeFedRepository) + // AppendForgeFedTicket appends a Ticket value to the back of a list of + // the property "anyOf". Invalidates iterators that are traversing + // using Prev. + AppendForgeFedTicket(v ForgeFedTicket) + // AppendForgeFedTicketDependency appends a TicketDependency value to the + // back of a list of the property "anyOf". Invalidates iterators that + // are traversing using Prev. + AppendForgeFedTicketDependency(v ForgeFedTicketDependency) // AppendIRI appends an IRI value to the back of a list of the property // "anyOf" AppendIRI(v *url.URL) @@ -1170,6 +1260,30 @@ type ActivityStreamsAnyOfProperty interface { // for a property "anyOf". Existing elements at that index and higher // are shifted back once. Invalidates all iterators. InsertActivityStreamsView(idx int, v ActivityStreamsView) + // InsertForgeFedBranch inserts a Branch value at the specified index for + // a property "anyOf". Existing elements at that index and higher are + // shifted back once. Invalidates all iterators. + InsertForgeFedBranch(idx int, v ForgeFedBranch) + // InsertForgeFedCommit inserts a Commit value at the specified index for + // a property "anyOf". Existing elements at that index and higher are + // shifted back once. Invalidates all iterators. + InsertForgeFedCommit(idx int, v ForgeFedCommit) + // InsertForgeFedPush inserts a Push value at the specified index for a + // property "anyOf". Existing elements at that index and higher are + // shifted back once. Invalidates all iterators. + InsertForgeFedPush(idx int, v ForgeFedPush) + // InsertForgeFedRepository inserts a Repository value at the specified + // index for a property "anyOf". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertForgeFedRepository(idx int, v ForgeFedRepository) + // InsertForgeFedTicket inserts a Ticket value at the specified index for + // a property "anyOf". Existing elements at that index and higher are + // shifted back once. Invalidates all iterators. + InsertForgeFedTicket(idx int, v ForgeFedTicket) + // InsertForgeFedTicketDependency inserts a TicketDependency value at the + // specified index for a property "anyOf". Existing elements at that + // index and higher are shifted back once. Invalidates all iterators. + InsertForgeFedTicketDependency(idx int, v ForgeFedTicketDependency) // Insert inserts an IRI value at the specified index for a property // "anyOf". Existing elements at that index and higher are shifted // back once. Invalidates all iterators. @@ -1376,6 +1490,25 @@ type ActivityStreamsAnyOfProperty interface { // PrependActivityStreamsView prepends a View value to the front of a list // of the property "anyOf". Invalidates all iterators. PrependActivityStreamsView(v ActivityStreamsView) + // PrependForgeFedBranch prepends a Branch value to the front of a list of + // the property "anyOf". Invalidates all iterators. + PrependForgeFedBranch(v ForgeFedBranch) + // PrependForgeFedCommit prepends a Commit value to the front of a list of + // the property "anyOf". Invalidates all iterators. + PrependForgeFedCommit(v ForgeFedCommit) + // PrependForgeFedPush prepends a Push value to the front of a list of the + // property "anyOf". Invalidates all iterators. + PrependForgeFedPush(v ForgeFedPush) + // PrependForgeFedRepository prepends a Repository value to the front of a + // list of the property "anyOf". Invalidates all iterators. + PrependForgeFedRepository(v ForgeFedRepository) + // PrependForgeFedTicket prepends a Ticket value to the front of a list of + // the property "anyOf". Invalidates all iterators. + PrependForgeFedTicket(v ForgeFedTicket) + // PrependForgeFedTicketDependency prepends a TicketDependency value to + // the front of a list of the property "anyOf". Invalidates all + // iterators. + PrependForgeFedTicketDependency(v ForgeFedTicketDependency) // PrependIRI prepends an IRI value to the front of a list of the property // "anyOf". PrependIRI(v *url.URL) @@ -1615,6 +1748,30 @@ type ActivityStreamsAnyOfProperty interface { // for the property "anyOf". Panics if the index is out of bounds. // Invalidates all iterators. SetActivityStreamsView(idx int, v ActivityStreamsView) + // SetForgeFedBranch sets a Branch value to be at the specified index for + // the property "anyOf". Panics if the index is out of bounds. + // Invalidates all iterators. + SetForgeFedBranch(idx int, v ForgeFedBranch) + // SetForgeFedCommit sets a Commit value to be at the specified index for + // the property "anyOf". Panics if the index is out of bounds. + // Invalidates all iterators. + SetForgeFedCommit(idx int, v ForgeFedCommit) + // SetForgeFedPush sets a Push value to be at the specified index for the + // property "anyOf". Panics if the index is out of bounds. Invalidates + // all iterators. + SetForgeFedPush(idx int, v ForgeFedPush) + // SetForgeFedRepository sets a Repository value to be at the specified + // index for the property "anyOf". Panics if the index is out of + // bounds. Invalidates all iterators. + SetForgeFedRepository(idx int, v ForgeFedRepository) + // SetForgeFedTicket sets a Ticket value to be at the specified index for + // the property "anyOf". Panics if the index is out of bounds. + // Invalidates all iterators. + SetForgeFedTicket(idx int, v ForgeFedTicket) + // SetForgeFedTicketDependency sets a TicketDependency value to be at the + // specified index for the property "anyOf". Panics if the index is + // out of bounds. Invalidates all iterators. + SetForgeFedTicketDependency(idx int, v ForgeFedTicketDependency) // SetIRI sets an IRI value to be at the specified index for the property // "anyOf". Panics if the index is out of bounds. SetIRI(idx int, v *url.URL) diff --git a/streams/vocab/gen_property_activitystreams_attachment_interface.go b/streams/vocab/gen_property_activitystreams_attachment_interface.go index 8efe65c..2773f91 100644 --- a/streams/vocab/gen_property_activitystreams_attachment_interface.go +++ b/streams/vocab/gen_property_activitystreams_attachment_interface.go @@ -225,6 +225,29 @@ type ActivityStreamsAttachmentPropertyIterator interface { // IsActivityStreamsView returns false, GetActivityStreamsView will // return an arbitrary value. GetActivityStreamsView() ActivityStreamsView + // GetForgeFedBranch returns the value of this property. When + // IsForgeFedBranch returns false, GetForgeFedBranch will return an + // arbitrary value. + GetForgeFedBranch() ForgeFedBranch + // GetForgeFedCommit returns the value of this property. When + // IsForgeFedCommit returns false, GetForgeFedCommit will return an + // arbitrary value. + GetForgeFedCommit() ForgeFedCommit + // GetForgeFedPush returns the value of this property. When IsForgeFedPush + // returns false, GetForgeFedPush will return an arbitrary value. + GetForgeFedPush() ForgeFedPush + // GetForgeFedRepository returns the value of this property. When + // IsForgeFedRepository returns false, GetForgeFedRepository will + // return an arbitrary value. + GetForgeFedRepository() ForgeFedRepository + // GetForgeFedTicket returns the value of this property. When + // IsForgeFedTicket returns false, GetForgeFedTicket will return an + // arbitrary value. + GetForgeFedTicket() ForgeFedTicket + // GetForgeFedTicketDependency returns the value of this property. When + // IsForgeFedTicketDependency returns false, + // GetForgeFedTicketDependency will return an arbitrary value. + GetForgeFedTicketDependency() ForgeFedTicketDependency // GetIRI returns the IRI of this property. When IsIRI returns false, // GetIRI will return an arbitrary value. GetIRI() *url.URL @@ -473,6 +496,31 @@ type ActivityStreamsAttachmentPropertyIterator interface { // "View". When true, use the GetActivityStreamsView and // SetActivityStreamsView methods to access and set this property. IsActivityStreamsView() bool + // IsForgeFedBranch returns true if this property has a type of "Branch". + // When true, use the GetForgeFedBranch and SetForgeFedBranch methods + // to access and set this property. + IsForgeFedBranch() bool + // IsForgeFedCommit returns true if this property has a type of "Commit". + // When true, use the GetForgeFedCommit and SetForgeFedCommit methods + // to access and set this property. + IsForgeFedCommit() bool + // IsForgeFedPush returns true if this property has a type of "Push". When + // true, use the GetForgeFedPush and SetForgeFedPush methods to access + // and set this property. + IsForgeFedPush() bool + // IsForgeFedRepository returns true if this property has a type of + // "Repository". When true, use the GetForgeFedRepository and + // SetForgeFedRepository methods to access and set this property. + IsForgeFedRepository() bool + // IsForgeFedTicket returns true if this property has a type of "Ticket". + // When true, use the GetForgeFedTicket and SetForgeFedTicket methods + // to access and set this property. + IsForgeFedTicket() bool + // IsForgeFedTicketDependency returns true if this property has a type of + // "TicketDependency". When true, use the GetForgeFedTicketDependency + // and SetForgeFedTicketDependency methods to access and set this + // property. + IsForgeFedTicketDependency() bool // IsIRI returns true if this property is an IRI. When true, use GetIRI // and SetIRI to access and set this property IsIRI() bool @@ -669,6 +717,24 @@ type ActivityStreamsAttachmentPropertyIterator interface { // SetActivityStreamsView sets the value of this property. Calling // IsActivityStreamsView afterwards returns true. SetActivityStreamsView(v ActivityStreamsView) + // SetForgeFedBranch sets the value of this property. Calling + // IsForgeFedBranch afterwards returns true. + SetForgeFedBranch(v ForgeFedBranch) + // SetForgeFedCommit sets the value of this property. Calling + // IsForgeFedCommit afterwards returns true. + SetForgeFedCommit(v ForgeFedCommit) + // SetForgeFedPush sets the value of this property. Calling IsForgeFedPush + // afterwards returns true. + SetForgeFedPush(v ForgeFedPush) + // SetForgeFedRepository sets the value of this property. Calling + // IsForgeFedRepository afterwards returns true. + SetForgeFedRepository(v ForgeFedRepository) + // SetForgeFedTicket sets the value of this property. Calling + // IsForgeFedTicket afterwards returns true. + SetForgeFedTicket(v ForgeFedTicket) + // SetForgeFedTicketDependency sets the value of this property. Calling + // IsForgeFedTicketDependency afterwards returns true. + SetForgeFedTicketDependency(v ForgeFedTicketDependency) // SetIRI sets the value of this property. Calling IsIRI afterwards // returns true. SetIRI(v *url.URL) @@ -914,6 +980,30 @@ type ActivityStreamsAttachmentProperty interface { // the property "attachment". Invalidates iterators that are // traversing using Prev. AppendActivityStreamsView(v ActivityStreamsView) + // AppendForgeFedBranch appends a Branch value to the back of a list of + // the property "attachment". Invalidates iterators that are + // traversing using Prev. + AppendForgeFedBranch(v ForgeFedBranch) + // AppendForgeFedCommit appends a Commit value to the back of a list of + // the property "attachment". Invalidates iterators that are + // traversing using Prev. + AppendForgeFedCommit(v ForgeFedCommit) + // AppendForgeFedPush appends a Push value to the back of a list of the + // property "attachment". Invalidates iterators that are traversing + // using Prev. + AppendForgeFedPush(v ForgeFedPush) + // AppendForgeFedRepository appends a Repository value to the back of a + // list of the property "attachment". Invalidates iterators that are + // traversing using Prev. + AppendForgeFedRepository(v ForgeFedRepository) + // AppendForgeFedTicket appends a Ticket value to the back of a list of + // the property "attachment". Invalidates iterators that are + // traversing using Prev. + AppendForgeFedTicket(v ForgeFedTicket) + // AppendForgeFedTicketDependency appends a TicketDependency value to the + // back of a list of the property "attachment". Invalidates iterators + // that are traversing using Prev. + AppendForgeFedTicketDependency(v ForgeFedTicketDependency) // AppendIRI appends an IRI value to the back of a list of the property // "attachment" AppendIRI(v *url.URL) @@ -1170,6 +1260,31 @@ type ActivityStreamsAttachmentProperty interface { // for a property "attachment". Existing elements at that index and // higher are shifted back once. Invalidates all iterators. InsertActivityStreamsView(idx int, v ActivityStreamsView) + // InsertForgeFedBranch inserts a Branch value at the specified index for + // a property "attachment". Existing elements at that index and higher + // are shifted back once. Invalidates all iterators. + InsertForgeFedBranch(idx int, v ForgeFedBranch) + // InsertForgeFedCommit inserts a Commit value at the specified index for + // a property "attachment". Existing elements at that index and higher + // are shifted back once. Invalidates all iterators. + InsertForgeFedCommit(idx int, v ForgeFedCommit) + // InsertForgeFedPush inserts a Push value at the specified index for a + // property "attachment". Existing elements at that index and higher + // are shifted back once. Invalidates all iterators. + InsertForgeFedPush(idx int, v ForgeFedPush) + // InsertForgeFedRepository inserts a Repository value at the specified + // index for a property "attachment". Existing elements at that index + // and higher are shifted back once. Invalidates all iterators. + InsertForgeFedRepository(idx int, v ForgeFedRepository) + // InsertForgeFedTicket inserts a Ticket value at the specified index for + // a property "attachment". Existing elements at that index and higher + // are shifted back once. Invalidates all iterators. + InsertForgeFedTicket(idx int, v ForgeFedTicket) + // InsertForgeFedTicketDependency inserts a TicketDependency value at the + // specified index for a property "attachment". Existing elements at + // that index and higher are shifted back once. Invalidates all + // iterators. + InsertForgeFedTicketDependency(idx int, v ForgeFedTicketDependency) // Insert inserts an IRI value at the specified index for a property // "attachment". Existing elements at that index and higher are // shifted back once. Invalidates all iterators. @@ -1381,6 +1496,25 @@ type ActivityStreamsAttachmentProperty interface { // PrependActivityStreamsView prepends a View value to the front of a list // of the property "attachment". Invalidates all iterators. PrependActivityStreamsView(v ActivityStreamsView) + // PrependForgeFedBranch prepends a Branch value to the front of a list of + // the property "attachment". Invalidates all iterators. + PrependForgeFedBranch(v ForgeFedBranch) + // PrependForgeFedCommit prepends a Commit value to the front of a list of + // the property "attachment". Invalidates all iterators. + PrependForgeFedCommit(v ForgeFedCommit) + // PrependForgeFedPush prepends a Push value to the front of a list of the + // property "attachment". Invalidates all iterators. + PrependForgeFedPush(v ForgeFedPush) + // PrependForgeFedRepository prepends a Repository value to the front of a + // list of the property "attachment". Invalidates all iterators. + PrependForgeFedRepository(v ForgeFedRepository) + // PrependForgeFedTicket prepends a Ticket value to the front of a list of + // the property "attachment". Invalidates all iterators. + PrependForgeFedTicket(v ForgeFedTicket) + // PrependForgeFedTicketDependency prepends a TicketDependency value to + // the front of a list of the property "attachment". Invalidates all + // iterators. + PrependForgeFedTicketDependency(v ForgeFedTicketDependency) // PrependIRI prepends an IRI value to the front of a list of the property // "attachment". PrependIRI(v *url.URL) @@ -1620,6 +1754,30 @@ type ActivityStreamsAttachmentProperty interface { // for the property "attachment". Panics if the index is out of // bounds. Invalidates all iterators. SetActivityStreamsView(idx int, v ActivityStreamsView) + // SetForgeFedBranch sets a Branch value to be at the specified index for + // the property "attachment". Panics if the index is out of bounds. + // Invalidates all iterators. + SetForgeFedBranch(idx int, v ForgeFedBranch) + // SetForgeFedCommit sets a Commit value to be at the specified index for + // the property "attachment". Panics if the index is out of bounds. + // Invalidates all iterators. + SetForgeFedCommit(idx int, v ForgeFedCommit) + // SetForgeFedPush sets a Push value to be at the specified index for the + // property "attachment". Panics if the index is out of bounds. + // Invalidates all iterators. + SetForgeFedPush(idx int, v ForgeFedPush) + // SetForgeFedRepository sets a Repository value to be at the specified + // index for the property "attachment". Panics if the index is out of + // bounds. Invalidates all iterators. + SetForgeFedRepository(idx int, v ForgeFedRepository) + // SetForgeFedTicket sets a Ticket value to be at the specified index for + // the property "attachment". Panics if the index is out of bounds. + // Invalidates all iterators. + SetForgeFedTicket(idx int, v ForgeFedTicket) + // SetForgeFedTicketDependency sets a TicketDependency value to be at the + // specified index for the property "attachment". Panics if the index + // is out of bounds. Invalidates all iterators. + SetForgeFedTicketDependency(idx int, v ForgeFedTicketDependency) // SetIRI sets an IRI value to be at the specified index for the property // "attachment". Panics if the index is out of bounds. SetIRI(idx int, v *url.URL) diff --git a/streams/vocab/gen_property_activitystreams_attributedTo_interface.go b/streams/vocab/gen_property_activitystreams_attributedTo_interface.go index 966d7a3..21fc973 100644 --- a/streams/vocab/gen_property_activitystreams_attributedTo_interface.go +++ b/streams/vocab/gen_property_activitystreams_attributedTo_interface.go @@ -225,6 +225,29 @@ type ActivityStreamsAttributedToPropertyIterator interface { // IsActivityStreamsView returns false, GetActivityStreamsView will // return an arbitrary value. GetActivityStreamsView() ActivityStreamsView + // GetForgeFedBranch returns the value of this property. When + // IsForgeFedBranch returns false, GetForgeFedBranch will return an + // arbitrary value. + GetForgeFedBranch() ForgeFedBranch + // GetForgeFedCommit returns the value of this property. When + // IsForgeFedCommit returns false, GetForgeFedCommit will return an + // arbitrary value. + GetForgeFedCommit() ForgeFedCommit + // GetForgeFedPush returns the value of this property. When IsForgeFedPush + // returns false, GetForgeFedPush will return an arbitrary value. + GetForgeFedPush() ForgeFedPush + // GetForgeFedRepository returns the value of this property. When + // IsForgeFedRepository returns false, GetForgeFedRepository will + // return an arbitrary value. + GetForgeFedRepository() ForgeFedRepository + // GetForgeFedTicket returns the value of this property. When + // IsForgeFedTicket returns false, GetForgeFedTicket will return an + // arbitrary value. + GetForgeFedTicket() ForgeFedTicket + // GetForgeFedTicketDependency returns the value of this property. When + // IsForgeFedTicketDependency returns false, + // GetForgeFedTicketDependency will return an arbitrary value. + GetForgeFedTicketDependency() ForgeFedTicketDependency // GetIRI returns the IRI of this property. When IsIRI returns false, // GetIRI will return an arbitrary value. GetIRI() *url.URL @@ -473,6 +496,31 @@ type ActivityStreamsAttributedToPropertyIterator interface { // "View". When true, use the GetActivityStreamsView and // SetActivityStreamsView methods to access and set this property. IsActivityStreamsView() bool + // IsForgeFedBranch returns true if this property has a type of "Branch". + // When true, use the GetForgeFedBranch and SetForgeFedBranch methods + // to access and set this property. + IsForgeFedBranch() bool + // IsForgeFedCommit returns true if this property has a type of "Commit". + // When true, use the GetForgeFedCommit and SetForgeFedCommit methods + // to access and set this property. + IsForgeFedCommit() bool + // IsForgeFedPush returns true if this property has a type of "Push". When + // true, use the GetForgeFedPush and SetForgeFedPush methods to access + // and set this property. + IsForgeFedPush() bool + // IsForgeFedRepository returns true if this property has a type of + // "Repository". When true, use the GetForgeFedRepository and + // SetForgeFedRepository methods to access and set this property. + IsForgeFedRepository() bool + // IsForgeFedTicket returns true if this property has a type of "Ticket". + // When true, use the GetForgeFedTicket and SetForgeFedTicket methods + // to access and set this property. + IsForgeFedTicket() bool + // IsForgeFedTicketDependency returns true if this property has a type of + // "TicketDependency". When true, use the GetForgeFedTicketDependency + // and SetForgeFedTicketDependency methods to access and set this + // property. + IsForgeFedTicketDependency() bool // IsIRI returns true if this property is an IRI. When true, use GetIRI // and SetIRI to access and set this property IsIRI() bool @@ -669,6 +717,24 @@ type ActivityStreamsAttributedToPropertyIterator interface { // SetActivityStreamsView sets the value of this property. Calling // IsActivityStreamsView afterwards returns true. SetActivityStreamsView(v ActivityStreamsView) + // SetForgeFedBranch sets the value of this property. Calling + // IsForgeFedBranch afterwards returns true. + SetForgeFedBranch(v ForgeFedBranch) + // SetForgeFedCommit sets the value of this property. Calling + // IsForgeFedCommit afterwards returns true. + SetForgeFedCommit(v ForgeFedCommit) + // SetForgeFedPush sets the value of this property. Calling IsForgeFedPush + // afterwards returns true. + SetForgeFedPush(v ForgeFedPush) + // SetForgeFedRepository sets the value of this property. Calling + // IsForgeFedRepository afterwards returns true. + SetForgeFedRepository(v ForgeFedRepository) + // SetForgeFedTicket sets the value of this property. Calling + // IsForgeFedTicket afterwards returns true. + SetForgeFedTicket(v ForgeFedTicket) + // SetForgeFedTicketDependency sets the value of this property. Calling + // IsForgeFedTicketDependency afterwards returns true. + SetForgeFedTicketDependency(v ForgeFedTicketDependency) // SetIRI sets the value of this property. Calling IsIRI afterwards // returns true. SetIRI(v *url.URL) @@ -930,6 +996,30 @@ type ActivityStreamsAttributedToProperty interface { // the property "attributedTo". Invalidates iterators that are // traversing using Prev. AppendActivityStreamsView(v ActivityStreamsView) + // AppendForgeFedBranch appends a Branch value to the back of a list of + // the property "attributedTo". Invalidates iterators that are + // traversing using Prev. + AppendForgeFedBranch(v ForgeFedBranch) + // AppendForgeFedCommit appends a Commit value to the back of a list of + // the property "attributedTo". Invalidates iterators that are + // traversing using Prev. + AppendForgeFedCommit(v ForgeFedCommit) + // AppendForgeFedPush appends a Push value to the back of a list of the + // property "attributedTo". Invalidates iterators that are traversing + // using Prev. + AppendForgeFedPush(v ForgeFedPush) + // AppendForgeFedRepository appends a Repository value to the back of a + // list of the property "attributedTo". Invalidates iterators that are + // traversing using Prev. + AppendForgeFedRepository(v ForgeFedRepository) + // AppendForgeFedTicket appends a Ticket value to the back of a list of + // the property "attributedTo". Invalidates iterators that are + // traversing using Prev. + AppendForgeFedTicket(v ForgeFedTicket) + // AppendForgeFedTicketDependency appends a TicketDependency value to the + // back of a list of the property "attributedTo". Invalidates + // iterators that are traversing using Prev. + AppendForgeFedTicketDependency(v ForgeFedTicketDependency) // AppendIRI appends an IRI value to the back of a list of the property // "attributedTo" AppendIRI(v *url.URL) @@ -1186,6 +1276,31 @@ type ActivityStreamsAttributedToProperty interface { // for a property "attributedTo". Existing elements at that index and // higher are shifted back once. Invalidates all iterators. InsertActivityStreamsView(idx int, v ActivityStreamsView) + // InsertForgeFedBranch inserts a Branch value at the specified index for + // a property "attributedTo". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertForgeFedBranch(idx int, v ForgeFedBranch) + // InsertForgeFedCommit inserts a Commit value at the specified index for + // a property "attributedTo". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertForgeFedCommit(idx int, v ForgeFedCommit) + // InsertForgeFedPush inserts a Push value at the specified index for a + // property "attributedTo". Existing elements at that index and higher + // are shifted back once. Invalidates all iterators. + InsertForgeFedPush(idx int, v ForgeFedPush) + // InsertForgeFedRepository inserts a Repository value at the specified + // index for a property "attributedTo". Existing elements at that + // index and higher are shifted back once. Invalidates all iterators. + InsertForgeFedRepository(idx int, v ForgeFedRepository) + // InsertForgeFedTicket inserts a Ticket value at the specified index for + // a property "attributedTo". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertForgeFedTicket(idx int, v ForgeFedTicket) + // InsertForgeFedTicketDependency inserts a TicketDependency value at the + // specified index for a property "attributedTo". Existing elements at + // that index and higher are shifted back once. Invalidates all + // iterators. + InsertForgeFedTicketDependency(idx int, v ForgeFedTicketDependency) // Insert inserts an IRI value at the specified index for a property // "attributedTo". Existing elements at that index and higher are // shifted back once. Invalidates all iterators. @@ -1397,6 +1512,25 @@ type ActivityStreamsAttributedToProperty interface { // PrependActivityStreamsView prepends a View value to the front of a list // of the property "attributedTo". Invalidates all iterators. PrependActivityStreamsView(v ActivityStreamsView) + // PrependForgeFedBranch prepends a Branch value to the front of a list of + // the property "attributedTo". Invalidates all iterators. + PrependForgeFedBranch(v ForgeFedBranch) + // PrependForgeFedCommit prepends a Commit value to the front of a list of + // the property "attributedTo". Invalidates all iterators. + PrependForgeFedCommit(v ForgeFedCommit) + // PrependForgeFedPush prepends a Push value to the front of a list of the + // property "attributedTo". Invalidates all iterators. + PrependForgeFedPush(v ForgeFedPush) + // PrependForgeFedRepository prepends a Repository value to the front of a + // list of the property "attributedTo". Invalidates all iterators. + PrependForgeFedRepository(v ForgeFedRepository) + // PrependForgeFedTicket prepends a Ticket value to the front of a list of + // the property "attributedTo". Invalidates all iterators. + PrependForgeFedTicket(v ForgeFedTicket) + // PrependForgeFedTicketDependency prepends a TicketDependency value to + // the front of a list of the property "attributedTo". Invalidates all + // iterators. + PrependForgeFedTicketDependency(v ForgeFedTicketDependency) // PrependIRI prepends an IRI value to the front of a list of the property // "attributedTo". PrependIRI(v *url.URL) @@ -1636,6 +1770,30 @@ type ActivityStreamsAttributedToProperty interface { // for the property "attributedTo". Panics if the index is out of // bounds. Invalidates all iterators. SetActivityStreamsView(idx int, v ActivityStreamsView) + // SetForgeFedBranch sets a Branch value to be at the specified index for + // the property "attributedTo". Panics if the index is out of bounds. + // Invalidates all iterators. + SetForgeFedBranch(idx int, v ForgeFedBranch) + // SetForgeFedCommit sets a Commit value to be at the specified index for + // the property "attributedTo". Panics if the index is out of bounds. + // Invalidates all iterators. + SetForgeFedCommit(idx int, v ForgeFedCommit) + // SetForgeFedPush sets a Push value to be at the specified index for the + // property "attributedTo". Panics if the index is out of bounds. + // Invalidates all iterators. + SetForgeFedPush(idx int, v ForgeFedPush) + // SetForgeFedRepository sets a Repository value to be at the specified + // index for the property "attributedTo". Panics if the index is out + // of bounds. Invalidates all iterators. + SetForgeFedRepository(idx int, v ForgeFedRepository) + // SetForgeFedTicket sets a Ticket value to be at the specified index for + // the property "attributedTo". Panics if the index is out of bounds. + // Invalidates all iterators. + SetForgeFedTicket(idx int, v ForgeFedTicket) + // SetForgeFedTicketDependency sets a TicketDependency value to be at the + // specified index for the property "attributedTo". Panics if the + // index is out of bounds. Invalidates all iterators. + SetForgeFedTicketDependency(idx int, v ForgeFedTicketDependency) // SetIRI sets an IRI value to be at the specified index for the property // "attributedTo". Panics if the index is out of bounds. SetIRI(idx int, v *url.URL) diff --git a/streams/vocab/gen_property_activitystreams_audience_interface.go b/streams/vocab/gen_property_activitystreams_audience_interface.go index 7e83024..4cab354 100644 --- a/streams/vocab/gen_property_activitystreams_audience_interface.go +++ b/streams/vocab/gen_property_activitystreams_audience_interface.go @@ -225,6 +225,29 @@ type ActivityStreamsAudiencePropertyIterator interface { // IsActivityStreamsView returns false, GetActivityStreamsView will // return an arbitrary value. GetActivityStreamsView() ActivityStreamsView + // GetForgeFedBranch returns the value of this property. When + // IsForgeFedBranch returns false, GetForgeFedBranch will return an + // arbitrary value. + GetForgeFedBranch() ForgeFedBranch + // GetForgeFedCommit returns the value of this property. When + // IsForgeFedCommit returns false, GetForgeFedCommit will return an + // arbitrary value. + GetForgeFedCommit() ForgeFedCommit + // GetForgeFedPush returns the value of this property. When IsForgeFedPush + // returns false, GetForgeFedPush will return an arbitrary value. + GetForgeFedPush() ForgeFedPush + // GetForgeFedRepository returns the value of this property. When + // IsForgeFedRepository returns false, GetForgeFedRepository will + // return an arbitrary value. + GetForgeFedRepository() ForgeFedRepository + // GetForgeFedTicket returns the value of this property. When + // IsForgeFedTicket returns false, GetForgeFedTicket will return an + // arbitrary value. + GetForgeFedTicket() ForgeFedTicket + // GetForgeFedTicketDependency returns the value of this property. When + // IsForgeFedTicketDependency returns false, + // GetForgeFedTicketDependency will return an arbitrary value. + GetForgeFedTicketDependency() ForgeFedTicketDependency // GetIRI returns the IRI of this property. When IsIRI returns false, // GetIRI will return an arbitrary value. GetIRI() *url.URL @@ -473,6 +496,31 @@ type ActivityStreamsAudiencePropertyIterator interface { // "View". When true, use the GetActivityStreamsView and // SetActivityStreamsView methods to access and set this property. IsActivityStreamsView() bool + // IsForgeFedBranch returns true if this property has a type of "Branch". + // When true, use the GetForgeFedBranch and SetForgeFedBranch methods + // to access and set this property. + IsForgeFedBranch() bool + // IsForgeFedCommit returns true if this property has a type of "Commit". + // When true, use the GetForgeFedCommit and SetForgeFedCommit methods + // to access and set this property. + IsForgeFedCommit() bool + // IsForgeFedPush returns true if this property has a type of "Push". When + // true, use the GetForgeFedPush and SetForgeFedPush methods to access + // and set this property. + IsForgeFedPush() bool + // IsForgeFedRepository returns true if this property has a type of + // "Repository". When true, use the GetForgeFedRepository and + // SetForgeFedRepository methods to access and set this property. + IsForgeFedRepository() bool + // IsForgeFedTicket returns true if this property has a type of "Ticket". + // When true, use the GetForgeFedTicket and SetForgeFedTicket methods + // to access and set this property. + IsForgeFedTicket() bool + // IsForgeFedTicketDependency returns true if this property has a type of + // "TicketDependency". When true, use the GetForgeFedTicketDependency + // and SetForgeFedTicketDependency methods to access and set this + // property. + IsForgeFedTicketDependency() bool // IsIRI returns true if this property is an IRI. When true, use GetIRI // and SetIRI to access and set this property IsIRI() bool @@ -669,6 +717,24 @@ type ActivityStreamsAudiencePropertyIterator interface { // SetActivityStreamsView sets the value of this property. Calling // IsActivityStreamsView afterwards returns true. SetActivityStreamsView(v ActivityStreamsView) + // SetForgeFedBranch sets the value of this property. Calling + // IsForgeFedBranch afterwards returns true. + SetForgeFedBranch(v ForgeFedBranch) + // SetForgeFedCommit sets the value of this property. Calling + // IsForgeFedCommit afterwards returns true. + SetForgeFedCommit(v ForgeFedCommit) + // SetForgeFedPush sets the value of this property. Calling IsForgeFedPush + // afterwards returns true. + SetForgeFedPush(v ForgeFedPush) + // SetForgeFedRepository sets the value of this property. Calling + // IsForgeFedRepository afterwards returns true. + SetForgeFedRepository(v ForgeFedRepository) + // SetForgeFedTicket sets the value of this property. Calling + // IsForgeFedTicket afterwards returns true. + SetForgeFedTicket(v ForgeFedTicket) + // SetForgeFedTicketDependency sets the value of this property. Calling + // IsForgeFedTicketDependency afterwards returns true. + SetForgeFedTicketDependency(v ForgeFedTicketDependency) // SetIRI sets the value of this property. Calling IsIRI afterwards // returns true. SetIRI(v *url.URL) @@ -914,6 +980,30 @@ type ActivityStreamsAudienceProperty interface { // the property "audience". Invalidates iterators that are traversing // using Prev. AppendActivityStreamsView(v ActivityStreamsView) + // AppendForgeFedBranch appends a Branch value to the back of a list of + // the property "audience". Invalidates iterators that are traversing + // using Prev. + AppendForgeFedBranch(v ForgeFedBranch) + // AppendForgeFedCommit appends a Commit value to the back of a list of + // the property "audience". Invalidates iterators that are traversing + // using Prev. + AppendForgeFedCommit(v ForgeFedCommit) + // AppendForgeFedPush appends a Push value to the back of a list of the + // property "audience". Invalidates iterators that are traversing + // using Prev. + AppendForgeFedPush(v ForgeFedPush) + // AppendForgeFedRepository appends a Repository value to the back of a + // list of the property "audience". Invalidates iterators that are + // traversing using Prev. + AppendForgeFedRepository(v ForgeFedRepository) + // AppendForgeFedTicket appends a Ticket value to the back of a list of + // the property "audience". Invalidates iterators that are traversing + // using Prev. + AppendForgeFedTicket(v ForgeFedTicket) + // AppendForgeFedTicketDependency appends a TicketDependency value to the + // back of a list of the property "audience". Invalidates iterators + // that are traversing using Prev. + AppendForgeFedTicketDependency(v ForgeFedTicketDependency) // AppendIRI appends an IRI value to the back of a list of the property // "audience" AppendIRI(v *url.URL) @@ -1170,6 +1260,31 @@ type ActivityStreamsAudienceProperty interface { // for a property "audience". Existing elements at that index and // higher are shifted back once. Invalidates all iterators. InsertActivityStreamsView(idx int, v ActivityStreamsView) + // InsertForgeFedBranch inserts a Branch value at the specified index for + // a property "audience". Existing elements at that index and higher + // are shifted back once. Invalidates all iterators. + InsertForgeFedBranch(idx int, v ForgeFedBranch) + // InsertForgeFedCommit inserts a Commit value at the specified index for + // a property "audience". Existing elements at that index and higher + // are shifted back once. Invalidates all iterators. + InsertForgeFedCommit(idx int, v ForgeFedCommit) + // InsertForgeFedPush inserts a Push value at the specified index for a + // property "audience". Existing elements at that index and higher are + // shifted back once. Invalidates all iterators. + InsertForgeFedPush(idx int, v ForgeFedPush) + // InsertForgeFedRepository inserts a Repository value at the specified + // index for a property "audience". Existing elements at that index + // and higher are shifted back once. Invalidates all iterators. + InsertForgeFedRepository(idx int, v ForgeFedRepository) + // InsertForgeFedTicket inserts a Ticket value at the specified index for + // a property "audience". Existing elements at that index and higher + // are shifted back once. Invalidates all iterators. + InsertForgeFedTicket(idx int, v ForgeFedTicket) + // InsertForgeFedTicketDependency inserts a TicketDependency value at the + // specified index for a property "audience". Existing elements at + // that index and higher are shifted back once. Invalidates all + // iterators. + InsertForgeFedTicketDependency(idx int, v ForgeFedTicketDependency) // Insert inserts an IRI value at the specified index for a property // "audience". Existing elements at that index and higher are shifted // back once. Invalidates all iterators. @@ -1380,6 +1495,25 @@ type ActivityStreamsAudienceProperty interface { // PrependActivityStreamsView prepends a View value to the front of a list // of the property "audience". Invalidates all iterators. PrependActivityStreamsView(v ActivityStreamsView) + // PrependForgeFedBranch prepends a Branch value to the front of a list of + // the property "audience". Invalidates all iterators. + PrependForgeFedBranch(v ForgeFedBranch) + // PrependForgeFedCommit prepends a Commit value to the front of a list of + // the property "audience". Invalidates all iterators. + PrependForgeFedCommit(v ForgeFedCommit) + // PrependForgeFedPush prepends a Push value to the front of a list of the + // property "audience". Invalidates all iterators. + PrependForgeFedPush(v ForgeFedPush) + // PrependForgeFedRepository prepends a Repository value to the front of a + // list of the property "audience". Invalidates all iterators. + PrependForgeFedRepository(v ForgeFedRepository) + // PrependForgeFedTicket prepends a Ticket value to the front of a list of + // the property "audience". Invalidates all iterators. + PrependForgeFedTicket(v ForgeFedTicket) + // PrependForgeFedTicketDependency prepends a TicketDependency value to + // the front of a list of the property "audience". Invalidates all + // iterators. + PrependForgeFedTicketDependency(v ForgeFedTicketDependency) // PrependIRI prepends an IRI value to the front of a list of the property // "audience". PrependIRI(v *url.URL) @@ -1619,6 +1753,30 @@ type ActivityStreamsAudienceProperty interface { // for the property "audience". Panics if the index is out of bounds. // Invalidates all iterators. SetActivityStreamsView(idx int, v ActivityStreamsView) + // SetForgeFedBranch sets a Branch value to be at the specified index for + // the property "audience". Panics if the index is out of bounds. + // Invalidates all iterators. + SetForgeFedBranch(idx int, v ForgeFedBranch) + // SetForgeFedCommit sets a Commit value to be at the specified index for + // the property "audience". Panics if the index is out of bounds. + // Invalidates all iterators. + SetForgeFedCommit(idx int, v ForgeFedCommit) + // SetForgeFedPush sets a Push value to be at the specified index for the + // property "audience". Panics if the index is out of bounds. + // Invalidates all iterators. + SetForgeFedPush(idx int, v ForgeFedPush) + // SetForgeFedRepository sets a Repository value to be at the specified + // index for the property "audience". Panics if the index is out of + // bounds. Invalidates all iterators. + SetForgeFedRepository(idx int, v ForgeFedRepository) + // SetForgeFedTicket sets a Ticket value to be at the specified index for + // the property "audience". Panics if the index is out of bounds. + // Invalidates all iterators. + SetForgeFedTicket(idx int, v ForgeFedTicket) + // SetForgeFedTicketDependency sets a TicketDependency value to be at the + // specified index for the property "audience". Panics if the index is + // out of bounds. Invalidates all iterators. + SetForgeFedTicketDependency(idx int, v ForgeFedTicketDependency) // SetIRI sets an IRI value to be at the specified index for the property // "audience". Panics if the index is out of bounds. SetIRI(idx int, v *url.URL) diff --git a/streams/vocab/gen_property_activitystreams_bcc_interface.go b/streams/vocab/gen_property_activitystreams_bcc_interface.go index 9233e88..8ba5091 100644 --- a/streams/vocab/gen_property_activitystreams_bcc_interface.go +++ b/streams/vocab/gen_property_activitystreams_bcc_interface.go @@ -225,6 +225,29 @@ type ActivityStreamsBccPropertyIterator interface { // IsActivityStreamsView returns false, GetActivityStreamsView will // return an arbitrary value. GetActivityStreamsView() ActivityStreamsView + // GetForgeFedBranch returns the value of this property. When + // IsForgeFedBranch returns false, GetForgeFedBranch will return an + // arbitrary value. + GetForgeFedBranch() ForgeFedBranch + // GetForgeFedCommit returns the value of this property. When + // IsForgeFedCommit returns false, GetForgeFedCommit will return an + // arbitrary value. + GetForgeFedCommit() ForgeFedCommit + // GetForgeFedPush returns the value of this property. When IsForgeFedPush + // returns false, GetForgeFedPush will return an arbitrary value. + GetForgeFedPush() ForgeFedPush + // GetForgeFedRepository returns the value of this property. When + // IsForgeFedRepository returns false, GetForgeFedRepository will + // return an arbitrary value. + GetForgeFedRepository() ForgeFedRepository + // GetForgeFedTicket returns the value of this property. When + // IsForgeFedTicket returns false, GetForgeFedTicket will return an + // arbitrary value. + GetForgeFedTicket() ForgeFedTicket + // GetForgeFedTicketDependency returns the value of this property. When + // IsForgeFedTicketDependency returns false, + // GetForgeFedTicketDependency will return an arbitrary value. + GetForgeFedTicketDependency() ForgeFedTicketDependency // GetIRI returns the IRI of this property. When IsIRI returns false, // GetIRI will return an arbitrary value. GetIRI() *url.URL @@ -473,6 +496,31 @@ type ActivityStreamsBccPropertyIterator interface { // "View". When true, use the GetActivityStreamsView and // SetActivityStreamsView methods to access and set this property. IsActivityStreamsView() bool + // IsForgeFedBranch returns true if this property has a type of "Branch". + // When true, use the GetForgeFedBranch and SetForgeFedBranch methods + // to access and set this property. + IsForgeFedBranch() bool + // IsForgeFedCommit returns true if this property has a type of "Commit". + // When true, use the GetForgeFedCommit and SetForgeFedCommit methods + // to access and set this property. + IsForgeFedCommit() bool + // IsForgeFedPush returns true if this property has a type of "Push". When + // true, use the GetForgeFedPush and SetForgeFedPush methods to access + // and set this property. + IsForgeFedPush() bool + // IsForgeFedRepository returns true if this property has a type of + // "Repository". When true, use the GetForgeFedRepository and + // SetForgeFedRepository methods to access and set this property. + IsForgeFedRepository() bool + // IsForgeFedTicket returns true if this property has a type of "Ticket". + // When true, use the GetForgeFedTicket and SetForgeFedTicket methods + // to access and set this property. + IsForgeFedTicket() bool + // IsForgeFedTicketDependency returns true if this property has a type of + // "TicketDependency". When true, use the GetForgeFedTicketDependency + // and SetForgeFedTicketDependency methods to access and set this + // property. + IsForgeFedTicketDependency() bool // IsIRI returns true if this property is an IRI. When true, use GetIRI // and SetIRI to access and set this property IsIRI() bool @@ -669,6 +717,24 @@ type ActivityStreamsBccPropertyIterator interface { // SetActivityStreamsView sets the value of this property. Calling // IsActivityStreamsView afterwards returns true. SetActivityStreamsView(v ActivityStreamsView) + // SetForgeFedBranch sets the value of this property. Calling + // IsForgeFedBranch afterwards returns true. + SetForgeFedBranch(v ForgeFedBranch) + // SetForgeFedCommit sets the value of this property. Calling + // IsForgeFedCommit afterwards returns true. + SetForgeFedCommit(v ForgeFedCommit) + // SetForgeFedPush sets the value of this property. Calling IsForgeFedPush + // afterwards returns true. + SetForgeFedPush(v ForgeFedPush) + // SetForgeFedRepository sets the value of this property. Calling + // IsForgeFedRepository afterwards returns true. + SetForgeFedRepository(v ForgeFedRepository) + // SetForgeFedTicket sets the value of this property. Calling + // IsForgeFedTicket afterwards returns true. + SetForgeFedTicket(v ForgeFedTicket) + // SetForgeFedTicketDependency sets the value of this property. Calling + // IsForgeFedTicketDependency afterwards returns true. + SetForgeFedTicketDependency(v ForgeFedTicketDependency) // SetIRI sets the value of this property. Calling IsIRI afterwards // returns true. SetIRI(v *url.URL) @@ -912,6 +978,30 @@ type ActivityStreamsBccProperty interface { // the property "bcc". Invalidates iterators that are traversing using // Prev. AppendActivityStreamsView(v ActivityStreamsView) + // AppendForgeFedBranch appends a Branch value to the back of a list of + // the property "bcc". Invalidates iterators that are traversing using + // Prev. + AppendForgeFedBranch(v ForgeFedBranch) + // AppendForgeFedCommit appends a Commit value to the back of a list of + // the property "bcc". Invalidates iterators that are traversing using + // Prev. + AppendForgeFedCommit(v ForgeFedCommit) + // AppendForgeFedPush appends a Push value to the back of a list of the + // property "bcc". Invalidates iterators that are traversing using + // Prev. + AppendForgeFedPush(v ForgeFedPush) + // AppendForgeFedRepository appends a Repository value to the back of a + // list of the property "bcc". Invalidates iterators that are + // traversing using Prev. + AppendForgeFedRepository(v ForgeFedRepository) + // AppendForgeFedTicket appends a Ticket value to the back of a list of + // the property "bcc". Invalidates iterators that are traversing using + // Prev. + AppendForgeFedTicket(v ForgeFedTicket) + // AppendForgeFedTicketDependency appends a TicketDependency value to the + // back of a list of the property "bcc". Invalidates iterators that + // are traversing using Prev. + AppendForgeFedTicketDependency(v ForgeFedTicketDependency) // AppendIRI appends an IRI value to the back of a list of the property // "bcc" AppendIRI(v *url.URL) @@ -1160,6 +1250,30 @@ type ActivityStreamsBccProperty interface { // for a property "bcc". Existing elements at that index and higher // are shifted back once. Invalidates all iterators. InsertActivityStreamsView(idx int, v ActivityStreamsView) + // InsertForgeFedBranch inserts a Branch value at the specified index for + // a property "bcc". Existing elements at that index and higher are + // shifted back once. Invalidates all iterators. + InsertForgeFedBranch(idx int, v ForgeFedBranch) + // InsertForgeFedCommit inserts a Commit value at the specified index for + // a property "bcc". Existing elements at that index and higher are + // shifted back once. Invalidates all iterators. + InsertForgeFedCommit(idx int, v ForgeFedCommit) + // InsertForgeFedPush inserts a Push value at the specified index for a + // property "bcc". Existing elements at that index and higher are + // shifted back once. Invalidates all iterators. + InsertForgeFedPush(idx int, v ForgeFedPush) + // InsertForgeFedRepository inserts a Repository value at the specified + // index for a property "bcc". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertForgeFedRepository(idx int, v ForgeFedRepository) + // InsertForgeFedTicket inserts a Ticket value at the specified index for + // a property "bcc". Existing elements at that index and higher are + // shifted back once. Invalidates all iterators. + InsertForgeFedTicket(idx int, v ForgeFedTicket) + // InsertForgeFedTicketDependency inserts a TicketDependency value at the + // specified index for a property "bcc". Existing elements at that + // index and higher are shifted back once. Invalidates all iterators. + InsertForgeFedTicketDependency(idx int, v ForgeFedTicketDependency) // Insert inserts an IRI value at the specified index for a property // "bcc". Existing elements at that index and higher are shifted back // once. Invalidates all iterators. @@ -1366,6 +1480,25 @@ type ActivityStreamsBccProperty interface { // PrependActivityStreamsView prepends a View value to the front of a list // of the property "bcc". Invalidates all iterators. PrependActivityStreamsView(v ActivityStreamsView) + // PrependForgeFedBranch prepends a Branch value to the front of a list of + // the property "bcc". Invalidates all iterators. + PrependForgeFedBranch(v ForgeFedBranch) + // PrependForgeFedCommit prepends a Commit value to the front of a list of + // the property "bcc". Invalidates all iterators. + PrependForgeFedCommit(v ForgeFedCommit) + // PrependForgeFedPush prepends a Push value to the front of a list of the + // property "bcc". Invalidates all iterators. + PrependForgeFedPush(v ForgeFedPush) + // PrependForgeFedRepository prepends a Repository value to the front of a + // list of the property "bcc". Invalidates all iterators. + PrependForgeFedRepository(v ForgeFedRepository) + // PrependForgeFedTicket prepends a Ticket value to the front of a list of + // the property "bcc". Invalidates all iterators. + PrependForgeFedTicket(v ForgeFedTicket) + // PrependForgeFedTicketDependency prepends a TicketDependency value to + // the front of a list of the property "bcc". Invalidates all + // iterators. + PrependForgeFedTicketDependency(v ForgeFedTicketDependency) // PrependIRI prepends an IRI value to the front of a list of the property // "bcc". PrependIRI(v *url.URL) @@ -1605,6 +1738,30 @@ type ActivityStreamsBccProperty interface { // for the property "bcc". Panics if the index is out of bounds. // Invalidates all iterators. SetActivityStreamsView(idx int, v ActivityStreamsView) + // SetForgeFedBranch sets a Branch value to be at the specified index for + // the property "bcc". Panics if the index is out of bounds. + // Invalidates all iterators. + SetForgeFedBranch(idx int, v ForgeFedBranch) + // SetForgeFedCommit sets a Commit value to be at the specified index for + // the property "bcc". Panics if the index is out of bounds. + // Invalidates all iterators. + SetForgeFedCommit(idx int, v ForgeFedCommit) + // SetForgeFedPush sets a Push value to be at the specified index for the + // property "bcc". Panics if the index is out of bounds. Invalidates + // all iterators. + SetForgeFedPush(idx int, v ForgeFedPush) + // SetForgeFedRepository sets a Repository value to be at the specified + // index for the property "bcc". Panics if the index is out of bounds. + // Invalidates all iterators. + SetForgeFedRepository(idx int, v ForgeFedRepository) + // SetForgeFedTicket sets a Ticket value to be at the specified index for + // the property "bcc". Panics if the index is out of bounds. + // Invalidates all iterators. + SetForgeFedTicket(idx int, v ForgeFedTicket) + // SetForgeFedTicketDependency sets a TicketDependency value to be at the + // specified index for the property "bcc". Panics if the index is out + // of bounds. Invalidates all iterators. + SetForgeFedTicketDependency(idx int, v ForgeFedTicketDependency) // SetIRI sets an IRI value to be at the specified index for the property // "bcc". Panics if the index is out of bounds. SetIRI(idx int, v *url.URL) diff --git a/streams/vocab/gen_property_activitystreams_bto_interface.go b/streams/vocab/gen_property_activitystreams_bto_interface.go index 70e1ca2..db61aac 100644 --- a/streams/vocab/gen_property_activitystreams_bto_interface.go +++ b/streams/vocab/gen_property_activitystreams_bto_interface.go @@ -225,6 +225,29 @@ type ActivityStreamsBtoPropertyIterator interface { // IsActivityStreamsView returns false, GetActivityStreamsView will // return an arbitrary value. GetActivityStreamsView() ActivityStreamsView + // GetForgeFedBranch returns the value of this property. When + // IsForgeFedBranch returns false, GetForgeFedBranch will return an + // arbitrary value. + GetForgeFedBranch() ForgeFedBranch + // GetForgeFedCommit returns the value of this property. When + // IsForgeFedCommit returns false, GetForgeFedCommit will return an + // arbitrary value. + GetForgeFedCommit() ForgeFedCommit + // GetForgeFedPush returns the value of this property. When IsForgeFedPush + // returns false, GetForgeFedPush will return an arbitrary value. + GetForgeFedPush() ForgeFedPush + // GetForgeFedRepository returns the value of this property. When + // IsForgeFedRepository returns false, GetForgeFedRepository will + // return an arbitrary value. + GetForgeFedRepository() ForgeFedRepository + // GetForgeFedTicket returns the value of this property. When + // IsForgeFedTicket returns false, GetForgeFedTicket will return an + // arbitrary value. + GetForgeFedTicket() ForgeFedTicket + // GetForgeFedTicketDependency returns the value of this property. When + // IsForgeFedTicketDependency returns false, + // GetForgeFedTicketDependency will return an arbitrary value. + GetForgeFedTicketDependency() ForgeFedTicketDependency // GetIRI returns the IRI of this property. When IsIRI returns false, // GetIRI will return an arbitrary value. GetIRI() *url.URL @@ -473,6 +496,31 @@ type ActivityStreamsBtoPropertyIterator interface { // "View". When true, use the GetActivityStreamsView and // SetActivityStreamsView methods to access and set this property. IsActivityStreamsView() bool + // IsForgeFedBranch returns true if this property has a type of "Branch". + // When true, use the GetForgeFedBranch and SetForgeFedBranch methods + // to access and set this property. + IsForgeFedBranch() bool + // IsForgeFedCommit returns true if this property has a type of "Commit". + // When true, use the GetForgeFedCommit and SetForgeFedCommit methods + // to access and set this property. + IsForgeFedCommit() bool + // IsForgeFedPush returns true if this property has a type of "Push". When + // true, use the GetForgeFedPush and SetForgeFedPush methods to access + // and set this property. + IsForgeFedPush() bool + // IsForgeFedRepository returns true if this property has a type of + // "Repository". When true, use the GetForgeFedRepository and + // SetForgeFedRepository methods to access and set this property. + IsForgeFedRepository() bool + // IsForgeFedTicket returns true if this property has a type of "Ticket". + // When true, use the GetForgeFedTicket and SetForgeFedTicket methods + // to access and set this property. + IsForgeFedTicket() bool + // IsForgeFedTicketDependency returns true if this property has a type of + // "TicketDependency". When true, use the GetForgeFedTicketDependency + // and SetForgeFedTicketDependency methods to access and set this + // property. + IsForgeFedTicketDependency() bool // IsIRI returns true if this property is an IRI. When true, use GetIRI // and SetIRI to access and set this property IsIRI() bool @@ -669,6 +717,24 @@ type ActivityStreamsBtoPropertyIterator interface { // SetActivityStreamsView sets the value of this property. Calling // IsActivityStreamsView afterwards returns true. SetActivityStreamsView(v ActivityStreamsView) + // SetForgeFedBranch sets the value of this property. Calling + // IsForgeFedBranch afterwards returns true. + SetForgeFedBranch(v ForgeFedBranch) + // SetForgeFedCommit sets the value of this property. Calling + // IsForgeFedCommit afterwards returns true. + SetForgeFedCommit(v ForgeFedCommit) + // SetForgeFedPush sets the value of this property. Calling IsForgeFedPush + // afterwards returns true. + SetForgeFedPush(v ForgeFedPush) + // SetForgeFedRepository sets the value of this property. Calling + // IsForgeFedRepository afterwards returns true. + SetForgeFedRepository(v ForgeFedRepository) + // SetForgeFedTicket sets the value of this property. Calling + // IsForgeFedTicket afterwards returns true. + SetForgeFedTicket(v ForgeFedTicket) + // SetForgeFedTicketDependency sets the value of this property. Calling + // IsForgeFedTicketDependency afterwards returns true. + SetForgeFedTicketDependency(v ForgeFedTicketDependency) // SetIRI sets the value of this property. Calling IsIRI afterwards // returns true. SetIRI(v *url.URL) @@ -912,6 +978,30 @@ type ActivityStreamsBtoProperty interface { // the property "bto". Invalidates iterators that are traversing using // Prev. AppendActivityStreamsView(v ActivityStreamsView) + // AppendForgeFedBranch appends a Branch value to the back of a list of + // the property "bto". Invalidates iterators that are traversing using + // Prev. + AppendForgeFedBranch(v ForgeFedBranch) + // AppendForgeFedCommit appends a Commit value to the back of a list of + // the property "bto". Invalidates iterators that are traversing using + // Prev. + AppendForgeFedCommit(v ForgeFedCommit) + // AppendForgeFedPush appends a Push value to the back of a list of the + // property "bto". Invalidates iterators that are traversing using + // Prev. + AppendForgeFedPush(v ForgeFedPush) + // AppendForgeFedRepository appends a Repository value to the back of a + // list of the property "bto". Invalidates iterators that are + // traversing using Prev. + AppendForgeFedRepository(v ForgeFedRepository) + // AppendForgeFedTicket appends a Ticket value to the back of a list of + // the property "bto". Invalidates iterators that are traversing using + // Prev. + AppendForgeFedTicket(v ForgeFedTicket) + // AppendForgeFedTicketDependency appends a TicketDependency value to the + // back of a list of the property "bto". Invalidates iterators that + // are traversing using Prev. + AppendForgeFedTicketDependency(v ForgeFedTicketDependency) // AppendIRI appends an IRI value to the back of a list of the property // "bto" AppendIRI(v *url.URL) @@ -1160,6 +1250,30 @@ type ActivityStreamsBtoProperty interface { // for a property "bto". Existing elements at that index and higher // are shifted back once. Invalidates all iterators. InsertActivityStreamsView(idx int, v ActivityStreamsView) + // InsertForgeFedBranch inserts a Branch value at the specified index for + // a property "bto". Existing elements at that index and higher are + // shifted back once. Invalidates all iterators. + InsertForgeFedBranch(idx int, v ForgeFedBranch) + // InsertForgeFedCommit inserts a Commit value at the specified index for + // a property "bto". Existing elements at that index and higher are + // shifted back once. Invalidates all iterators. + InsertForgeFedCommit(idx int, v ForgeFedCommit) + // InsertForgeFedPush inserts a Push value at the specified index for a + // property "bto". Existing elements at that index and higher are + // shifted back once. Invalidates all iterators. + InsertForgeFedPush(idx int, v ForgeFedPush) + // InsertForgeFedRepository inserts a Repository value at the specified + // index for a property "bto". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertForgeFedRepository(idx int, v ForgeFedRepository) + // InsertForgeFedTicket inserts a Ticket value at the specified index for + // a property "bto". Existing elements at that index and higher are + // shifted back once. Invalidates all iterators. + InsertForgeFedTicket(idx int, v ForgeFedTicket) + // InsertForgeFedTicketDependency inserts a TicketDependency value at the + // specified index for a property "bto". Existing elements at that + // index and higher are shifted back once. Invalidates all iterators. + InsertForgeFedTicketDependency(idx int, v ForgeFedTicketDependency) // Insert inserts an IRI value at the specified index for a property // "bto". Existing elements at that index and higher are shifted back // once. Invalidates all iterators. @@ -1366,6 +1480,25 @@ type ActivityStreamsBtoProperty interface { // PrependActivityStreamsView prepends a View value to the front of a list // of the property "bto". Invalidates all iterators. PrependActivityStreamsView(v ActivityStreamsView) + // PrependForgeFedBranch prepends a Branch value to the front of a list of + // the property "bto". Invalidates all iterators. + PrependForgeFedBranch(v ForgeFedBranch) + // PrependForgeFedCommit prepends a Commit value to the front of a list of + // the property "bto". Invalidates all iterators. + PrependForgeFedCommit(v ForgeFedCommit) + // PrependForgeFedPush prepends a Push value to the front of a list of the + // property "bto". Invalidates all iterators. + PrependForgeFedPush(v ForgeFedPush) + // PrependForgeFedRepository prepends a Repository value to the front of a + // list of the property "bto". Invalidates all iterators. + PrependForgeFedRepository(v ForgeFedRepository) + // PrependForgeFedTicket prepends a Ticket value to the front of a list of + // the property "bto". Invalidates all iterators. + PrependForgeFedTicket(v ForgeFedTicket) + // PrependForgeFedTicketDependency prepends a TicketDependency value to + // the front of a list of the property "bto". Invalidates all + // iterators. + PrependForgeFedTicketDependency(v ForgeFedTicketDependency) // PrependIRI prepends an IRI value to the front of a list of the property // "bto". PrependIRI(v *url.URL) @@ -1605,6 +1738,30 @@ type ActivityStreamsBtoProperty interface { // for the property "bto". Panics if the index is out of bounds. // Invalidates all iterators. SetActivityStreamsView(idx int, v ActivityStreamsView) + // SetForgeFedBranch sets a Branch value to be at the specified index for + // the property "bto". Panics if the index is out of bounds. + // Invalidates all iterators. + SetForgeFedBranch(idx int, v ForgeFedBranch) + // SetForgeFedCommit sets a Commit value to be at the specified index for + // the property "bto". Panics if the index is out of bounds. + // Invalidates all iterators. + SetForgeFedCommit(idx int, v ForgeFedCommit) + // SetForgeFedPush sets a Push value to be at the specified index for the + // property "bto". Panics if the index is out of bounds. Invalidates + // all iterators. + SetForgeFedPush(idx int, v ForgeFedPush) + // SetForgeFedRepository sets a Repository value to be at the specified + // index for the property "bto". Panics if the index is out of bounds. + // Invalidates all iterators. + SetForgeFedRepository(idx int, v ForgeFedRepository) + // SetForgeFedTicket sets a Ticket value to be at the specified index for + // the property "bto". Panics if the index is out of bounds. + // Invalidates all iterators. + SetForgeFedTicket(idx int, v ForgeFedTicket) + // SetForgeFedTicketDependency sets a TicketDependency value to be at the + // specified index for the property "bto". Panics if the index is out + // of bounds. Invalidates all iterators. + SetForgeFedTicketDependency(idx int, v ForgeFedTicketDependency) // SetIRI sets an IRI value to be at the specified index for the property // "bto". Panics if the index is out of bounds. SetIRI(idx int, v *url.URL) diff --git a/streams/vocab/gen_property_activitystreams_cc_interface.go b/streams/vocab/gen_property_activitystreams_cc_interface.go index 353c936..121769e 100644 --- a/streams/vocab/gen_property_activitystreams_cc_interface.go +++ b/streams/vocab/gen_property_activitystreams_cc_interface.go @@ -225,6 +225,29 @@ type ActivityStreamsCcPropertyIterator interface { // IsActivityStreamsView returns false, GetActivityStreamsView will // return an arbitrary value. GetActivityStreamsView() ActivityStreamsView + // GetForgeFedBranch returns the value of this property. When + // IsForgeFedBranch returns false, GetForgeFedBranch will return an + // arbitrary value. + GetForgeFedBranch() ForgeFedBranch + // GetForgeFedCommit returns the value of this property. When + // IsForgeFedCommit returns false, GetForgeFedCommit will return an + // arbitrary value. + GetForgeFedCommit() ForgeFedCommit + // GetForgeFedPush returns the value of this property. When IsForgeFedPush + // returns false, GetForgeFedPush will return an arbitrary value. + GetForgeFedPush() ForgeFedPush + // GetForgeFedRepository returns the value of this property. When + // IsForgeFedRepository returns false, GetForgeFedRepository will + // return an arbitrary value. + GetForgeFedRepository() ForgeFedRepository + // GetForgeFedTicket returns the value of this property. When + // IsForgeFedTicket returns false, GetForgeFedTicket will return an + // arbitrary value. + GetForgeFedTicket() ForgeFedTicket + // GetForgeFedTicketDependency returns the value of this property. When + // IsForgeFedTicketDependency returns false, + // GetForgeFedTicketDependency will return an arbitrary value. + GetForgeFedTicketDependency() ForgeFedTicketDependency // GetIRI returns the IRI of this property. When IsIRI returns false, // GetIRI will return an arbitrary value. GetIRI() *url.URL @@ -473,6 +496,31 @@ type ActivityStreamsCcPropertyIterator interface { // "View". When true, use the GetActivityStreamsView and // SetActivityStreamsView methods to access and set this property. IsActivityStreamsView() bool + // IsForgeFedBranch returns true if this property has a type of "Branch". + // When true, use the GetForgeFedBranch and SetForgeFedBranch methods + // to access and set this property. + IsForgeFedBranch() bool + // IsForgeFedCommit returns true if this property has a type of "Commit". + // When true, use the GetForgeFedCommit and SetForgeFedCommit methods + // to access and set this property. + IsForgeFedCommit() bool + // IsForgeFedPush returns true if this property has a type of "Push". When + // true, use the GetForgeFedPush and SetForgeFedPush methods to access + // and set this property. + IsForgeFedPush() bool + // IsForgeFedRepository returns true if this property has a type of + // "Repository". When true, use the GetForgeFedRepository and + // SetForgeFedRepository methods to access and set this property. + IsForgeFedRepository() bool + // IsForgeFedTicket returns true if this property has a type of "Ticket". + // When true, use the GetForgeFedTicket and SetForgeFedTicket methods + // to access and set this property. + IsForgeFedTicket() bool + // IsForgeFedTicketDependency returns true if this property has a type of + // "TicketDependency". When true, use the GetForgeFedTicketDependency + // and SetForgeFedTicketDependency methods to access and set this + // property. + IsForgeFedTicketDependency() bool // IsIRI returns true if this property is an IRI. When true, use GetIRI // and SetIRI to access and set this property IsIRI() bool @@ -669,6 +717,24 @@ type ActivityStreamsCcPropertyIterator interface { // SetActivityStreamsView sets the value of this property. Calling // IsActivityStreamsView afterwards returns true. SetActivityStreamsView(v ActivityStreamsView) + // SetForgeFedBranch sets the value of this property. Calling + // IsForgeFedBranch afterwards returns true. + SetForgeFedBranch(v ForgeFedBranch) + // SetForgeFedCommit sets the value of this property. Calling + // IsForgeFedCommit afterwards returns true. + SetForgeFedCommit(v ForgeFedCommit) + // SetForgeFedPush sets the value of this property. Calling IsForgeFedPush + // afterwards returns true. + SetForgeFedPush(v ForgeFedPush) + // SetForgeFedRepository sets the value of this property. Calling + // IsForgeFedRepository afterwards returns true. + SetForgeFedRepository(v ForgeFedRepository) + // SetForgeFedTicket sets the value of this property. Calling + // IsForgeFedTicket afterwards returns true. + SetForgeFedTicket(v ForgeFedTicket) + // SetForgeFedTicketDependency sets the value of this property. Calling + // IsForgeFedTicketDependency afterwards returns true. + SetForgeFedTicketDependency(v ForgeFedTicketDependency) // SetIRI sets the value of this property. Calling IsIRI afterwards // returns true. SetIRI(v *url.URL) @@ -912,6 +978,29 @@ type ActivityStreamsCcProperty interface { // the property "cc". Invalidates iterators that are traversing using // Prev. AppendActivityStreamsView(v ActivityStreamsView) + // AppendForgeFedBranch appends a Branch value to the back of a list of + // the property "cc". Invalidates iterators that are traversing using + // Prev. + AppendForgeFedBranch(v ForgeFedBranch) + // AppendForgeFedCommit appends a Commit value to the back of a list of + // the property "cc". Invalidates iterators that are traversing using + // Prev. + AppendForgeFedCommit(v ForgeFedCommit) + // AppendForgeFedPush appends a Push value to the back of a list of the + // property "cc". Invalidates iterators that are traversing using Prev. + AppendForgeFedPush(v ForgeFedPush) + // AppendForgeFedRepository appends a Repository value to the back of a + // list of the property "cc". Invalidates iterators that are + // traversing using Prev. + AppendForgeFedRepository(v ForgeFedRepository) + // AppendForgeFedTicket appends a Ticket value to the back of a list of + // the property "cc". Invalidates iterators that are traversing using + // Prev. + AppendForgeFedTicket(v ForgeFedTicket) + // AppendForgeFedTicketDependency appends a TicketDependency value to the + // back of a list of the property "cc". Invalidates iterators that are + // traversing using Prev. + AppendForgeFedTicketDependency(v ForgeFedTicketDependency) // AppendIRI appends an IRI value to the back of a list of the property // "cc" AppendIRI(v *url.URL) @@ -1159,6 +1248,30 @@ type ActivityStreamsCcProperty interface { // for a property "cc". Existing elements at that index and higher are // shifted back once. Invalidates all iterators. InsertActivityStreamsView(idx int, v ActivityStreamsView) + // InsertForgeFedBranch inserts a Branch value at the specified index for + // a property "cc". Existing elements at that index and higher are + // shifted back once. Invalidates all iterators. + InsertForgeFedBranch(idx int, v ForgeFedBranch) + // InsertForgeFedCommit inserts a Commit value at the specified index for + // a property "cc". Existing elements at that index and higher are + // shifted back once. Invalidates all iterators. + InsertForgeFedCommit(idx int, v ForgeFedCommit) + // InsertForgeFedPush inserts a Push value at the specified index for a + // property "cc". Existing elements at that index and higher are + // shifted back once. Invalidates all iterators. + InsertForgeFedPush(idx int, v ForgeFedPush) + // InsertForgeFedRepository inserts a Repository value at the specified + // index for a property "cc". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertForgeFedRepository(idx int, v ForgeFedRepository) + // InsertForgeFedTicket inserts a Ticket value at the specified index for + // a property "cc". Existing elements at that index and higher are + // shifted back once. Invalidates all iterators. + InsertForgeFedTicket(idx int, v ForgeFedTicket) + // InsertForgeFedTicketDependency inserts a TicketDependency value at the + // specified index for a property "cc". Existing elements at that + // index and higher are shifted back once. Invalidates all iterators. + InsertForgeFedTicketDependency(idx int, v ForgeFedTicketDependency) // Insert inserts an IRI value at the specified index for a property "cc". // Existing elements at that index and higher are shifted back once. // Invalidates all iterators. @@ -1364,6 +1477,24 @@ type ActivityStreamsCcProperty interface { // PrependActivityStreamsView prepends a View value to the front of a list // of the property "cc". Invalidates all iterators. PrependActivityStreamsView(v ActivityStreamsView) + // PrependForgeFedBranch prepends a Branch value to the front of a list of + // the property "cc". Invalidates all iterators. + PrependForgeFedBranch(v ForgeFedBranch) + // PrependForgeFedCommit prepends a Commit value to the front of a list of + // the property "cc". Invalidates all iterators. + PrependForgeFedCommit(v ForgeFedCommit) + // PrependForgeFedPush prepends a Push value to the front of a list of the + // property "cc". Invalidates all iterators. + PrependForgeFedPush(v ForgeFedPush) + // PrependForgeFedRepository prepends a Repository value to the front of a + // list of the property "cc". Invalidates all iterators. + PrependForgeFedRepository(v ForgeFedRepository) + // PrependForgeFedTicket prepends a Ticket value to the front of a list of + // the property "cc". Invalidates all iterators. + PrependForgeFedTicket(v ForgeFedTicket) + // PrependForgeFedTicketDependency prepends a TicketDependency value to + // the front of a list of the property "cc". Invalidates all iterators. + PrependForgeFedTicketDependency(v ForgeFedTicketDependency) // PrependIRI prepends an IRI value to the front of a list of the property // "cc". PrependIRI(v *url.URL) @@ -1603,6 +1734,30 @@ type ActivityStreamsCcProperty interface { // for the property "cc". Panics if the index is out of bounds. // Invalidates all iterators. SetActivityStreamsView(idx int, v ActivityStreamsView) + // SetForgeFedBranch sets a Branch value to be at the specified index for + // the property "cc". Panics if the index is out of bounds. + // Invalidates all iterators. + SetForgeFedBranch(idx int, v ForgeFedBranch) + // SetForgeFedCommit sets a Commit value to be at the specified index for + // the property "cc". Panics if the index is out of bounds. + // Invalidates all iterators. + SetForgeFedCommit(idx int, v ForgeFedCommit) + // SetForgeFedPush sets a Push value to be at the specified index for the + // property "cc". Panics if the index is out of bounds. Invalidates + // all iterators. + SetForgeFedPush(idx int, v ForgeFedPush) + // SetForgeFedRepository sets a Repository value to be at the specified + // index for the property "cc". Panics if the index is out of bounds. + // Invalidates all iterators. + SetForgeFedRepository(idx int, v ForgeFedRepository) + // SetForgeFedTicket sets a Ticket value to be at the specified index for + // the property "cc". Panics if the index is out of bounds. + // Invalidates all iterators. + SetForgeFedTicket(idx int, v ForgeFedTicket) + // SetForgeFedTicketDependency sets a TicketDependency value to be at the + // specified index for the property "cc". Panics if the index is out + // of bounds. Invalidates all iterators. + SetForgeFedTicketDependency(idx int, v ForgeFedTicketDependency) // SetIRI sets an IRI value to be at the specified index for the property // "cc". Panics if the index is out of bounds. SetIRI(idx int, v *url.URL) diff --git a/streams/vocab/gen_property_activitystreams_closed_interface.go b/streams/vocab/gen_property_activitystreams_closed_interface.go index 00c6b6d..d76858c 100644 --- a/streams/vocab/gen_property_activitystreams_closed_interface.go +++ b/streams/vocab/gen_property_activitystreams_closed_interface.go @@ -228,6 +228,29 @@ type ActivityStreamsClosedPropertyIterator interface { // IsActivityStreamsView returns false, GetActivityStreamsView will // return an arbitrary value. GetActivityStreamsView() ActivityStreamsView + // GetForgeFedBranch returns the value of this property. When + // IsForgeFedBranch returns false, GetForgeFedBranch will return an + // arbitrary value. + GetForgeFedBranch() ForgeFedBranch + // GetForgeFedCommit returns the value of this property. When + // IsForgeFedCommit returns false, GetForgeFedCommit will return an + // arbitrary value. + GetForgeFedCommit() ForgeFedCommit + // GetForgeFedPush returns the value of this property. When IsForgeFedPush + // returns false, GetForgeFedPush will return an arbitrary value. + GetForgeFedPush() ForgeFedPush + // GetForgeFedRepository returns the value of this property. When + // IsForgeFedRepository returns false, GetForgeFedRepository will + // return an arbitrary value. + GetForgeFedRepository() ForgeFedRepository + // GetForgeFedTicket returns the value of this property. When + // IsForgeFedTicket returns false, GetForgeFedTicket will return an + // arbitrary value. + GetForgeFedTicket() ForgeFedTicket + // GetForgeFedTicketDependency returns the value of this property. When + // IsForgeFedTicketDependency returns false, + // GetForgeFedTicketDependency will return an arbitrary value. + GetForgeFedTicketDependency() ForgeFedTicketDependency // GetIRI returns the IRI of this property. When IsIRI returns false, // GetIRI will return an arbitrary value. GetIRI() *url.URL @@ -484,6 +507,31 @@ type ActivityStreamsClosedPropertyIterator interface { // "View". When true, use the GetActivityStreamsView and // SetActivityStreamsView methods to access and set this property. IsActivityStreamsView() bool + // IsForgeFedBranch returns true if this property has a type of "Branch". + // When true, use the GetForgeFedBranch and SetForgeFedBranch methods + // to access and set this property. + IsForgeFedBranch() bool + // IsForgeFedCommit returns true if this property has a type of "Commit". + // When true, use the GetForgeFedCommit and SetForgeFedCommit methods + // to access and set this property. + IsForgeFedCommit() bool + // IsForgeFedPush returns true if this property has a type of "Push". When + // true, use the GetForgeFedPush and SetForgeFedPush methods to access + // and set this property. + IsForgeFedPush() bool + // IsForgeFedRepository returns true if this property has a type of + // "Repository". When true, use the GetForgeFedRepository and + // SetForgeFedRepository methods to access and set this property. + IsForgeFedRepository() bool + // IsForgeFedTicket returns true if this property has a type of "Ticket". + // When true, use the GetForgeFedTicket and SetForgeFedTicket methods + // to access and set this property. + IsForgeFedTicket() bool + // IsForgeFedTicketDependency returns true if this property has a type of + // "TicketDependency". When true, use the GetForgeFedTicketDependency + // and SetForgeFedTicketDependency methods to access and set this + // property. + IsForgeFedTicketDependency() bool // IsIRI returns true if this property is an IRI. When true, use GetIRI // and SetIRI to access and set this property IsIRI() bool @@ -688,6 +736,24 @@ type ActivityStreamsClosedPropertyIterator interface { // SetActivityStreamsView sets the value of this property. Calling // IsActivityStreamsView afterwards returns true. SetActivityStreamsView(v ActivityStreamsView) + // SetForgeFedBranch sets the value of this property. Calling + // IsForgeFedBranch afterwards returns true. + SetForgeFedBranch(v ForgeFedBranch) + // SetForgeFedCommit sets the value of this property. Calling + // IsForgeFedCommit afterwards returns true. + SetForgeFedCommit(v ForgeFedCommit) + // SetForgeFedPush sets the value of this property. Calling IsForgeFedPush + // afterwards returns true. + SetForgeFedPush(v ForgeFedPush) + // SetForgeFedRepository sets the value of this property. Calling + // IsForgeFedRepository afterwards returns true. + SetForgeFedRepository(v ForgeFedRepository) + // SetForgeFedTicket sets the value of this property. Calling + // IsForgeFedTicket afterwards returns true. + SetForgeFedTicket(v ForgeFedTicket) + // SetForgeFedTicketDependency sets the value of this property. Calling + // IsForgeFedTicketDependency afterwards returns true. + SetForgeFedTicketDependency(v ForgeFedTicketDependency) // SetIRI sets the value of this property. Calling IsIRI afterwards // returns true. SetIRI(v *url.URL) @@ -933,6 +999,30 @@ type ActivityStreamsClosedProperty interface { // the property "closed". Invalidates iterators that are traversing // using Prev. AppendActivityStreamsView(v ActivityStreamsView) + // AppendForgeFedBranch appends a Branch value to the back of a list of + // the property "closed". Invalidates iterators that are traversing + // using Prev. + AppendForgeFedBranch(v ForgeFedBranch) + // AppendForgeFedCommit appends a Commit value to the back of a list of + // the property "closed". Invalidates iterators that are traversing + // using Prev. + AppendForgeFedCommit(v ForgeFedCommit) + // AppendForgeFedPush appends a Push value to the back of a list of the + // property "closed". Invalidates iterators that are traversing using + // Prev. + AppendForgeFedPush(v ForgeFedPush) + // AppendForgeFedRepository appends a Repository value to the back of a + // list of the property "closed". Invalidates iterators that are + // traversing using Prev. + AppendForgeFedRepository(v ForgeFedRepository) + // AppendForgeFedTicket appends a Ticket value to the back of a list of + // the property "closed". Invalidates iterators that are traversing + // using Prev. + AppendForgeFedTicket(v ForgeFedTicket) + // AppendForgeFedTicketDependency appends a TicketDependency value to the + // back of a list of the property "closed". Invalidates iterators that + // are traversing using Prev. + AppendForgeFedTicketDependency(v ForgeFedTicketDependency) // AppendIRI appends an IRI value to the back of a list of the property // "closed" AppendIRI(v *url.URL) @@ -1192,6 +1282,30 @@ type ActivityStreamsClosedProperty interface { // for a property "closed". Existing elements at that index and higher // are shifted back once. Invalidates all iterators. InsertActivityStreamsView(idx int, v ActivityStreamsView) + // InsertForgeFedBranch inserts a Branch value at the specified index for + // a property "closed". Existing elements at that index and higher are + // shifted back once. Invalidates all iterators. + InsertForgeFedBranch(idx int, v ForgeFedBranch) + // InsertForgeFedCommit inserts a Commit value at the specified index for + // a property "closed". Existing elements at that index and higher are + // shifted back once. Invalidates all iterators. + InsertForgeFedCommit(idx int, v ForgeFedCommit) + // InsertForgeFedPush inserts a Push value at the specified index for a + // property "closed". Existing elements at that index and higher are + // shifted back once. Invalidates all iterators. + InsertForgeFedPush(idx int, v ForgeFedPush) + // InsertForgeFedRepository inserts a Repository value at the specified + // index for a property "closed". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertForgeFedRepository(idx int, v ForgeFedRepository) + // InsertForgeFedTicket inserts a Ticket value at the specified index for + // a property "closed". Existing elements at that index and higher are + // shifted back once. Invalidates all iterators. + InsertForgeFedTicket(idx int, v ForgeFedTicket) + // InsertForgeFedTicketDependency inserts a TicketDependency value at the + // specified index for a property "closed". Existing elements at that + // index and higher are shifted back once. Invalidates all iterators. + InsertForgeFedTicketDependency(idx int, v ForgeFedTicketDependency) // Insert inserts an IRI value at the specified index for a property // "closed". Existing elements at that index and higher are shifted // back once. Invalidates all iterators. @@ -1406,6 +1520,25 @@ type ActivityStreamsClosedProperty interface { // PrependActivityStreamsView prepends a View value to the front of a list // of the property "closed". Invalidates all iterators. PrependActivityStreamsView(v ActivityStreamsView) + // PrependForgeFedBranch prepends a Branch value to the front of a list of + // the property "closed". Invalidates all iterators. + PrependForgeFedBranch(v ForgeFedBranch) + // PrependForgeFedCommit prepends a Commit value to the front of a list of + // the property "closed". Invalidates all iterators. + PrependForgeFedCommit(v ForgeFedCommit) + // PrependForgeFedPush prepends a Push value to the front of a list of the + // property "closed". Invalidates all iterators. + PrependForgeFedPush(v ForgeFedPush) + // PrependForgeFedRepository prepends a Repository value to the front of a + // list of the property "closed". Invalidates all iterators. + PrependForgeFedRepository(v ForgeFedRepository) + // PrependForgeFedTicket prepends a Ticket value to the front of a list of + // the property "closed". Invalidates all iterators. + PrependForgeFedTicket(v ForgeFedTicket) + // PrependForgeFedTicketDependency prepends a TicketDependency value to + // the front of a list of the property "closed". Invalidates all + // iterators. + PrependForgeFedTicketDependency(v ForgeFedTicketDependency) // PrependIRI prepends an IRI value to the front of a list of the property // "closed". PrependIRI(v *url.URL) @@ -1651,6 +1784,30 @@ type ActivityStreamsClosedProperty interface { // for the property "closed". Panics if the index is out of bounds. // Invalidates all iterators. SetActivityStreamsView(idx int, v ActivityStreamsView) + // SetForgeFedBranch sets a Branch value to be at the specified index for + // the property "closed". Panics if the index is out of bounds. + // Invalidates all iterators. + SetForgeFedBranch(idx int, v ForgeFedBranch) + // SetForgeFedCommit sets a Commit value to be at the specified index for + // the property "closed". Panics if the index is out of bounds. + // Invalidates all iterators. + SetForgeFedCommit(idx int, v ForgeFedCommit) + // SetForgeFedPush sets a Push value to be at the specified index for the + // property "closed". Panics if the index is out of bounds. + // Invalidates all iterators. + SetForgeFedPush(idx int, v ForgeFedPush) + // SetForgeFedRepository sets a Repository value to be at the specified + // index for the property "closed". Panics if the index is out of + // bounds. Invalidates all iterators. + SetForgeFedRepository(idx int, v ForgeFedRepository) + // SetForgeFedTicket sets a Ticket value to be at the specified index for + // the property "closed". Panics if the index is out of bounds. + // Invalidates all iterators. + SetForgeFedTicket(idx int, v ForgeFedTicket) + // SetForgeFedTicketDependency sets a TicketDependency value to be at the + // specified index for the property "closed". Panics if the index is + // out of bounds. Invalidates all iterators. + SetForgeFedTicketDependency(idx int, v ForgeFedTicketDependency) // SetIRI sets an IRI value to be at the specified index for the property // "closed". Panics if the index is out of bounds. SetIRI(idx int, v *url.URL) diff --git a/streams/vocab/gen_property_activitystreams_context_interface.go b/streams/vocab/gen_property_activitystreams_context_interface.go index f1a7cb5..f3c9aac 100644 --- a/streams/vocab/gen_property_activitystreams_context_interface.go +++ b/streams/vocab/gen_property_activitystreams_context_interface.go @@ -225,6 +225,29 @@ type ActivityStreamsContextPropertyIterator interface { // IsActivityStreamsView returns false, GetActivityStreamsView will // return an arbitrary value. GetActivityStreamsView() ActivityStreamsView + // GetForgeFedBranch returns the value of this property. When + // IsForgeFedBranch returns false, GetForgeFedBranch will return an + // arbitrary value. + GetForgeFedBranch() ForgeFedBranch + // GetForgeFedCommit returns the value of this property. When + // IsForgeFedCommit returns false, GetForgeFedCommit will return an + // arbitrary value. + GetForgeFedCommit() ForgeFedCommit + // GetForgeFedPush returns the value of this property. When IsForgeFedPush + // returns false, GetForgeFedPush will return an arbitrary value. + GetForgeFedPush() ForgeFedPush + // GetForgeFedRepository returns the value of this property. When + // IsForgeFedRepository returns false, GetForgeFedRepository will + // return an arbitrary value. + GetForgeFedRepository() ForgeFedRepository + // GetForgeFedTicket returns the value of this property. When + // IsForgeFedTicket returns false, GetForgeFedTicket will return an + // arbitrary value. + GetForgeFedTicket() ForgeFedTicket + // GetForgeFedTicketDependency returns the value of this property. When + // IsForgeFedTicketDependency returns false, + // GetForgeFedTicketDependency will return an arbitrary value. + GetForgeFedTicketDependency() ForgeFedTicketDependency // GetIRI returns the IRI of this property. When IsIRI returns false, // GetIRI will return an arbitrary value. GetIRI() *url.URL @@ -473,6 +496,31 @@ type ActivityStreamsContextPropertyIterator interface { // "View". When true, use the GetActivityStreamsView and // SetActivityStreamsView methods to access and set this property. IsActivityStreamsView() bool + // IsForgeFedBranch returns true if this property has a type of "Branch". + // When true, use the GetForgeFedBranch and SetForgeFedBranch methods + // to access and set this property. + IsForgeFedBranch() bool + // IsForgeFedCommit returns true if this property has a type of "Commit". + // When true, use the GetForgeFedCommit and SetForgeFedCommit methods + // to access and set this property. + IsForgeFedCommit() bool + // IsForgeFedPush returns true if this property has a type of "Push". When + // true, use the GetForgeFedPush and SetForgeFedPush methods to access + // and set this property. + IsForgeFedPush() bool + // IsForgeFedRepository returns true if this property has a type of + // "Repository". When true, use the GetForgeFedRepository and + // SetForgeFedRepository methods to access and set this property. + IsForgeFedRepository() bool + // IsForgeFedTicket returns true if this property has a type of "Ticket". + // When true, use the GetForgeFedTicket and SetForgeFedTicket methods + // to access and set this property. + IsForgeFedTicket() bool + // IsForgeFedTicketDependency returns true if this property has a type of + // "TicketDependency". When true, use the GetForgeFedTicketDependency + // and SetForgeFedTicketDependency methods to access and set this + // property. + IsForgeFedTicketDependency() bool // IsIRI returns true if this property is an IRI. When true, use GetIRI // and SetIRI to access and set this property IsIRI() bool @@ -669,6 +717,24 @@ type ActivityStreamsContextPropertyIterator interface { // SetActivityStreamsView sets the value of this property. Calling // IsActivityStreamsView afterwards returns true. SetActivityStreamsView(v ActivityStreamsView) + // SetForgeFedBranch sets the value of this property. Calling + // IsForgeFedBranch afterwards returns true. + SetForgeFedBranch(v ForgeFedBranch) + // SetForgeFedCommit sets the value of this property. Calling + // IsForgeFedCommit afterwards returns true. + SetForgeFedCommit(v ForgeFedCommit) + // SetForgeFedPush sets the value of this property. Calling IsForgeFedPush + // afterwards returns true. + SetForgeFedPush(v ForgeFedPush) + // SetForgeFedRepository sets the value of this property. Calling + // IsForgeFedRepository afterwards returns true. + SetForgeFedRepository(v ForgeFedRepository) + // SetForgeFedTicket sets the value of this property. Calling + // IsForgeFedTicket afterwards returns true. + SetForgeFedTicket(v ForgeFedTicket) + // SetForgeFedTicketDependency sets the value of this property. Calling + // IsForgeFedTicketDependency afterwards returns true. + SetForgeFedTicketDependency(v ForgeFedTicketDependency) // SetIRI sets the value of this property. Calling IsIRI afterwards // returns true. SetIRI(v *url.URL) @@ -926,6 +992,30 @@ type ActivityStreamsContextProperty interface { // the property "context". Invalidates iterators that are traversing // using Prev. AppendActivityStreamsView(v ActivityStreamsView) + // AppendForgeFedBranch appends a Branch value to the back of a list of + // the property "context". Invalidates iterators that are traversing + // using Prev. + AppendForgeFedBranch(v ForgeFedBranch) + // AppendForgeFedCommit appends a Commit value to the back of a list of + // the property "context". Invalidates iterators that are traversing + // using Prev. + AppendForgeFedCommit(v ForgeFedCommit) + // AppendForgeFedPush appends a Push value to the back of a list of the + // property "context". Invalidates iterators that are traversing using + // Prev. + AppendForgeFedPush(v ForgeFedPush) + // AppendForgeFedRepository appends a Repository value to the back of a + // list of the property "context". Invalidates iterators that are + // traversing using Prev. + AppendForgeFedRepository(v ForgeFedRepository) + // AppendForgeFedTicket appends a Ticket value to the back of a list of + // the property "context". Invalidates iterators that are traversing + // using Prev. + AppendForgeFedTicket(v ForgeFedTicket) + // AppendForgeFedTicketDependency appends a TicketDependency value to the + // back of a list of the property "context". Invalidates iterators + // that are traversing using Prev. + AppendForgeFedTicketDependency(v ForgeFedTicketDependency) // AppendIRI appends an IRI value to the back of a list of the property // "context" AppendIRI(v *url.URL) @@ -1177,6 +1267,30 @@ type ActivityStreamsContextProperty interface { // for a property "context". Existing elements at that index and // higher are shifted back once. Invalidates all iterators. InsertActivityStreamsView(idx int, v ActivityStreamsView) + // InsertForgeFedBranch inserts a Branch value at the specified index for + // a property "context". Existing elements at that index and higher + // are shifted back once. Invalidates all iterators. + InsertForgeFedBranch(idx int, v ForgeFedBranch) + // InsertForgeFedCommit inserts a Commit value at the specified index for + // a property "context". Existing elements at that index and higher + // are shifted back once. Invalidates all iterators. + InsertForgeFedCommit(idx int, v ForgeFedCommit) + // InsertForgeFedPush inserts a Push value at the specified index for a + // property "context". Existing elements at that index and higher are + // shifted back once. Invalidates all iterators. + InsertForgeFedPush(idx int, v ForgeFedPush) + // InsertForgeFedRepository inserts a Repository value at the specified + // index for a property "context". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertForgeFedRepository(idx int, v ForgeFedRepository) + // InsertForgeFedTicket inserts a Ticket value at the specified index for + // a property "context". Existing elements at that index and higher + // are shifted back once. Invalidates all iterators. + InsertForgeFedTicket(idx int, v ForgeFedTicket) + // InsertForgeFedTicketDependency inserts a TicketDependency value at the + // specified index for a property "context". Existing elements at that + // index and higher are shifted back once. Invalidates all iterators. + InsertForgeFedTicketDependency(idx int, v ForgeFedTicketDependency) // Insert inserts an IRI value at the specified index for a property // "context". Existing elements at that index and higher are shifted // back once. Invalidates all iterators. @@ -1387,6 +1501,25 @@ type ActivityStreamsContextProperty interface { // PrependActivityStreamsView prepends a View value to the front of a list // of the property "context". Invalidates all iterators. PrependActivityStreamsView(v ActivityStreamsView) + // PrependForgeFedBranch prepends a Branch value to the front of a list of + // the property "context". Invalidates all iterators. + PrependForgeFedBranch(v ForgeFedBranch) + // PrependForgeFedCommit prepends a Commit value to the front of a list of + // the property "context". Invalidates all iterators. + PrependForgeFedCommit(v ForgeFedCommit) + // PrependForgeFedPush prepends a Push value to the front of a list of the + // property "context". Invalidates all iterators. + PrependForgeFedPush(v ForgeFedPush) + // PrependForgeFedRepository prepends a Repository value to the front of a + // list of the property "context". Invalidates all iterators. + PrependForgeFedRepository(v ForgeFedRepository) + // PrependForgeFedTicket prepends a Ticket value to the front of a list of + // the property "context". Invalidates all iterators. + PrependForgeFedTicket(v ForgeFedTicket) + // PrependForgeFedTicketDependency prepends a TicketDependency value to + // the front of a list of the property "context". Invalidates all + // iterators. + PrependForgeFedTicketDependency(v ForgeFedTicketDependency) // PrependIRI prepends an IRI value to the front of a list of the property // "context". PrependIRI(v *url.URL) @@ -1626,6 +1759,30 @@ type ActivityStreamsContextProperty interface { // for the property "context". Panics if the index is out of bounds. // Invalidates all iterators. SetActivityStreamsView(idx int, v ActivityStreamsView) + // SetForgeFedBranch sets a Branch value to be at the specified index for + // the property "context". Panics if the index is out of bounds. + // Invalidates all iterators. + SetForgeFedBranch(idx int, v ForgeFedBranch) + // SetForgeFedCommit sets a Commit value to be at the specified index for + // the property "context". Panics if the index is out of bounds. + // Invalidates all iterators. + SetForgeFedCommit(idx int, v ForgeFedCommit) + // SetForgeFedPush sets a Push value to be at the specified index for the + // property "context". Panics if the index is out of bounds. + // Invalidates all iterators. + SetForgeFedPush(idx int, v ForgeFedPush) + // SetForgeFedRepository sets a Repository value to be at the specified + // index for the property "context". Panics if the index is out of + // bounds. Invalidates all iterators. + SetForgeFedRepository(idx int, v ForgeFedRepository) + // SetForgeFedTicket sets a Ticket value to be at the specified index for + // the property "context". Panics if the index is out of bounds. + // Invalidates all iterators. + SetForgeFedTicket(idx int, v ForgeFedTicket) + // SetForgeFedTicketDependency sets a TicketDependency value to be at the + // specified index for the property "context". Panics if the index is + // out of bounds. Invalidates all iterators. + SetForgeFedTicketDependency(idx int, v ForgeFedTicketDependency) // SetIRI sets an IRI value to be at the specified index for the property // "context". Panics if the index is out of bounds. SetIRI(idx int, v *url.URL) diff --git a/streams/vocab/gen_property_activitystreams_describes_interface.go b/streams/vocab/gen_property_activitystreams_describes_interface.go index b9cb846..777dc12 100644 --- a/streams/vocab/gen_property_activitystreams_describes_interface.go +++ b/streams/vocab/gen_property_activitystreams_describes_interface.go @@ -231,6 +231,29 @@ type ActivityStreamsDescribesProperty interface { // IsActivityStreamsView returns false, GetActivityStreamsView will // return an arbitrary value. GetActivityStreamsView() ActivityStreamsView + // GetForgeFedBranch returns the value of this property. When + // IsForgeFedBranch returns false, GetForgeFedBranch will return an + // arbitrary value. + GetForgeFedBranch() ForgeFedBranch + // GetForgeFedCommit returns the value of this property. When + // IsForgeFedCommit returns false, GetForgeFedCommit will return an + // arbitrary value. + GetForgeFedCommit() ForgeFedCommit + // GetForgeFedPush returns the value of this property. When IsForgeFedPush + // returns false, GetForgeFedPush will return an arbitrary value. + GetForgeFedPush() ForgeFedPush + // GetForgeFedRepository returns the value of this property. When + // IsForgeFedRepository returns false, GetForgeFedRepository will + // return an arbitrary value. + GetForgeFedRepository() ForgeFedRepository + // GetForgeFedTicket returns the value of this property. When + // IsForgeFedTicket returns false, GetForgeFedTicket will return an + // arbitrary value. + GetForgeFedTicket() ForgeFedTicket + // GetForgeFedTicketDependency returns the value of this property. When + // IsForgeFedTicketDependency returns false, + // GetForgeFedTicketDependency will return an arbitrary value. + GetForgeFedTicketDependency() ForgeFedTicketDependency // GetIRI returns the IRI of this property. When IsIRI returns false, // GetIRI will return an arbitrary value. GetIRI() *url.URL @@ -471,6 +494,31 @@ type ActivityStreamsDescribesProperty interface { // "View". When true, use the GetActivityStreamsView and // SetActivityStreamsView methods to access and set this property. IsActivityStreamsView() bool + // IsForgeFedBranch returns true if this property has a type of "Branch". + // When true, use the GetForgeFedBranch and SetForgeFedBranch methods + // to access and set this property. + IsForgeFedBranch() bool + // IsForgeFedCommit returns true if this property has a type of "Commit". + // When true, use the GetForgeFedCommit and SetForgeFedCommit methods + // to access and set this property. + IsForgeFedCommit() bool + // IsForgeFedPush returns true if this property has a type of "Push". When + // true, use the GetForgeFedPush and SetForgeFedPush methods to access + // and set this property. + IsForgeFedPush() bool + // IsForgeFedRepository returns true if this property has a type of + // "Repository". When true, use the GetForgeFedRepository and + // SetForgeFedRepository methods to access and set this property. + IsForgeFedRepository() bool + // IsForgeFedTicket returns true if this property has a type of "Ticket". + // When true, use the GetForgeFedTicket and SetForgeFedTicket methods + // to access and set this property. + IsForgeFedTicket() bool + // IsForgeFedTicketDependency returns true if this property has a type of + // "TicketDependency". When true, use the GetForgeFedTicketDependency + // and SetForgeFedTicketDependency methods to access and set this + // property. + IsForgeFedTicketDependency() bool // IsIRI returns true if this property is an IRI. When true, use GetIRI // and SetIRI to access and set this property IsIRI() bool @@ -662,6 +710,24 @@ type ActivityStreamsDescribesProperty interface { // SetActivityStreamsView sets the value of this property. Calling // IsActivityStreamsView afterwards returns true. SetActivityStreamsView(v ActivityStreamsView) + // SetForgeFedBranch sets the value of this property. Calling + // IsForgeFedBranch afterwards returns true. + SetForgeFedBranch(v ForgeFedBranch) + // SetForgeFedCommit sets the value of this property. Calling + // IsForgeFedCommit afterwards returns true. + SetForgeFedCommit(v ForgeFedCommit) + // SetForgeFedPush sets the value of this property. Calling IsForgeFedPush + // afterwards returns true. + SetForgeFedPush(v ForgeFedPush) + // SetForgeFedRepository sets the value of this property. Calling + // IsForgeFedRepository afterwards returns true. + SetForgeFedRepository(v ForgeFedRepository) + // SetForgeFedTicket sets the value of this property. Calling + // IsForgeFedTicket afterwards returns true. + SetForgeFedTicket(v ForgeFedTicket) + // SetForgeFedTicketDependency sets the value of this property. Calling + // IsForgeFedTicketDependency afterwards returns true. + SetForgeFedTicketDependency(v ForgeFedTicketDependency) // SetIRI sets the value of this property. Calling IsIRI afterwards // returns true. SetIRI(v *url.URL) diff --git a/streams/vocab/gen_property_activitystreams_formerType_interface.go b/streams/vocab/gen_property_activitystreams_formerType_interface.go index 005e804..61a066c 100644 --- a/streams/vocab/gen_property_activitystreams_formerType_interface.go +++ b/streams/vocab/gen_property_activitystreams_formerType_interface.go @@ -217,6 +217,29 @@ type ActivityStreamsFormerTypePropertyIterator interface { // IsActivityStreamsView returns false, GetActivityStreamsView will // return an arbitrary value. GetActivityStreamsView() ActivityStreamsView + // GetForgeFedBranch returns the value of this property. When + // IsForgeFedBranch returns false, GetForgeFedBranch will return an + // arbitrary value. + GetForgeFedBranch() ForgeFedBranch + // GetForgeFedCommit returns the value of this property. When + // IsForgeFedCommit returns false, GetForgeFedCommit will return an + // arbitrary value. + GetForgeFedCommit() ForgeFedCommit + // GetForgeFedPush returns the value of this property. When IsForgeFedPush + // returns false, GetForgeFedPush will return an arbitrary value. + GetForgeFedPush() ForgeFedPush + // GetForgeFedRepository returns the value of this property. When + // IsForgeFedRepository returns false, GetForgeFedRepository will + // return an arbitrary value. + GetForgeFedRepository() ForgeFedRepository + // GetForgeFedTicket returns the value of this property. When + // IsForgeFedTicket returns false, GetForgeFedTicket will return an + // arbitrary value. + GetForgeFedTicket() ForgeFedTicket + // GetForgeFedTicketDependency returns the value of this property. When + // IsForgeFedTicketDependency returns false, + // GetForgeFedTicketDependency will return an arbitrary value. + GetForgeFedTicketDependency() ForgeFedTicketDependency // GetIRI returns the IRI of this property. When IsIRI returns false, // GetIRI will return an arbitrary value. GetIRI() *url.URL @@ -461,6 +484,31 @@ type ActivityStreamsFormerTypePropertyIterator interface { // "View". When true, use the GetActivityStreamsView and // SetActivityStreamsView methods to access and set this property. IsActivityStreamsView() bool + // IsForgeFedBranch returns true if this property has a type of "Branch". + // When true, use the GetForgeFedBranch and SetForgeFedBranch methods + // to access and set this property. + IsForgeFedBranch() bool + // IsForgeFedCommit returns true if this property has a type of "Commit". + // When true, use the GetForgeFedCommit and SetForgeFedCommit methods + // to access and set this property. + IsForgeFedCommit() bool + // IsForgeFedPush returns true if this property has a type of "Push". When + // true, use the GetForgeFedPush and SetForgeFedPush methods to access + // and set this property. + IsForgeFedPush() bool + // IsForgeFedRepository returns true if this property has a type of + // "Repository". When true, use the GetForgeFedRepository and + // SetForgeFedRepository methods to access and set this property. + IsForgeFedRepository() bool + // IsForgeFedTicket returns true if this property has a type of "Ticket". + // When true, use the GetForgeFedTicket and SetForgeFedTicket methods + // to access and set this property. + IsForgeFedTicket() bool + // IsForgeFedTicketDependency returns true if this property has a type of + // "TicketDependency". When true, use the GetForgeFedTicketDependency + // and SetForgeFedTicketDependency methods to access and set this + // property. + IsForgeFedTicketDependency() bool // IsIRI returns true if this property is an IRI. When true, use GetIRI // and SetIRI to access and set this property IsIRI() bool @@ -655,6 +703,24 @@ type ActivityStreamsFormerTypePropertyIterator interface { // SetActivityStreamsView sets the value of this property. Calling // IsActivityStreamsView afterwards returns true. SetActivityStreamsView(v ActivityStreamsView) + // SetForgeFedBranch sets the value of this property. Calling + // IsForgeFedBranch afterwards returns true. + SetForgeFedBranch(v ForgeFedBranch) + // SetForgeFedCommit sets the value of this property. Calling + // IsForgeFedCommit afterwards returns true. + SetForgeFedCommit(v ForgeFedCommit) + // SetForgeFedPush sets the value of this property. Calling IsForgeFedPush + // afterwards returns true. + SetForgeFedPush(v ForgeFedPush) + // SetForgeFedRepository sets the value of this property. Calling + // IsForgeFedRepository afterwards returns true. + SetForgeFedRepository(v ForgeFedRepository) + // SetForgeFedTicket sets the value of this property. Calling + // IsForgeFedTicket afterwards returns true. + SetForgeFedTicket(v ForgeFedTicket) + // SetForgeFedTicketDependency sets the value of this property. Calling + // IsForgeFedTicketDependency afterwards returns true. + SetForgeFedTicketDependency(v ForgeFedTicketDependency) // SetIRI sets the value of this property. Calling IsIRI afterwards // returns true. SetIRI(v *url.URL) @@ -891,6 +957,30 @@ type ActivityStreamsFormerTypeProperty interface { // the property "formerType". Invalidates iterators that are // traversing using Prev. AppendActivityStreamsView(v ActivityStreamsView) + // AppendForgeFedBranch appends a Branch value to the back of a list of + // the property "formerType". Invalidates iterators that are + // traversing using Prev. + AppendForgeFedBranch(v ForgeFedBranch) + // AppendForgeFedCommit appends a Commit value to the back of a list of + // the property "formerType". Invalidates iterators that are + // traversing using Prev. + AppendForgeFedCommit(v ForgeFedCommit) + // AppendForgeFedPush appends a Push value to the back of a list of the + // property "formerType". Invalidates iterators that are traversing + // using Prev. + AppendForgeFedPush(v ForgeFedPush) + // AppendForgeFedRepository appends a Repository value to the back of a + // list of the property "formerType". Invalidates iterators that are + // traversing using Prev. + AppendForgeFedRepository(v ForgeFedRepository) + // AppendForgeFedTicket appends a Ticket value to the back of a list of + // the property "formerType". Invalidates iterators that are + // traversing using Prev. + AppendForgeFedTicket(v ForgeFedTicket) + // AppendForgeFedTicketDependency appends a TicketDependency value to the + // back of a list of the property "formerType". Invalidates iterators + // that are traversing using Prev. + AppendForgeFedTicketDependency(v ForgeFedTicketDependency) // AppendIRI appends an IRI value to the back of a list of the property // "formerType" AppendIRI(v *url.URL) @@ -1143,6 +1233,31 @@ type ActivityStreamsFormerTypeProperty interface { // for a property "formerType". Existing elements at that index and // higher are shifted back once. Invalidates all iterators. InsertActivityStreamsView(idx int, v ActivityStreamsView) + // InsertForgeFedBranch inserts a Branch value at the specified index for + // a property "formerType". Existing elements at that index and higher + // are shifted back once. Invalidates all iterators. + InsertForgeFedBranch(idx int, v ForgeFedBranch) + // InsertForgeFedCommit inserts a Commit value at the specified index for + // a property "formerType". Existing elements at that index and higher + // are shifted back once. Invalidates all iterators. + InsertForgeFedCommit(idx int, v ForgeFedCommit) + // InsertForgeFedPush inserts a Push value at the specified index for a + // property "formerType". Existing elements at that index and higher + // are shifted back once. Invalidates all iterators. + InsertForgeFedPush(idx int, v ForgeFedPush) + // InsertForgeFedRepository inserts a Repository value at the specified + // index for a property "formerType". Existing elements at that index + // and higher are shifted back once. Invalidates all iterators. + InsertForgeFedRepository(idx int, v ForgeFedRepository) + // InsertForgeFedTicket inserts a Ticket value at the specified index for + // a property "formerType". Existing elements at that index and higher + // are shifted back once. Invalidates all iterators. + InsertForgeFedTicket(idx int, v ForgeFedTicket) + // InsertForgeFedTicketDependency inserts a TicketDependency value at the + // specified index for a property "formerType". Existing elements at + // that index and higher are shifted back once. Invalidates all + // iterators. + InsertForgeFedTicketDependency(idx int, v ForgeFedTicketDependency) // Insert inserts an IRI value at the specified index for a property // "formerType". Existing elements at that index and higher are // shifted back once. Invalidates all iterators. @@ -1352,6 +1467,25 @@ type ActivityStreamsFormerTypeProperty interface { // PrependActivityStreamsView prepends a View value to the front of a list // of the property "formerType". Invalidates all iterators. PrependActivityStreamsView(v ActivityStreamsView) + // PrependForgeFedBranch prepends a Branch value to the front of a list of + // the property "formerType". Invalidates all iterators. + PrependForgeFedBranch(v ForgeFedBranch) + // PrependForgeFedCommit prepends a Commit value to the front of a list of + // the property "formerType". Invalidates all iterators. + PrependForgeFedCommit(v ForgeFedCommit) + // PrependForgeFedPush prepends a Push value to the front of a list of the + // property "formerType". Invalidates all iterators. + PrependForgeFedPush(v ForgeFedPush) + // PrependForgeFedRepository prepends a Repository value to the front of a + // list of the property "formerType". Invalidates all iterators. + PrependForgeFedRepository(v ForgeFedRepository) + // PrependForgeFedTicket prepends a Ticket value to the front of a list of + // the property "formerType". Invalidates all iterators. + PrependForgeFedTicket(v ForgeFedTicket) + // PrependForgeFedTicketDependency prepends a TicketDependency value to + // the front of a list of the property "formerType". Invalidates all + // iterators. + PrependForgeFedTicketDependency(v ForgeFedTicketDependency) // PrependIRI prepends an IRI value to the front of a list of the property // "formerType". PrependIRI(v *url.URL) @@ -1586,6 +1720,30 @@ type ActivityStreamsFormerTypeProperty interface { // for the property "formerType". Panics if the index is out of // bounds. Invalidates all iterators. SetActivityStreamsView(idx int, v ActivityStreamsView) + // SetForgeFedBranch sets a Branch value to be at the specified index for + // the property "formerType". Panics if the index is out of bounds. + // Invalidates all iterators. + SetForgeFedBranch(idx int, v ForgeFedBranch) + // SetForgeFedCommit sets a Commit value to be at the specified index for + // the property "formerType". Panics if the index is out of bounds. + // Invalidates all iterators. + SetForgeFedCommit(idx int, v ForgeFedCommit) + // SetForgeFedPush sets a Push value to be at the specified index for the + // property "formerType". Panics if the index is out of bounds. + // Invalidates all iterators. + SetForgeFedPush(idx int, v ForgeFedPush) + // SetForgeFedRepository sets a Repository value to be at the specified + // index for the property "formerType". Panics if the index is out of + // bounds. Invalidates all iterators. + SetForgeFedRepository(idx int, v ForgeFedRepository) + // SetForgeFedTicket sets a Ticket value to be at the specified index for + // the property "formerType". Panics if the index is out of bounds. + // Invalidates all iterators. + SetForgeFedTicket(idx int, v ForgeFedTicket) + // SetForgeFedTicketDependency sets a TicketDependency value to be at the + // specified index for the property "formerType". Panics if the index + // is out of bounds. Invalidates all iterators. + SetForgeFedTicketDependency(idx int, v ForgeFedTicketDependency) // SetIRI sets an IRI value to be at the specified index for the property // "formerType". Panics if the index is out of bounds. SetIRI(idx int, v *url.URL) diff --git a/streams/vocab/gen_property_activitystreams_generator_interface.go b/streams/vocab/gen_property_activitystreams_generator_interface.go index a4495d3..0f9059d 100644 --- a/streams/vocab/gen_property_activitystreams_generator_interface.go +++ b/streams/vocab/gen_property_activitystreams_generator_interface.go @@ -225,6 +225,29 @@ type ActivityStreamsGeneratorPropertyIterator interface { // IsActivityStreamsView returns false, GetActivityStreamsView will // return an arbitrary value. GetActivityStreamsView() ActivityStreamsView + // GetForgeFedBranch returns the value of this property. When + // IsForgeFedBranch returns false, GetForgeFedBranch will return an + // arbitrary value. + GetForgeFedBranch() ForgeFedBranch + // GetForgeFedCommit returns the value of this property. When + // IsForgeFedCommit returns false, GetForgeFedCommit will return an + // arbitrary value. + GetForgeFedCommit() ForgeFedCommit + // GetForgeFedPush returns the value of this property. When IsForgeFedPush + // returns false, GetForgeFedPush will return an arbitrary value. + GetForgeFedPush() ForgeFedPush + // GetForgeFedRepository returns the value of this property. When + // IsForgeFedRepository returns false, GetForgeFedRepository will + // return an arbitrary value. + GetForgeFedRepository() ForgeFedRepository + // GetForgeFedTicket returns the value of this property. When + // IsForgeFedTicket returns false, GetForgeFedTicket will return an + // arbitrary value. + GetForgeFedTicket() ForgeFedTicket + // GetForgeFedTicketDependency returns the value of this property. When + // IsForgeFedTicketDependency returns false, + // GetForgeFedTicketDependency will return an arbitrary value. + GetForgeFedTicketDependency() ForgeFedTicketDependency // GetIRI returns the IRI of this property. When IsIRI returns false, // GetIRI will return an arbitrary value. GetIRI() *url.URL @@ -473,6 +496,31 @@ type ActivityStreamsGeneratorPropertyIterator interface { // "View". When true, use the GetActivityStreamsView and // SetActivityStreamsView methods to access and set this property. IsActivityStreamsView() bool + // IsForgeFedBranch returns true if this property has a type of "Branch". + // When true, use the GetForgeFedBranch and SetForgeFedBranch methods + // to access and set this property. + IsForgeFedBranch() bool + // IsForgeFedCommit returns true if this property has a type of "Commit". + // When true, use the GetForgeFedCommit and SetForgeFedCommit methods + // to access and set this property. + IsForgeFedCommit() bool + // IsForgeFedPush returns true if this property has a type of "Push". When + // true, use the GetForgeFedPush and SetForgeFedPush methods to access + // and set this property. + IsForgeFedPush() bool + // IsForgeFedRepository returns true if this property has a type of + // "Repository". When true, use the GetForgeFedRepository and + // SetForgeFedRepository methods to access and set this property. + IsForgeFedRepository() bool + // IsForgeFedTicket returns true if this property has a type of "Ticket". + // When true, use the GetForgeFedTicket and SetForgeFedTicket methods + // to access and set this property. + IsForgeFedTicket() bool + // IsForgeFedTicketDependency returns true if this property has a type of + // "TicketDependency". When true, use the GetForgeFedTicketDependency + // and SetForgeFedTicketDependency methods to access and set this + // property. + IsForgeFedTicketDependency() bool // IsIRI returns true if this property is an IRI. When true, use GetIRI // and SetIRI to access and set this property IsIRI() bool @@ -669,6 +717,24 @@ type ActivityStreamsGeneratorPropertyIterator interface { // SetActivityStreamsView sets the value of this property. Calling // IsActivityStreamsView afterwards returns true. SetActivityStreamsView(v ActivityStreamsView) + // SetForgeFedBranch sets the value of this property. Calling + // IsForgeFedBranch afterwards returns true. + SetForgeFedBranch(v ForgeFedBranch) + // SetForgeFedCommit sets the value of this property. Calling + // IsForgeFedCommit afterwards returns true. + SetForgeFedCommit(v ForgeFedCommit) + // SetForgeFedPush sets the value of this property. Calling IsForgeFedPush + // afterwards returns true. + SetForgeFedPush(v ForgeFedPush) + // SetForgeFedRepository sets the value of this property. Calling + // IsForgeFedRepository afterwards returns true. + SetForgeFedRepository(v ForgeFedRepository) + // SetForgeFedTicket sets the value of this property. Calling + // IsForgeFedTicket afterwards returns true. + SetForgeFedTicket(v ForgeFedTicket) + // SetForgeFedTicketDependency sets the value of this property. Calling + // IsForgeFedTicketDependency afterwards returns true. + SetForgeFedTicketDependency(v ForgeFedTicketDependency) // SetIRI sets the value of this property. Calling IsIRI afterwards // returns true. SetIRI(v *url.URL) @@ -912,6 +978,30 @@ type ActivityStreamsGeneratorProperty interface { // the property "generator". Invalidates iterators that are traversing // using Prev. AppendActivityStreamsView(v ActivityStreamsView) + // AppendForgeFedBranch appends a Branch value to the back of a list of + // the property "generator". Invalidates iterators that are traversing + // using Prev. + AppendForgeFedBranch(v ForgeFedBranch) + // AppendForgeFedCommit appends a Commit value to the back of a list of + // the property "generator". Invalidates iterators that are traversing + // using Prev. + AppendForgeFedCommit(v ForgeFedCommit) + // AppendForgeFedPush appends a Push value to the back of a list of the + // property "generator". Invalidates iterators that are traversing + // using Prev. + AppendForgeFedPush(v ForgeFedPush) + // AppendForgeFedRepository appends a Repository value to the back of a + // list of the property "generator". Invalidates iterators that are + // traversing using Prev. + AppendForgeFedRepository(v ForgeFedRepository) + // AppendForgeFedTicket appends a Ticket value to the back of a list of + // the property "generator". Invalidates iterators that are traversing + // using Prev. + AppendForgeFedTicket(v ForgeFedTicket) + // AppendForgeFedTicketDependency appends a TicketDependency value to the + // back of a list of the property "generator". Invalidates iterators + // that are traversing using Prev. + AppendForgeFedTicketDependency(v ForgeFedTicketDependency) // AppendIRI appends an IRI value to the back of a list of the property // "generator" AppendIRI(v *url.URL) @@ -1168,6 +1258,31 @@ type ActivityStreamsGeneratorProperty interface { // for a property "generator". Existing elements at that index and // higher are shifted back once. Invalidates all iterators. InsertActivityStreamsView(idx int, v ActivityStreamsView) + // InsertForgeFedBranch inserts a Branch value at the specified index for + // a property "generator". Existing elements at that index and higher + // are shifted back once. Invalidates all iterators. + InsertForgeFedBranch(idx int, v ForgeFedBranch) + // InsertForgeFedCommit inserts a Commit value at the specified index for + // a property "generator". Existing elements at that index and higher + // are shifted back once. Invalidates all iterators. + InsertForgeFedCommit(idx int, v ForgeFedCommit) + // InsertForgeFedPush inserts a Push value at the specified index for a + // property "generator". Existing elements at that index and higher + // are shifted back once. Invalidates all iterators. + InsertForgeFedPush(idx int, v ForgeFedPush) + // InsertForgeFedRepository inserts a Repository value at the specified + // index for a property "generator". Existing elements at that index + // and higher are shifted back once. Invalidates all iterators. + InsertForgeFedRepository(idx int, v ForgeFedRepository) + // InsertForgeFedTicket inserts a Ticket value at the specified index for + // a property "generator". Existing elements at that index and higher + // are shifted back once. Invalidates all iterators. + InsertForgeFedTicket(idx int, v ForgeFedTicket) + // InsertForgeFedTicketDependency inserts a TicketDependency value at the + // specified index for a property "generator". Existing elements at + // that index and higher are shifted back once. Invalidates all + // iterators. + InsertForgeFedTicketDependency(idx int, v ForgeFedTicketDependency) // Insert inserts an IRI value at the specified index for a property // "generator". Existing elements at that index and higher are shifted // back once. Invalidates all iterators. @@ -1379,6 +1494,25 @@ type ActivityStreamsGeneratorProperty interface { // PrependActivityStreamsView prepends a View value to the front of a list // of the property "generator". Invalidates all iterators. PrependActivityStreamsView(v ActivityStreamsView) + // PrependForgeFedBranch prepends a Branch value to the front of a list of + // the property "generator". Invalidates all iterators. + PrependForgeFedBranch(v ForgeFedBranch) + // PrependForgeFedCommit prepends a Commit value to the front of a list of + // the property "generator". Invalidates all iterators. + PrependForgeFedCommit(v ForgeFedCommit) + // PrependForgeFedPush prepends a Push value to the front of a list of the + // property "generator". Invalidates all iterators. + PrependForgeFedPush(v ForgeFedPush) + // PrependForgeFedRepository prepends a Repository value to the front of a + // list of the property "generator". Invalidates all iterators. + PrependForgeFedRepository(v ForgeFedRepository) + // PrependForgeFedTicket prepends a Ticket value to the front of a list of + // the property "generator". Invalidates all iterators. + PrependForgeFedTicket(v ForgeFedTicket) + // PrependForgeFedTicketDependency prepends a TicketDependency value to + // the front of a list of the property "generator". Invalidates all + // iterators. + PrependForgeFedTicketDependency(v ForgeFedTicketDependency) // PrependIRI prepends an IRI value to the front of a list of the property // "generator". PrependIRI(v *url.URL) @@ -1618,6 +1752,30 @@ type ActivityStreamsGeneratorProperty interface { // for the property "generator". Panics if the index is out of bounds. // Invalidates all iterators. SetActivityStreamsView(idx int, v ActivityStreamsView) + // SetForgeFedBranch sets a Branch value to be at the specified index for + // the property "generator". Panics if the index is out of bounds. + // Invalidates all iterators. + SetForgeFedBranch(idx int, v ForgeFedBranch) + // SetForgeFedCommit sets a Commit value to be at the specified index for + // the property "generator". Panics if the index is out of bounds. + // Invalidates all iterators. + SetForgeFedCommit(idx int, v ForgeFedCommit) + // SetForgeFedPush sets a Push value to be at the specified index for the + // property "generator". Panics if the index is out of bounds. + // Invalidates all iterators. + SetForgeFedPush(idx int, v ForgeFedPush) + // SetForgeFedRepository sets a Repository value to be at the specified + // index for the property "generator". Panics if the index is out of + // bounds. Invalidates all iterators. + SetForgeFedRepository(idx int, v ForgeFedRepository) + // SetForgeFedTicket sets a Ticket value to be at the specified index for + // the property "generator". Panics if the index is out of bounds. + // Invalidates all iterators. + SetForgeFedTicket(idx int, v ForgeFedTicket) + // SetForgeFedTicketDependency sets a TicketDependency value to be at the + // specified index for the property "generator". Panics if the index + // is out of bounds. Invalidates all iterators. + SetForgeFedTicketDependency(idx int, v ForgeFedTicketDependency) // SetIRI sets an IRI value to be at the specified index for the property // "generator". Panics if the index is out of bounds. SetIRI(idx int, v *url.URL) diff --git a/streams/vocab/gen_property_activitystreams_inReplyTo_interface.go b/streams/vocab/gen_property_activitystreams_inReplyTo_interface.go index ac89cb2..fbd95d1 100644 --- a/streams/vocab/gen_property_activitystreams_inReplyTo_interface.go +++ b/streams/vocab/gen_property_activitystreams_inReplyTo_interface.go @@ -225,6 +225,29 @@ type ActivityStreamsInReplyToPropertyIterator interface { // IsActivityStreamsView returns false, GetActivityStreamsView will // return an arbitrary value. GetActivityStreamsView() ActivityStreamsView + // GetForgeFedBranch returns the value of this property. When + // IsForgeFedBranch returns false, GetForgeFedBranch will return an + // arbitrary value. + GetForgeFedBranch() ForgeFedBranch + // GetForgeFedCommit returns the value of this property. When + // IsForgeFedCommit returns false, GetForgeFedCommit will return an + // arbitrary value. + GetForgeFedCommit() ForgeFedCommit + // GetForgeFedPush returns the value of this property. When IsForgeFedPush + // returns false, GetForgeFedPush will return an arbitrary value. + GetForgeFedPush() ForgeFedPush + // GetForgeFedRepository returns the value of this property. When + // IsForgeFedRepository returns false, GetForgeFedRepository will + // return an arbitrary value. + GetForgeFedRepository() ForgeFedRepository + // GetForgeFedTicket returns the value of this property. When + // IsForgeFedTicket returns false, GetForgeFedTicket will return an + // arbitrary value. + GetForgeFedTicket() ForgeFedTicket + // GetForgeFedTicketDependency returns the value of this property. When + // IsForgeFedTicketDependency returns false, + // GetForgeFedTicketDependency will return an arbitrary value. + GetForgeFedTicketDependency() ForgeFedTicketDependency // GetIRI returns the IRI of this property. When IsIRI returns false, // GetIRI will return an arbitrary value. GetIRI() *url.URL @@ -473,6 +496,31 @@ type ActivityStreamsInReplyToPropertyIterator interface { // "View". When true, use the GetActivityStreamsView and // SetActivityStreamsView methods to access and set this property. IsActivityStreamsView() bool + // IsForgeFedBranch returns true if this property has a type of "Branch". + // When true, use the GetForgeFedBranch and SetForgeFedBranch methods + // to access and set this property. + IsForgeFedBranch() bool + // IsForgeFedCommit returns true if this property has a type of "Commit". + // When true, use the GetForgeFedCommit and SetForgeFedCommit methods + // to access and set this property. + IsForgeFedCommit() bool + // IsForgeFedPush returns true if this property has a type of "Push". When + // true, use the GetForgeFedPush and SetForgeFedPush methods to access + // and set this property. + IsForgeFedPush() bool + // IsForgeFedRepository returns true if this property has a type of + // "Repository". When true, use the GetForgeFedRepository and + // SetForgeFedRepository methods to access and set this property. + IsForgeFedRepository() bool + // IsForgeFedTicket returns true if this property has a type of "Ticket". + // When true, use the GetForgeFedTicket and SetForgeFedTicket methods + // to access and set this property. + IsForgeFedTicket() bool + // IsForgeFedTicketDependency returns true if this property has a type of + // "TicketDependency". When true, use the GetForgeFedTicketDependency + // and SetForgeFedTicketDependency methods to access and set this + // property. + IsForgeFedTicketDependency() bool // IsIRI returns true if this property is an IRI. When true, use GetIRI // and SetIRI to access and set this property IsIRI() bool @@ -669,6 +717,24 @@ type ActivityStreamsInReplyToPropertyIterator interface { // SetActivityStreamsView sets the value of this property. Calling // IsActivityStreamsView afterwards returns true. SetActivityStreamsView(v ActivityStreamsView) + // SetForgeFedBranch sets the value of this property. Calling + // IsForgeFedBranch afterwards returns true. + SetForgeFedBranch(v ForgeFedBranch) + // SetForgeFedCommit sets the value of this property. Calling + // IsForgeFedCommit afterwards returns true. + SetForgeFedCommit(v ForgeFedCommit) + // SetForgeFedPush sets the value of this property. Calling IsForgeFedPush + // afterwards returns true. + SetForgeFedPush(v ForgeFedPush) + // SetForgeFedRepository sets the value of this property. Calling + // IsForgeFedRepository afterwards returns true. + SetForgeFedRepository(v ForgeFedRepository) + // SetForgeFedTicket sets the value of this property. Calling + // IsForgeFedTicket afterwards returns true. + SetForgeFedTicket(v ForgeFedTicket) + // SetForgeFedTicketDependency sets the value of this property. Calling + // IsForgeFedTicketDependency afterwards returns true. + SetForgeFedTicketDependency(v ForgeFedTicketDependency) // SetIRI sets the value of this property. Calling IsIRI afterwards // returns true. SetIRI(v *url.URL) @@ -921,6 +987,30 @@ type ActivityStreamsInReplyToProperty interface { // the property "inReplyTo". Invalidates iterators that are traversing // using Prev. AppendActivityStreamsView(v ActivityStreamsView) + // AppendForgeFedBranch appends a Branch value to the back of a list of + // the property "inReplyTo". Invalidates iterators that are traversing + // using Prev. + AppendForgeFedBranch(v ForgeFedBranch) + // AppendForgeFedCommit appends a Commit value to the back of a list of + // the property "inReplyTo". Invalidates iterators that are traversing + // using Prev. + AppendForgeFedCommit(v ForgeFedCommit) + // AppendForgeFedPush appends a Push value to the back of a list of the + // property "inReplyTo". Invalidates iterators that are traversing + // using Prev. + AppendForgeFedPush(v ForgeFedPush) + // AppendForgeFedRepository appends a Repository value to the back of a + // list of the property "inReplyTo". Invalidates iterators that are + // traversing using Prev. + AppendForgeFedRepository(v ForgeFedRepository) + // AppendForgeFedTicket appends a Ticket value to the back of a list of + // the property "inReplyTo". Invalidates iterators that are traversing + // using Prev. + AppendForgeFedTicket(v ForgeFedTicket) + // AppendForgeFedTicketDependency appends a TicketDependency value to the + // back of a list of the property "inReplyTo". Invalidates iterators + // that are traversing using Prev. + AppendForgeFedTicketDependency(v ForgeFedTicketDependency) // AppendIRI appends an IRI value to the back of a list of the property // "inReplyTo" AppendIRI(v *url.URL) @@ -1177,6 +1267,31 @@ type ActivityStreamsInReplyToProperty interface { // for a property "inReplyTo". Existing elements at that index and // higher are shifted back once. Invalidates all iterators. InsertActivityStreamsView(idx int, v ActivityStreamsView) + // InsertForgeFedBranch inserts a Branch value at the specified index for + // a property "inReplyTo". Existing elements at that index and higher + // are shifted back once. Invalidates all iterators. + InsertForgeFedBranch(idx int, v ForgeFedBranch) + // InsertForgeFedCommit inserts a Commit value at the specified index for + // a property "inReplyTo". Existing elements at that index and higher + // are shifted back once. Invalidates all iterators. + InsertForgeFedCommit(idx int, v ForgeFedCommit) + // InsertForgeFedPush inserts a Push value at the specified index for a + // property "inReplyTo". Existing elements at that index and higher + // are shifted back once. Invalidates all iterators. + InsertForgeFedPush(idx int, v ForgeFedPush) + // InsertForgeFedRepository inserts a Repository value at the specified + // index for a property "inReplyTo". Existing elements at that index + // and higher are shifted back once. Invalidates all iterators. + InsertForgeFedRepository(idx int, v ForgeFedRepository) + // InsertForgeFedTicket inserts a Ticket value at the specified index for + // a property "inReplyTo". Existing elements at that index and higher + // are shifted back once. Invalidates all iterators. + InsertForgeFedTicket(idx int, v ForgeFedTicket) + // InsertForgeFedTicketDependency inserts a TicketDependency value at the + // specified index for a property "inReplyTo". Existing elements at + // that index and higher are shifted back once. Invalidates all + // iterators. + InsertForgeFedTicketDependency(idx int, v ForgeFedTicketDependency) // Insert inserts an IRI value at the specified index for a property // "inReplyTo". Existing elements at that index and higher are shifted // back once. Invalidates all iterators. @@ -1388,6 +1503,25 @@ type ActivityStreamsInReplyToProperty interface { // PrependActivityStreamsView prepends a View value to the front of a list // of the property "inReplyTo". Invalidates all iterators. PrependActivityStreamsView(v ActivityStreamsView) + // PrependForgeFedBranch prepends a Branch value to the front of a list of + // the property "inReplyTo". Invalidates all iterators. + PrependForgeFedBranch(v ForgeFedBranch) + // PrependForgeFedCommit prepends a Commit value to the front of a list of + // the property "inReplyTo". Invalidates all iterators. + PrependForgeFedCommit(v ForgeFedCommit) + // PrependForgeFedPush prepends a Push value to the front of a list of the + // property "inReplyTo". Invalidates all iterators. + PrependForgeFedPush(v ForgeFedPush) + // PrependForgeFedRepository prepends a Repository value to the front of a + // list of the property "inReplyTo". Invalidates all iterators. + PrependForgeFedRepository(v ForgeFedRepository) + // PrependForgeFedTicket prepends a Ticket value to the front of a list of + // the property "inReplyTo". Invalidates all iterators. + PrependForgeFedTicket(v ForgeFedTicket) + // PrependForgeFedTicketDependency prepends a TicketDependency value to + // the front of a list of the property "inReplyTo". Invalidates all + // iterators. + PrependForgeFedTicketDependency(v ForgeFedTicketDependency) // PrependIRI prepends an IRI value to the front of a list of the property // "inReplyTo". PrependIRI(v *url.URL) @@ -1627,6 +1761,30 @@ type ActivityStreamsInReplyToProperty interface { // for the property "inReplyTo". Panics if the index is out of bounds. // Invalidates all iterators. SetActivityStreamsView(idx int, v ActivityStreamsView) + // SetForgeFedBranch sets a Branch value to be at the specified index for + // the property "inReplyTo". Panics if the index is out of bounds. + // Invalidates all iterators. + SetForgeFedBranch(idx int, v ForgeFedBranch) + // SetForgeFedCommit sets a Commit value to be at the specified index for + // the property "inReplyTo". Panics if the index is out of bounds. + // Invalidates all iterators. + SetForgeFedCommit(idx int, v ForgeFedCommit) + // SetForgeFedPush sets a Push value to be at the specified index for the + // property "inReplyTo". Panics if the index is out of bounds. + // Invalidates all iterators. + SetForgeFedPush(idx int, v ForgeFedPush) + // SetForgeFedRepository sets a Repository value to be at the specified + // index for the property "inReplyTo". Panics if the index is out of + // bounds. Invalidates all iterators. + SetForgeFedRepository(idx int, v ForgeFedRepository) + // SetForgeFedTicket sets a Ticket value to be at the specified index for + // the property "inReplyTo". Panics if the index is out of bounds. + // Invalidates all iterators. + SetForgeFedTicket(idx int, v ForgeFedTicket) + // SetForgeFedTicketDependency sets a TicketDependency value to be at the + // specified index for the property "inReplyTo". Panics if the index + // is out of bounds. Invalidates all iterators. + SetForgeFedTicketDependency(idx int, v ForgeFedTicketDependency) // SetIRI sets an IRI value to be at the specified index for the property // "inReplyTo". Panics if the index is out of bounds. SetIRI(idx int, v *url.URL) diff --git a/streams/vocab/gen_property_activitystreams_instrument_interface.go b/streams/vocab/gen_property_activitystreams_instrument_interface.go index 328607f..d89ec62 100644 --- a/streams/vocab/gen_property_activitystreams_instrument_interface.go +++ b/streams/vocab/gen_property_activitystreams_instrument_interface.go @@ -225,6 +225,29 @@ type ActivityStreamsInstrumentPropertyIterator interface { // IsActivityStreamsView returns false, GetActivityStreamsView will // return an arbitrary value. GetActivityStreamsView() ActivityStreamsView + // GetForgeFedBranch returns the value of this property. When + // IsForgeFedBranch returns false, GetForgeFedBranch will return an + // arbitrary value. + GetForgeFedBranch() ForgeFedBranch + // GetForgeFedCommit returns the value of this property. When + // IsForgeFedCommit returns false, GetForgeFedCommit will return an + // arbitrary value. + GetForgeFedCommit() ForgeFedCommit + // GetForgeFedPush returns the value of this property. When IsForgeFedPush + // returns false, GetForgeFedPush will return an arbitrary value. + GetForgeFedPush() ForgeFedPush + // GetForgeFedRepository returns the value of this property. When + // IsForgeFedRepository returns false, GetForgeFedRepository will + // return an arbitrary value. + GetForgeFedRepository() ForgeFedRepository + // GetForgeFedTicket returns the value of this property. When + // IsForgeFedTicket returns false, GetForgeFedTicket will return an + // arbitrary value. + GetForgeFedTicket() ForgeFedTicket + // GetForgeFedTicketDependency returns the value of this property. When + // IsForgeFedTicketDependency returns false, + // GetForgeFedTicketDependency will return an arbitrary value. + GetForgeFedTicketDependency() ForgeFedTicketDependency // GetIRI returns the IRI of this property. When IsIRI returns false, // GetIRI will return an arbitrary value. GetIRI() *url.URL @@ -473,6 +496,31 @@ type ActivityStreamsInstrumentPropertyIterator interface { // "View". When true, use the GetActivityStreamsView and // SetActivityStreamsView methods to access and set this property. IsActivityStreamsView() bool + // IsForgeFedBranch returns true if this property has a type of "Branch". + // When true, use the GetForgeFedBranch and SetForgeFedBranch methods + // to access and set this property. + IsForgeFedBranch() bool + // IsForgeFedCommit returns true if this property has a type of "Commit". + // When true, use the GetForgeFedCommit and SetForgeFedCommit methods + // to access and set this property. + IsForgeFedCommit() bool + // IsForgeFedPush returns true if this property has a type of "Push". When + // true, use the GetForgeFedPush and SetForgeFedPush methods to access + // and set this property. + IsForgeFedPush() bool + // IsForgeFedRepository returns true if this property has a type of + // "Repository". When true, use the GetForgeFedRepository and + // SetForgeFedRepository methods to access and set this property. + IsForgeFedRepository() bool + // IsForgeFedTicket returns true if this property has a type of "Ticket". + // When true, use the GetForgeFedTicket and SetForgeFedTicket methods + // to access and set this property. + IsForgeFedTicket() bool + // IsForgeFedTicketDependency returns true if this property has a type of + // "TicketDependency". When true, use the GetForgeFedTicketDependency + // and SetForgeFedTicketDependency methods to access and set this + // property. + IsForgeFedTicketDependency() bool // IsIRI returns true if this property is an IRI. When true, use GetIRI // and SetIRI to access and set this property IsIRI() bool @@ -669,6 +717,24 @@ type ActivityStreamsInstrumentPropertyIterator interface { // SetActivityStreamsView sets the value of this property. Calling // IsActivityStreamsView afterwards returns true. SetActivityStreamsView(v ActivityStreamsView) + // SetForgeFedBranch sets the value of this property. Calling + // IsForgeFedBranch afterwards returns true. + SetForgeFedBranch(v ForgeFedBranch) + // SetForgeFedCommit sets the value of this property. Calling + // IsForgeFedCommit afterwards returns true. + SetForgeFedCommit(v ForgeFedCommit) + // SetForgeFedPush sets the value of this property. Calling IsForgeFedPush + // afterwards returns true. + SetForgeFedPush(v ForgeFedPush) + // SetForgeFedRepository sets the value of this property. Calling + // IsForgeFedRepository afterwards returns true. + SetForgeFedRepository(v ForgeFedRepository) + // SetForgeFedTicket sets the value of this property. Calling + // IsForgeFedTicket afterwards returns true. + SetForgeFedTicket(v ForgeFedTicket) + // SetForgeFedTicketDependency sets the value of this property. Calling + // IsForgeFedTicketDependency afterwards returns true. + SetForgeFedTicketDependency(v ForgeFedTicketDependency) // SetIRI sets the value of this property. Calling IsIRI afterwards // returns true. SetIRI(v *url.URL) @@ -918,6 +984,30 @@ type ActivityStreamsInstrumentProperty interface { // the property "instrument". Invalidates iterators that are // traversing using Prev. AppendActivityStreamsView(v ActivityStreamsView) + // AppendForgeFedBranch appends a Branch value to the back of a list of + // the property "instrument". Invalidates iterators that are + // traversing using Prev. + AppendForgeFedBranch(v ForgeFedBranch) + // AppendForgeFedCommit appends a Commit value to the back of a list of + // the property "instrument". Invalidates iterators that are + // traversing using Prev. + AppendForgeFedCommit(v ForgeFedCommit) + // AppendForgeFedPush appends a Push value to the back of a list of the + // property "instrument". Invalidates iterators that are traversing + // using Prev. + AppendForgeFedPush(v ForgeFedPush) + // AppendForgeFedRepository appends a Repository value to the back of a + // list of the property "instrument". Invalidates iterators that are + // traversing using Prev. + AppendForgeFedRepository(v ForgeFedRepository) + // AppendForgeFedTicket appends a Ticket value to the back of a list of + // the property "instrument". Invalidates iterators that are + // traversing using Prev. + AppendForgeFedTicket(v ForgeFedTicket) + // AppendForgeFedTicketDependency appends a TicketDependency value to the + // back of a list of the property "instrument". Invalidates iterators + // that are traversing using Prev. + AppendForgeFedTicketDependency(v ForgeFedTicketDependency) // AppendIRI appends an IRI value to the back of a list of the property // "instrument" AppendIRI(v *url.URL) @@ -1174,6 +1264,31 @@ type ActivityStreamsInstrumentProperty interface { // for a property "instrument". Existing elements at that index and // higher are shifted back once. Invalidates all iterators. InsertActivityStreamsView(idx int, v ActivityStreamsView) + // InsertForgeFedBranch inserts a Branch value at the specified index for + // a property "instrument". Existing elements at that index and higher + // are shifted back once. Invalidates all iterators. + InsertForgeFedBranch(idx int, v ForgeFedBranch) + // InsertForgeFedCommit inserts a Commit value at the specified index for + // a property "instrument". Existing elements at that index and higher + // are shifted back once. Invalidates all iterators. + InsertForgeFedCommit(idx int, v ForgeFedCommit) + // InsertForgeFedPush inserts a Push value at the specified index for a + // property "instrument". Existing elements at that index and higher + // are shifted back once. Invalidates all iterators. + InsertForgeFedPush(idx int, v ForgeFedPush) + // InsertForgeFedRepository inserts a Repository value at the specified + // index for a property "instrument". Existing elements at that index + // and higher are shifted back once. Invalidates all iterators. + InsertForgeFedRepository(idx int, v ForgeFedRepository) + // InsertForgeFedTicket inserts a Ticket value at the specified index for + // a property "instrument". Existing elements at that index and higher + // are shifted back once. Invalidates all iterators. + InsertForgeFedTicket(idx int, v ForgeFedTicket) + // InsertForgeFedTicketDependency inserts a TicketDependency value at the + // specified index for a property "instrument". Existing elements at + // that index and higher are shifted back once. Invalidates all + // iterators. + InsertForgeFedTicketDependency(idx int, v ForgeFedTicketDependency) // Insert inserts an IRI value at the specified index for a property // "instrument". Existing elements at that index and higher are // shifted back once. Invalidates all iterators. @@ -1385,6 +1500,25 @@ type ActivityStreamsInstrumentProperty interface { // PrependActivityStreamsView prepends a View value to the front of a list // of the property "instrument". Invalidates all iterators. PrependActivityStreamsView(v ActivityStreamsView) + // PrependForgeFedBranch prepends a Branch value to the front of a list of + // the property "instrument". Invalidates all iterators. + PrependForgeFedBranch(v ForgeFedBranch) + // PrependForgeFedCommit prepends a Commit value to the front of a list of + // the property "instrument". Invalidates all iterators. + PrependForgeFedCommit(v ForgeFedCommit) + // PrependForgeFedPush prepends a Push value to the front of a list of the + // property "instrument". Invalidates all iterators. + PrependForgeFedPush(v ForgeFedPush) + // PrependForgeFedRepository prepends a Repository value to the front of a + // list of the property "instrument". Invalidates all iterators. + PrependForgeFedRepository(v ForgeFedRepository) + // PrependForgeFedTicket prepends a Ticket value to the front of a list of + // the property "instrument". Invalidates all iterators. + PrependForgeFedTicket(v ForgeFedTicket) + // PrependForgeFedTicketDependency prepends a TicketDependency value to + // the front of a list of the property "instrument". Invalidates all + // iterators. + PrependForgeFedTicketDependency(v ForgeFedTicketDependency) // PrependIRI prepends an IRI value to the front of a list of the property // "instrument". PrependIRI(v *url.URL) @@ -1624,6 +1758,30 @@ type ActivityStreamsInstrumentProperty interface { // for the property "instrument". Panics if the index is out of // bounds. Invalidates all iterators. SetActivityStreamsView(idx int, v ActivityStreamsView) + // SetForgeFedBranch sets a Branch value to be at the specified index for + // the property "instrument". Panics if the index is out of bounds. + // Invalidates all iterators. + SetForgeFedBranch(idx int, v ForgeFedBranch) + // SetForgeFedCommit sets a Commit value to be at the specified index for + // the property "instrument". Panics if the index is out of bounds. + // Invalidates all iterators. + SetForgeFedCommit(idx int, v ForgeFedCommit) + // SetForgeFedPush sets a Push value to be at the specified index for the + // property "instrument". Panics if the index is out of bounds. + // Invalidates all iterators. + SetForgeFedPush(idx int, v ForgeFedPush) + // SetForgeFedRepository sets a Repository value to be at the specified + // index for the property "instrument". Panics if the index is out of + // bounds. Invalidates all iterators. + SetForgeFedRepository(idx int, v ForgeFedRepository) + // SetForgeFedTicket sets a Ticket value to be at the specified index for + // the property "instrument". Panics if the index is out of bounds. + // Invalidates all iterators. + SetForgeFedTicket(idx int, v ForgeFedTicket) + // SetForgeFedTicketDependency sets a TicketDependency value to be at the + // specified index for the property "instrument". Panics if the index + // is out of bounds. Invalidates all iterators. + SetForgeFedTicketDependency(idx int, v ForgeFedTicketDependency) // SetIRI sets an IRI value to be at the specified index for the property // "instrument". Panics if the index is out of bounds. SetIRI(idx int, v *url.URL) diff --git a/streams/vocab/gen_property_activitystreams_items_interface.go b/streams/vocab/gen_property_activitystreams_items_interface.go index 702f4c8..f5b0ee0 100644 --- a/streams/vocab/gen_property_activitystreams_items_interface.go +++ b/streams/vocab/gen_property_activitystreams_items_interface.go @@ -225,6 +225,29 @@ type ActivityStreamsItemsPropertyIterator interface { // IsActivityStreamsView returns false, GetActivityStreamsView will // return an arbitrary value. GetActivityStreamsView() ActivityStreamsView + // GetForgeFedBranch returns the value of this property. When + // IsForgeFedBranch returns false, GetForgeFedBranch will return an + // arbitrary value. + GetForgeFedBranch() ForgeFedBranch + // GetForgeFedCommit returns the value of this property. When + // IsForgeFedCommit returns false, GetForgeFedCommit will return an + // arbitrary value. + GetForgeFedCommit() ForgeFedCommit + // GetForgeFedPush returns the value of this property. When IsForgeFedPush + // returns false, GetForgeFedPush will return an arbitrary value. + GetForgeFedPush() ForgeFedPush + // GetForgeFedRepository returns the value of this property. When + // IsForgeFedRepository returns false, GetForgeFedRepository will + // return an arbitrary value. + GetForgeFedRepository() ForgeFedRepository + // GetForgeFedTicket returns the value of this property. When + // IsForgeFedTicket returns false, GetForgeFedTicket will return an + // arbitrary value. + GetForgeFedTicket() ForgeFedTicket + // GetForgeFedTicketDependency returns the value of this property. When + // IsForgeFedTicketDependency returns false, + // GetForgeFedTicketDependency will return an arbitrary value. + GetForgeFedTicketDependency() ForgeFedTicketDependency // GetIRI returns the IRI of this property. When IsIRI returns false, // GetIRI will return an arbitrary value. GetIRI() *url.URL @@ -473,6 +496,31 @@ type ActivityStreamsItemsPropertyIterator interface { // "View". When true, use the GetActivityStreamsView and // SetActivityStreamsView methods to access and set this property. IsActivityStreamsView() bool + // IsForgeFedBranch returns true if this property has a type of "Branch". + // When true, use the GetForgeFedBranch and SetForgeFedBranch methods + // to access and set this property. + IsForgeFedBranch() bool + // IsForgeFedCommit returns true if this property has a type of "Commit". + // When true, use the GetForgeFedCommit and SetForgeFedCommit methods + // to access and set this property. + IsForgeFedCommit() bool + // IsForgeFedPush returns true if this property has a type of "Push". When + // true, use the GetForgeFedPush and SetForgeFedPush methods to access + // and set this property. + IsForgeFedPush() bool + // IsForgeFedRepository returns true if this property has a type of + // "Repository". When true, use the GetForgeFedRepository and + // SetForgeFedRepository methods to access and set this property. + IsForgeFedRepository() bool + // IsForgeFedTicket returns true if this property has a type of "Ticket". + // When true, use the GetForgeFedTicket and SetForgeFedTicket methods + // to access and set this property. + IsForgeFedTicket() bool + // IsForgeFedTicketDependency returns true if this property has a type of + // "TicketDependency". When true, use the GetForgeFedTicketDependency + // and SetForgeFedTicketDependency methods to access and set this + // property. + IsForgeFedTicketDependency() bool // IsIRI returns true if this property is an IRI. When true, use GetIRI // and SetIRI to access and set this property IsIRI() bool @@ -669,6 +717,24 @@ type ActivityStreamsItemsPropertyIterator interface { // SetActivityStreamsView sets the value of this property. Calling // IsActivityStreamsView afterwards returns true. SetActivityStreamsView(v ActivityStreamsView) + // SetForgeFedBranch sets the value of this property. Calling + // IsForgeFedBranch afterwards returns true. + SetForgeFedBranch(v ForgeFedBranch) + // SetForgeFedCommit sets the value of this property. Calling + // IsForgeFedCommit afterwards returns true. + SetForgeFedCommit(v ForgeFedCommit) + // SetForgeFedPush sets the value of this property. Calling IsForgeFedPush + // afterwards returns true. + SetForgeFedPush(v ForgeFedPush) + // SetForgeFedRepository sets the value of this property. Calling + // IsForgeFedRepository afterwards returns true. + SetForgeFedRepository(v ForgeFedRepository) + // SetForgeFedTicket sets the value of this property. Calling + // IsForgeFedTicket afterwards returns true. + SetForgeFedTicket(v ForgeFedTicket) + // SetForgeFedTicketDependency sets the value of this property. Calling + // IsForgeFedTicketDependency afterwards returns true. + SetForgeFedTicketDependency(v ForgeFedTicketDependency) // SetIRI sets the value of this property. Calling IsIRI afterwards // returns true. SetIRI(v *url.URL) @@ -919,6 +985,30 @@ type ActivityStreamsItemsProperty interface { // the property "items". Invalidates iterators that are traversing // using Prev. AppendActivityStreamsView(v ActivityStreamsView) + // AppendForgeFedBranch appends a Branch value to the back of a list of + // the property "items". Invalidates iterators that are traversing + // using Prev. + AppendForgeFedBranch(v ForgeFedBranch) + // AppendForgeFedCommit appends a Commit value to the back of a list of + // the property "items". Invalidates iterators that are traversing + // using Prev. + AppendForgeFedCommit(v ForgeFedCommit) + // AppendForgeFedPush appends a Push value to the back of a list of the + // property "items". Invalidates iterators that are traversing using + // Prev. + AppendForgeFedPush(v ForgeFedPush) + // AppendForgeFedRepository appends a Repository value to the back of a + // list of the property "items". Invalidates iterators that are + // traversing using Prev. + AppendForgeFedRepository(v ForgeFedRepository) + // AppendForgeFedTicket appends a Ticket value to the back of a list of + // the property "items". Invalidates iterators that are traversing + // using Prev. + AppendForgeFedTicket(v ForgeFedTicket) + // AppendForgeFedTicketDependency appends a TicketDependency value to the + // back of a list of the property "items". Invalidates iterators that + // are traversing using Prev. + AppendForgeFedTicketDependency(v ForgeFedTicketDependency) // AppendIRI appends an IRI value to the back of a list of the property // "items" AppendIRI(v *url.URL) @@ -1170,6 +1260,30 @@ type ActivityStreamsItemsProperty interface { // for a property "items". Existing elements at that index and higher // are shifted back once. Invalidates all iterators. InsertActivityStreamsView(idx int, v ActivityStreamsView) + // InsertForgeFedBranch inserts a Branch value at the specified index for + // a property "items". Existing elements at that index and higher are + // shifted back once. Invalidates all iterators. + InsertForgeFedBranch(idx int, v ForgeFedBranch) + // InsertForgeFedCommit inserts a Commit value at the specified index for + // a property "items". Existing elements at that index and higher are + // shifted back once. Invalidates all iterators. + InsertForgeFedCommit(idx int, v ForgeFedCommit) + // InsertForgeFedPush inserts a Push value at the specified index for a + // property "items". Existing elements at that index and higher are + // shifted back once. Invalidates all iterators. + InsertForgeFedPush(idx int, v ForgeFedPush) + // InsertForgeFedRepository inserts a Repository value at the specified + // index for a property "items". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertForgeFedRepository(idx int, v ForgeFedRepository) + // InsertForgeFedTicket inserts a Ticket value at the specified index for + // a property "items". Existing elements at that index and higher are + // shifted back once. Invalidates all iterators. + InsertForgeFedTicket(idx int, v ForgeFedTicket) + // InsertForgeFedTicketDependency inserts a TicketDependency value at the + // specified index for a property "items". Existing elements at that + // index and higher are shifted back once. Invalidates all iterators. + InsertForgeFedTicketDependency(idx int, v ForgeFedTicketDependency) // Insert inserts an IRI value at the specified index for a property // "items". Existing elements at that index and higher are shifted // back once. Invalidates all iterators. @@ -1376,6 +1490,25 @@ type ActivityStreamsItemsProperty interface { // PrependActivityStreamsView prepends a View value to the front of a list // of the property "items". Invalidates all iterators. PrependActivityStreamsView(v ActivityStreamsView) + // PrependForgeFedBranch prepends a Branch value to the front of a list of + // the property "items". Invalidates all iterators. + PrependForgeFedBranch(v ForgeFedBranch) + // PrependForgeFedCommit prepends a Commit value to the front of a list of + // the property "items". Invalidates all iterators. + PrependForgeFedCommit(v ForgeFedCommit) + // PrependForgeFedPush prepends a Push value to the front of a list of the + // property "items". Invalidates all iterators. + PrependForgeFedPush(v ForgeFedPush) + // PrependForgeFedRepository prepends a Repository value to the front of a + // list of the property "items". Invalidates all iterators. + PrependForgeFedRepository(v ForgeFedRepository) + // PrependForgeFedTicket prepends a Ticket value to the front of a list of + // the property "items". Invalidates all iterators. + PrependForgeFedTicket(v ForgeFedTicket) + // PrependForgeFedTicketDependency prepends a TicketDependency value to + // the front of a list of the property "items". Invalidates all + // iterators. + PrependForgeFedTicketDependency(v ForgeFedTicketDependency) // PrependIRI prepends an IRI value to the front of a list of the property // "items". PrependIRI(v *url.URL) @@ -1615,6 +1748,30 @@ type ActivityStreamsItemsProperty interface { // for the property "items". Panics if the index is out of bounds. // Invalidates all iterators. SetActivityStreamsView(idx int, v ActivityStreamsView) + // SetForgeFedBranch sets a Branch value to be at the specified index for + // the property "items". Panics if the index is out of bounds. + // Invalidates all iterators. + SetForgeFedBranch(idx int, v ForgeFedBranch) + // SetForgeFedCommit sets a Commit value to be at the specified index for + // the property "items". Panics if the index is out of bounds. + // Invalidates all iterators. + SetForgeFedCommit(idx int, v ForgeFedCommit) + // SetForgeFedPush sets a Push value to be at the specified index for the + // property "items". Panics if the index is out of bounds. Invalidates + // all iterators. + SetForgeFedPush(idx int, v ForgeFedPush) + // SetForgeFedRepository sets a Repository value to be at the specified + // index for the property "items". Panics if the index is out of + // bounds. Invalidates all iterators. + SetForgeFedRepository(idx int, v ForgeFedRepository) + // SetForgeFedTicket sets a Ticket value to be at the specified index for + // the property "items". Panics if the index is out of bounds. + // Invalidates all iterators. + SetForgeFedTicket(idx int, v ForgeFedTicket) + // SetForgeFedTicketDependency sets a TicketDependency value to be at the + // specified index for the property "items". Panics if the index is + // out of bounds. Invalidates all iterators. + SetForgeFedTicketDependency(idx int, v ForgeFedTicketDependency) // SetIRI sets an IRI value to be at the specified index for the property // "items". Panics if the index is out of bounds. SetIRI(idx int, v *url.URL) diff --git a/streams/vocab/gen_property_activitystreams_location_interface.go b/streams/vocab/gen_property_activitystreams_location_interface.go index 83395bf..ca310a4 100644 --- a/streams/vocab/gen_property_activitystreams_location_interface.go +++ b/streams/vocab/gen_property_activitystreams_location_interface.go @@ -225,6 +225,29 @@ type ActivityStreamsLocationPropertyIterator interface { // IsActivityStreamsView returns false, GetActivityStreamsView will // return an arbitrary value. GetActivityStreamsView() ActivityStreamsView + // GetForgeFedBranch returns the value of this property. When + // IsForgeFedBranch returns false, GetForgeFedBranch will return an + // arbitrary value. + GetForgeFedBranch() ForgeFedBranch + // GetForgeFedCommit returns the value of this property. When + // IsForgeFedCommit returns false, GetForgeFedCommit will return an + // arbitrary value. + GetForgeFedCommit() ForgeFedCommit + // GetForgeFedPush returns the value of this property. When IsForgeFedPush + // returns false, GetForgeFedPush will return an arbitrary value. + GetForgeFedPush() ForgeFedPush + // GetForgeFedRepository returns the value of this property. When + // IsForgeFedRepository returns false, GetForgeFedRepository will + // return an arbitrary value. + GetForgeFedRepository() ForgeFedRepository + // GetForgeFedTicket returns the value of this property. When + // IsForgeFedTicket returns false, GetForgeFedTicket will return an + // arbitrary value. + GetForgeFedTicket() ForgeFedTicket + // GetForgeFedTicketDependency returns the value of this property. When + // IsForgeFedTicketDependency returns false, + // GetForgeFedTicketDependency will return an arbitrary value. + GetForgeFedTicketDependency() ForgeFedTicketDependency // GetIRI returns the IRI of this property. When IsIRI returns false, // GetIRI will return an arbitrary value. GetIRI() *url.URL @@ -473,6 +496,31 @@ type ActivityStreamsLocationPropertyIterator interface { // "View". When true, use the GetActivityStreamsView and // SetActivityStreamsView methods to access and set this property. IsActivityStreamsView() bool + // IsForgeFedBranch returns true if this property has a type of "Branch". + // When true, use the GetForgeFedBranch and SetForgeFedBranch methods + // to access and set this property. + IsForgeFedBranch() bool + // IsForgeFedCommit returns true if this property has a type of "Commit". + // When true, use the GetForgeFedCommit and SetForgeFedCommit methods + // to access and set this property. + IsForgeFedCommit() bool + // IsForgeFedPush returns true if this property has a type of "Push". When + // true, use the GetForgeFedPush and SetForgeFedPush methods to access + // and set this property. + IsForgeFedPush() bool + // IsForgeFedRepository returns true if this property has a type of + // "Repository". When true, use the GetForgeFedRepository and + // SetForgeFedRepository methods to access and set this property. + IsForgeFedRepository() bool + // IsForgeFedTicket returns true if this property has a type of "Ticket". + // When true, use the GetForgeFedTicket and SetForgeFedTicket methods + // to access and set this property. + IsForgeFedTicket() bool + // IsForgeFedTicketDependency returns true if this property has a type of + // "TicketDependency". When true, use the GetForgeFedTicketDependency + // and SetForgeFedTicketDependency methods to access and set this + // property. + IsForgeFedTicketDependency() bool // IsIRI returns true if this property is an IRI. When true, use GetIRI // and SetIRI to access and set this property IsIRI() bool @@ -669,6 +717,24 @@ type ActivityStreamsLocationPropertyIterator interface { // SetActivityStreamsView sets the value of this property. Calling // IsActivityStreamsView afterwards returns true. SetActivityStreamsView(v ActivityStreamsView) + // SetForgeFedBranch sets the value of this property. Calling + // IsForgeFedBranch afterwards returns true. + SetForgeFedBranch(v ForgeFedBranch) + // SetForgeFedCommit sets the value of this property. Calling + // IsForgeFedCommit afterwards returns true. + SetForgeFedCommit(v ForgeFedCommit) + // SetForgeFedPush sets the value of this property. Calling IsForgeFedPush + // afterwards returns true. + SetForgeFedPush(v ForgeFedPush) + // SetForgeFedRepository sets the value of this property. Calling + // IsForgeFedRepository afterwards returns true. + SetForgeFedRepository(v ForgeFedRepository) + // SetForgeFedTicket sets the value of this property. Calling + // IsForgeFedTicket afterwards returns true. + SetForgeFedTicket(v ForgeFedTicket) + // SetForgeFedTicketDependency sets the value of this property. Calling + // IsForgeFedTicketDependency afterwards returns true. + SetForgeFedTicketDependency(v ForgeFedTicketDependency) // SetIRI sets the value of this property. Calling IsIRI afterwards // returns true. SetIRI(v *url.URL) @@ -916,6 +982,30 @@ type ActivityStreamsLocationProperty interface { // the property "location". Invalidates iterators that are traversing // using Prev. AppendActivityStreamsView(v ActivityStreamsView) + // AppendForgeFedBranch appends a Branch value to the back of a list of + // the property "location". Invalidates iterators that are traversing + // using Prev. + AppendForgeFedBranch(v ForgeFedBranch) + // AppendForgeFedCommit appends a Commit value to the back of a list of + // the property "location". Invalidates iterators that are traversing + // using Prev. + AppendForgeFedCommit(v ForgeFedCommit) + // AppendForgeFedPush appends a Push value to the back of a list of the + // property "location". Invalidates iterators that are traversing + // using Prev. + AppendForgeFedPush(v ForgeFedPush) + // AppendForgeFedRepository appends a Repository value to the back of a + // list of the property "location". Invalidates iterators that are + // traversing using Prev. + AppendForgeFedRepository(v ForgeFedRepository) + // AppendForgeFedTicket appends a Ticket value to the back of a list of + // the property "location". Invalidates iterators that are traversing + // using Prev. + AppendForgeFedTicket(v ForgeFedTicket) + // AppendForgeFedTicketDependency appends a TicketDependency value to the + // back of a list of the property "location". Invalidates iterators + // that are traversing using Prev. + AppendForgeFedTicketDependency(v ForgeFedTicketDependency) // AppendIRI appends an IRI value to the back of a list of the property // "location" AppendIRI(v *url.URL) @@ -1172,6 +1262,31 @@ type ActivityStreamsLocationProperty interface { // for a property "location". Existing elements at that index and // higher are shifted back once. Invalidates all iterators. InsertActivityStreamsView(idx int, v ActivityStreamsView) + // InsertForgeFedBranch inserts a Branch value at the specified index for + // a property "location". Existing elements at that index and higher + // are shifted back once. Invalidates all iterators. + InsertForgeFedBranch(idx int, v ForgeFedBranch) + // InsertForgeFedCommit inserts a Commit value at the specified index for + // a property "location". Existing elements at that index and higher + // are shifted back once. Invalidates all iterators. + InsertForgeFedCommit(idx int, v ForgeFedCommit) + // InsertForgeFedPush inserts a Push value at the specified index for a + // property "location". Existing elements at that index and higher are + // shifted back once. Invalidates all iterators. + InsertForgeFedPush(idx int, v ForgeFedPush) + // InsertForgeFedRepository inserts a Repository value at the specified + // index for a property "location". Existing elements at that index + // and higher are shifted back once. Invalidates all iterators. + InsertForgeFedRepository(idx int, v ForgeFedRepository) + // InsertForgeFedTicket inserts a Ticket value at the specified index for + // a property "location". Existing elements at that index and higher + // are shifted back once. Invalidates all iterators. + InsertForgeFedTicket(idx int, v ForgeFedTicket) + // InsertForgeFedTicketDependency inserts a TicketDependency value at the + // specified index for a property "location". Existing elements at + // that index and higher are shifted back once. Invalidates all + // iterators. + InsertForgeFedTicketDependency(idx int, v ForgeFedTicketDependency) // Insert inserts an IRI value at the specified index for a property // "location". Existing elements at that index and higher are shifted // back once. Invalidates all iterators. @@ -1382,6 +1497,25 @@ type ActivityStreamsLocationProperty interface { // PrependActivityStreamsView prepends a View value to the front of a list // of the property "location". Invalidates all iterators. PrependActivityStreamsView(v ActivityStreamsView) + // PrependForgeFedBranch prepends a Branch value to the front of a list of + // the property "location". Invalidates all iterators. + PrependForgeFedBranch(v ForgeFedBranch) + // PrependForgeFedCommit prepends a Commit value to the front of a list of + // the property "location". Invalidates all iterators. + PrependForgeFedCommit(v ForgeFedCommit) + // PrependForgeFedPush prepends a Push value to the front of a list of the + // property "location". Invalidates all iterators. + PrependForgeFedPush(v ForgeFedPush) + // PrependForgeFedRepository prepends a Repository value to the front of a + // list of the property "location". Invalidates all iterators. + PrependForgeFedRepository(v ForgeFedRepository) + // PrependForgeFedTicket prepends a Ticket value to the front of a list of + // the property "location". Invalidates all iterators. + PrependForgeFedTicket(v ForgeFedTicket) + // PrependForgeFedTicketDependency prepends a TicketDependency value to + // the front of a list of the property "location". Invalidates all + // iterators. + PrependForgeFedTicketDependency(v ForgeFedTicketDependency) // PrependIRI prepends an IRI value to the front of a list of the property // "location". PrependIRI(v *url.URL) @@ -1621,6 +1755,30 @@ type ActivityStreamsLocationProperty interface { // for the property "location". Panics if the index is out of bounds. // Invalidates all iterators. SetActivityStreamsView(idx int, v ActivityStreamsView) + // SetForgeFedBranch sets a Branch value to be at the specified index for + // the property "location". Panics if the index is out of bounds. + // Invalidates all iterators. + SetForgeFedBranch(idx int, v ForgeFedBranch) + // SetForgeFedCommit sets a Commit value to be at the specified index for + // the property "location". Panics if the index is out of bounds. + // Invalidates all iterators. + SetForgeFedCommit(idx int, v ForgeFedCommit) + // SetForgeFedPush sets a Push value to be at the specified index for the + // property "location". Panics if the index is out of bounds. + // Invalidates all iterators. + SetForgeFedPush(idx int, v ForgeFedPush) + // SetForgeFedRepository sets a Repository value to be at the specified + // index for the property "location". Panics if the index is out of + // bounds. Invalidates all iterators. + SetForgeFedRepository(idx int, v ForgeFedRepository) + // SetForgeFedTicket sets a Ticket value to be at the specified index for + // the property "location". Panics if the index is out of bounds. + // Invalidates all iterators. + SetForgeFedTicket(idx int, v ForgeFedTicket) + // SetForgeFedTicketDependency sets a TicketDependency value to be at the + // specified index for the property "location". Panics if the index is + // out of bounds. Invalidates all iterators. + SetForgeFedTicketDependency(idx int, v ForgeFedTicketDependency) // SetIRI sets an IRI value to be at the specified index for the property // "location". Panics if the index is out of bounds. SetIRI(idx int, v *url.URL) diff --git a/streams/vocab/gen_property_activitystreams_object_interface.go b/streams/vocab/gen_property_activitystreams_object_interface.go index c505483..6feaa13 100644 --- a/streams/vocab/gen_property_activitystreams_object_interface.go +++ b/streams/vocab/gen_property_activitystreams_object_interface.go @@ -225,6 +225,29 @@ type ActivityStreamsObjectPropertyIterator interface { // IsActivityStreamsView returns false, GetActivityStreamsView will // return an arbitrary value. GetActivityStreamsView() ActivityStreamsView + // GetForgeFedBranch returns the value of this property. When + // IsForgeFedBranch returns false, GetForgeFedBranch will return an + // arbitrary value. + GetForgeFedBranch() ForgeFedBranch + // GetForgeFedCommit returns the value of this property. When + // IsForgeFedCommit returns false, GetForgeFedCommit will return an + // arbitrary value. + GetForgeFedCommit() ForgeFedCommit + // GetForgeFedPush returns the value of this property. When IsForgeFedPush + // returns false, GetForgeFedPush will return an arbitrary value. + GetForgeFedPush() ForgeFedPush + // GetForgeFedRepository returns the value of this property. When + // IsForgeFedRepository returns false, GetForgeFedRepository will + // return an arbitrary value. + GetForgeFedRepository() ForgeFedRepository + // GetForgeFedTicket returns the value of this property. When + // IsForgeFedTicket returns false, GetForgeFedTicket will return an + // arbitrary value. + GetForgeFedTicket() ForgeFedTicket + // GetForgeFedTicketDependency returns the value of this property. When + // IsForgeFedTicketDependency returns false, + // GetForgeFedTicketDependency will return an arbitrary value. + GetForgeFedTicketDependency() ForgeFedTicketDependency // GetIRI returns the IRI of this property. When IsIRI returns false, // GetIRI will return an arbitrary value. GetIRI() *url.URL @@ -473,6 +496,31 @@ type ActivityStreamsObjectPropertyIterator interface { // "View". When true, use the GetActivityStreamsView and // SetActivityStreamsView methods to access and set this property. IsActivityStreamsView() bool + // IsForgeFedBranch returns true if this property has a type of "Branch". + // When true, use the GetForgeFedBranch and SetForgeFedBranch methods + // to access and set this property. + IsForgeFedBranch() bool + // IsForgeFedCommit returns true if this property has a type of "Commit". + // When true, use the GetForgeFedCommit and SetForgeFedCommit methods + // to access and set this property. + IsForgeFedCommit() bool + // IsForgeFedPush returns true if this property has a type of "Push". When + // true, use the GetForgeFedPush and SetForgeFedPush methods to access + // and set this property. + IsForgeFedPush() bool + // IsForgeFedRepository returns true if this property has a type of + // "Repository". When true, use the GetForgeFedRepository and + // SetForgeFedRepository methods to access and set this property. + IsForgeFedRepository() bool + // IsForgeFedTicket returns true if this property has a type of "Ticket". + // When true, use the GetForgeFedTicket and SetForgeFedTicket methods + // to access and set this property. + IsForgeFedTicket() bool + // IsForgeFedTicketDependency returns true if this property has a type of + // "TicketDependency". When true, use the GetForgeFedTicketDependency + // and SetForgeFedTicketDependency methods to access and set this + // property. + IsForgeFedTicketDependency() bool // IsIRI returns true if this property is an IRI. When true, use GetIRI // and SetIRI to access and set this property IsIRI() bool @@ -669,6 +717,24 @@ type ActivityStreamsObjectPropertyIterator interface { // SetActivityStreamsView sets the value of this property. Calling // IsActivityStreamsView afterwards returns true. SetActivityStreamsView(v ActivityStreamsView) + // SetForgeFedBranch sets the value of this property. Calling + // IsForgeFedBranch afterwards returns true. + SetForgeFedBranch(v ForgeFedBranch) + // SetForgeFedCommit sets the value of this property. Calling + // IsForgeFedCommit afterwards returns true. + SetForgeFedCommit(v ForgeFedCommit) + // SetForgeFedPush sets the value of this property. Calling IsForgeFedPush + // afterwards returns true. + SetForgeFedPush(v ForgeFedPush) + // SetForgeFedRepository sets the value of this property. Calling + // IsForgeFedRepository afterwards returns true. + SetForgeFedRepository(v ForgeFedRepository) + // SetForgeFedTicket sets the value of this property. Calling + // IsForgeFedTicket afterwards returns true. + SetForgeFedTicket(v ForgeFedTicket) + // SetForgeFedTicketDependency sets the value of this property. Calling + // IsForgeFedTicketDependency afterwards returns true. + SetForgeFedTicketDependency(v ForgeFedTicketDependency) // SetIRI sets the value of this property. Calling IsIRI afterwards // returns true. SetIRI(v *url.URL) @@ -937,6 +1003,30 @@ type ActivityStreamsObjectProperty interface { // the property "object". Invalidates iterators that are traversing // using Prev. AppendActivityStreamsView(v ActivityStreamsView) + // AppendForgeFedBranch appends a Branch value to the back of a list of + // the property "object". Invalidates iterators that are traversing + // using Prev. + AppendForgeFedBranch(v ForgeFedBranch) + // AppendForgeFedCommit appends a Commit value to the back of a list of + // the property "object". Invalidates iterators that are traversing + // using Prev. + AppendForgeFedCommit(v ForgeFedCommit) + // AppendForgeFedPush appends a Push value to the back of a list of the + // property "object". Invalidates iterators that are traversing using + // Prev. + AppendForgeFedPush(v ForgeFedPush) + // AppendForgeFedRepository appends a Repository value to the back of a + // list of the property "object". Invalidates iterators that are + // traversing using Prev. + AppendForgeFedRepository(v ForgeFedRepository) + // AppendForgeFedTicket appends a Ticket value to the back of a list of + // the property "object". Invalidates iterators that are traversing + // using Prev. + AppendForgeFedTicket(v ForgeFedTicket) + // AppendForgeFedTicketDependency appends a TicketDependency value to the + // back of a list of the property "object". Invalidates iterators that + // are traversing using Prev. + AppendForgeFedTicketDependency(v ForgeFedTicketDependency) // AppendIRI appends an IRI value to the back of a list of the property // "object" AppendIRI(v *url.URL) @@ -1188,6 +1278,30 @@ type ActivityStreamsObjectProperty interface { // for a property "object". Existing elements at that index and higher // are shifted back once. Invalidates all iterators. InsertActivityStreamsView(idx int, v ActivityStreamsView) + // InsertForgeFedBranch inserts a Branch value at the specified index for + // a property "object". Existing elements at that index and higher are + // shifted back once. Invalidates all iterators. + InsertForgeFedBranch(idx int, v ForgeFedBranch) + // InsertForgeFedCommit inserts a Commit value at the specified index for + // a property "object". Existing elements at that index and higher are + // shifted back once. Invalidates all iterators. + InsertForgeFedCommit(idx int, v ForgeFedCommit) + // InsertForgeFedPush inserts a Push value at the specified index for a + // property "object". Existing elements at that index and higher are + // shifted back once. Invalidates all iterators. + InsertForgeFedPush(idx int, v ForgeFedPush) + // InsertForgeFedRepository inserts a Repository value at the specified + // index for a property "object". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertForgeFedRepository(idx int, v ForgeFedRepository) + // InsertForgeFedTicket inserts a Ticket value at the specified index for + // a property "object". Existing elements at that index and higher are + // shifted back once. Invalidates all iterators. + InsertForgeFedTicket(idx int, v ForgeFedTicket) + // InsertForgeFedTicketDependency inserts a TicketDependency value at the + // specified index for a property "object". Existing elements at that + // index and higher are shifted back once. Invalidates all iterators. + InsertForgeFedTicketDependency(idx int, v ForgeFedTicketDependency) // Insert inserts an IRI value at the specified index for a property // "object". Existing elements at that index and higher are shifted // back once. Invalidates all iterators. @@ -1394,6 +1508,25 @@ type ActivityStreamsObjectProperty interface { // PrependActivityStreamsView prepends a View value to the front of a list // of the property "object". Invalidates all iterators. PrependActivityStreamsView(v ActivityStreamsView) + // PrependForgeFedBranch prepends a Branch value to the front of a list of + // the property "object". Invalidates all iterators. + PrependForgeFedBranch(v ForgeFedBranch) + // PrependForgeFedCommit prepends a Commit value to the front of a list of + // the property "object". Invalidates all iterators. + PrependForgeFedCommit(v ForgeFedCommit) + // PrependForgeFedPush prepends a Push value to the front of a list of the + // property "object". Invalidates all iterators. + PrependForgeFedPush(v ForgeFedPush) + // PrependForgeFedRepository prepends a Repository value to the front of a + // list of the property "object". Invalidates all iterators. + PrependForgeFedRepository(v ForgeFedRepository) + // PrependForgeFedTicket prepends a Ticket value to the front of a list of + // the property "object". Invalidates all iterators. + PrependForgeFedTicket(v ForgeFedTicket) + // PrependForgeFedTicketDependency prepends a TicketDependency value to + // the front of a list of the property "object". Invalidates all + // iterators. + PrependForgeFedTicketDependency(v ForgeFedTicketDependency) // PrependIRI prepends an IRI value to the front of a list of the property // "object". PrependIRI(v *url.URL) @@ -1633,6 +1766,30 @@ type ActivityStreamsObjectProperty interface { // for the property "object". Panics if the index is out of bounds. // Invalidates all iterators. SetActivityStreamsView(idx int, v ActivityStreamsView) + // SetForgeFedBranch sets a Branch value to be at the specified index for + // the property "object". Panics if the index is out of bounds. + // Invalidates all iterators. + SetForgeFedBranch(idx int, v ForgeFedBranch) + // SetForgeFedCommit sets a Commit value to be at the specified index for + // the property "object". Panics if the index is out of bounds. + // Invalidates all iterators. + SetForgeFedCommit(idx int, v ForgeFedCommit) + // SetForgeFedPush sets a Push value to be at the specified index for the + // property "object". Panics if the index is out of bounds. + // Invalidates all iterators. + SetForgeFedPush(idx int, v ForgeFedPush) + // SetForgeFedRepository sets a Repository value to be at the specified + // index for the property "object". Panics if the index is out of + // bounds. Invalidates all iterators. + SetForgeFedRepository(idx int, v ForgeFedRepository) + // SetForgeFedTicket sets a Ticket value to be at the specified index for + // the property "object". Panics if the index is out of bounds. + // Invalidates all iterators. + SetForgeFedTicket(idx int, v ForgeFedTicket) + // SetForgeFedTicketDependency sets a TicketDependency value to be at the + // specified index for the property "object". Panics if the index is + // out of bounds. Invalidates all iterators. + SetForgeFedTicketDependency(idx int, v ForgeFedTicketDependency) // SetIRI sets an IRI value to be at the specified index for the property // "object". Panics if the index is out of bounds. SetIRI(idx int, v *url.URL) diff --git a/streams/vocab/gen_property_activitystreams_oneOf_interface.go b/streams/vocab/gen_property_activitystreams_oneOf_interface.go index 4dcb4e0..e8c8fa9 100644 --- a/streams/vocab/gen_property_activitystreams_oneOf_interface.go +++ b/streams/vocab/gen_property_activitystreams_oneOf_interface.go @@ -225,6 +225,29 @@ type ActivityStreamsOneOfPropertyIterator interface { // IsActivityStreamsView returns false, GetActivityStreamsView will // return an arbitrary value. GetActivityStreamsView() ActivityStreamsView + // GetForgeFedBranch returns the value of this property. When + // IsForgeFedBranch returns false, GetForgeFedBranch will return an + // arbitrary value. + GetForgeFedBranch() ForgeFedBranch + // GetForgeFedCommit returns the value of this property. When + // IsForgeFedCommit returns false, GetForgeFedCommit will return an + // arbitrary value. + GetForgeFedCommit() ForgeFedCommit + // GetForgeFedPush returns the value of this property. When IsForgeFedPush + // returns false, GetForgeFedPush will return an arbitrary value. + GetForgeFedPush() ForgeFedPush + // GetForgeFedRepository returns the value of this property. When + // IsForgeFedRepository returns false, GetForgeFedRepository will + // return an arbitrary value. + GetForgeFedRepository() ForgeFedRepository + // GetForgeFedTicket returns the value of this property. When + // IsForgeFedTicket returns false, GetForgeFedTicket will return an + // arbitrary value. + GetForgeFedTicket() ForgeFedTicket + // GetForgeFedTicketDependency returns the value of this property. When + // IsForgeFedTicketDependency returns false, + // GetForgeFedTicketDependency will return an arbitrary value. + GetForgeFedTicketDependency() ForgeFedTicketDependency // GetIRI returns the IRI of this property. When IsIRI returns false, // GetIRI will return an arbitrary value. GetIRI() *url.URL @@ -473,6 +496,31 @@ type ActivityStreamsOneOfPropertyIterator interface { // "View". When true, use the GetActivityStreamsView and // SetActivityStreamsView methods to access and set this property. IsActivityStreamsView() bool + // IsForgeFedBranch returns true if this property has a type of "Branch". + // When true, use the GetForgeFedBranch and SetForgeFedBranch methods + // to access and set this property. + IsForgeFedBranch() bool + // IsForgeFedCommit returns true if this property has a type of "Commit". + // When true, use the GetForgeFedCommit and SetForgeFedCommit methods + // to access and set this property. + IsForgeFedCommit() bool + // IsForgeFedPush returns true if this property has a type of "Push". When + // true, use the GetForgeFedPush and SetForgeFedPush methods to access + // and set this property. + IsForgeFedPush() bool + // IsForgeFedRepository returns true if this property has a type of + // "Repository". When true, use the GetForgeFedRepository and + // SetForgeFedRepository methods to access and set this property. + IsForgeFedRepository() bool + // IsForgeFedTicket returns true if this property has a type of "Ticket". + // When true, use the GetForgeFedTicket and SetForgeFedTicket methods + // to access and set this property. + IsForgeFedTicket() bool + // IsForgeFedTicketDependency returns true if this property has a type of + // "TicketDependency". When true, use the GetForgeFedTicketDependency + // and SetForgeFedTicketDependency methods to access and set this + // property. + IsForgeFedTicketDependency() bool // IsIRI returns true if this property is an IRI. When true, use GetIRI // and SetIRI to access and set this property IsIRI() bool @@ -669,6 +717,24 @@ type ActivityStreamsOneOfPropertyIterator interface { // SetActivityStreamsView sets the value of this property. Calling // IsActivityStreamsView afterwards returns true. SetActivityStreamsView(v ActivityStreamsView) + // SetForgeFedBranch sets the value of this property. Calling + // IsForgeFedBranch afterwards returns true. + SetForgeFedBranch(v ForgeFedBranch) + // SetForgeFedCommit sets the value of this property. Calling + // IsForgeFedCommit afterwards returns true. + SetForgeFedCommit(v ForgeFedCommit) + // SetForgeFedPush sets the value of this property. Calling IsForgeFedPush + // afterwards returns true. + SetForgeFedPush(v ForgeFedPush) + // SetForgeFedRepository sets the value of this property. Calling + // IsForgeFedRepository afterwards returns true. + SetForgeFedRepository(v ForgeFedRepository) + // SetForgeFedTicket sets the value of this property. Calling + // IsForgeFedTicket afterwards returns true. + SetForgeFedTicket(v ForgeFedTicket) + // SetForgeFedTicketDependency sets the value of this property. Calling + // IsForgeFedTicketDependency afterwards returns true. + SetForgeFedTicketDependency(v ForgeFedTicketDependency) // SetIRI sets the value of this property. Calling IsIRI afterwards // returns true. SetIRI(v *url.URL) @@ -919,6 +985,30 @@ type ActivityStreamsOneOfProperty interface { // the property "oneOf". Invalidates iterators that are traversing // using Prev. AppendActivityStreamsView(v ActivityStreamsView) + // AppendForgeFedBranch appends a Branch value to the back of a list of + // the property "oneOf". Invalidates iterators that are traversing + // using Prev. + AppendForgeFedBranch(v ForgeFedBranch) + // AppendForgeFedCommit appends a Commit value to the back of a list of + // the property "oneOf". Invalidates iterators that are traversing + // using Prev. + AppendForgeFedCommit(v ForgeFedCommit) + // AppendForgeFedPush appends a Push value to the back of a list of the + // property "oneOf". Invalidates iterators that are traversing using + // Prev. + AppendForgeFedPush(v ForgeFedPush) + // AppendForgeFedRepository appends a Repository value to the back of a + // list of the property "oneOf". Invalidates iterators that are + // traversing using Prev. + AppendForgeFedRepository(v ForgeFedRepository) + // AppendForgeFedTicket appends a Ticket value to the back of a list of + // the property "oneOf". Invalidates iterators that are traversing + // using Prev. + AppendForgeFedTicket(v ForgeFedTicket) + // AppendForgeFedTicketDependency appends a TicketDependency value to the + // back of a list of the property "oneOf". Invalidates iterators that + // are traversing using Prev. + AppendForgeFedTicketDependency(v ForgeFedTicketDependency) // AppendIRI appends an IRI value to the back of a list of the property // "oneOf" AppendIRI(v *url.URL) @@ -1170,6 +1260,30 @@ type ActivityStreamsOneOfProperty interface { // for a property "oneOf". Existing elements at that index and higher // are shifted back once. Invalidates all iterators. InsertActivityStreamsView(idx int, v ActivityStreamsView) + // InsertForgeFedBranch inserts a Branch value at the specified index for + // a property "oneOf". Existing elements at that index and higher are + // shifted back once. Invalidates all iterators. + InsertForgeFedBranch(idx int, v ForgeFedBranch) + // InsertForgeFedCommit inserts a Commit value at the specified index for + // a property "oneOf". Existing elements at that index and higher are + // shifted back once. Invalidates all iterators. + InsertForgeFedCommit(idx int, v ForgeFedCommit) + // InsertForgeFedPush inserts a Push value at the specified index for a + // property "oneOf". Existing elements at that index and higher are + // shifted back once. Invalidates all iterators. + InsertForgeFedPush(idx int, v ForgeFedPush) + // InsertForgeFedRepository inserts a Repository value at the specified + // index for a property "oneOf". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertForgeFedRepository(idx int, v ForgeFedRepository) + // InsertForgeFedTicket inserts a Ticket value at the specified index for + // a property "oneOf". Existing elements at that index and higher are + // shifted back once. Invalidates all iterators. + InsertForgeFedTicket(idx int, v ForgeFedTicket) + // InsertForgeFedTicketDependency inserts a TicketDependency value at the + // specified index for a property "oneOf". Existing elements at that + // index and higher are shifted back once. Invalidates all iterators. + InsertForgeFedTicketDependency(idx int, v ForgeFedTicketDependency) // Insert inserts an IRI value at the specified index for a property // "oneOf". Existing elements at that index and higher are shifted // back once. Invalidates all iterators. @@ -1376,6 +1490,25 @@ type ActivityStreamsOneOfProperty interface { // PrependActivityStreamsView prepends a View value to the front of a list // of the property "oneOf". Invalidates all iterators. PrependActivityStreamsView(v ActivityStreamsView) + // PrependForgeFedBranch prepends a Branch value to the front of a list of + // the property "oneOf". Invalidates all iterators. + PrependForgeFedBranch(v ForgeFedBranch) + // PrependForgeFedCommit prepends a Commit value to the front of a list of + // the property "oneOf". Invalidates all iterators. + PrependForgeFedCommit(v ForgeFedCommit) + // PrependForgeFedPush prepends a Push value to the front of a list of the + // property "oneOf". Invalidates all iterators. + PrependForgeFedPush(v ForgeFedPush) + // PrependForgeFedRepository prepends a Repository value to the front of a + // list of the property "oneOf". Invalidates all iterators. + PrependForgeFedRepository(v ForgeFedRepository) + // PrependForgeFedTicket prepends a Ticket value to the front of a list of + // the property "oneOf". Invalidates all iterators. + PrependForgeFedTicket(v ForgeFedTicket) + // PrependForgeFedTicketDependency prepends a TicketDependency value to + // the front of a list of the property "oneOf". Invalidates all + // iterators. + PrependForgeFedTicketDependency(v ForgeFedTicketDependency) // PrependIRI prepends an IRI value to the front of a list of the property // "oneOf". PrependIRI(v *url.URL) @@ -1615,6 +1748,30 @@ type ActivityStreamsOneOfProperty interface { // for the property "oneOf". Panics if the index is out of bounds. // Invalidates all iterators. SetActivityStreamsView(idx int, v ActivityStreamsView) + // SetForgeFedBranch sets a Branch value to be at the specified index for + // the property "oneOf". Panics if the index is out of bounds. + // Invalidates all iterators. + SetForgeFedBranch(idx int, v ForgeFedBranch) + // SetForgeFedCommit sets a Commit value to be at the specified index for + // the property "oneOf". Panics if the index is out of bounds. + // Invalidates all iterators. + SetForgeFedCommit(idx int, v ForgeFedCommit) + // SetForgeFedPush sets a Push value to be at the specified index for the + // property "oneOf". Panics if the index is out of bounds. Invalidates + // all iterators. + SetForgeFedPush(idx int, v ForgeFedPush) + // SetForgeFedRepository sets a Repository value to be at the specified + // index for the property "oneOf". Panics if the index is out of + // bounds. Invalidates all iterators. + SetForgeFedRepository(idx int, v ForgeFedRepository) + // SetForgeFedTicket sets a Ticket value to be at the specified index for + // the property "oneOf". Panics if the index is out of bounds. + // Invalidates all iterators. + SetForgeFedTicket(idx int, v ForgeFedTicket) + // SetForgeFedTicketDependency sets a TicketDependency value to be at the + // specified index for the property "oneOf". Panics if the index is + // out of bounds. Invalidates all iterators. + SetForgeFedTicketDependency(idx int, v ForgeFedTicketDependency) // SetIRI sets an IRI value to be at the specified index for the property // "oneOf". Panics if the index is out of bounds. SetIRI(idx int, v *url.URL) diff --git a/streams/vocab/gen_property_activitystreams_orderedItems_interface.go b/streams/vocab/gen_property_activitystreams_orderedItems_interface.go index 102f039..a5ef17c 100644 --- a/streams/vocab/gen_property_activitystreams_orderedItems_interface.go +++ b/streams/vocab/gen_property_activitystreams_orderedItems_interface.go @@ -225,6 +225,29 @@ type ActivityStreamsOrderedItemsPropertyIterator interface { // IsActivityStreamsView returns false, GetActivityStreamsView will // return an arbitrary value. GetActivityStreamsView() ActivityStreamsView + // GetForgeFedBranch returns the value of this property. When + // IsForgeFedBranch returns false, GetForgeFedBranch will return an + // arbitrary value. + GetForgeFedBranch() ForgeFedBranch + // GetForgeFedCommit returns the value of this property. When + // IsForgeFedCommit returns false, GetForgeFedCommit will return an + // arbitrary value. + GetForgeFedCommit() ForgeFedCommit + // GetForgeFedPush returns the value of this property. When IsForgeFedPush + // returns false, GetForgeFedPush will return an arbitrary value. + GetForgeFedPush() ForgeFedPush + // GetForgeFedRepository returns the value of this property. When + // IsForgeFedRepository returns false, GetForgeFedRepository will + // return an arbitrary value. + GetForgeFedRepository() ForgeFedRepository + // GetForgeFedTicket returns the value of this property. When + // IsForgeFedTicket returns false, GetForgeFedTicket will return an + // arbitrary value. + GetForgeFedTicket() ForgeFedTicket + // GetForgeFedTicketDependency returns the value of this property. When + // IsForgeFedTicketDependency returns false, + // GetForgeFedTicketDependency will return an arbitrary value. + GetForgeFedTicketDependency() ForgeFedTicketDependency // GetIRI returns the IRI of this property. When IsIRI returns false, // GetIRI will return an arbitrary value. GetIRI() *url.URL @@ -473,6 +496,31 @@ type ActivityStreamsOrderedItemsPropertyIterator interface { // "View". When true, use the GetActivityStreamsView and // SetActivityStreamsView methods to access and set this property. IsActivityStreamsView() bool + // IsForgeFedBranch returns true if this property has a type of "Branch". + // When true, use the GetForgeFedBranch and SetForgeFedBranch methods + // to access and set this property. + IsForgeFedBranch() bool + // IsForgeFedCommit returns true if this property has a type of "Commit". + // When true, use the GetForgeFedCommit and SetForgeFedCommit methods + // to access and set this property. + IsForgeFedCommit() bool + // IsForgeFedPush returns true if this property has a type of "Push". When + // true, use the GetForgeFedPush and SetForgeFedPush methods to access + // and set this property. + IsForgeFedPush() bool + // IsForgeFedRepository returns true if this property has a type of + // "Repository". When true, use the GetForgeFedRepository and + // SetForgeFedRepository methods to access and set this property. + IsForgeFedRepository() bool + // IsForgeFedTicket returns true if this property has a type of "Ticket". + // When true, use the GetForgeFedTicket and SetForgeFedTicket methods + // to access and set this property. + IsForgeFedTicket() bool + // IsForgeFedTicketDependency returns true if this property has a type of + // "TicketDependency". When true, use the GetForgeFedTicketDependency + // and SetForgeFedTicketDependency methods to access and set this + // property. + IsForgeFedTicketDependency() bool // IsIRI returns true if this property is an IRI. When true, use GetIRI // and SetIRI to access and set this property IsIRI() bool @@ -669,6 +717,24 @@ type ActivityStreamsOrderedItemsPropertyIterator interface { // SetActivityStreamsView sets the value of this property. Calling // IsActivityStreamsView afterwards returns true. SetActivityStreamsView(v ActivityStreamsView) + // SetForgeFedBranch sets the value of this property. Calling + // IsForgeFedBranch afterwards returns true. + SetForgeFedBranch(v ForgeFedBranch) + // SetForgeFedCommit sets the value of this property. Calling + // IsForgeFedCommit afterwards returns true. + SetForgeFedCommit(v ForgeFedCommit) + // SetForgeFedPush sets the value of this property. Calling IsForgeFedPush + // afterwards returns true. + SetForgeFedPush(v ForgeFedPush) + // SetForgeFedRepository sets the value of this property. Calling + // IsForgeFedRepository afterwards returns true. + SetForgeFedRepository(v ForgeFedRepository) + // SetForgeFedTicket sets the value of this property. Calling + // IsForgeFedTicket afterwards returns true. + SetForgeFedTicket(v ForgeFedTicket) + // SetForgeFedTicketDependency sets the value of this property. Calling + // IsForgeFedTicketDependency afterwards returns true. + SetForgeFedTicketDependency(v ForgeFedTicketDependency) // SetIRI sets the value of this property. Calling IsIRI afterwards // returns true. SetIRI(v *url.URL) @@ -920,6 +986,30 @@ type ActivityStreamsOrderedItemsProperty interface { // the property "orderedItems". Invalidates iterators that are // traversing using Prev. AppendActivityStreamsView(v ActivityStreamsView) + // AppendForgeFedBranch appends a Branch value to the back of a list of + // the property "orderedItems". Invalidates iterators that are + // traversing using Prev. + AppendForgeFedBranch(v ForgeFedBranch) + // AppendForgeFedCommit appends a Commit value to the back of a list of + // the property "orderedItems". Invalidates iterators that are + // traversing using Prev. + AppendForgeFedCommit(v ForgeFedCommit) + // AppendForgeFedPush appends a Push value to the back of a list of the + // property "orderedItems". Invalidates iterators that are traversing + // using Prev. + AppendForgeFedPush(v ForgeFedPush) + // AppendForgeFedRepository appends a Repository value to the back of a + // list of the property "orderedItems". Invalidates iterators that are + // traversing using Prev. + AppendForgeFedRepository(v ForgeFedRepository) + // AppendForgeFedTicket appends a Ticket value to the back of a list of + // the property "orderedItems". Invalidates iterators that are + // traversing using Prev. + AppendForgeFedTicket(v ForgeFedTicket) + // AppendForgeFedTicketDependency appends a TicketDependency value to the + // back of a list of the property "orderedItems". Invalidates + // iterators that are traversing using Prev. + AppendForgeFedTicketDependency(v ForgeFedTicketDependency) // AppendIRI appends an IRI value to the back of a list of the property // "orderedItems" AppendIRI(v *url.URL) @@ -1176,6 +1266,31 @@ type ActivityStreamsOrderedItemsProperty interface { // for a property "orderedItems". Existing elements at that index and // higher are shifted back once. Invalidates all iterators. InsertActivityStreamsView(idx int, v ActivityStreamsView) + // InsertForgeFedBranch inserts a Branch value at the specified index for + // a property "orderedItems". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertForgeFedBranch(idx int, v ForgeFedBranch) + // InsertForgeFedCommit inserts a Commit value at the specified index for + // a property "orderedItems". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertForgeFedCommit(idx int, v ForgeFedCommit) + // InsertForgeFedPush inserts a Push value at the specified index for a + // property "orderedItems". Existing elements at that index and higher + // are shifted back once. Invalidates all iterators. + InsertForgeFedPush(idx int, v ForgeFedPush) + // InsertForgeFedRepository inserts a Repository value at the specified + // index for a property "orderedItems". Existing elements at that + // index and higher are shifted back once. Invalidates all iterators. + InsertForgeFedRepository(idx int, v ForgeFedRepository) + // InsertForgeFedTicket inserts a Ticket value at the specified index for + // a property "orderedItems". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertForgeFedTicket(idx int, v ForgeFedTicket) + // InsertForgeFedTicketDependency inserts a TicketDependency value at the + // specified index for a property "orderedItems". Existing elements at + // that index and higher are shifted back once. Invalidates all + // iterators. + InsertForgeFedTicketDependency(idx int, v ForgeFedTicketDependency) // Insert inserts an IRI value at the specified index for a property // "orderedItems". Existing elements at that index and higher are // shifted back once. Invalidates all iterators. @@ -1387,6 +1502,25 @@ type ActivityStreamsOrderedItemsProperty interface { // PrependActivityStreamsView prepends a View value to the front of a list // of the property "orderedItems". Invalidates all iterators. PrependActivityStreamsView(v ActivityStreamsView) + // PrependForgeFedBranch prepends a Branch value to the front of a list of + // the property "orderedItems". Invalidates all iterators. + PrependForgeFedBranch(v ForgeFedBranch) + // PrependForgeFedCommit prepends a Commit value to the front of a list of + // the property "orderedItems". Invalidates all iterators. + PrependForgeFedCommit(v ForgeFedCommit) + // PrependForgeFedPush prepends a Push value to the front of a list of the + // property "orderedItems". Invalidates all iterators. + PrependForgeFedPush(v ForgeFedPush) + // PrependForgeFedRepository prepends a Repository value to the front of a + // list of the property "orderedItems". Invalidates all iterators. + PrependForgeFedRepository(v ForgeFedRepository) + // PrependForgeFedTicket prepends a Ticket value to the front of a list of + // the property "orderedItems". Invalidates all iterators. + PrependForgeFedTicket(v ForgeFedTicket) + // PrependForgeFedTicketDependency prepends a TicketDependency value to + // the front of a list of the property "orderedItems". Invalidates all + // iterators. + PrependForgeFedTicketDependency(v ForgeFedTicketDependency) // PrependIRI prepends an IRI value to the front of a list of the property // "orderedItems". PrependIRI(v *url.URL) @@ -1626,6 +1760,30 @@ type ActivityStreamsOrderedItemsProperty interface { // for the property "orderedItems". Panics if the index is out of // bounds. Invalidates all iterators. SetActivityStreamsView(idx int, v ActivityStreamsView) + // SetForgeFedBranch sets a Branch value to be at the specified index for + // the property "orderedItems". Panics if the index is out of bounds. + // Invalidates all iterators. + SetForgeFedBranch(idx int, v ForgeFedBranch) + // SetForgeFedCommit sets a Commit value to be at the specified index for + // the property "orderedItems". Panics if the index is out of bounds. + // Invalidates all iterators. + SetForgeFedCommit(idx int, v ForgeFedCommit) + // SetForgeFedPush sets a Push value to be at the specified index for the + // property "orderedItems". Panics if the index is out of bounds. + // Invalidates all iterators. + SetForgeFedPush(idx int, v ForgeFedPush) + // SetForgeFedRepository sets a Repository value to be at the specified + // index for the property "orderedItems". Panics if the index is out + // of bounds. Invalidates all iterators. + SetForgeFedRepository(idx int, v ForgeFedRepository) + // SetForgeFedTicket sets a Ticket value to be at the specified index for + // the property "orderedItems". Panics if the index is out of bounds. + // Invalidates all iterators. + SetForgeFedTicket(idx int, v ForgeFedTicket) + // SetForgeFedTicketDependency sets a TicketDependency value to be at the + // specified index for the property "orderedItems". Panics if the + // index is out of bounds. Invalidates all iterators. + SetForgeFedTicketDependency(idx int, v ForgeFedTicketDependency) // SetIRI sets an IRI value to be at the specified index for the property // "orderedItems". Panics if the index is out of bounds. SetIRI(idx int, v *url.URL) diff --git a/streams/vocab/gen_property_activitystreams_origin_interface.go b/streams/vocab/gen_property_activitystreams_origin_interface.go index 2d99560..3fb7edc 100644 --- a/streams/vocab/gen_property_activitystreams_origin_interface.go +++ b/streams/vocab/gen_property_activitystreams_origin_interface.go @@ -225,6 +225,29 @@ type ActivityStreamsOriginPropertyIterator interface { // IsActivityStreamsView returns false, GetActivityStreamsView will // return an arbitrary value. GetActivityStreamsView() ActivityStreamsView + // GetForgeFedBranch returns the value of this property. When + // IsForgeFedBranch returns false, GetForgeFedBranch will return an + // arbitrary value. + GetForgeFedBranch() ForgeFedBranch + // GetForgeFedCommit returns the value of this property. When + // IsForgeFedCommit returns false, GetForgeFedCommit will return an + // arbitrary value. + GetForgeFedCommit() ForgeFedCommit + // GetForgeFedPush returns the value of this property. When IsForgeFedPush + // returns false, GetForgeFedPush will return an arbitrary value. + GetForgeFedPush() ForgeFedPush + // GetForgeFedRepository returns the value of this property. When + // IsForgeFedRepository returns false, GetForgeFedRepository will + // return an arbitrary value. + GetForgeFedRepository() ForgeFedRepository + // GetForgeFedTicket returns the value of this property. When + // IsForgeFedTicket returns false, GetForgeFedTicket will return an + // arbitrary value. + GetForgeFedTicket() ForgeFedTicket + // GetForgeFedTicketDependency returns the value of this property. When + // IsForgeFedTicketDependency returns false, + // GetForgeFedTicketDependency will return an arbitrary value. + GetForgeFedTicketDependency() ForgeFedTicketDependency // GetIRI returns the IRI of this property. When IsIRI returns false, // GetIRI will return an arbitrary value. GetIRI() *url.URL @@ -473,6 +496,31 @@ type ActivityStreamsOriginPropertyIterator interface { // "View". When true, use the GetActivityStreamsView and // SetActivityStreamsView methods to access and set this property. IsActivityStreamsView() bool + // IsForgeFedBranch returns true if this property has a type of "Branch". + // When true, use the GetForgeFedBranch and SetForgeFedBranch methods + // to access and set this property. + IsForgeFedBranch() bool + // IsForgeFedCommit returns true if this property has a type of "Commit". + // When true, use the GetForgeFedCommit and SetForgeFedCommit methods + // to access and set this property. + IsForgeFedCommit() bool + // IsForgeFedPush returns true if this property has a type of "Push". When + // true, use the GetForgeFedPush and SetForgeFedPush methods to access + // and set this property. + IsForgeFedPush() bool + // IsForgeFedRepository returns true if this property has a type of + // "Repository". When true, use the GetForgeFedRepository and + // SetForgeFedRepository methods to access and set this property. + IsForgeFedRepository() bool + // IsForgeFedTicket returns true if this property has a type of "Ticket". + // When true, use the GetForgeFedTicket and SetForgeFedTicket methods + // to access and set this property. + IsForgeFedTicket() bool + // IsForgeFedTicketDependency returns true if this property has a type of + // "TicketDependency". When true, use the GetForgeFedTicketDependency + // and SetForgeFedTicketDependency methods to access and set this + // property. + IsForgeFedTicketDependency() bool // IsIRI returns true if this property is an IRI. When true, use GetIRI // and SetIRI to access and set this property IsIRI() bool @@ -669,6 +717,24 @@ type ActivityStreamsOriginPropertyIterator interface { // SetActivityStreamsView sets the value of this property. Calling // IsActivityStreamsView afterwards returns true. SetActivityStreamsView(v ActivityStreamsView) + // SetForgeFedBranch sets the value of this property. Calling + // IsForgeFedBranch afterwards returns true. + SetForgeFedBranch(v ForgeFedBranch) + // SetForgeFedCommit sets the value of this property. Calling + // IsForgeFedCommit afterwards returns true. + SetForgeFedCommit(v ForgeFedCommit) + // SetForgeFedPush sets the value of this property. Calling IsForgeFedPush + // afterwards returns true. + SetForgeFedPush(v ForgeFedPush) + // SetForgeFedRepository sets the value of this property. Calling + // IsForgeFedRepository afterwards returns true. + SetForgeFedRepository(v ForgeFedRepository) + // SetForgeFedTicket sets the value of this property. Calling + // IsForgeFedTicket afterwards returns true. + SetForgeFedTicket(v ForgeFedTicket) + // SetForgeFedTicketDependency sets the value of this property. Calling + // IsForgeFedTicketDependency afterwards returns true. + SetForgeFedTicketDependency(v ForgeFedTicketDependency) // SetIRI sets the value of this property. Calling IsIRI afterwards // returns true. SetIRI(v *url.URL) @@ -920,6 +986,30 @@ type ActivityStreamsOriginProperty interface { // the property "origin". Invalidates iterators that are traversing // using Prev. AppendActivityStreamsView(v ActivityStreamsView) + // AppendForgeFedBranch appends a Branch value to the back of a list of + // the property "origin". Invalidates iterators that are traversing + // using Prev. + AppendForgeFedBranch(v ForgeFedBranch) + // AppendForgeFedCommit appends a Commit value to the back of a list of + // the property "origin". Invalidates iterators that are traversing + // using Prev. + AppendForgeFedCommit(v ForgeFedCommit) + // AppendForgeFedPush appends a Push value to the back of a list of the + // property "origin". Invalidates iterators that are traversing using + // Prev. + AppendForgeFedPush(v ForgeFedPush) + // AppendForgeFedRepository appends a Repository value to the back of a + // list of the property "origin". Invalidates iterators that are + // traversing using Prev. + AppendForgeFedRepository(v ForgeFedRepository) + // AppendForgeFedTicket appends a Ticket value to the back of a list of + // the property "origin". Invalidates iterators that are traversing + // using Prev. + AppendForgeFedTicket(v ForgeFedTicket) + // AppendForgeFedTicketDependency appends a TicketDependency value to the + // back of a list of the property "origin". Invalidates iterators that + // are traversing using Prev. + AppendForgeFedTicketDependency(v ForgeFedTicketDependency) // AppendIRI appends an IRI value to the back of a list of the property // "origin" AppendIRI(v *url.URL) @@ -1171,6 +1261,30 @@ type ActivityStreamsOriginProperty interface { // for a property "origin". Existing elements at that index and higher // are shifted back once. Invalidates all iterators. InsertActivityStreamsView(idx int, v ActivityStreamsView) + // InsertForgeFedBranch inserts a Branch value at the specified index for + // a property "origin". Existing elements at that index and higher are + // shifted back once. Invalidates all iterators. + InsertForgeFedBranch(idx int, v ForgeFedBranch) + // InsertForgeFedCommit inserts a Commit value at the specified index for + // a property "origin". Existing elements at that index and higher are + // shifted back once. Invalidates all iterators. + InsertForgeFedCommit(idx int, v ForgeFedCommit) + // InsertForgeFedPush inserts a Push value at the specified index for a + // property "origin". Existing elements at that index and higher are + // shifted back once. Invalidates all iterators. + InsertForgeFedPush(idx int, v ForgeFedPush) + // InsertForgeFedRepository inserts a Repository value at the specified + // index for a property "origin". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertForgeFedRepository(idx int, v ForgeFedRepository) + // InsertForgeFedTicket inserts a Ticket value at the specified index for + // a property "origin". Existing elements at that index and higher are + // shifted back once. Invalidates all iterators. + InsertForgeFedTicket(idx int, v ForgeFedTicket) + // InsertForgeFedTicketDependency inserts a TicketDependency value at the + // specified index for a property "origin". Existing elements at that + // index and higher are shifted back once. Invalidates all iterators. + InsertForgeFedTicketDependency(idx int, v ForgeFedTicketDependency) // Insert inserts an IRI value at the specified index for a property // "origin". Existing elements at that index and higher are shifted // back once. Invalidates all iterators. @@ -1377,6 +1491,25 @@ type ActivityStreamsOriginProperty interface { // PrependActivityStreamsView prepends a View value to the front of a list // of the property "origin". Invalidates all iterators. PrependActivityStreamsView(v ActivityStreamsView) + // PrependForgeFedBranch prepends a Branch value to the front of a list of + // the property "origin". Invalidates all iterators. + PrependForgeFedBranch(v ForgeFedBranch) + // PrependForgeFedCommit prepends a Commit value to the front of a list of + // the property "origin". Invalidates all iterators. + PrependForgeFedCommit(v ForgeFedCommit) + // PrependForgeFedPush prepends a Push value to the front of a list of the + // property "origin". Invalidates all iterators. + PrependForgeFedPush(v ForgeFedPush) + // PrependForgeFedRepository prepends a Repository value to the front of a + // list of the property "origin". Invalidates all iterators. + PrependForgeFedRepository(v ForgeFedRepository) + // PrependForgeFedTicket prepends a Ticket value to the front of a list of + // the property "origin". Invalidates all iterators. + PrependForgeFedTicket(v ForgeFedTicket) + // PrependForgeFedTicketDependency prepends a TicketDependency value to + // the front of a list of the property "origin". Invalidates all + // iterators. + PrependForgeFedTicketDependency(v ForgeFedTicketDependency) // PrependIRI prepends an IRI value to the front of a list of the property // "origin". PrependIRI(v *url.URL) @@ -1616,6 +1749,30 @@ type ActivityStreamsOriginProperty interface { // for the property "origin". Panics if the index is out of bounds. // Invalidates all iterators. SetActivityStreamsView(idx int, v ActivityStreamsView) + // SetForgeFedBranch sets a Branch value to be at the specified index for + // the property "origin". Panics if the index is out of bounds. + // Invalidates all iterators. + SetForgeFedBranch(idx int, v ForgeFedBranch) + // SetForgeFedCommit sets a Commit value to be at the specified index for + // the property "origin". Panics if the index is out of bounds. + // Invalidates all iterators. + SetForgeFedCommit(idx int, v ForgeFedCommit) + // SetForgeFedPush sets a Push value to be at the specified index for the + // property "origin". Panics if the index is out of bounds. + // Invalidates all iterators. + SetForgeFedPush(idx int, v ForgeFedPush) + // SetForgeFedRepository sets a Repository value to be at the specified + // index for the property "origin". Panics if the index is out of + // bounds. Invalidates all iterators. + SetForgeFedRepository(idx int, v ForgeFedRepository) + // SetForgeFedTicket sets a Ticket value to be at the specified index for + // the property "origin". Panics if the index is out of bounds. + // Invalidates all iterators. + SetForgeFedTicket(idx int, v ForgeFedTicket) + // SetForgeFedTicketDependency sets a TicketDependency value to be at the + // specified index for the property "origin". Panics if the index is + // out of bounds. Invalidates all iterators. + SetForgeFedTicketDependency(idx int, v ForgeFedTicketDependency) // SetIRI sets an IRI value to be at the specified index for the property // "origin". Panics if the index is out of bounds. SetIRI(idx int, v *url.URL) diff --git a/streams/vocab/gen_property_activitystreams_preview_interface.go b/streams/vocab/gen_property_activitystreams_preview_interface.go index 522c517..d7045f9 100644 --- a/streams/vocab/gen_property_activitystreams_preview_interface.go +++ b/streams/vocab/gen_property_activitystreams_preview_interface.go @@ -225,6 +225,29 @@ type ActivityStreamsPreviewPropertyIterator interface { // IsActivityStreamsView returns false, GetActivityStreamsView will // return an arbitrary value. GetActivityStreamsView() ActivityStreamsView + // GetForgeFedBranch returns the value of this property. When + // IsForgeFedBranch returns false, GetForgeFedBranch will return an + // arbitrary value. + GetForgeFedBranch() ForgeFedBranch + // GetForgeFedCommit returns the value of this property. When + // IsForgeFedCommit returns false, GetForgeFedCommit will return an + // arbitrary value. + GetForgeFedCommit() ForgeFedCommit + // GetForgeFedPush returns the value of this property. When IsForgeFedPush + // returns false, GetForgeFedPush will return an arbitrary value. + GetForgeFedPush() ForgeFedPush + // GetForgeFedRepository returns the value of this property. When + // IsForgeFedRepository returns false, GetForgeFedRepository will + // return an arbitrary value. + GetForgeFedRepository() ForgeFedRepository + // GetForgeFedTicket returns the value of this property. When + // IsForgeFedTicket returns false, GetForgeFedTicket will return an + // arbitrary value. + GetForgeFedTicket() ForgeFedTicket + // GetForgeFedTicketDependency returns the value of this property. When + // IsForgeFedTicketDependency returns false, + // GetForgeFedTicketDependency will return an arbitrary value. + GetForgeFedTicketDependency() ForgeFedTicketDependency // GetIRI returns the IRI of this property. When IsIRI returns false, // GetIRI will return an arbitrary value. GetIRI() *url.URL @@ -473,6 +496,31 @@ type ActivityStreamsPreviewPropertyIterator interface { // "View". When true, use the GetActivityStreamsView and // SetActivityStreamsView methods to access and set this property. IsActivityStreamsView() bool + // IsForgeFedBranch returns true if this property has a type of "Branch". + // When true, use the GetForgeFedBranch and SetForgeFedBranch methods + // to access and set this property. + IsForgeFedBranch() bool + // IsForgeFedCommit returns true if this property has a type of "Commit". + // When true, use the GetForgeFedCommit and SetForgeFedCommit methods + // to access and set this property. + IsForgeFedCommit() bool + // IsForgeFedPush returns true if this property has a type of "Push". When + // true, use the GetForgeFedPush and SetForgeFedPush methods to access + // and set this property. + IsForgeFedPush() bool + // IsForgeFedRepository returns true if this property has a type of + // "Repository". When true, use the GetForgeFedRepository and + // SetForgeFedRepository methods to access and set this property. + IsForgeFedRepository() bool + // IsForgeFedTicket returns true if this property has a type of "Ticket". + // When true, use the GetForgeFedTicket and SetForgeFedTicket methods + // to access and set this property. + IsForgeFedTicket() bool + // IsForgeFedTicketDependency returns true if this property has a type of + // "TicketDependency". When true, use the GetForgeFedTicketDependency + // and SetForgeFedTicketDependency methods to access and set this + // property. + IsForgeFedTicketDependency() bool // IsIRI returns true if this property is an IRI. When true, use GetIRI // and SetIRI to access and set this property IsIRI() bool @@ -669,6 +717,24 @@ type ActivityStreamsPreviewPropertyIterator interface { // SetActivityStreamsView sets the value of this property. Calling // IsActivityStreamsView afterwards returns true. SetActivityStreamsView(v ActivityStreamsView) + // SetForgeFedBranch sets the value of this property. Calling + // IsForgeFedBranch afterwards returns true. + SetForgeFedBranch(v ForgeFedBranch) + // SetForgeFedCommit sets the value of this property. Calling + // IsForgeFedCommit afterwards returns true. + SetForgeFedCommit(v ForgeFedCommit) + // SetForgeFedPush sets the value of this property. Calling IsForgeFedPush + // afterwards returns true. + SetForgeFedPush(v ForgeFedPush) + // SetForgeFedRepository sets the value of this property. Calling + // IsForgeFedRepository afterwards returns true. + SetForgeFedRepository(v ForgeFedRepository) + // SetForgeFedTicket sets the value of this property. Calling + // IsForgeFedTicket afterwards returns true. + SetForgeFedTicket(v ForgeFedTicket) + // SetForgeFedTicketDependency sets the value of this property. Calling + // IsForgeFedTicketDependency afterwards returns true. + SetForgeFedTicketDependency(v ForgeFedTicketDependency) // SetIRI sets the value of this property. Calling IsIRI afterwards // returns true. SetIRI(v *url.URL) @@ -917,6 +983,30 @@ type ActivityStreamsPreviewProperty interface { // the property "preview". Invalidates iterators that are traversing // using Prev. AppendActivityStreamsView(v ActivityStreamsView) + // AppendForgeFedBranch appends a Branch value to the back of a list of + // the property "preview". Invalidates iterators that are traversing + // using Prev. + AppendForgeFedBranch(v ForgeFedBranch) + // AppendForgeFedCommit appends a Commit value to the back of a list of + // the property "preview". Invalidates iterators that are traversing + // using Prev. + AppendForgeFedCommit(v ForgeFedCommit) + // AppendForgeFedPush appends a Push value to the back of a list of the + // property "preview". Invalidates iterators that are traversing using + // Prev. + AppendForgeFedPush(v ForgeFedPush) + // AppendForgeFedRepository appends a Repository value to the back of a + // list of the property "preview". Invalidates iterators that are + // traversing using Prev. + AppendForgeFedRepository(v ForgeFedRepository) + // AppendForgeFedTicket appends a Ticket value to the back of a list of + // the property "preview". Invalidates iterators that are traversing + // using Prev. + AppendForgeFedTicket(v ForgeFedTicket) + // AppendForgeFedTicketDependency appends a TicketDependency value to the + // back of a list of the property "preview". Invalidates iterators + // that are traversing using Prev. + AppendForgeFedTicketDependency(v ForgeFedTicketDependency) // AppendIRI appends an IRI value to the back of a list of the property // "preview" AppendIRI(v *url.URL) @@ -1168,6 +1258,30 @@ type ActivityStreamsPreviewProperty interface { // for a property "preview". Existing elements at that index and // higher are shifted back once. Invalidates all iterators. InsertActivityStreamsView(idx int, v ActivityStreamsView) + // InsertForgeFedBranch inserts a Branch value at the specified index for + // a property "preview". Existing elements at that index and higher + // are shifted back once. Invalidates all iterators. + InsertForgeFedBranch(idx int, v ForgeFedBranch) + // InsertForgeFedCommit inserts a Commit value at the specified index for + // a property "preview". Existing elements at that index and higher + // are shifted back once. Invalidates all iterators. + InsertForgeFedCommit(idx int, v ForgeFedCommit) + // InsertForgeFedPush inserts a Push value at the specified index for a + // property "preview". Existing elements at that index and higher are + // shifted back once. Invalidates all iterators. + InsertForgeFedPush(idx int, v ForgeFedPush) + // InsertForgeFedRepository inserts a Repository value at the specified + // index for a property "preview". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertForgeFedRepository(idx int, v ForgeFedRepository) + // InsertForgeFedTicket inserts a Ticket value at the specified index for + // a property "preview". Existing elements at that index and higher + // are shifted back once. Invalidates all iterators. + InsertForgeFedTicket(idx int, v ForgeFedTicket) + // InsertForgeFedTicketDependency inserts a TicketDependency value at the + // specified index for a property "preview". Existing elements at that + // index and higher are shifted back once. Invalidates all iterators. + InsertForgeFedTicketDependency(idx int, v ForgeFedTicketDependency) // Insert inserts an IRI value at the specified index for a property // "preview". Existing elements at that index and higher are shifted // back once. Invalidates all iterators. @@ -1378,6 +1492,25 @@ type ActivityStreamsPreviewProperty interface { // PrependActivityStreamsView prepends a View value to the front of a list // of the property "preview". Invalidates all iterators. PrependActivityStreamsView(v ActivityStreamsView) + // PrependForgeFedBranch prepends a Branch value to the front of a list of + // the property "preview". Invalidates all iterators. + PrependForgeFedBranch(v ForgeFedBranch) + // PrependForgeFedCommit prepends a Commit value to the front of a list of + // the property "preview". Invalidates all iterators. + PrependForgeFedCommit(v ForgeFedCommit) + // PrependForgeFedPush prepends a Push value to the front of a list of the + // property "preview". Invalidates all iterators. + PrependForgeFedPush(v ForgeFedPush) + // PrependForgeFedRepository prepends a Repository value to the front of a + // list of the property "preview". Invalidates all iterators. + PrependForgeFedRepository(v ForgeFedRepository) + // PrependForgeFedTicket prepends a Ticket value to the front of a list of + // the property "preview". Invalidates all iterators. + PrependForgeFedTicket(v ForgeFedTicket) + // PrependForgeFedTicketDependency prepends a TicketDependency value to + // the front of a list of the property "preview". Invalidates all + // iterators. + PrependForgeFedTicketDependency(v ForgeFedTicketDependency) // PrependIRI prepends an IRI value to the front of a list of the property // "preview". PrependIRI(v *url.URL) @@ -1617,6 +1750,30 @@ type ActivityStreamsPreviewProperty interface { // for the property "preview". Panics if the index is out of bounds. // Invalidates all iterators. SetActivityStreamsView(idx int, v ActivityStreamsView) + // SetForgeFedBranch sets a Branch value to be at the specified index for + // the property "preview". Panics if the index is out of bounds. + // Invalidates all iterators. + SetForgeFedBranch(idx int, v ForgeFedBranch) + // SetForgeFedCommit sets a Commit value to be at the specified index for + // the property "preview". Panics if the index is out of bounds. + // Invalidates all iterators. + SetForgeFedCommit(idx int, v ForgeFedCommit) + // SetForgeFedPush sets a Push value to be at the specified index for the + // property "preview". Panics if the index is out of bounds. + // Invalidates all iterators. + SetForgeFedPush(idx int, v ForgeFedPush) + // SetForgeFedRepository sets a Repository value to be at the specified + // index for the property "preview". Panics if the index is out of + // bounds. Invalidates all iterators. + SetForgeFedRepository(idx int, v ForgeFedRepository) + // SetForgeFedTicket sets a Ticket value to be at the specified index for + // the property "preview". Panics if the index is out of bounds. + // Invalidates all iterators. + SetForgeFedTicket(idx int, v ForgeFedTicket) + // SetForgeFedTicketDependency sets a TicketDependency value to be at the + // specified index for the property "preview". Panics if the index is + // out of bounds. Invalidates all iterators. + SetForgeFedTicketDependency(idx int, v ForgeFedTicketDependency) // SetIRI sets an IRI value to be at the specified index for the property // "preview". Panics if the index is out of bounds. SetIRI(idx int, v *url.URL) diff --git a/streams/vocab/gen_property_activitystreams_relationship_interface.go b/streams/vocab/gen_property_activitystreams_relationship_interface.go index 562faaa..25aeb00 100644 --- a/streams/vocab/gen_property_activitystreams_relationship_interface.go +++ b/streams/vocab/gen_property_activitystreams_relationship_interface.go @@ -217,6 +217,29 @@ type ActivityStreamsRelationshipPropertyIterator interface { // IsActivityStreamsView returns false, GetActivityStreamsView will // return an arbitrary value. GetActivityStreamsView() ActivityStreamsView + // GetForgeFedBranch returns the value of this property. When + // IsForgeFedBranch returns false, GetForgeFedBranch will return an + // arbitrary value. + GetForgeFedBranch() ForgeFedBranch + // GetForgeFedCommit returns the value of this property. When + // IsForgeFedCommit returns false, GetForgeFedCommit will return an + // arbitrary value. + GetForgeFedCommit() ForgeFedCommit + // GetForgeFedPush returns the value of this property. When IsForgeFedPush + // returns false, GetForgeFedPush will return an arbitrary value. + GetForgeFedPush() ForgeFedPush + // GetForgeFedRepository returns the value of this property. When + // IsForgeFedRepository returns false, GetForgeFedRepository will + // return an arbitrary value. + GetForgeFedRepository() ForgeFedRepository + // GetForgeFedTicket returns the value of this property. When + // IsForgeFedTicket returns false, GetForgeFedTicket will return an + // arbitrary value. + GetForgeFedTicket() ForgeFedTicket + // GetForgeFedTicketDependency returns the value of this property. When + // IsForgeFedTicketDependency returns false, + // GetForgeFedTicketDependency will return an arbitrary value. + GetForgeFedTicketDependency() ForgeFedTicketDependency // GetIRI returns the IRI of this property. When IsIRI returns false, // GetIRI will return an arbitrary value. GetIRI() *url.URL @@ -457,6 +480,31 @@ type ActivityStreamsRelationshipPropertyIterator interface { // "View". When true, use the GetActivityStreamsView and // SetActivityStreamsView methods to access and set this property. IsActivityStreamsView() bool + // IsForgeFedBranch returns true if this property has a type of "Branch". + // When true, use the GetForgeFedBranch and SetForgeFedBranch methods + // to access and set this property. + IsForgeFedBranch() bool + // IsForgeFedCommit returns true if this property has a type of "Commit". + // When true, use the GetForgeFedCommit and SetForgeFedCommit methods + // to access and set this property. + IsForgeFedCommit() bool + // IsForgeFedPush returns true if this property has a type of "Push". When + // true, use the GetForgeFedPush and SetForgeFedPush methods to access + // and set this property. + IsForgeFedPush() bool + // IsForgeFedRepository returns true if this property has a type of + // "Repository". When true, use the GetForgeFedRepository and + // SetForgeFedRepository methods to access and set this property. + IsForgeFedRepository() bool + // IsForgeFedTicket returns true if this property has a type of "Ticket". + // When true, use the GetForgeFedTicket and SetForgeFedTicket methods + // to access and set this property. + IsForgeFedTicket() bool + // IsForgeFedTicketDependency returns true if this property has a type of + // "TicketDependency". When true, use the GetForgeFedTicketDependency + // and SetForgeFedTicketDependency methods to access and set this + // property. + IsForgeFedTicketDependency() bool // IsIRI returns true if this property is an IRI. When true, use GetIRI // and SetIRI to access and set this property IsIRI() bool @@ -647,6 +695,24 @@ type ActivityStreamsRelationshipPropertyIterator interface { // SetActivityStreamsView sets the value of this property. Calling // IsActivityStreamsView afterwards returns true. SetActivityStreamsView(v ActivityStreamsView) + // SetForgeFedBranch sets the value of this property. Calling + // IsForgeFedBranch afterwards returns true. + SetForgeFedBranch(v ForgeFedBranch) + // SetForgeFedCommit sets the value of this property. Calling + // IsForgeFedCommit afterwards returns true. + SetForgeFedCommit(v ForgeFedCommit) + // SetForgeFedPush sets the value of this property. Calling IsForgeFedPush + // afterwards returns true. + SetForgeFedPush(v ForgeFedPush) + // SetForgeFedRepository sets the value of this property. Calling + // IsForgeFedRepository afterwards returns true. + SetForgeFedRepository(v ForgeFedRepository) + // SetForgeFedTicket sets the value of this property. Calling + // IsForgeFedTicket afterwards returns true. + SetForgeFedTicket(v ForgeFedTicket) + // SetForgeFedTicketDependency sets the value of this property. Calling + // IsForgeFedTicketDependency afterwards returns true. + SetForgeFedTicketDependency(v ForgeFedTicketDependency) // SetIRI sets the value of this property. Calling IsIRI afterwards // returns true. SetIRI(v *url.URL) @@ -889,6 +955,30 @@ type ActivityStreamsRelationshipProperty interface { // the property "relationship". Invalidates iterators that are // traversing using Prev. AppendActivityStreamsView(v ActivityStreamsView) + // AppendForgeFedBranch appends a Branch value to the back of a list of + // the property "relationship". Invalidates iterators that are + // traversing using Prev. + AppendForgeFedBranch(v ForgeFedBranch) + // AppendForgeFedCommit appends a Commit value to the back of a list of + // the property "relationship". Invalidates iterators that are + // traversing using Prev. + AppendForgeFedCommit(v ForgeFedCommit) + // AppendForgeFedPush appends a Push value to the back of a list of the + // property "relationship". Invalidates iterators that are traversing + // using Prev. + AppendForgeFedPush(v ForgeFedPush) + // AppendForgeFedRepository appends a Repository value to the back of a + // list of the property "relationship". Invalidates iterators that are + // traversing using Prev. + AppendForgeFedRepository(v ForgeFedRepository) + // AppendForgeFedTicket appends a Ticket value to the back of a list of + // the property "relationship". Invalidates iterators that are + // traversing using Prev. + AppendForgeFedTicket(v ForgeFedTicket) + // AppendForgeFedTicketDependency appends a TicketDependency value to the + // back of a list of the property "relationship". Invalidates + // iterators that are traversing using Prev. + AppendForgeFedTicketDependency(v ForgeFedTicketDependency) // AppendIRI appends an IRI value to the back of a list of the property // "relationship" AppendIRI(v *url.URL) @@ -1137,6 +1227,31 @@ type ActivityStreamsRelationshipProperty interface { // for a property "relationship". Existing elements at that index and // higher are shifted back once. Invalidates all iterators. InsertActivityStreamsView(idx int, v ActivityStreamsView) + // InsertForgeFedBranch inserts a Branch value at the specified index for + // a property "relationship". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertForgeFedBranch(idx int, v ForgeFedBranch) + // InsertForgeFedCommit inserts a Commit value at the specified index for + // a property "relationship". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertForgeFedCommit(idx int, v ForgeFedCommit) + // InsertForgeFedPush inserts a Push value at the specified index for a + // property "relationship". Existing elements at that index and higher + // are shifted back once. Invalidates all iterators. + InsertForgeFedPush(idx int, v ForgeFedPush) + // InsertForgeFedRepository inserts a Repository value at the specified + // index for a property "relationship". Existing elements at that + // index and higher are shifted back once. Invalidates all iterators. + InsertForgeFedRepository(idx int, v ForgeFedRepository) + // InsertForgeFedTicket inserts a Ticket value at the specified index for + // a property "relationship". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertForgeFedTicket(idx int, v ForgeFedTicket) + // InsertForgeFedTicketDependency inserts a TicketDependency value at the + // specified index for a property "relationship". Existing elements at + // that index and higher are shifted back once. Invalidates all + // iterators. + InsertForgeFedTicketDependency(idx int, v ForgeFedTicketDependency) // Insert inserts an IRI value at the specified index for a property // "relationship". Existing elements at that index and higher are // shifted back once. Invalidates all iterators. @@ -1342,6 +1457,25 @@ type ActivityStreamsRelationshipProperty interface { // PrependActivityStreamsView prepends a View value to the front of a list // of the property "relationship". Invalidates all iterators. PrependActivityStreamsView(v ActivityStreamsView) + // PrependForgeFedBranch prepends a Branch value to the front of a list of + // the property "relationship". Invalidates all iterators. + PrependForgeFedBranch(v ForgeFedBranch) + // PrependForgeFedCommit prepends a Commit value to the front of a list of + // the property "relationship". Invalidates all iterators. + PrependForgeFedCommit(v ForgeFedCommit) + // PrependForgeFedPush prepends a Push value to the front of a list of the + // property "relationship". Invalidates all iterators. + PrependForgeFedPush(v ForgeFedPush) + // PrependForgeFedRepository prepends a Repository value to the front of a + // list of the property "relationship". Invalidates all iterators. + PrependForgeFedRepository(v ForgeFedRepository) + // PrependForgeFedTicket prepends a Ticket value to the front of a list of + // the property "relationship". Invalidates all iterators. + PrependForgeFedTicket(v ForgeFedTicket) + // PrependForgeFedTicketDependency prepends a TicketDependency value to + // the front of a list of the property "relationship". Invalidates all + // iterators. + PrependForgeFedTicketDependency(v ForgeFedTicketDependency) // PrependIRI prepends an IRI value to the front of a list of the property // "relationship". PrependIRI(v *url.URL) @@ -1573,6 +1707,30 @@ type ActivityStreamsRelationshipProperty interface { // for the property "relationship". Panics if the index is out of // bounds. Invalidates all iterators. SetActivityStreamsView(idx int, v ActivityStreamsView) + // SetForgeFedBranch sets a Branch value to be at the specified index for + // the property "relationship". Panics if the index is out of bounds. + // Invalidates all iterators. + SetForgeFedBranch(idx int, v ForgeFedBranch) + // SetForgeFedCommit sets a Commit value to be at the specified index for + // the property "relationship". Panics if the index is out of bounds. + // Invalidates all iterators. + SetForgeFedCommit(idx int, v ForgeFedCommit) + // SetForgeFedPush sets a Push value to be at the specified index for the + // property "relationship". Panics if the index is out of bounds. + // Invalidates all iterators. + SetForgeFedPush(idx int, v ForgeFedPush) + // SetForgeFedRepository sets a Repository value to be at the specified + // index for the property "relationship". Panics if the index is out + // of bounds. Invalidates all iterators. + SetForgeFedRepository(idx int, v ForgeFedRepository) + // SetForgeFedTicket sets a Ticket value to be at the specified index for + // the property "relationship". Panics if the index is out of bounds. + // Invalidates all iterators. + SetForgeFedTicket(idx int, v ForgeFedTicket) + // SetForgeFedTicketDependency sets a TicketDependency value to be at the + // specified index for the property "relationship". Panics if the + // index is out of bounds. Invalidates all iterators. + SetForgeFedTicketDependency(idx int, v ForgeFedTicketDependency) // SetIRI sets an IRI value to be at the specified index for the property // "relationship". Panics if the index is out of bounds. SetIRI(idx int, v *url.URL) diff --git a/streams/vocab/gen_property_activitystreams_result_interface.go b/streams/vocab/gen_property_activitystreams_result_interface.go index 99d3396..d028b6b 100644 --- a/streams/vocab/gen_property_activitystreams_result_interface.go +++ b/streams/vocab/gen_property_activitystreams_result_interface.go @@ -225,6 +225,29 @@ type ActivityStreamsResultPropertyIterator interface { // IsActivityStreamsView returns false, GetActivityStreamsView will // return an arbitrary value. GetActivityStreamsView() ActivityStreamsView + // GetForgeFedBranch returns the value of this property. When + // IsForgeFedBranch returns false, GetForgeFedBranch will return an + // arbitrary value. + GetForgeFedBranch() ForgeFedBranch + // GetForgeFedCommit returns the value of this property. When + // IsForgeFedCommit returns false, GetForgeFedCommit will return an + // arbitrary value. + GetForgeFedCommit() ForgeFedCommit + // GetForgeFedPush returns the value of this property. When IsForgeFedPush + // returns false, GetForgeFedPush will return an arbitrary value. + GetForgeFedPush() ForgeFedPush + // GetForgeFedRepository returns the value of this property. When + // IsForgeFedRepository returns false, GetForgeFedRepository will + // return an arbitrary value. + GetForgeFedRepository() ForgeFedRepository + // GetForgeFedTicket returns the value of this property. When + // IsForgeFedTicket returns false, GetForgeFedTicket will return an + // arbitrary value. + GetForgeFedTicket() ForgeFedTicket + // GetForgeFedTicketDependency returns the value of this property. When + // IsForgeFedTicketDependency returns false, + // GetForgeFedTicketDependency will return an arbitrary value. + GetForgeFedTicketDependency() ForgeFedTicketDependency // GetIRI returns the IRI of this property. When IsIRI returns false, // GetIRI will return an arbitrary value. GetIRI() *url.URL @@ -473,6 +496,31 @@ type ActivityStreamsResultPropertyIterator interface { // "View". When true, use the GetActivityStreamsView and // SetActivityStreamsView methods to access and set this property. IsActivityStreamsView() bool + // IsForgeFedBranch returns true if this property has a type of "Branch". + // When true, use the GetForgeFedBranch and SetForgeFedBranch methods + // to access and set this property. + IsForgeFedBranch() bool + // IsForgeFedCommit returns true if this property has a type of "Commit". + // When true, use the GetForgeFedCommit and SetForgeFedCommit methods + // to access and set this property. + IsForgeFedCommit() bool + // IsForgeFedPush returns true if this property has a type of "Push". When + // true, use the GetForgeFedPush and SetForgeFedPush methods to access + // and set this property. + IsForgeFedPush() bool + // IsForgeFedRepository returns true if this property has a type of + // "Repository". When true, use the GetForgeFedRepository and + // SetForgeFedRepository methods to access and set this property. + IsForgeFedRepository() bool + // IsForgeFedTicket returns true if this property has a type of "Ticket". + // When true, use the GetForgeFedTicket and SetForgeFedTicket methods + // to access and set this property. + IsForgeFedTicket() bool + // IsForgeFedTicketDependency returns true if this property has a type of + // "TicketDependency". When true, use the GetForgeFedTicketDependency + // and SetForgeFedTicketDependency methods to access and set this + // property. + IsForgeFedTicketDependency() bool // IsIRI returns true if this property is an IRI. When true, use GetIRI // and SetIRI to access and set this property IsIRI() bool @@ -669,6 +717,24 @@ type ActivityStreamsResultPropertyIterator interface { // SetActivityStreamsView sets the value of this property. Calling // IsActivityStreamsView afterwards returns true. SetActivityStreamsView(v ActivityStreamsView) + // SetForgeFedBranch sets the value of this property. Calling + // IsForgeFedBranch afterwards returns true. + SetForgeFedBranch(v ForgeFedBranch) + // SetForgeFedCommit sets the value of this property. Calling + // IsForgeFedCommit afterwards returns true. + SetForgeFedCommit(v ForgeFedCommit) + // SetForgeFedPush sets the value of this property. Calling IsForgeFedPush + // afterwards returns true. + SetForgeFedPush(v ForgeFedPush) + // SetForgeFedRepository sets the value of this property. Calling + // IsForgeFedRepository afterwards returns true. + SetForgeFedRepository(v ForgeFedRepository) + // SetForgeFedTicket sets the value of this property. Calling + // IsForgeFedTicket afterwards returns true. + SetForgeFedTicket(v ForgeFedTicket) + // SetForgeFedTicketDependency sets the value of this property. Calling + // IsForgeFedTicketDependency afterwards returns true. + SetForgeFedTicketDependency(v ForgeFedTicketDependency) // SetIRI sets the value of this property. Calling IsIRI afterwards // returns true. SetIRI(v *url.URL) @@ -918,6 +984,30 @@ type ActivityStreamsResultProperty interface { // the property "result". Invalidates iterators that are traversing // using Prev. AppendActivityStreamsView(v ActivityStreamsView) + // AppendForgeFedBranch appends a Branch value to the back of a list of + // the property "result". Invalidates iterators that are traversing + // using Prev. + AppendForgeFedBranch(v ForgeFedBranch) + // AppendForgeFedCommit appends a Commit value to the back of a list of + // the property "result". Invalidates iterators that are traversing + // using Prev. + AppendForgeFedCommit(v ForgeFedCommit) + // AppendForgeFedPush appends a Push value to the back of a list of the + // property "result". Invalidates iterators that are traversing using + // Prev. + AppendForgeFedPush(v ForgeFedPush) + // AppendForgeFedRepository appends a Repository value to the back of a + // list of the property "result". Invalidates iterators that are + // traversing using Prev. + AppendForgeFedRepository(v ForgeFedRepository) + // AppendForgeFedTicket appends a Ticket value to the back of a list of + // the property "result". Invalidates iterators that are traversing + // using Prev. + AppendForgeFedTicket(v ForgeFedTicket) + // AppendForgeFedTicketDependency appends a TicketDependency value to the + // back of a list of the property "result". Invalidates iterators that + // are traversing using Prev. + AppendForgeFedTicketDependency(v ForgeFedTicketDependency) // AppendIRI appends an IRI value to the back of a list of the property // "result" AppendIRI(v *url.URL) @@ -1169,6 +1259,30 @@ type ActivityStreamsResultProperty interface { // for a property "result". Existing elements at that index and higher // are shifted back once. Invalidates all iterators. InsertActivityStreamsView(idx int, v ActivityStreamsView) + // InsertForgeFedBranch inserts a Branch value at the specified index for + // a property "result". Existing elements at that index and higher are + // shifted back once. Invalidates all iterators. + InsertForgeFedBranch(idx int, v ForgeFedBranch) + // InsertForgeFedCommit inserts a Commit value at the specified index for + // a property "result". Existing elements at that index and higher are + // shifted back once. Invalidates all iterators. + InsertForgeFedCommit(idx int, v ForgeFedCommit) + // InsertForgeFedPush inserts a Push value at the specified index for a + // property "result". Existing elements at that index and higher are + // shifted back once. Invalidates all iterators. + InsertForgeFedPush(idx int, v ForgeFedPush) + // InsertForgeFedRepository inserts a Repository value at the specified + // index for a property "result". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertForgeFedRepository(idx int, v ForgeFedRepository) + // InsertForgeFedTicket inserts a Ticket value at the specified index for + // a property "result". Existing elements at that index and higher are + // shifted back once. Invalidates all iterators. + InsertForgeFedTicket(idx int, v ForgeFedTicket) + // InsertForgeFedTicketDependency inserts a TicketDependency value at the + // specified index for a property "result". Existing elements at that + // index and higher are shifted back once. Invalidates all iterators. + InsertForgeFedTicketDependency(idx int, v ForgeFedTicketDependency) // Insert inserts an IRI value at the specified index for a property // "result". Existing elements at that index and higher are shifted // back once. Invalidates all iterators. @@ -1375,6 +1489,25 @@ type ActivityStreamsResultProperty interface { // PrependActivityStreamsView prepends a View value to the front of a list // of the property "result". Invalidates all iterators. PrependActivityStreamsView(v ActivityStreamsView) + // PrependForgeFedBranch prepends a Branch value to the front of a list of + // the property "result". Invalidates all iterators. + PrependForgeFedBranch(v ForgeFedBranch) + // PrependForgeFedCommit prepends a Commit value to the front of a list of + // the property "result". Invalidates all iterators. + PrependForgeFedCommit(v ForgeFedCommit) + // PrependForgeFedPush prepends a Push value to the front of a list of the + // property "result". Invalidates all iterators. + PrependForgeFedPush(v ForgeFedPush) + // PrependForgeFedRepository prepends a Repository value to the front of a + // list of the property "result". Invalidates all iterators. + PrependForgeFedRepository(v ForgeFedRepository) + // PrependForgeFedTicket prepends a Ticket value to the front of a list of + // the property "result". Invalidates all iterators. + PrependForgeFedTicket(v ForgeFedTicket) + // PrependForgeFedTicketDependency prepends a TicketDependency value to + // the front of a list of the property "result". Invalidates all + // iterators. + PrependForgeFedTicketDependency(v ForgeFedTicketDependency) // PrependIRI prepends an IRI value to the front of a list of the property // "result". PrependIRI(v *url.URL) @@ -1614,6 +1747,30 @@ type ActivityStreamsResultProperty interface { // for the property "result". Panics if the index is out of bounds. // Invalidates all iterators. SetActivityStreamsView(idx int, v ActivityStreamsView) + // SetForgeFedBranch sets a Branch value to be at the specified index for + // the property "result". Panics if the index is out of bounds. + // Invalidates all iterators. + SetForgeFedBranch(idx int, v ForgeFedBranch) + // SetForgeFedCommit sets a Commit value to be at the specified index for + // the property "result". Panics if the index is out of bounds. + // Invalidates all iterators. + SetForgeFedCommit(idx int, v ForgeFedCommit) + // SetForgeFedPush sets a Push value to be at the specified index for the + // property "result". Panics if the index is out of bounds. + // Invalidates all iterators. + SetForgeFedPush(idx int, v ForgeFedPush) + // SetForgeFedRepository sets a Repository value to be at the specified + // index for the property "result". Panics if the index is out of + // bounds. Invalidates all iterators. + SetForgeFedRepository(idx int, v ForgeFedRepository) + // SetForgeFedTicket sets a Ticket value to be at the specified index for + // the property "result". Panics if the index is out of bounds. + // Invalidates all iterators. + SetForgeFedTicket(idx int, v ForgeFedTicket) + // SetForgeFedTicketDependency sets a TicketDependency value to be at the + // specified index for the property "result". Panics if the index is + // out of bounds. Invalidates all iterators. + SetForgeFedTicketDependency(idx int, v ForgeFedTicketDependency) // SetIRI sets an IRI value to be at the specified index for the property // "result". Panics if the index is out of bounds. SetIRI(idx int, v *url.URL) diff --git a/streams/vocab/gen_property_activitystreams_source_interface.go b/streams/vocab/gen_property_activitystreams_source_interface.go index 1b5cb2b..546bfe8 100644 --- a/streams/vocab/gen_property_activitystreams_source_interface.go +++ b/streams/vocab/gen_property_activitystreams_source_interface.go @@ -247,6 +247,29 @@ type ActivityStreamsSourceProperty interface { // IsActivityStreamsView returns false, GetActivityStreamsView will // return an arbitrary value. GetActivityStreamsView() ActivityStreamsView + // GetForgeFedBranch returns the value of this property. When + // IsForgeFedBranch returns false, GetForgeFedBranch will return an + // arbitrary value. + GetForgeFedBranch() ForgeFedBranch + // GetForgeFedCommit returns the value of this property. When + // IsForgeFedCommit returns false, GetForgeFedCommit will return an + // arbitrary value. + GetForgeFedCommit() ForgeFedCommit + // GetForgeFedPush returns the value of this property. When IsForgeFedPush + // returns false, GetForgeFedPush will return an arbitrary value. + GetForgeFedPush() ForgeFedPush + // GetForgeFedRepository returns the value of this property. When + // IsForgeFedRepository returns false, GetForgeFedRepository will + // return an arbitrary value. + GetForgeFedRepository() ForgeFedRepository + // GetForgeFedTicket returns the value of this property. When + // IsForgeFedTicket returns false, GetForgeFedTicket will return an + // arbitrary value. + GetForgeFedTicket() ForgeFedTicket + // GetForgeFedTicketDependency returns the value of this property. When + // IsForgeFedTicketDependency returns false, + // GetForgeFedTicketDependency will return an arbitrary value. + GetForgeFedTicketDependency() ForgeFedTicketDependency // GetIRI returns the IRI of this property. When IsIRI returns false, // GetIRI will return an arbitrary value. GetIRI() *url.URL @@ -495,6 +518,31 @@ type ActivityStreamsSourceProperty interface { // "View". When true, use the GetActivityStreamsView and // SetActivityStreamsView methods to access and set this property. IsActivityStreamsView() bool + // IsForgeFedBranch returns true if this property has a type of "Branch". + // When true, use the GetForgeFedBranch and SetForgeFedBranch methods + // to access and set this property. + IsForgeFedBranch() bool + // IsForgeFedCommit returns true if this property has a type of "Commit". + // When true, use the GetForgeFedCommit and SetForgeFedCommit methods + // to access and set this property. + IsForgeFedCommit() bool + // IsForgeFedPush returns true if this property has a type of "Push". When + // true, use the GetForgeFedPush and SetForgeFedPush methods to access + // and set this property. + IsForgeFedPush() bool + // IsForgeFedRepository returns true if this property has a type of + // "Repository". When true, use the GetForgeFedRepository and + // SetForgeFedRepository methods to access and set this property. + IsForgeFedRepository() bool + // IsForgeFedTicket returns true if this property has a type of "Ticket". + // When true, use the GetForgeFedTicket and SetForgeFedTicket methods + // to access and set this property. + IsForgeFedTicket() bool + // IsForgeFedTicketDependency returns true if this property has a type of + // "TicketDependency". When true, use the GetForgeFedTicketDependency + // and SetForgeFedTicketDependency methods to access and set this + // property. + IsForgeFedTicketDependency() bool // IsIRI returns true if this property is an IRI. When true, use GetIRI // and SetIRI to access and set this property IsIRI() bool @@ -692,6 +740,24 @@ type ActivityStreamsSourceProperty interface { // SetActivityStreamsView sets the value of this property. Calling // IsActivityStreamsView afterwards returns true. SetActivityStreamsView(v ActivityStreamsView) + // SetForgeFedBranch sets the value of this property. Calling + // IsForgeFedBranch afterwards returns true. + SetForgeFedBranch(v ForgeFedBranch) + // SetForgeFedCommit sets the value of this property. Calling + // IsForgeFedCommit afterwards returns true. + SetForgeFedCommit(v ForgeFedCommit) + // SetForgeFedPush sets the value of this property. Calling IsForgeFedPush + // afterwards returns true. + SetForgeFedPush(v ForgeFedPush) + // SetForgeFedRepository sets the value of this property. Calling + // IsForgeFedRepository afterwards returns true. + SetForgeFedRepository(v ForgeFedRepository) + // SetForgeFedTicket sets the value of this property. Calling + // IsForgeFedTicket afterwards returns true. + SetForgeFedTicket(v ForgeFedTicket) + // SetForgeFedTicketDependency sets the value of this property. Calling + // IsForgeFedTicketDependency afterwards returns true. + SetForgeFedTicketDependency(v ForgeFedTicketDependency) // SetIRI sets the value of this property. Calling IsIRI afterwards // returns true. SetIRI(v *url.URL) diff --git a/streams/vocab/gen_property_activitystreams_subject_interface.go b/streams/vocab/gen_property_activitystreams_subject_interface.go index 705a399..897cb32 100644 --- a/streams/vocab/gen_property_activitystreams_subject_interface.go +++ b/streams/vocab/gen_property_activitystreams_subject_interface.go @@ -244,6 +244,29 @@ type ActivityStreamsSubjectProperty interface { // IsActivityStreamsView returns false, GetActivityStreamsView will // return an arbitrary value. GetActivityStreamsView() ActivityStreamsView + // GetForgeFedBranch returns the value of this property. When + // IsForgeFedBranch returns false, GetForgeFedBranch will return an + // arbitrary value. + GetForgeFedBranch() ForgeFedBranch + // GetForgeFedCommit returns the value of this property. When + // IsForgeFedCommit returns false, GetForgeFedCommit will return an + // arbitrary value. + GetForgeFedCommit() ForgeFedCommit + // GetForgeFedPush returns the value of this property. When IsForgeFedPush + // returns false, GetForgeFedPush will return an arbitrary value. + GetForgeFedPush() ForgeFedPush + // GetForgeFedRepository returns the value of this property. When + // IsForgeFedRepository returns false, GetForgeFedRepository will + // return an arbitrary value. + GetForgeFedRepository() ForgeFedRepository + // GetForgeFedTicket returns the value of this property. When + // IsForgeFedTicket returns false, GetForgeFedTicket will return an + // arbitrary value. + GetForgeFedTicket() ForgeFedTicket + // GetForgeFedTicketDependency returns the value of this property. When + // IsForgeFedTicketDependency returns false, + // GetForgeFedTicketDependency will return an arbitrary value. + GetForgeFedTicketDependency() ForgeFedTicketDependency // GetIRI returns the IRI of this property. When IsIRI returns false, // GetIRI will return an arbitrary value. GetIRI() *url.URL @@ -492,6 +515,31 @@ type ActivityStreamsSubjectProperty interface { // "View". When true, use the GetActivityStreamsView and // SetActivityStreamsView methods to access and set this property. IsActivityStreamsView() bool + // IsForgeFedBranch returns true if this property has a type of "Branch". + // When true, use the GetForgeFedBranch and SetForgeFedBranch methods + // to access and set this property. + IsForgeFedBranch() bool + // IsForgeFedCommit returns true if this property has a type of "Commit". + // When true, use the GetForgeFedCommit and SetForgeFedCommit methods + // to access and set this property. + IsForgeFedCommit() bool + // IsForgeFedPush returns true if this property has a type of "Push". When + // true, use the GetForgeFedPush and SetForgeFedPush methods to access + // and set this property. + IsForgeFedPush() bool + // IsForgeFedRepository returns true if this property has a type of + // "Repository". When true, use the GetForgeFedRepository and + // SetForgeFedRepository methods to access and set this property. + IsForgeFedRepository() bool + // IsForgeFedTicket returns true if this property has a type of "Ticket". + // When true, use the GetForgeFedTicket and SetForgeFedTicket methods + // to access and set this property. + IsForgeFedTicket() bool + // IsForgeFedTicketDependency returns true if this property has a type of + // "TicketDependency". When true, use the GetForgeFedTicketDependency + // and SetForgeFedTicketDependency methods to access and set this + // property. + IsForgeFedTicketDependency() bool // IsIRI returns true if this property is an IRI. When true, use GetIRI // and SetIRI to access and set this property IsIRI() bool @@ -689,6 +737,24 @@ type ActivityStreamsSubjectProperty interface { // SetActivityStreamsView sets the value of this property. Calling // IsActivityStreamsView afterwards returns true. SetActivityStreamsView(v ActivityStreamsView) + // SetForgeFedBranch sets the value of this property. Calling + // IsForgeFedBranch afterwards returns true. + SetForgeFedBranch(v ForgeFedBranch) + // SetForgeFedCommit sets the value of this property. Calling + // IsForgeFedCommit afterwards returns true. + SetForgeFedCommit(v ForgeFedCommit) + // SetForgeFedPush sets the value of this property. Calling IsForgeFedPush + // afterwards returns true. + SetForgeFedPush(v ForgeFedPush) + // SetForgeFedRepository sets the value of this property. Calling + // IsForgeFedRepository afterwards returns true. + SetForgeFedRepository(v ForgeFedRepository) + // SetForgeFedTicket sets the value of this property. Calling + // IsForgeFedTicket afterwards returns true. + SetForgeFedTicket(v ForgeFedTicket) + // SetForgeFedTicketDependency sets the value of this property. Calling + // IsForgeFedTicketDependency afterwards returns true. + SetForgeFedTicketDependency(v ForgeFedTicketDependency) // SetIRI sets the value of this property. Calling IsIRI afterwards // returns true. SetIRI(v *url.URL) diff --git a/streams/vocab/gen_property_activitystreams_tag_interface.go b/streams/vocab/gen_property_activitystreams_tag_interface.go index c37e020..9b6d5b8 100644 --- a/streams/vocab/gen_property_activitystreams_tag_interface.go +++ b/streams/vocab/gen_property_activitystreams_tag_interface.go @@ -225,6 +225,29 @@ type ActivityStreamsTagPropertyIterator interface { // IsActivityStreamsView returns false, GetActivityStreamsView will // return an arbitrary value. GetActivityStreamsView() ActivityStreamsView + // GetForgeFedBranch returns the value of this property. When + // IsForgeFedBranch returns false, GetForgeFedBranch will return an + // arbitrary value. + GetForgeFedBranch() ForgeFedBranch + // GetForgeFedCommit returns the value of this property. When + // IsForgeFedCommit returns false, GetForgeFedCommit will return an + // arbitrary value. + GetForgeFedCommit() ForgeFedCommit + // GetForgeFedPush returns the value of this property. When IsForgeFedPush + // returns false, GetForgeFedPush will return an arbitrary value. + GetForgeFedPush() ForgeFedPush + // GetForgeFedRepository returns the value of this property. When + // IsForgeFedRepository returns false, GetForgeFedRepository will + // return an arbitrary value. + GetForgeFedRepository() ForgeFedRepository + // GetForgeFedTicket returns the value of this property. When + // IsForgeFedTicket returns false, GetForgeFedTicket will return an + // arbitrary value. + GetForgeFedTicket() ForgeFedTicket + // GetForgeFedTicketDependency returns the value of this property. When + // IsForgeFedTicketDependency returns false, + // GetForgeFedTicketDependency will return an arbitrary value. + GetForgeFedTicketDependency() ForgeFedTicketDependency // GetIRI returns the IRI of this property. When IsIRI returns false, // GetIRI will return an arbitrary value. GetIRI() *url.URL @@ -473,6 +496,31 @@ type ActivityStreamsTagPropertyIterator interface { // "View". When true, use the GetActivityStreamsView and // SetActivityStreamsView methods to access and set this property. IsActivityStreamsView() bool + // IsForgeFedBranch returns true if this property has a type of "Branch". + // When true, use the GetForgeFedBranch and SetForgeFedBranch methods + // to access and set this property. + IsForgeFedBranch() bool + // IsForgeFedCommit returns true if this property has a type of "Commit". + // When true, use the GetForgeFedCommit and SetForgeFedCommit methods + // to access and set this property. + IsForgeFedCommit() bool + // IsForgeFedPush returns true if this property has a type of "Push". When + // true, use the GetForgeFedPush and SetForgeFedPush methods to access + // and set this property. + IsForgeFedPush() bool + // IsForgeFedRepository returns true if this property has a type of + // "Repository". When true, use the GetForgeFedRepository and + // SetForgeFedRepository methods to access and set this property. + IsForgeFedRepository() bool + // IsForgeFedTicket returns true if this property has a type of "Ticket". + // When true, use the GetForgeFedTicket and SetForgeFedTicket methods + // to access and set this property. + IsForgeFedTicket() bool + // IsForgeFedTicketDependency returns true if this property has a type of + // "TicketDependency". When true, use the GetForgeFedTicketDependency + // and SetForgeFedTicketDependency methods to access and set this + // property. + IsForgeFedTicketDependency() bool // IsIRI returns true if this property is an IRI. When true, use GetIRI // and SetIRI to access and set this property IsIRI() bool @@ -669,6 +717,24 @@ type ActivityStreamsTagPropertyIterator interface { // SetActivityStreamsView sets the value of this property. Calling // IsActivityStreamsView afterwards returns true. SetActivityStreamsView(v ActivityStreamsView) + // SetForgeFedBranch sets the value of this property. Calling + // IsForgeFedBranch afterwards returns true. + SetForgeFedBranch(v ForgeFedBranch) + // SetForgeFedCommit sets the value of this property. Calling + // IsForgeFedCommit afterwards returns true. + SetForgeFedCommit(v ForgeFedCommit) + // SetForgeFedPush sets the value of this property. Calling IsForgeFedPush + // afterwards returns true. + SetForgeFedPush(v ForgeFedPush) + // SetForgeFedRepository sets the value of this property. Calling + // IsForgeFedRepository afterwards returns true. + SetForgeFedRepository(v ForgeFedRepository) + // SetForgeFedTicket sets the value of this property. Calling + // IsForgeFedTicket afterwards returns true. + SetForgeFedTicket(v ForgeFedTicket) + // SetForgeFedTicketDependency sets the value of this property. Calling + // IsForgeFedTicketDependency afterwards returns true. + SetForgeFedTicketDependency(v ForgeFedTicketDependency) // SetIRI sets the value of this property. Calling IsIRI afterwards // returns true. SetIRI(v *url.URL) @@ -916,6 +982,30 @@ type ActivityStreamsTagProperty interface { // the property "tag". Invalidates iterators that are traversing using // Prev. AppendActivityStreamsView(v ActivityStreamsView) + // AppendForgeFedBranch appends a Branch value to the back of a list of + // the property "tag". Invalidates iterators that are traversing using + // Prev. + AppendForgeFedBranch(v ForgeFedBranch) + // AppendForgeFedCommit appends a Commit value to the back of a list of + // the property "tag". Invalidates iterators that are traversing using + // Prev. + AppendForgeFedCommit(v ForgeFedCommit) + // AppendForgeFedPush appends a Push value to the back of a list of the + // property "tag". Invalidates iterators that are traversing using + // Prev. + AppendForgeFedPush(v ForgeFedPush) + // AppendForgeFedRepository appends a Repository value to the back of a + // list of the property "tag". Invalidates iterators that are + // traversing using Prev. + AppendForgeFedRepository(v ForgeFedRepository) + // AppendForgeFedTicket appends a Ticket value to the back of a list of + // the property "tag". Invalidates iterators that are traversing using + // Prev. + AppendForgeFedTicket(v ForgeFedTicket) + // AppendForgeFedTicketDependency appends a TicketDependency value to the + // back of a list of the property "tag". Invalidates iterators that + // are traversing using Prev. + AppendForgeFedTicketDependency(v ForgeFedTicketDependency) // AppendIRI appends an IRI value to the back of a list of the property // "tag" AppendIRI(v *url.URL) @@ -1164,6 +1254,30 @@ type ActivityStreamsTagProperty interface { // for a property "tag". Existing elements at that index and higher // are shifted back once. Invalidates all iterators. InsertActivityStreamsView(idx int, v ActivityStreamsView) + // InsertForgeFedBranch inserts a Branch value at the specified index for + // a property "tag". Existing elements at that index and higher are + // shifted back once. Invalidates all iterators. + InsertForgeFedBranch(idx int, v ForgeFedBranch) + // InsertForgeFedCommit inserts a Commit value at the specified index for + // a property "tag". Existing elements at that index and higher are + // shifted back once. Invalidates all iterators. + InsertForgeFedCommit(idx int, v ForgeFedCommit) + // InsertForgeFedPush inserts a Push value at the specified index for a + // property "tag". Existing elements at that index and higher are + // shifted back once. Invalidates all iterators. + InsertForgeFedPush(idx int, v ForgeFedPush) + // InsertForgeFedRepository inserts a Repository value at the specified + // index for a property "tag". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertForgeFedRepository(idx int, v ForgeFedRepository) + // InsertForgeFedTicket inserts a Ticket value at the specified index for + // a property "tag". Existing elements at that index and higher are + // shifted back once. Invalidates all iterators. + InsertForgeFedTicket(idx int, v ForgeFedTicket) + // InsertForgeFedTicketDependency inserts a TicketDependency value at the + // specified index for a property "tag". Existing elements at that + // index and higher are shifted back once. Invalidates all iterators. + InsertForgeFedTicketDependency(idx int, v ForgeFedTicketDependency) // Insert inserts an IRI value at the specified index for a property // "tag". Existing elements at that index and higher are shifted back // once. Invalidates all iterators. @@ -1370,6 +1484,25 @@ type ActivityStreamsTagProperty interface { // PrependActivityStreamsView prepends a View value to the front of a list // of the property "tag". Invalidates all iterators. PrependActivityStreamsView(v ActivityStreamsView) + // PrependForgeFedBranch prepends a Branch value to the front of a list of + // the property "tag". Invalidates all iterators. + PrependForgeFedBranch(v ForgeFedBranch) + // PrependForgeFedCommit prepends a Commit value to the front of a list of + // the property "tag". Invalidates all iterators. + PrependForgeFedCommit(v ForgeFedCommit) + // PrependForgeFedPush prepends a Push value to the front of a list of the + // property "tag". Invalidates all iterators. + PrependForgeFedPush(v ForgeFedPush) + // PrependForgeFedRepository prepends a Repository value to the front of a + // list of the property "tag". Invalidates all iterators. + PrependForgeFedRepository(v ForgeFedRepository) + // PrependForgeFedTicket prepends a Ticket value to the front of a list of + // the property "tag". Invalidates all iterators. + PrependForgeFedTicket(v ForgeFedTicket) + // PrependForgeFedTicketDependency prepends a TicketDependency value to + // the front of a list of the property "tag". Invalidates all + // iterators. + PrependForgeFedTicketDependency(v ForgeFedTicketDependency) // PrependIRI prepends an IRI value to the front of a list of the property // "tag". PrependIRI(v *url.URL) @@ -1609,6 +1742,30 @@ type ActivityStreamsTagProperty interface { // for the property "tag". Panics if the index is out of bounds. // Invalidates all iterators. SetActivityStreamsView(idx int, v ActivityStreamsView) + // SetForgeFedBranch sets a Branch value to be at the specified index for + // the property "tag". Panics if the index is out of bounds. + // Invalidates all iterators. + SetForgeFedBranch(idx int, v ForgeFedBranch) + // SetForgeFedCommit sets a Commit value to be at the specified index for + // the property "tag". Panics if the index is out of bounds. + // Invalidates all iterators. + SetForgeFedCommit(idx int, v ForgeFedCommit) + // SetForgeFedPush sets a Push value to be at the specified index for the + // property "tag". Panics if the index is out of bounds. Invalidates + // all iterators. + SetForgeFedPush(idx int, v ForgeFedPush) + // SetForgeFedRepository sets a Repository value to be at the specified + // index for the property "tag". Panics if the index is out of bounds. + // Invalidates all iterators. + SetForgeFedRepository(idx int, v ForgeFedRepository) + // SetForgeFedTicket sets a Ticket value to be at the specified index for + // the property "tag". Panics if the index is out of bounds. + // Invalidates all iterators. + SetForgeFedTicket(idx int, v ForgeFedTicket) + // SetForgeFedTicketDependency sets a TicketDependency value to be at the + // specified index for the property "tag". Panics if the index is out + // of bounds. Invalidates all iterators. + SetForgeFedTicketDependency(idx int, v ForgeFedTicketDependency) // SetIRI sets an IRI value to be at the specified index for the property // "tag". Panics if the index is out of bounds. SetIRI(idx int, v *url.URL) diff --git a/streams/vocab/gen_property_activitystreams_target_interface.go b/streams/vocab/gen_property_activitystreams_target_interface.go index 50146c8..4d84262 100644 --- a/streams/vocab/gen_property_activitystreams_target_interface.go +++ b/streams/vocab/gen_property_activitystreams_target_interface.go @@ -225,6 +225,29 @@ type ActivityStreamsTargetPropertyIterator interface { // IsActivityStreamsView returns false, GetActivityStreamsView will // return an arbitrary value. GetActivityStreamsView() ActivityStreamsView + // GetForgeFedBranch returns the value of this property. When + // IsForgeFedBranch returns false, GetForgeFedBranch will return an + // arbitrary value. + GetForgeFedBranch() ForgeFedBranch + // GetForgeFedCommit returns the value of this property. When + // IsForgeFedCommit returns false, GetForgeFedCommit will return an + // arbitrary value. + GetForgeFedCommit() ForgeFedCommit + // GetForgeFedPush returns the value of this property. When IsForgeFedPush + // returns false, GetForgeFedPush will return an arbitrary value. + GetForgeFedPush() ForgeFedPush + // GetForgeFedRepository returns the value of this property. When + // IsForgeFedRepository returns false, GetForgeFedRepository will + // return an arbitrary value. + GetForgeFedRepository() ForgeFedRepository + // GetForgeFedTicket returns the value of this property. When + // IsForgeFedTicket returns false, GetForgeFedTicket will return an + // arbitrary value. + GetForgeFedTicket() ForgeFedTicket + // GetForgeFedTicketDependency returns the value of this property. When + // IsForgeFedTicketDependency returns false, + // GetForgeFedTicketDependency will return an arbitrary value. + GetForgeFedTicketDependency() ForgeFedTicketDependency // GetIRI returns the IRI of this property. When IsIRI returns false, // GetIRI will return an arbitrary value. GetIRI() *url.URL @@ -473,6 +496,31 @@ type ActivityStreamsTargetPropertyIterator interface { // "View". When true, use the GetActivityStreamsView and // SetActivityStreamsView methods to access and set this property. IsActivityStreamsView() bool + // IsForgeFedBranch returns true if this property has a type of "Branch". + // When true, use the GetForgeFedBranch and SetForgeFedBranch methods + // to access and set this property. + IsForgeFedBranch() bool + // IsForgeFedCommit returns true if this property has a type of "Commit". + // When true, use the GetForgeFedCommit and SetForgeFedCommit methods + // to access and set this property. + IsForgeFedCommit() bool + // IsForgeFedPush returns true if this property has a type of "Push". When + // true, use the GetForgeFedPush and SetForgeFedPush methods to access + // and set this property. + IsForgeFedPush() bool + // IsForgeFedRepository returns true if this property has a type of + // "Repository". When true, use the GetForgeFedRepository and + // SetForgeFedRepository methods to access and set this property. + IsForgeFedRepository() bool + // IsForgeFedTicket returns true if this property has a type of "Ticket". + // When true, use the GetForgeFedTicket and SetForgeFedTicket methods + // to access and set this property. + IsForgeFedTicket() bool + // IsForgeFedTicketDependency returns true if this property has a type of + // "TicketDependency". When true, use the GetForgeFedTicketDependency + // and SetForgeFedTicketDependency methods to access and set this + // property. + IsForgeFedTicketDependency() bool // IsIRI returns true if this property is an IRI. When true, use GetIRI // and SetIRI to access and set this property IsIRI() bool @@ -669,6 +717,24 @@ type ActivityStreamsTargetPropertyIterator interface { // SetActivityStreamsView sets the value of this property. Calling // IsActivityStreamsView afterwards returns true. SetActivityStreamsView(v ActivityStreamsView) + // SetForgeFedBranch sets the value of this property. Calling + // IsForgeFedBranch afterwards returns true. + SetForgeFedBranch(v ForgeFedBranch) + // SetForgeFedCommit sets the value of this property. Calling + // IsForgeFedCommit afterwards returns true. + SetForgeFedCommit(v ForgeFedCommit) + // SetForgeFedPush sets the value of this property. Calling IsForgeFedPush + // afterwards returns true. + SetForgeFedPush(v ForgeFedPush) + // SetForgeFedRepository sets the value of this property. Calling + // IsForgeFedRepository afterwards returns true. + SetForgeFedRepository(v ForgeFedRepository) + // SetForgeFedTicket sets the value of this property. Calling + // IsForgeFedTicket afterwards returns true. + SetForgeFedTicket(v ForgeFedTicket) + // SetForgeFedTicketDependency sets the value of this property. Calling + // IsForgeFedTicketDependency afterwards returns true. + SetForgeFedTicketDependency(v ForgeFedTicketDependency) // SetIRI sets the value of this property. Calling IsIRI afterwards // returns true. SetIRI(v *url.URL) @@ -926,6 +992,30 @@ type ActivityStreamsTargetProperty interface { // the property "target". Invalidates iterators that are traversing // using Prev. AppendActivityStreamsView(v ActivityStreamsView) + // AppendForgeFedBranch appends a Branch value to the back of a list of + // the property "target". Invalidates iterators that are traversing + // using Prev. + AppendForgeFedBranch(v ForgeFedBranch) + // AppendForgeFedCommit appends a Commit value to the back of a list of + // the property "target". Invalidates iterators that are traversing + // using Prev. + AppendForgeFedCommit(v ForgeFedCommit) + // AppendForgeFedPush appends a Push value to the back of a list of the + // property "target". Invalidates iterators that are traversing using + // Prev. + AppendForgeFedPush(v ForgeFedPush) + // AppendForgeFedRepository appends a Repository value to the back of a + // list of the property "target". Invalidates iterators that are + // traversing using Prev. + AppendForgeFedRepository(v ForgeFedRepository) + // AppendForgeFedTicket appends a Ticket value to the back of a list of + // the property "target". Invalidates iterators that are traversing + // using Prev. + AppendForgeFedTicket(v ForgeFedTicket) + // AppendForgeFedTicketDependency appends a TicketDependency value to the + // back of a list of the property "target". Invalidates iterators that + // are traversing using Prev. + AppendForgeFedTicketDependency(v ForgeFedTicketDependency) // AppendIRI appends an IRI value to the back of a list of the property // "target" AppendIRI(v *url.URL) @@ -1177,6 +1267,30 @@ type ActivityStreamsTargetProperty interface { // for a property "target". Existing elements at that index and higher // are shifted back once. Invalidates all iterators. InsertActivityStreamsView(idx int, v ActivityStreamsView) + // InsertForgeFedBranch inserts a Branch value at the specified index for + // a property "target". Existing elements at that index and higher are + // shifted back once. Invalidates all iterators. + InsertForgeFedBranch(idx int, v ForgeFedBranch) + // InsertForgeFedCommit inserts a Commit value at the specified index for + // a property "target". Existing elements at that index and higher are + // shifted back once. Invalidates all iterators. + InsertForgeFedCommit(idx int, v ForgeFedCommit) + // InsertForgeFedPush inserts a Push value at the specified index for a + // property "target". Existing elements at that index and higher are + // shifted back once. Invalidates all iterators. + InsertForgeFedPush(idx int, v ForgeFedPush) + // InsertForgeFedRepository inserts a Repository value at the specified + // index for a property "target". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertForgeFedRepository(idx int, v ForgeFedRepository) + // InsertForgeFedTicket inserts a Ticket value at the specified index for + // a property "target". Existing elements at that index and higher are + // shifted back once. Invalidates all iterators. + InsertForgeFedTicket(idx int, v ForgeFedTicket) + // InsertForgeFedTicketDependency inserts a TicketDependency value at the + // specified index for a property "target". Existing elements at that + // index and higher are shifted back once. Invalidates all iterators. + InsertForgeFedTicketDependency(idx int, v ForgeFedTicketDependency) // Insert inserts an IRI value at the specified index for a property // "target". Existing elements at that index and higher are shifted // back once. Invalidates all iterators. @@ -1383,6 +1497,25 @@ type ActivityStreamsTargetProperty interface { // PrependActivityStreamsView prepends a View value to the front of a list // of the property "target". Invalidates all iterators. PrependActivityStreamsView(v ActivityStreamsView) + // PrependForgeFedBranch prepends a Branch value to the front of a list of + // the property "target". Invalidates all iterators. + PrependForgeFedBranch(v ForgeFedBranch) + // PrependForgeFedCommit prepends a Commit value to the front of a list of + // the property "target". Invalidates all iterators. + PrependForgeFedCommit(v ForgeFedCommit) + // PrependForgeFedPush prepends a Push value to the front of a list of the + // property "target". Invalidates all iterators. + PrependForgeFedPush(v ForgeFedPush) + // PrependForgeFedRepository prepends a Repository value to the front of a + // list of the property "target". Invalidates all iterators. + PrependForgeFedRepository(v ForgeFedRepository) + // PrependForgeFedTicket prepends a Ticket value to the front of a list of + // the property "target". Invalidates all iterators. + PrependForgeFedTicket(v ForgeFedTicket) + // PrependForgeFedTicketDependency prepends a TicketDependency value to + // the front of a list of the property "target". Invalidates all + // iterators. + PrependForgeFedTicketDependency(v ForgeFedTicketDependency) // PrependIRI prepends an IRI value to the front of a list of the property // "target". PrependIRI(v *url.URL) @@ -1622,6 +1755,30 @@ type ActivityStreamsTargetProperty interface { // for the property "target". Panics if the index is out of bounds. // Invalidates all iterators. SetActivityStreamsView(idx int, v ActivityStreamsView) + // SetForgeFedBranch sets a Branch value to be at the specified index for + // the property "target". Panics if the index is out of bounds. + // Invalidates all iterators. + SetForgeFedBranch(idx int, v ForgeFedBranch) + // SetForgeFedCommit sets a Commit value to be at the specified index for + // the property "target". Panics if the index is out of bounds. + // Invalidates all iterators. + SetForgeFedCommit(idx int, v ForgeFedCommit) + // SetForgeFedPush sets a Push value to be at the specified index for the + // property "target". Panics if the index is out of bounds. + // Invalidates all iterators. + SetForgeFedPush(idx int, v ForgeFedPush) + // SetForgeFedRepository sets a Repository value to be at the specified + // index for the property "target". Panics if the index is out of + // bounds. Invalidates all iterators. + SetForgeFedRepository(idx int, v ForgeFedRepository) + // SetForgeFedTicket sets a Ticket value to be at the specified index for + // the property "target". Panics if the index is out of bounds. + // Invalidates all iterators. + SetForgeFedTicket(idx int, v ForgeFedTicket) + // SetForgeFedTicketDependency sets a TicketDependency value to be at the + // specified index for the property "target". Panics if the index is + // out of bounds. Invalidates all iterators. + SetForgeFedTicketDependency(idx int, v ForgeFedTicketDependency) // SetIRI sets an IRI value to be at the specified index for the property // "target". Panics if the index is out of bounds. SetIRI(idx int, v *url.URL) diff --git a/streams/vocab/gen_property_activitystreams_to_interface.go b/streams/vocab/gen_property_activitystreams_to_interface.go index d25e61c..8c7ffc0 100644 --- a/streams/vocab/gen_property_activitystreams_to_interface.go +++ b/streams/vocab/gen_property_activitystreams_to_interface.go @@ -225,6 +225,29 @@ type ActivityStreamsToPropertyIterator interface { // IsActivityStreamsView returns false, GetActivityStreamsView will // return an arbitrary value. GetActivityStreamsView() ActivityStreamsView + // GetForgeFedBranch returns the value of this property. When + // IsForgeFedBranch returns false, GetForgeFedBranch will return an + // arbitrary value. + GetForgeFedBranch() ForgeFedBranch + // GetForgeFedCommit returns the value of this property. When + // IsForgeFedCommit returns false, GetForgeFedCommit will return an + // arbitrary value. + GetForgeFedCommit() ForgeFedCommit + // GetForgeFedPush returns the value of this property. When IsForgeFedPush + // returns false, GetForgeFedPush will return an arbitrary value. + GetForgeFedPush() ForgeFedPush + // GetForgeFedRepository returns the value of this property. When + // IsForgeFedRepository returns false, GetForgeFedRepository will + // return an arbitrary value. + GetForgeFedRepository() ForgeFedRepository + // GetForgeFedTicket returns the value of this property. When + // IsForgeFedTicket returns false, GetForgeFedTicket will return an + // arbitrary value. + GetForgeFedTicket() ForgeFedTicket + // GetForgeFedTicketDependency returns the value of this property. When + // IsForgeFedTicketDependency returns false, + // GetForgeFedTicketDependency will return an arbitrary value. + GetForgeFedTicketDependency() ForgeFedTicketDependency // GetIRI returns the IRI of this property. When IsIRI returns false, // GetIRI will return an arbitrary value. GetIRI() *url.URL @@ -473,6 +496,31 @@ type ActivityStreamsToPropertyIterator interface { // "View". When true, use the GetActivityStreamsView and // SetActivityStreamsView methods to access and set this property. IsActivityStreamsView() bool + // IsForgeFedBranch returns true if this property has a type of "Branch". + // When true, use the GetForgeFedBranch and SetForgeFedBranch methods + // to access and set this property. + IsForgeFedBranch() bool + // IsForgeFedCommit returns true if this property has a type of "Commit". + // When true, use the GetForgeFedCommit and SetForgeFedCommit methods + // to access and set this property. + IsForgeFedCommit() bool + // IsForgeFedPush returns true if this property has a type of "Push". When + // true, use the GetForgeFedPush and SetForgeFedPush methods to access + // and set this property. + IsForgeFedPush() bool + // IsForgeFedRepository returns true if this property has a type of + // "Repository". When true, use the GetForgeFedRepository and + // SetForgeFedRepository methods to access and set this property. + IsForgeFedRepository() bool + // IsForgeFedTicket returns true if this property has a type of "Ticket". + // When true, use the GetForgeFedTicket and SetForgeFedTicket methods + // to access and set this property. + IsForgeFedTicket() bool + // IsForgeFedTicketDependency returns true if this property has a type of + // "TicketDependency". When true, use the GetForgeFedTicketDependency + // and SetForgeFedTicketDependency methods to access and set this + // property. + IsForgeFedTicketDependency() bool // IsIRI returns true if this property is an IRI. When true, use GetIRI // and SetIRI to access and set this property IsIRI() bool @@ -669,6 +717,24 @@ type ActivityStreamsToPropertyIterator interface { // SetActivityStreamsView sets the value of this property. Calling // IsActivityStreamsView afterwards returns true. SetActivityStreamsView(v ActivityStreamsView) + // SetForgeFedBranch sets the value of this property. Calling + // IsForgeFedBranch afterwards returns true. + SetForgeFedBranch(v ForgeFedBranch) + // SetForgeFedCommit sets the value of this property. Calling + // IsForgeFedCommit afterwards returns true. + SetForgeFedCommit(v ForgeFedCommit) + // SetForgeFedPush sets the value of this property. Calling IsForgeFedPush + // afterwards returns true. + SetForgeFedPush(v ForgeFedPush) + // SetForgeFedRepository sets the value of this property. Calling + // IsForgeFedRepository afterwards returns true. + SetForgeFedRepository(v ForgeFedRepository) + // SetForgeFedTicket sets the value of this property. Calling + // IsForgeFedTicket afterwards returns true. + SetForgeFedTicket(v ForgeFedTicket) + // SetForgeFedTicketDependency sets the value of this property. Calling + // IsForgeFedTicketDependency afterwards returns true. + SetForgeFedTicketDependency(v ForgeFedTicketDependency) // SetIRI sets the value of this property. Calling IsIRI afterwards // returns true. SetIRI(v *url.URL) @@ -912,6 +978,29 @@ type ActivityStreamsToProperty interface { // the property "to". Invalidates iterators that are traversing using // Prev. AppendActivityStreamsView(v ActivityStreamsView) + // AppendForgeFedBranch appends a Branch value to the back of a list of + // the property "to". Invalidates iterators that are traversing using + // Prev. + AppendForgeFedBranch(v ForgeFedBranch) + // AppendForgeFedCommit appends a Commit value to the back of a list of + // the property "to". Invalidates iterators that are traversing using + // Prev. + AppendForgeFedCommit(v ForgeFedCommit) + // AppendForgeFedPush appends a Push value to the back of a list of the + // property "to". Invalidates iterators that are traversing using Prev. + AppendForgeFedPush(v ForgeFedPush) + // AppendForgeFedRepository appends a Repository value to the back of a + // list of the property "to". Invalidates iterators that are + // traversing using Prev. + AppendForgeFedRepository(v ForgeFedRepository) + // AppendForgeFedTicket appends a Ticket value to the back of a list of + // the property "to". Invalidates iterators that are traversing using + // Prev. + AppendForgeFedTicket(v ForgeFedTicket) + // AppendForgeFedTicketDependency appends a TicketDependency value to the + // back of a list of the property "to". Invalidates iterators that are + // traversing using Prev. + AppendForgeFedTicketDependency(v ForgeFedTicketDependency) // AppendIRI appends an IRI value to the back of a list of the property // "to" AppendIRI(v *url.URL) @@ -1159,6 +1248,30 @@ type ActivityStreamsToProperty interface { // for a property "to". Existing elements at that index and higher are // shifted back once. Invalidates all iterators. InsertActivityStreamsView(idx int, v ActivityStreamsView) + // InsertForgeFedBranch inserts a Branch value at the specified index for + // a property "to". Existing elements at that index and higher are + // shifted back once. Invalidates all iterators. + InsertForgeFedBranch(idx int, v ForgeFedBranch) + // InsertForgeFedCommit inserts a Commit value at the specified index for + // a property "to". Existing elements at that index and higher are + // shifted back once. Invalidates all iterators. + InsertForgeFedCommit(idx int, v ForgeFedCommit) + // InsertForgeFedPush inserts a Push value at the specified index for a + // property "to". Existing elements at that index and higher are + // shifted back once. Invalidates all iterators. + InsertForgeFedPush(idx int, v ForgeFedPush) + // InsertForgeFedRepository inserts a Repository value at the specified + // index for a property "to". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertForgeFedRepository(idx int, v ForgeFedRepository) + // InsertForgeFedTicket inserts a Ticket value at the specified index for + // a property "to". Existing elements at that index and higher are + // shifted back once. Invalidates all iterators. + InsertForgeFedTicket(idx int, v ForgeFedTicket) + // InsertForgeFedTicketDependency inserts a TicketDependency value at the + // specified index for a property "to". Existing elements at that + // index and higher are shifted back once. Invalidates all iterators. + InsertForgeFedTicketDependency(idx int, v ForgeFedTicketDependency) // Insert inserts an IRI value at the specified index for a property "to". // Existing elements at that index and higher are shifted back once. // Invalidates all iterators. @@ -1364,6 +1477,24 @@ type ActivityStreamsToProperty interface { // PrependActivityStreamsView prepends a View value to the front of a list // of the property "to". Invalidates all iterators. PrependActivityStreamsView(v ActivityStreamsView) + // PrependForgeFedBranch prepends a Branch value to the front of a list of + // the property "to". Invalidates all iterators. + PrependForgeFedBranch(v ForgeFedBranch) + // PrependForgeFedCommit prepends a Commit value to the front of a list of + // the property "to". Invalidates all iterators. + PrependForgeFedCommit(v ForgeFedCommit) + // PrependForgeFedPush prepends a Push value to the front of a list of the + // property "to". Invalidates all iterators. + PrependForgeFedPush(v ForgeFedPush) + // PrependForgeFedRepository prepends a Repository value to the front of a + // list of the property "to". Invalidates all iterators. + PrependForgeFedRepository(v ForgeFedRepository) + // PrependForgeFedTicket prepends a Ticket value to the front of a list of + // the property "to". Invalidates all iterators. + PrependForgeFedTicket(v ForgeFedTicket) + // PrependForgeFedTicketDependency prepends a TicketDependency value to + // the front of a list of the property "to". Invalidates all iterators. + PrependForgeFedTicketDependency(v ForgeFedTicketDependency) // PrependIRI prepends an IRI value to the front of a list of the property // "to". PrependIRI(v *url.URL) @@ -1603,6 +1734,30 @@ type ActivityStreamsToProperty interface { // for the property "to". Panics if the index is out of bounds. // Invalidates all iterators. SetActivityStreamsView(idx int, v ActivityStreamsView) + // SetForgeFedBranch sets a Branch value to be at the specified index for + // the property "to". Panics if the index is out of bounds. + // Invalidates all iterators. + SetForgeFedBranch(idx int, v ForgeFedBranch) + // SetForgeFedCommit sets a Commit value to be at the specified index for + // the property "to". Panics if the index is out of bounds. + // Invalidates all iterators. + SetForgeFedCommit(idx int, v ForgeFedCommit) + // SetForgeFedPush sets a Push value to be at the specified index for the + // property "to". Panics if the index is out of bounds. Invalidates + // all iterators. + SetForgeFedPush(idx int, v ForgeFedPush) + // SetForgeFedRepository sets a Repository value to be at the specified + // index for the property "to". Panics if the index is out of bounds. + // Invalidates all iterators. + SetForgeFedRepository(idx int, v ForgeFedRepository) + // SetForgeFedTicket sets a Ticket value to be at the specified index for + // the property "to". Panics if the index is out of bounds. + // Invalidates all iterators. + SetForgeFedTicket(idx int, v ForgeFedTicket) + // SetForgeFedTicketDependency sets a TicketDependency value to be at the + // specified index for the property "to". Panics if the index is out + // of bounds. Invalidates all iterators. + SetForgeFedTicketDependency(idx int, v ForgeFedTicketDependency) // SetIRI sets an IRI value to be at the specified index for the property // "to". Panics if the index is out of bounds. SetIRI(idx int, v *url.URL) diff --git a/streams/vocab/gen_property_forgefed_assignedTo_interface.go b/streams/vocab/gen_property_forgefed_assignedTo_interface.go new file mode 100644 index 0000000..b3076aa --- /dev/null +++ b/streams/vocab/gen_property_forgefed_assignedTo_interface.go @@ -0,0 +1,60 @@ +// Code generated by astool. DO NOT EDIT. + +package vocab + +import "net/url" + +// Identifies the Person assigned to work on this Ticket. +type ForgeFedAssignedToProperty interface { + // Clear ensures no value of this property is set. Calling + // IsActivityStreamsPerson afterwards will return false. + Clear() + // Get returns the value of this property. When IsActivityStreamsPerson + // returns false, Get will return any arbitrary value. + Get() ActivityStreamsPerson + // GetIRI returns the IRI of this property. When IsIRI returns false, + // GetIRI will return any arbitrary value. + GetIRI() *url.URL + // GetType returns the value in this property as a Type. Returns nil if + // the value is not an ActivityStreams type, such as an IRI or another + // value. + GetType() Type + // HasAny returns true if the value or IRI is set. + HasAny() bool + // IsActivityStreamsPerson returns true if this property is set and not an + // IRI. + IsActivityStreamsPerson() bool + // IsIRI returns true if this property is an IRI. + IsIRI() bool + // JSONLDContext returns the JSONLD URIs required in the context string + // for this property and the specific values that are set. The value + // in the map is the alias used to import the property's value or + // values. + JSONLDContext() map[string]string + // KindIndex computes an arbitrary value for indexing this kind of value. + // This is a leaky API detail only for folks looking to replace the + // go-fed implementation. Applications should not use this method. + KindIndex() int + // LessThan compares two instances of this property with an arbitrary but + // stable comparison. Applications should not use this because it is + // only meant to help alternative implementations to go-fed to be able + // to normalize nonfunctional properties. + LessThan(o ForgeFedAssignedToProperty) bool + // Name returns the name of this property: "assignedTo". + Name() string + // Serialize converts this into an interface representation suitable for + // marshalling into a text or binary format. Applications should not + // need this function as most typical use cases serialize types + // instead of individual properties. It is exposed for alternatives to + // go-fed implementations to use. + Serialize() (interface{}, error) + // Set sets the value of this property. Calling IsActivityStreamsPerson + // afterwards will return true. + Set(v ActivityStreamsPerson) + // SetIRI sets the value of this property. Calling IsIRI afterwards will + // return true. + SetIRI(v *url.URL) + // SetType attempts to set the property for the arbitrary type. Returns an + // error if it is not a valid type to set on this property. + SetType(t Type) error +} diff --git a/streams/vocab/gen_property_forgefed_committedBy_interface.go b/streams/vocab/gen_property_forgefed_committedBy_interface.go new file mode 100644 index 0000000..c7a896e --- /dev/null +++ b/streams/vocab/gen_property_forgefed_committedBy_interface.go @@ -0,0 +1,738 @@ +// Code generated by astool. DO NOT EDIT. + +package vocab + +import "net/url" + +// Identifies the actor (usually a person, but could be something else, e.g. a +// bot) that added a set of changes to the version-control Repository. +// Sometimes the author of the changes and the committer of those changes +// aren’t the same actor, in which case the committedBy property can be used +// to specify who added the changes to the repository. For example, when +// applying a patch to a repository, e.g. a Git repository, the author would +// be the person who made the patch, and the committer would be the person who +// applied the patch to their copy of the repository. +type ForgeFedCommittedByProperty interface { + // Clear ensures no value of this property is set. Calling HasAny or any + // of the 'Is' methods afterwards will return false. + Clear() + // GetActivityStreamsAccept returns the value of this property. When + // IsActivityStreamsAccept returns false, GetActivityStreamsAccept + // will return an arbitrary value. + GetActivityStreamsAccept() ActivityStreamsAccept + // GetActivityStreamsActivity returns the value of this property. When + // IsActivityStreamsActivity returns false, GetActivityStreamsActivity + // will return an arbitrary value. + GetActivityStreamsActivity() ActivityStreamsActivity + // GetActivityStreamsAdd returns the value of this property. When + // IsActivityStreamsAdd returns false, GetActivityStreamsAdd will + // return an arbitrary value. + GetActivityStreamsAdd() ActivityStreamsAdd + // GetActivityStreamsAnnounce returns the value of this property. When + // IsActivityStreamsAnnounce returns false, GetActivityStreamsAnnounce + // will return an arbitrary value. + GetActivityStreamsAnnounce() ActivityStreamsAnnounce + // GetActivityStreamsApplication returns the value of this property. When + // IsActivityStreamsApplication returns false, + // GetActivityStreamsApplication will return an arbitrary value. + GetActivityStreamsApplication() ActivityStreamsApplication + // GetActivityStreamsArrive returns the value of this property. When + // IsActivityStreamsArrive returns false, GetActivityStreamsArrive + // will return an arbitrary value. + GetActivityStreamsArrive() ActivityStreamsArrive + // GetActivityStreamsArticle returns the value of this property. When + // IsActivityStreamsArticle returns false, GetActivityStreamsArticle + // will return an arbitrary value. + GetActivityStreamsArticle() ActivityStreamsArticle + // GetActivityStreamsAudio returns the value of this property. When + // IsActivityStreamsAudio returns false, GetActivityStreamsAudio will + // return an arbitrary value. + GetActivityStreamsAudio() ActivityStreamsAudio + // GetActivityStreamsBlock returns the value of this property. When + // IsActivityStreamsBlock returns false, GetActivityStreamsBlock will + // return an arbitrary value. + GetActivityStreamsBlock() ActivityStreamsBlock + // GetActivityStreamsCollection returns the value of this property. When + // IsActivityStreamsCollection returns false, + // GetActivityStreamsCollection will return an arbitrary value. + GetActivityStreamsCollection() ActivityStreamsCollection + // GetActivityStreamsCollectionPage returns the value of this property. + // When IsActivityStreamsCollectionPage returns false, + // GetActivityStreamsCollectionPage will return an arbitrary value. + GetActivityStreamsCollectionPage() ActivityStreamsCollectionPage + // GetActivityStreamsCreate returns the value of this property. When + // IsActivityStreamsCreate returns false, GetActivityStreamsCreate + // will return an arbitrary value. + GetActivityStreamsCreate() ActivityStreamsCreate + // GetActivityStreamsDelete returns the value of this property. When + // IsActivityStreamsDelete returns false, GetActivityStreamsDelete + // will return an arbitrary value. + GetActivityStreamsDelete() ActivityStreamsDelete + // GetActivityStreamsDislike returns the value of this property. When + // IsActivityStreamsDislike returns false, GetActivityStreamsDislike + // will return an arbitrary value. + GetActivityStreamsDislike() ActivityStreamsDislike + // GetActivityStreamsDocument returns the value of this property. When + // IsActivityStreamsDocument returns false, GetActivityStreamsDocument + // will return an arbitrary value. + GetActivityStreamsDocument() ActivityStreamsDocument + // GetActivityStreamsEvent returns the value of this property. When + // IsActivityStreamsEvent returns false, GetActivityStreamsEvent will + // return an arbitrary value. + GetActivityStreamsEvent() ActivityStreamsEvent + // GetActivityStreamsFlag returns the value of this property. When + // IsActivityStreamsFlag returns false, GetActivityStreamsFlag will + // return an arbitrary value. + GetActivityStreamsFlag() ActivityStreamsFlag + // GetActivityStreamsFollow returns the value of this property. When + // IsActivityStreamsFollow returns false, GetActivityStreamsFollow + // will return an arbitrary value. + GetActivityStreamsFollow() ActivityStreamsFollow + // GetActivityStreamsGroup returns the value of this property. When + // IsActivityStreamsGroup returns false, GetActivityStreamsGroup will + // return an arbitrary value. + GetActivityStreamsGroup() ActivityStreamsGroup + // GetActivityStreamsIgnore returns the value of this property. When + // IsActivityStreamsIgnore returns false, GetActivityStreamsIgnore + // will return an arbitrary value. + GetActivityStreamsIgnore() ActivityStreamsIgnore + // GetActivityStreamsImage returns the value of this property. When + // IsActivityStreamsImage returns false, GetActivityStreamsImage will + // return an arbitrary value. + GetActivityStreamsImage() ActivityStreamsImage + // GetActivityStreamsIntransitiveActivity returns the value of this + // property. When IsActivityStreamsIntransitiveActivity returns false, + // GetActivityStreamsIntransitiveActivity will return an arbitrary + // value. + GetActivityStreamsIntransitiveActivity() ActivityStreamsIntransitiveActivity + // GetActivityStreamsInvite returns the value of this property. When + // IsActivityStreamsInvite returns false, GetActivityStreamsInvite + // will return an arbitrary value. + GetActivityStreamsInvite() ActivityStreamsInvite + // GetActivityStreamsJoin returns the value of this property. When + // IsActivityStreamsJoin returns false, GetActivityStreamsJoin will + // return an arbitrary value. + GetActivityStreamsJoin() ActivityStreamsJoin + // GetActivityStreamsLeave returns the value of this property. When + // IsActivityStreamsLeave returns false, GetActivityStreamsLeave will + // return an arbitrary value. + GetActivityStreamsLeave() ActivityStreamsLeave + // GetActivityStreamsLike returns the value of this property. When + // IsActivityStreamsLike returns false, GetActivityStreamsLike will + // return an arbitrary value. + GetActivityStreamsLike() ActivityStreamsLike + // GetActivityStreamsListen returns the value of this property. When + // IsActivityStreamsListen returns false, GetActivityStreamsListen + // will return an arbitrary value. + GetActivityStreamsListen() ActivityStreamsListen + // GetActivityStreamsMove returns the value of this property. When + // IsActivityStreamsMove returns false, GetActivityStreamsMove will + // return an arbitrary value. + GetActivityStreamsMove() ActivityStreamsMove + // GetActivityStreamsNote returns the value of this property. When + // IsActivityStreamsNote returns false, GetActivityStreamsNote will + // return an arbitrary value. + GetActivityStreamsNote() ActivityStreamsNote + // GetActivityStreamsObject returns the value of this property. When + // IsActivityStreamsObject returns false, GetActivityStreamsObject + // will return an arbitrary value. + GetActivityStreamsObject() ActivityStreamsObject + // GetActivityStreamsOffer returns the value of this property. When + // IsActivityStreamsOffer returns false, GetActivityStreamsOffer will + // return an arbitrary value. + GetActivityStreamsOffer() ActivityStreamsOffer + // GetActivityStreamsOrderedCollection returns the value of this property. + // When IsActivityStreamsOrderedCollection returns false, + // GetActivityStreamsOrderedCollection will return an arbitrary value. + GetActivityStreamsOrderedCollection() ActivityStreamsOrderedCollection + // GetActivityStreamsOrderedCollectionPage returns the value of this + // property. When IsActivityStreamsOrderedCollectionPage returns + // false, GetActivityStreamsOrderedCollectionPage will return an + // arbitrary value. + GetActivityStreamsOrderedCollectionPage() ActivityStreamsOrderedCollectionPage + // GetActivityStreamsOrganization returns the value of this property. When + // IsActivityStreamsOrganization returns false, + // GetActivityStreamsOrganization will return an arbitrary value. + GetActivityStreamsOrganization() ActivityStreamsOrganization + // GetActivityStreamsPage returns the value of this property. When + // IsActivityStreamsPage returns false, GetActivityStreamsPage will + // return an arbitrary value. + GetActivityStreamsPage() ActivityStreamsPage + // GetActivityStreamsPerson returns the value of this property. When + // IsActivityStreamsPerson returns false, GetActivityStreamsPerson + // will return an arbitrary value. + GetActivityStreamsPerson() ActivityStreamsPerson + // GetActivityStreamsPlace returns the value of this property. When + // IsActivityStreamsPlace returns false, GetActivityStreamsPlace will + // return an arbitrary value. + GetActivityStreamsPlace() ActivityStreamsPlace + // GetActivityStreamsProfile returns the value of this property. When + // IsActivityStreamsProfile returns false, GetActivityStreamsProfile + // will return an arbitrary value. + GetActivityStreamsProfile() ActivityStreamsProfile + // GetActivityStreamsQuestion returns the value of this property. When + // IsActivityStreamsQuestion returns false, GetActivityStreamsQuestion + // will return an arbitrary value. + GetActivityStreamsQuestion() ActivityStreamsQuestion + // GetActivityStreamsRead returns the value of this property. When + // IsActivityStreamsRead returns false, GetActivityStreamsRead will + // return an arbitrary value. + GetActivityStreamsRead() ActivityStreamsRead + // GetActivityStreamsReject returns the value of this property. When + // IsActivityStreamsReject returns false, GetActivityStreamsReject + // will return an arbitrary value. + GetActivityStreamsReject() ActivityStreamsReject + // GetActivityStreamsRelationship returns the value of this property. When + // IsActivityStreamsRelationship returns false, + // GetActivityStreamsRelationship will return an arbitrary value. + GetActivityStreamsRelationship() ActivityStreamsRelationship + // GetActivityStreamsRemove returns the value of this property. When + // IsActivityStreamsRemove returns false, GetActivityStreamsRemove + // will return an arbitrary value. + GetActivityStreamsRemove() ActivityStreamsRemove + // GetActivityStreamsService returns the value of this property. When + // IsActivityStreamsService returns false, GetActivityStreamsService + // will return an arbitrary value. + GetActivityStreamsService() ActivityStreamsService + // GetActivityStreamsTentativeAccept returns the value of this property. + // When IsActivityStreamsTentativeAccept returns false, + // GetActivityStreamsTentativeAccept will return an arbitrary value. + GetActivityStreamsTentativeAccept() ActivityStreamsTentativeAccept + // GetActivityStreamsTentativeReject returns the value of this property. + // When IsActivityStreamsTentativeReject returns false, + // GetActivityStreamsTentativeReject will return an arbitrary value. + GetActivityStreamsTentativeReject() ActivityStreamsTentativeReject + // GetActivityStreamsTombstone returns the value of this property. When + // IsActivityStreamsTombstone returns false, + // GetActivityStreamsTombstone will return an arbitrary value. + GetActivityStreamsTombstone() ActivityStreamsTombstone + // GetActivityStreamsTravel returns the value of this property. When + // IsActivityStreamsTravel returns false, GetActivityStreamsTravel + // will return an arbitrary value. + GetActivityStreamsTravel() ActivityStreamsTravel + // GetActivityStreamsUndo returns the value of this property. When + // IsActivityStreamsUndo returns false, GetActivityStreamsUndo will + // return an arbitrary value. + GetActivityStreamsUndo() ActivityStreamsUndo + // GetActivityStreamsUpdate returns the value of this property. When + // IsActivityStreamsUpdate returns false, GetActivityStreamsUpdate + // will return an arbitrary value. + GetActivityStreamsUpdate() ActivityStreamsUpdate + // GetActivityStreamsVideo returns the value of this property. When + // IsActivityStreamsVideo returns false, GetActivityStreamsVideo will + // return an arbitrary value. + GetActivityStreamsVideo() ActivityStreamsVideo + // GetActivityStreamsView returns the value of this property. When + // IsActivityStreamsView returns false, GetActivityStreamsView will + // return an arbitrary value. + GetActivityStreamsView() ActivityStreamsView + // GetForgeFedBranch returns the value of this property. When + // IsForgeFedBranch returns false, GetForgeFedBranch will return an + // arbitrary value. + GetForgeFedBranch() ForgeFedBranch + // GetForgeFedCommit returns the value of this property. When + // IsForgeFedCommit returns false, GetForgeFedCommit will return an + // arbitrary value. + GetForgeFedCommit() ForgeFedCommit + // GetForgeFedPush returns the value of this property. When IsForgeFedPush + // returns false, GetForgeFedPush will return an arbitrary value. + GetForgeFedPush() ForgeFedPush + // GetForgeFedRepository returns the value of this property. When + // IsForgeFedRepository returns false, GetForgeFedRepository will + // return an arbitrary value. + GetForgeFedRepository() ForgeFedRepository + // GetForgeFedTicket returns the value of this property. When + // IsForgeFedTicket returns false, GetForgeFedTicket will return an + // arbitrary value. + GetForgeFedTicket() ForgeFedTicket + // GetForgeFedTicketDependency returns the value of this property. When + // IsForgeFedTicketDependency returns false, + // GetForgeFedTicketDependency will return an arbitrary value. + GetForgeFedTicketDependency() ForgeFedTicketDependency + // GetIRI returns the IRI of this property. When IsIRI returns false, + // GetIRI will return an arbitrary value. + GetIRI() *url.URL + // GetTootEmoji returns the value of this property. When IsTootEmoji + // returns false, GetTootEmoji will return an arbitrary value. + GetTootEmoji() TootEmoji + // GetTootIdentityProof returns the value of this property. When + // IsTootIdentityProof returns false, GetTootIdentityProof will return + // an arbitrary value. + GetTootIdentityProof() TootIdentityProof + // GetType returns the value in this property as a Type. Returns nil if + // the value is not an ActivityStreams type, such as an IRI or another + // value. + GetType() Type + // HasAny returns true if any of the different values is set. + HasAny() bool + // IsActivityStreamsAccept returns true if this property has a type of + // "Accept". When true, use the GetActivityStreamsAccept and + // SetActivityStreamsAccept methods to access and set this property. + IsActivityStreamsAccept() bool + // IsActivityStreamsActivity returns true if this property has a type of + // "Activity". When true, use the GetActivityStreamsActivity and + // SetActivityStreamsActivity methods to access and set this property. + IsActivityStreamsActivity() bool + // IsActivityStreamsAdd returns true if this property has a type of "Add". + // When true, use the GetActivityStreamsAdd and SetActivityStreamsAdd + // methods to access and set this property. + IsActivityStreamsAdd() bool + // IsActivityStreamsAnnounce returns true if this property has a type of + // "Announce". When true, use the GetActivityStreamsAnnounce and + // SetActivityStreamsAnnounce methods to access and set this property. + IsActivityStreamsAnnounce() bool + // IsActivityStreamsApplication returns true if this property has a type + // of "Application". When true, use the GetActivityStreamsApplication + // and SetActivityStreamsApplication methods to access and set this + // property. + IsActivityStreamsApplication() bool + // IsActivityStreamsArrive returns true if this property has a type of + // "Arrive". When true, use the GetActivityStreamsArrive and + // SetActivityStreamsArrive methods to access and set this property. + IsActivityStreamsArrive() bool + // IsActivityStreamsArticle returns true if this property has a type of + // "Article". When true, use the GetActivityStreamsArticle and + // SetActivityStreamsArticle methods to access and set this property. + IsActivityStreamsArticle() bool + // IsActivityStreamsAudio returns true if this property has a type of + // "Audio". When true, use the GetActivityStreamsAudio and + // SetActivityStreamsAudio methods to access and set this property. + IsActivityStreamsAudio() bool + // IsActivityStreamsBlock returns true if this property has a type of + // "Block". When true, use the GetActivityStreamsBlock and + // SetActivityStreamsBlock methods to access and set this property. + IsActivityStreamsBlock() bool + // IsActivityStreamsCollection returns true if this property has a type of + // "Collection". When true, use the GetActivityStreamsCollection and + // SetActivityStreamsCollection methods to access and set this + // property. + IsActivityStreamsCollection() bool + // IsActivityStreamsCollectionPage returns true if this property has a + // type of "CollectionPage". When true, use the + // GetActivityStreamsCollectionPage and + // SetActivityStreamsCollectionPage methods to access and set this + // property. + IsActivityStreamsCollectionPage() bool + // IsActivityStreamsCreate returns true if this property has a type of + // "Create". When true, use the GetActivityStreamsCreate and + // SetActivityStreamsCreate methods to access and set this property. + IsActivityStreamsCreate() bool + // IsActivityStreamsDelete returns true if this property has a type of + // "Delete". When true, use the GetActivityStreamsDelete and + // SetActivityStreamsDelete methods to access and set this property. + IsActivityStreamsDelete() bool + // IsActivityStreamsDislike returns true if this property has a type of + // "Dislike". When true, use the GetActivityStreamsDislike and + // SetActivityStreamsDislike methods to access and set this property. + IsActivityStreamsDislike() bool + // IsActivityStreamsDocument returns true if this property has a type of + // "Document". When true, use the GetActivityStreamsDocument and + // SetActivityStreamsDocument methods to access and set this property. + IsActivityStreamsDocument() bool + // IsActivityStreamsEvent returns true if this property has a type of + // "Event". When true, use the GetActivityStreamsEvent and + // SetActivityStreamsEvent methods to access and set this property. + IsActivityStreamsEvent() bool + // IsActivityStreamsFlag returns true if this property has a type of + // "Flag". When true, use the GetActivityStreamsFlag and + // SetActivityStreamsFlag methods to access and set this property. + IsActivityStreamsFlag() bool + // IsActivityStreamsFollow returns true if this property has a type of + // "Follow". When true, use the GetActivityStreamsFollow and + // SetActivityStreamsFollow methods to access and set this property. + IsActivityStreamsFollow() bool + // IsActivityStreamsGroup returns true if this property has a type of + // "Group". When true, use the GetActivityStreamsGroup and + // SetActivityStreamsGroup methods to access and set this property. + IsActivityStreamsGroup() bool + // IsActivityStreamsIgnore returns true if this property has a type of + // "Ignore". When true, use the GetActivityStreamsIgnore and + // SetActivityStreamsIgnore methods to access and set this property. + IsActivityStreamsIgnore() bool + // IsActivityStreamsImage returns true if this property has a type of + // "Image". When true, use the GetActivityStreamsImage and + // SetActivityStreamsImage methods to access and set this property. + IsActivityStreamsImage() bool + // IsActivityStreamsIntransitiveActivity returns true if this property has + // a type of "IntransitiveActivity". When true, use the + // GetActivityStreamsIntransitiveActivity and + // SetActivityStreamsIntransitiveActivity methods to access and set + // this property. + IsActivityStreamsIntransitiveActivity() bool + // IsActivityStreamsInvite returns true if this property has a type of + // "Invite". When true, use the GetActivityStreamsInvite and + // SetActivityStreamsInvite methods to access and set this property. + IsActivityStreamsInvite() bool + // IsActivityStreamsJoin returns true if this property has a type of + // "Join". When true, use the GetActivityStreamsJoin and + // SetActivityStreamsJoin methods to access and set this property. + IsActivityStreamsJoin() bool + // IsActivityStreamsLeave returns true if this property has a type of + // "Leave". When true, use the GetActivityStreamsLeave and + // SetActivityStreamsLeave methods to access and set this property. + IsActivityStreamsLeave() bool + // IsActivityStreamsLike returns true if this property has a type of + // "Like". When true, use the GetActivityStreamsLike and + // SetActivityStreamsLike methods to access and set this property. + IsActivityStreamsLike() bool + // IsActivityStreamsListen returns true if this property has a type of + // "Listen". When true, use the GetActivityStreamsListen and + // SetActivityStreamsListen methods to access and set this property. + IsActivityStreamsListen() bool + // IsActivityStreamsMove returns true if this property has a type of + // "Move". When true, use the GetActivityStreamsMove and + // SetActivityStreamsMove methods to access and set this property. + IsActivityStreamsMove() bool + // IsActivityStreamsNote returns true if this property has a type of + // "Note". When true, use the GetActivityStreamsNote and + // SetActivityStreamsNote methods to access and set this property. + IsActivityStreamsNote() bool + // IsActivityStreamsObject returns true if this property has a type of + // "Object". When true, use the GetActivityStreamsObject and + // SetActivityStreamsObject methods to access and set this property. + IsActivityStreamsObject() bool + // IsActivityStreamsOffer returns true if this property has a type of + // "Offer". When true, use the GetActivityStreamsOffer and + // SetActivityStreamsOffer methods to access and set this property. + IsActivityStreamsOffer() bool + // IsActivityStreamsOrderedCollection returns true if this property has a + // type of "OrderedCollection". When true, use the + // GetActivityStreamsOrderedCollection and + // SetActivityStreamsOrderedCollection methods to access and set this + // property. + IsActivityStreamsOrderedCollection() bool + // IsActivityStreamsOrderedCollectionPage returns true if this property + // has a type of "OrderedCollectionPage". When true, use the + // GetActivityStreamsOrderedCollectionPage and + // SetActivityStreamsOrderedCollectionPage methods to access and set + // this property. + IsActivityStreamsOrderedCollectionPage() bool + // IsActivityStreamsOrganization returns true if this property has a type + // of "Organization". When true, use the + // GetActivityStreamsOrganization and SetActivityStreamsOrganization + // methods to access and set this property. + IsActivityStreamsOrganization() bool + // IsActivityStreamsPage returns true if this property has a type of + // "Page". When true, use the GetActivityStreamsPage and + // SetActivityStreamsPage methods to access and set this property. + IsActivityStreamsPage() bool + // IsActivityStreamsPerson returns true if this property has a type of + // "Person". When true, use the GetActivityStreamsPerson and + // SetActivityStreamsPerson methods to access and set this property. + IsActivityStreamsPerson() bool + // IsActivityStreamsPlace returns true if this property has a type of + // "Place". When true, use the GetActivityStreamsPlace and + // SetActivityStreamsPlace methods to access and set this property. + IsActivityStreamsPlace() bool + // IsActivityStreamsProfile returns true if this property has a type of + // "Profile". When true, use the GetActivityStreamsProfile and + // SetActivityStreamsProfile methods to access and set this property. + IsActivityStreamsProfile() bool + // IsActivityStreamsQuestion returns true if this property has a type of + // "Question". When true, use the GetActivityStreamsQuestion and + // SetActivityStreamsQuestion methods to access and set this property. + IsActivityStreamsQuestion() bool + // IsActivityStreamsRead returns true if this property has a type of + // "Read". When true, use the GetActivityStreamsRead and + // SetActivityStreamsRead methods to access and set this property. + IsActivityStreamsRead() bool + // IsActivityStreamsReject returns true if this property has a type of + // "Reject". When true, use the GetActivityStreamsReject and + // SetActivityStreamsReject methods to access and set this property. + IsActivityStreamsReject() bool + // IsActivityStreamsRelationship returns true if this property has a type + // of "Relationship". When true, use the + // GetActivityStreamsRelationship and SetActivityStreamsRelationship + // methods to access and set this property. + IsActivityStreamsRelationship() bool + // IsActivityStreamsRemove returns true if this property has a type of + // "Remove". When true, use the GetActivityStreamsRemove and + // SetActivityStreamsRemove methods to access and set this property. + IsActivityStreamsRemove() bool + // IsActivityStreamsService returns true if this property has a type of + // "Service". When true, use the GetActivityStreamsService and + // SetActivityStreamsService methods to access and set this property. + IsActivityStreamsService() bool + // IsActivityStreamsTentativeAccept returns true if this property has a + // type of "TentativeAccept". When true, use the + // GetActivityStreamsTentativeAccept and + // SetActivityStreamsTentativeAccept methods to access and set this + // property. + IsActivityStreamsTentativeAccept() bool + // IsActivityStreamsTentativeReject returns true if this property has a + // type of "TentativeReject". When true, use the + // GetActivityStreamsTentativeReject and + // SetActivityStreamsTentativeReject methods to access and set this + // property. + IsActivityStreamsTentativeReject() bool + // IsActivityStreamsTombstone returns true if this property has a type of + // "Tombstone". When true, use the GetActivityStreamsTombstone and + // SetActivityStreamsTombstone methods to access and set this property. + IsActivityStreamsTombstone() bool + // IsActivityStreamsTravel returns true if this property has a type of + // "Travel". When true, use the GetActivityStreamsTravel and + // SetActivityStreamsTravel methods to access and set this property. + IsActivityStreamsTravel() bool + // IsActivityStreamsUndo returns true if this property has a type of + // "Undo". When true, use the GetActivityStreamsUndo and + // SetActivityStreamsUndo methods to access and set this property. + IsActivityStreamsUndo() bool + // IsActivityStreamsUpdate returns true if this property has a type of + // "Update". When true, use the GetActivityStreamsUpdate and + // SetActivityStreamsUpdate methods to access and set this property. + IsActivityStreamsUpdate() bool + // IsActivityStreamsVideo returns true if this property has a type of + // "Video". When true, use the GetActivityStreamsVideo and + // SetActivityStreamsVideo methods to access and set this property. + IsActivityStreamsVideo() bool + // IsActivityStreamsView returns true if this property has a type of + // "View". When true, use the GetActivityStreamsView and + // SetActivityStreamsView methods to access and set this property. + IsActivityStreamsView() bool + // IsForgeFedBranch returns true if this property has a type of "Branch". + // When true, use the GetForgeFedBranch and SetForgeFedBranch methods + // to access and set this property. + IsForgeFedBranch() bool + // IsForgeFedCommit returns true if this property has a type of "Commit". + // When true, use the GetForgeFedCommit and SetForgeFedCommit methods + // to access and set this property. + IsForgeFedCommit() bool + // IsForgeFedPush returns true if this property has a type of "Push". When + // true, use the GetForgeFedPush and SetForgeFedPush methods to access + // and set this property. + IsForgeFedPush() bool + // IsForgeFedRepository returns true if this property has a type of + // "Repository". When true, use the GetForgeFedRepository and + // SetForgeFedRepository methods to access and set this property. + IsForgeFedRepository() bool + // IsForgeFedTicket returns true if this property has a type of "Ticket". + // When true, use the GetForgeFedTicket and SetForgeFedTicket methods + // to access and set this property. + IsForgeFedTicket() bool + // IsForgeFedTicketDependency returns true if this property has a type of + // "TicketDependency". When true, use the GetForgeFedTicketDependency + // and SetForgeFedTicketDependency methods to access and set this + // property. + IsForgeFedTicketDependency() bool + // IsIRI returns true if this property is an IRI. When true, use GetIRI + // and SetIRI to access and set this property + IsIRI() bool + // IsTootEmoji returns true if this property has a type of "Emoji". When + // true, use the GetTootEmoji and SetTootEmoji methods to access and + // set this property. + IsTootEmoji() bool + // IsTootIdentityProof returns true if this property has a type of + // "IdentityProof". When true, use the GetTootIdentityProof and + // SetTootIdentityProof methods to access and set this property. + IsTootIdentityProof() bool + // JSONLDContext returns the JSONLD URIs required in the context string + // for this property and the specific values that are set. The value + // in the map is the alias used to import the property's value or + // values. + JSONLDContext() map[string]string + // KindIndex computes an arbitrary value for indexing this kind of value. + // This is a leaky API detail only for folks looking to replace the + // go-fed implementation. Applications should not use this method. + KindIndex() int + // LessThan compares two instances of this property with an arbitrary but + // stable comparison. Applications should not use this because it is + // only meant to help alternative implementations to go-fed to be able + // to normalize nonfunctional properties. + LessThan(o ForgeFedCommittedByProperty) bool + // Name returns the name of this property: "committedBy". + Name() string + // Serialize converts this into an interface representation suitable for + // marshalling into a text or binary format. Applications should not + // need this function as most typical use cases serialize types + // instead of individual properties. It is exposed for alternatives to + // go-fed implementations to use. + Serialize() (interface{}, error) + // SetActivityStreamsAccept sets the value of this property. Calling + // IsActivityStreamsAccept afterwards returns true. + SetActivityStreamsAccept(v ActivityStreamsAccept) + // SetActivityStreamsActivity sets the value of this property. Calling + // IsActivityStreamsActivity afterwards returns true. + SetActivityStreamsActivity(v ActivityStreamsActivity) + // SetActivityStreamsAdd sets the value of this property. Calling + // IsActivityStreamsAdd afterwards returns true. + SetActivityStreamsAdd(v ActivityStreamsAdd) + // SetActivityStreamsAnnounce sets the value of this property. Calling + // IsActivityStreamsAnnounce afterwards returns true. + SetActivityStreamsAnnounce(v ActivityStreamsAnnounce) + // SetActivityStreamsApplication sets the value of this property. Calling + // IsActivityStreamsApplication afterwards returns true. + SetActivityStreamsApplication(v ActivityStreamsApplication) + // SetActivityStreamsArrive sets the value of this property. Calling + // IsActivityStreamsArrive afterwards returns true. + SetActivityStreamsArrive(v ActivityStreamsArrive) + // SetActivityStreamsArticle sets the value of this property. Calling + // IsActivityStreamsArticle afterwards returns true. + SetActivityStreamsArticle(v ActivityStreamsArticle) + // SetActivityStreamsAudio sets the value of this property. Calling + // IsActivityStreamsAudio afterwards returns true. + SetActivityStreamsAudio(v ActivityStreamsAudio) + // SetActivityStreamsBlock sets the value of this property. Calling + // IsActivityStreamsBlock afterwards returns true. + SetActivityStreamsBlock(v ActivityStreamsBlock) + // SetActivityStreamsCollection sets the value of this property. Calling + // IsActivityStreamsCollection afterwards returns true. + SetActivityStreamsCollection(v ActivityStreamsCollection) + // SetActivityStreamsCollectionPage sets the value of this property. + // Calling IsActivityStreamsCollectionPage afterwards returns true. + SetActivityStreamsCollectionPage(v ActivityStreamsCollectionPage) + // SetActivityStreamsCreate sets the value of this property. Calling + // IsActivityStreamsCreate afterwards returns true. + SetActivityStreamsCreate(v ActivityStreamsCreate) + // SetActivityStreamsDelete sets the value of this property. Calling + // IsActivityStreamsDelete afterwards returns true. + SetActivityStreamsDelete(v ActivityStreamsDelete) + // SetActivityStreamsDislike sets the value of this property. Calling + // IsActivityStreamsDislike afterwards returns true. + SetActivityStreamsDislike(v ActivityStreamsDislike) + // SetActivityStreamsDocument sets the value of this property. Calling + // IsActivityStreamsDocument afterwards returns true. + SetActivityStreamsDocument(v ActivityStreamsDocument) + // SetActivityStreamsEvent sets the value of this property. Calling + // IsActivityStreamsEvent afterwards returns true. + SetActivityStreamsEvent(v ActivityStreamsEvent) + // SetActivityStreamsFlag sets the value of this property. Calling + // IsActivityStreamsFlag afterwards returns true. + SetActivityStreamsFlag(v ActivityStreamsFlag) + // SetActivityStreamsFollow sets the value of this property. Calling + // IsActivityStreamsFollow afterwards returns true. + SetActivityStreamsFollow(v ActivityStreamsFollow) + // SetActivityStreamsGroup sets the value of this property. Calling + // IsActivityStreamsGroup afterwards returns true. + SetActivityStreamsGroup(v ActivityStreamsGroup) + // SetActivityStreamsIgnore sets the value of this property. Calling + // IsActivityStreamsIgnore afterwards returns true. + SetActivityStreamsIgnore(v ActivityStreamsIgnore) + // SetActivityStreamsImage sets the value of this property. Calling + // IsActivityStreamsImage afterwards returns true. + SetActivityStreamsImage(v ActivityStreamsImage) + // SetActivityStreamsIntransitiveActivity sets the value of this property. + // Calling IsActivityStreamsIntransitiveActivity afterwards returns + // true. + SetActivityStreamsIntransitiveActivity(v ActivityStreamsIntransitiveActivity) + // SetActivityStreamsInvite sets the value of this property. Calling + // IsActivityStreamsInvite afterwards returns true. + SetActivityStreamsInvite(v ActivityStreamsInvite) + // SetActivityStreamsJoin sets the value of this property. Calling + // IsActivityStreamsJoin afterwards returns true. + SetActivityStreamsJoin(v ActivityStreamsJoin) + // SetActivityStreamsLeave sets the value of this property. Calling + // IsActivityStreamsLeave afterwards returns true. + SetActivityStreamsLeave(v ActivityStreamsLeave) + // SetActivityStreamsLike sets the value of this property. Calling + // IsActivityStreamsLike afterwards returns true. + SetActivityStreamsLike(v ActivityStreamsLike) + // SetActivityStreamsListen sets the value of this property. Calling + // IsActivityStreamsListen afterwards returns true. + SetActivityStreamsListen(v ActivityStreamsListen) + // SetActivityStreamsMove sets the value of this property. Calling + // IsActivityStreamsMove afterwards returns true. + SetActivityStreamsMove(v ActivityStreamsMove) + // SetActivityStreamsNote sets the value of this property. Calling + // IsActivityStreamsNote afterwards returns true. + SetActivityStreamsNote(v ActivityStreamsNote) + // SetActivityStreamsObject sets the value of this property. Calling + // IsActivityStreamsObject afterwards returns true. + SetActivityStreamsObject(v ActivityStreamsObject) + // SetActivityStreamsOffer sets the value of this property. Calling + // IsActivityStreamsOffer afterwards returns true. + SetActivityStreamsOffer(v ActivityStreamsOffer) + // SetActivityStreamsOrderedCollection sets the value of this property. + // Calling IsActivityStreamsOrderedCollection afterwards returns true. + SetActivityStreamsOrderedCollection(v ActivityStreamsOrderedCollection) + // SetActivityStreamsOrderedCollectionPage sets the value of this + // property. Calling IsActivityStreamsOrderedCollectionPage afterwards + // returns true. + SetActivityStreamsOrderedCollectionPage(v ActivityStreamsOrderedCollectionPage) + // SetActivityStreamsOrganization sets the value of this property. Calling + // IsActivityStreamsOrganization afterwards returns true. + SetActivityStreamsOrganization(v ActivityStreamsOrganization) + // SetActivityStreamsPage sets the value of this property. Calling + // IsActivityStreamsPage afterwards returns true. + SetActivityStreamsPage(v ActivityStreamsPage) + // SetActivityStreamsPerson sets the value of this property. Calling + // IsActivityStreamsPerson afterwards returns true. + SetActivityStreamsPerson(v ActivityStreamsPerson) + // SetActivityStreamsPlace sets the value of this property. Calling + // IsActivityStreamsPlace afterwards returns true. + SetActivityStreamsPlace(v ActivityStreamsPlace) + // SetActivityStreamsProfile sets the value of this property. Calling + // IsActivityStreamsProfile afterwards returns true. + SetActivityStreamsProfile(v ActivityStreamsProfile) + // SetActivityStreamsQuestion sets the value of this property. Calling + // IsActivityStreamsQuestion afterwards returns true. + SetActivityStreamsQuestion(v ActivityStreamsQuestion) + // SetActivityStreamsRead sets the value of this property. Calling + // IsActivityStreamsRead afterwards returns true. + SetActivityStreamsRead(v ActivityStreamsRead) + // SetActivityStreamsReject sets the value of this property. Calling + // IsActivityStreamsReject afterwards returns true. + SetActivityStreamsReject(v ActivityStreamsReject) + // SetActivityStreamsRelationship sets the value of this property. Calling + // IsActivityStreamsRelationship afterwards returns true. + SetActivityStreamsRelationship(v ActivityStreamsRelationship) + // SetActivityStreamsRemove sets the value of this property. Calling + // IsActivityStreamsRemove afterwards returns true. + SetActivityStreamsRemove(v ActivityStreamsRemove) + // SetActivityStreamsService sets the value of this property. Calling + // IsActivityStreamsService afterwards returns true. + SetActivityStreamsService(v ActivityStreamsService) + // SetActivityStreamsTentativeAccept sets the value of this property. + // Calling IsActivityStreamsTentativeAccept afterwards returns true. + SetActivityStreamsTentativeAccept(v ActivityStreamsTentativeAccept) + // SetActivityStreamsTentativeReject sets the value of this property. + // Calling IsActivityStreamsTentativeReject afterwards returns true. + SetActivityStreamsTentativeReject(v ActivityStreamsTentativeReject) + // SetActivityStreamsTombstone sets the value of this property. Calling + // IsActivityStreamsTombstone afterwards returns true. + SetActivityStreamsTombstone(v ActivityStreamsTombstone) + // SetActivityStreamsTravel sets the value of this property. Calling + // IsActivityStreamsTravel afterwards returns true. + SetActivityStreamsTravel(v ActivityStreamsTravel) + // SetActivityStreamsUndo sets the value of this property. Calling + // IsActivityStreamsUndo afterwards returns true. + SetActivityStreamsUndo(v ActivityStreamsUndo) + // SetActivityStreamsUpdate sets the value of this property. Calling + // IsActivityStreamsUpdate afterwards returns true. + SetActivityStreamsUpdate(v ActivityStreamsUpdate) + // SetActivityStreamsVideo sets the value of this property. Calling + // IsActivityStreamsVideo afterwards returns true. + SetActivityStreamsVideo(v ActivityStreamsVideo) + // SetActivityStreamsView sets the value of this property. Calling + // IsActivityStreamsView afterwards returns true. + SetActivityStreamsView(v ActivityStreamsView) + // SetForgeFedBranch sets the value of this property. Calling + // IsForgeFedBranch afterwards returns true. + SetForgeFedBranch(v ForgeFedBranch) + // SetForgeFedCommit sets the value of this property. Calling + // IsForgeFedCommit afterwards returns true. + SetForgeFedCommit(v ForgeFedCommit) + // SetForgeFedPush sets the value of this property. Calling IsForgeFedPush + // afterwards returns true. + SetForgeFedPush(v ForgeFedPush) + // SetForgeFedRepository sets the value of this property. Calling + // IsForgeFedRepository afterwards returns true. + SetForgeFedRepository(v ForgeFedRepository) + // SetForgeFedTicket sets the value of this property. Calling + // IsForgeFedTicket afterwards returns true. + SetForgeFedTicket(v ForgeFedTicket) + // SetForgeFedTicketDependency sets the value of this property. Calling + // IsForgeFedTicketDependency afterwards returns true. + SetForgeFedTicketDependency(v ForgeFedTicketDependency) + // SetIRI sets the value of this property. Calling IsIRI afterwards + // returns true. + SetIRI(v *url.URL) + // SetTootEmoji sets the value of this property. Calling IsTootEmoji + // afterwards returns true. + SetTootEmoji(v TootEmoji) + // SetTootIdentityProof sets the value of this property. Calling + // IsTootIdentityProof afterwards returns true. + SetTootIdentityProof(v TootIdentityProof) + // SetType attempts to set the property for the arbitrary type. Returns an + // error if it is not a valid type to set on this property. + SetType(t Type) error +} diff --git a/streams/vocab/gen_property_forgefed_committed_interface.go b/streams/vocab/gen_property_forgefed_committed_interface.go new file mode 100644 index 0000000..d413e4b --- /dev/null +++ b/streams/vocab/gen_property_forgefed_committed_interface.go @@ -0,0 +1,60 @@ +// Code generated by astool. DO NOT EDIT. + +package vocab + +import ( + "net/url" + "time" +) + +// Specifies the time that a set of changes was committed into the Repository and +// became a Commit in it. This can be different from the time the set of +// changes was produced, e.g. if one person creates a patch and sends to +// another, and the other person then applies the patch to their copy of the +// repository. We call the former event "created" and the latter event +// "committed", and this latter event is specified by the committed property. +type ForgeFedCommittedProperty interface { + // Clear ensures no value of this property is set. Calling + // IsXMLSchemaDateTime afterwards will return false. + Clear() + // Get returns the value of this property. When IsXMLSchemaDateTime + // returns false, Get will return any arbitrary value. + Get() time.Time + // GetIRI returns the IRI of this property. When IsIRI returns false, + // GetIRI will return any arbitrary value. + GetIRI() *url.URL + // HasAny returns true if the value or IRI is set. + HasAny() bool + // IsIRI returns true if this property is an IRI. + IsIRI() bool + // IsXMLSchemaDateTime returns true if this property is set and not an IRI. + IsXMLSchemaDateTime() bool + // JSONLDContext returns the JSONLD URIs required in the context string + // for this property and the specific values that are set. The value + // in the map is the alias used to import the property's value or + // values. + JSONLDContext() map[string]string + // KindIndex computes an arbitrary value for indexing this kind of value. + // This is a leaky API detail only for folks looking to replace the + // go-fed implementation. Applications should not use this method. + KindIndex() int + // LessThan compares two instances of this property with an arbitrary but + // stable comparison. Applications should not use this because it is + // only meant to help alternative implementations to go-fed to be able + // to normalize nonfunctional properties. + LessThan(o ForgeFedCommittedProperty) bool + // Name returns the name of this property: "committed". + Name() string + // Serialize converts this into an interface representation suitable for + // marshalling into a text or binary format. Applications should not + // need this function as most typical use cases serialize types + // instead of individual properties. It is exposed for alternatives to + // go-fed implementations to use. + Serialize() (interface{}, error) + // Set sets the value of this property. Calling IsXMLSchemaDateTime + // afterwards will return true. + Set(v time.Time) + // SetIRI sets the value of this property. Calling IsIRI afterwards will + // return true. + SetIRI(v *url.URL) +} diff --git a/streams/vocab/gen_property_forgefed_dependants_interface.go b/streams/vocab/gen_property_forgefed_dependants_interface.go new file mode 100644 index 0000000..b35ca2f --- /dev/null +++ b/streams/vocab/gen_property_forgefed_dependants_interface.go @@ -0,0 +1,82 @@ +// Code generated by astool. DO NOT EDIT. + +package vocab + +import "net/url" + +// Identifies a Collection of TicketDependency which specify tickets that depends +// on this Ticket, i.e. this ticket is the object of the dependsOn +// relationship. Often called "reverse dependencies". +type ForgeFedDependantsProperty interface { + // Clear ensures no value of this property is set. Calling HasAny or any + // of the 'Is' methods afterwards will return false. + Clear() + // GetActivityStreamsOrderedCollection returns the value of this property. + // When IsActivityStreamsOrderedCollection returns false, + // GetActivityStreamsOrderedCollection will return an arbitrary value. + GetActivityStreamsOrderedCollection() ActivityStreamsOrderedCollection + // GetActivityStreamsOrderedCollectionPage returns the value of this + // property. When IsActivityStreamsOrderedCollectionPage returns + // false, GetActivityStreamsOrderedCollectionPage will return an + // arbitrary value. + GetActivityStreamsOrderedCollectionPage() ActivityStreamsOrderedCollectionPage + // GetIRI returns the IRI of this property. When IsIRI returns false, + // GetIRI will return an arbitrary value. + GetIRI() *url.URL + // GetType returns the value in this property as a Type. Returns nil if + // the value is not an ActivityStreams type, such as an IRI or another + // value. + GetType() Type + // HasAny returns true if any of the different values is set. + HasAny() bool + // IsActivityStreamsOrderedCollection returns true if this property has a + // type of "OrderedCollection". When true, use the + // GetActivityStreamsOrderedCollection and + // SetActivityStreamsOrderedCollection methods to access and set this + // property. + IsActivityStreamsOrderedCollection() bool + // IsActivityStreamsOrderedCollectionPage returns true if this property + // has a type of "OrderedCollectionPage". When true, use the + // GetActivityStreamsOrderedCollectionPage and + // SetActivityStreamsOrderedCollectionPage methods to access and set + // this property. + IsActivityStreamsOrderedCollectionPage() bool + // IsIRI returns true if this property is an IRI. When true, use GetIRI + // and SetIRI to access and set this property + IsIRI() bool + // JSONLDContext returns the JSONLD URIs required in the context string + // for this property and the specific values that are set. The value + // in the map is the alias used to import the property's value or + // values. + JSONLDContext() map[string]string + // KindIndex computes an arbitrary value for indexing this kind of value. + // This is a leaky API detail only for folks looking to replace the + // go-fed implementation. Applications should not use this method. + KindIndex() int + // LessThan compares two instances of this property with an arbitrary but + // stable comparison. Applications should not use this because it is + // only meant to help alternative implementations to go-fed to be able + // to normalize nonfunctional properties. + LessThan(o ForgeFedDependantsProperty) bool + // Name returns the name of this property: "dependants". + Name() string + // Serialize converts this into an interface representation suitable for + // marshalling into a text or binary format. Applications should not + // need this function as most typical use cases serialize types + // instead of individual properties. It is exposed for alternatives to + // go-fed implementations to use. + Serialize() (interface{}, error) + // SetActivityStreamsOrderedCollection sets the value of this property. + // Calling IsActivityStreamsOrderedCollection afterwards returns true. + SetActivityStreamsOrderedCollection(v ActivityStreamsOrderedCollection) + // SetActivityStreamsOrderedCollectionPage sets the value of this + // property. Calling IsActivityStreamsOrderedCollectionPage afterwards + // returns true. + SetActivityStreamsOrderedCollectionPage(v ActivityStreamsOrderedCollectionPage) + // SetIRI sets the value of this property. Calling IsIRI afterwards + // returns true. + SetIRI(v *url.URL) + // SetType attempts to set the property for the arbitrary type. Returns an + // error if it is not a valid type to set on this property. + SetType(t Type) error +} diff --git a/streams/vocab/gen_property_forgefed_dependedBy_interface.go b/streams/vocab/gen_property_forgefed_dependedBy_interface.go new file mode 100644 index 0000000..c165813 --- /dev/null +++ b/streams/vocab/gen_property_forgefed_dependedBy_interface.go @@ -0,0 +1,156 @@ +// Code generated by astool. DO NOT EDIT. + +package vocab + +import "net/url" + +// ForgeFedDependedByPropertyIterator represents a single value for the +// "dependedBy" property. +type ForgeFedDependedByPropertyIterator interface { + // Get returns the value of this property. When IsForgeFedTicket returns + // false, Get will return any arbitrary value. + Get() ForgeFedTicket + // GetIRI returns the IRI of this property. When IsIRI returns false, + // GetIRI will return any arbitrary value. + GetIRI() *url.URL + // GetType returns the value in this property as a Type. Returns nil if + // the value is not an ActivityStreams type, such as an IRI or another + // value. + GetType() Type + // HasAny returns true if the value or IRI is set. + HasAny() bool + // IsForgeFedTicket returns true if this property is set and not an IRI. + IsForgeFedTicket() bool + // IsIRI returns true if this property is an IRI. + IsIRI() bool + // JSONLDContext returns the JSONLD URIs required in the context string + // for this property and the specific values that are set. The value + // in the map is the alias used to import the property's value or + // values. + JSONLDContext() map[string]string + // KindIndex computes an arbitrary value for indexing this kind of value. + // This is a leaky API detail only for folks looking to replace the + // go-fed implementation. Applications should not use this method. + KindIndex() int + // LessThan compares two instances of this property with an arbitrary but + // stable comparison. Applications should not use this because it is + // only meant to help alternative implementations to go-fed to be able + // to normalize nonfunctional properties. + LessThan(o ForgeFedDependedByPropertyIterator) bool + // Name returns the name of this property: "ForgeFedDependedBy". + Name() string + // Next returns the next iterator, or nil if there is no next iterator. + Next() ForgeFedDependedByPropertyIterator + // Prev returns the previous iterator, or nil if there is no previous + // iterator. + Prev() ForgeFedDependedByPropertyIterator + // Set sets the value of this property. Calling IsForgeFedTicket + // afterwards will return true. + Set(v ForgeFedTicket) + // SetIRI sets the value of this property. Calling IsIRI afterwards will + // return true. + SetIRI(v *url.URL) + // SetType attempts to set the property for the arbitrary type. Returns an + // error if it is not a valid type to set on this property. + SetType(t Type) error +} + +// Identifies one or more tickets which depend on this Ticket, i.e. they can’t +// be resolved without this tickets being resolved too. +type ForgeFedDependedByProperty interface { + // AppendForgeFedTicket appends a Ticket value to the back of a list of + // the property "dependedBy". Invalidates iterators that are + // traversing using Prev. + AppendForgeFedTicket(v ForgeFedTicket) + // AppendIRI appends an IRI value to the back of a list of the property + // "dependedBy" + AppendIRI(v *url.URL) + // PrependType prepends an arbitrary type value to the front of a list of + // the property "dependedBy". Invalidates iterators that are + // traversing using Prev. Returns an error if the type is not a valid + // one to set for this property. + AppendType(t Type) error + // At returns the property value for the specified index. Panics if the + // index is out of bounds. + At(index int) ForgeFedDependedByPropertyIterator + // Begin returns the first iterator, or nil if empty. Can be used with the + // iterator's Next method and this property's End method to iterate + // from front to back through all values. + Begin() ForgeFedDependedByPropertyIterator + // Empty returns returns true if there are no elements. + Empty() bool + // End returns beyond-the-last iterator, which is nil. Can be used with + // the iterator's Next method and this property's Begin method to + // iterate from front to back through all values. + End() ForgeFedDependedByPropertyIterator + // InsertForgeFedTicket inserts a Ticket value at the specified index for + // a property "dependedBy". Existing elements at that index and higher + // are shifted back once. Invalidates all iterators. + InsertForgeFedTicket(idx int, v ForgeFedTicket) + // Insert inserts an IRI value at the specified index for a property + // "dependedBy". Existing elements at that index and higher are + // shifted back once. Invalidates all iterators. + InsertIRI(idx int, v *url.URL) + // PrependType prepends an arbitrary type value to the front of a list of + // the property "dependedBy". Invalidates all iterators. Returns an + // error if the type is not a valid one to set for this property. + InsertType(idx int, t Type) error + // JSONLDContext returns the JSONLD URIs required in the context string + // for this property and the specific values that are set. The value + // in the map is the alias used to import the property's value or + // values. + JSONLDContext() map[string]string + // KindIndex computes an arbitrary value for indexing this kind of value. + // This is a leaky API method specifically needed only for alternate + // implementations for go-fed. Applications should not use this + // method. Panics if the index is out of bounds. + KindIndex(idx int) int + // Len returns the number of values that exist for the "dependedBy" + // property. + Len() (length int) + // Less computes whether another property is less than this one. Mixing + // types results in a consistent but arbitrary ordering + Less(i, j int) bool + // LessThan compares two instances of this property with an arbitrary but + // stable comparison. Applications should not use this because it is + // only meant to help alternative implementations to go-fed to be able + // to normalize nonfunctional properties. + LessThan(o ForgeFedDependedByProperty) bool + // Name returns the name of this property ("dependedBy") with any alias. + Name() string + // PrependForgeFedTicket prepends a Ticket value to the front of a list of + // the property "dependedBy". Invalidates all iterators. + PrependForgeFedTicket(v ForgeFedTicket) + // PrependIRI prepends an IRI value to the front of a list of the property + // "dependedBy". + PrependIRI(v *url.URL) + // PrependType prepends an arbitrary type value to the front of a list of + // the property "dependedBy". Invalidates all iterators. Returns an + // error if the type is not a valid one to set for this property. + PrependType(t Type) error + // Remove deletes an element at the specified index from a list of the + // property "dependedBy", regardless of its type. Panics if the index + // is out of bounds. Invalidates all iterators. + Remove(idx int) + // Serialize converts this into an interface representation suitable for + // marshalling into a text or binary format. Applications should not + // need this function as most typical use cases serialize types + // instead of individual properties. It is exposed for alternatives to + // go-fed implementations to use. + Serialize() (interface{}, error) + // Set sets a Ticket value to be at the specified index for the property + // "dependedBy". Panics if the index is out of bounds. Invalidates all + // iterators. + Set(idx int, v ForgeFedTicket) + // SetIRI sets an IRI value to be at the specified index for the property + // "dependedBy". Panics if the index is out of bounds. + SetIRI(idx int, v *url.URL) + // SetType sets an arbitrary type value to the specified index of the + // property "dependedBy". Invalidates all iterators. Returns an error + // if the type is not a valid one to set for this property. Panics if + // the index is out of bounds. + SetType(idx int, t Type) error + // Swap swaps the location of values at two indices for the "dependedBy" + // property. + Swap(i, j int) +} diff --git a/streams/vocab/gen_property_forgefed_dependencies_interface.go b/streams/vocab/gen_property_forgefed_dependencies_interface.go new file mode 100644 index 0000000..e7ef8d8 --- /dev/null +++ b/streams/vocab/gen_property_forgefed_dependencies_interface.go @@ -0,0 +1,82 @@ +// Code generated by astool. DO NOT EDIT. + +package vocab + +import "net/url" + +// Identifies a Collection of TicketDependency which specify tickets that this +// Ticket depends on, i.e. this ticket is the subject of the dependsOn +// relationship. +type ForgeFedDependenciesProperty interface { + // Clear ensures no value of this property is set. Calling HasAny or any + // of the 'Is' methods afterwards will return false. + Clear() + // GetActivityStreamsOrderedCollection returns the value of this property. + // When IsActivityStreamsOrderedCollection returns false, + // GetActivityStreamsOrderedCollection will return an arbitrary value. + GetActivityStreamsOrderedCollection() ActivityStreamsOrderedCollection + // GetActivityStreamsOrderedCollectionPage returns the value of this + // property. When IsActivityStreamsOrderedCollectionPage returns + // false, GetActivityStreamsOrderedCollectionPage will return an + // arbitrary value. + GetActivityStreamsOrderedCollectionPage() ActivityStreamsOrderedCollectionPage + // GetIRI returns the IRI of this property. When IsIRI returns false, + // GetIRI will return an arbitrary value. + GetIRI() *url.URL + // GetType returns the value in this property as a Type. Returns nil if + // the value is not an ActivityStreams type, such as an IRI or another + // value. + GetType() Type + // HasAny returns true if any of the different values is set. + HasAny() bool + // IsActivityStreamsOrderedCollection returns true if this property has a + // type of "OrderedCollection". When true, use the + // GetActivityStreamsOrderedCollection and + // SetActivityStreamsOrderedCollection methods to access and set this + // property. + IsActivityStreamsOrderedCollection() bool + // IsActivityStreamsOrderedCollectionPage returns true if this property + // has a type of "OrderedCollectionPage". When true, use the + // GetActivityStreamsOrderedCollectionPage and + // SetActivityStreamsOrderedCollectionPage methods to access and set + // this property. + IsActivityStreamsOrderedCollectionPage() bool + // IsIRI returns true if this property is an IRI. When true, use GetIRI + // and SetIRI to access and set this property + IsIRI() bool + // JSONLDContext returns the JSONLD URIs required in the context string + // for this property and the specific values that are set. The value + // in the map is the alias used to import the property's value or + // values. + JSONLDContext() map[string]string + // KindIndex computes an arbitrary value for indexing this kind of value. + // This is a leaky API detail only for folks looking to replace the + // go-fed implementation. Applications should not use this method. + KindIndex() int + // LessThan compares two instances of this property with an arbitrary but + // stable comparison. Applications should not use this because it is + // only meant to help alternative implementations to go-fed to be able + // to normalize nonfunctional properties. + LessThan(o ForgeFedDependenciesProperty) bool + // Name returns the name of this property: "dependencies". + Name() string + // Serialize converts this into an interface representation suitable for + // marshalling into a text or binary format. Applications should not + // need this function as most typical use cases serialize types + // instead of individual properties. It is exposed for alternatives to + // go-fed implementations to use. + Serialize() (interface{}, error) + // SetActivityStreamsOrderedCollection sets the value of this property. + // Calling IsActivityStreamsOrderedCollection afterwards returns true. + SetActivityStreamsOrderedCollection(v ActivityStreamsOrderedCollection) + // SetActivityStreamsOrderedCollectionPage sets the value of this + // property. Calling IsActivityStreamsOrderedCollectionPage afterwards + // returns true. + SetActivityStreamsOrderedCollectionPage(v ActivityStreamsOrderedCollectionPage) + // SetIRI sets the value of this property. Calling IsIRI afterwards + // returns true. + SetIRI(v *url.URL) + // SetType attempts to set the property for the arbitrary type. Returns an + // error if it is not a valid type to set on this property. + SetType(t Type) error +} diff --git a/streams/vocab/gen_property_forgefed_dependsOn_interface.go b/streams/vocab/gen_property_forgefed_dependsOn_interface.go new file mode 100644 index 0000000..fcee3af --- /dev/null +++ b/streams/vocab/gen_property_forgefed_dependsOn_interface.go @@ -0,0 +1,156 @@ +// Code generated by astool. DO NOT EDIT. + +package vocab + +import "net/url" + +// ForgeFedDependsOnPropertyIterator represents a single value for the "dependsOn" +// property. +type ForgeFedDependsOnPropertyIterator interface { + // Get returns the value of this property. When IsForgeFedTicket returns + // false, Get will return any arbitrary value. + Get() ForgeFedTicket + // GetIRI returns the IRI of this property. When IsIRI returns false, + // GetIRI will return any arbitrary value. + GetIRI() *url.URL + // GetType returns the value in this property as a Type. Returns nil if + // the value is not an ActivityStreams type, such as an IRI or another + // value. + GetType() Type + // HasAny returns true if the value or IRI is set. + HasAny() bool + // IsForgeFedTicket returns true if this property is set and not an IRI. + IsForgeFedTicket() bool + // IsIRI returns true if this property is an IRI. + IsIRI() bool + // JSONLDContext returns the JSONLD URIs required in the context string + // for this property and the specific values that are set. The value + // in the map is the alias used to import the property's value or + // values. + JSONLDContext() map[string]string + // KindIndex computes an arbitrary value for indexing this kind of value. + // This is a leaky API detail only for folks looking to replace the + // go-fed implementation. Applications should not use this method. + KindIndex() int + // LessThan compares two instances of this property with an arbitrary but + // stable comparison. Applications should not use this because it is + // only meant to help alternative implementations to go-fed to be able + // to normalize nonfunctional properties. + LessThan(o ForgeFedDependsOnPropertyIterator) bool + // Name returns the name of this property: "ForgeFedDependsOn". + Name() string + // Next returns the next iterator, or nil if there is no next iterator. + Next() ForgeFedDependsOnPropertyIterator + // Prev returns the previous iterator, or nil if there is no previous + // iterator. + Prev() ForgeFedDependsOnPropertyIterator + // Set sets the value of this property. Calling IsForgeFedTicket + // afterwards will return true. + Set(v ForgeFedTicket) + // SetIRI sets the value of this property. Calling IsIRI afterwards will + // return true. + SetIRI(v *url.URL) + // SetType attempts to set the property for the arbitrary type. Returns an + // error if it is not a valid type to set on this property. + SetType(t Type) error +} + +// Identifies one or more tickets on which this Ticket depends, i.e. it can’t be +// resolved without those tickets being resolved too. +type ForgeFedDependsOnProperty interface { + // AppendForgeFedTicket appends a Ticket value to the back of a list of + // the property "dependsOn". Invalidates iterators that are traversing + // using Prev. + AppendForgeFedTicket(v ForgeFedTicket) + // AppendIRI appends an IRI value to the back of a list of the property + // "dependsOn" + AppendIRI(v *url.URL) + // PrependType prepends an arbitrary type value to the front of a list of + // the property "dependsOn". Invalidates iterators that are traversing + // using Prev. Returns an error if the type is not a valid one to set + // for this property. + AppendType(t Type) error + // At returns the property value for the specified index. Panics if the + // index is out of bounds. + At(index int) ForgeFedDependsOnPropertyIterator + // Begin returns the first iterator, or nil if empty. Can be used with the + // iterator's Next method and this property's End method to iterate + // from front to back through all values. + Begin() ForgeFedDependsOnPropertyIterator + // Empty returns returns true if there are no elements. + Empty() bool + // End returns beyond-the-last iterator, which is nil. Can be used with + // the iterator's Next method and this property's Begin method to + // iterate from front to back through all values. + End() ForgeFedDependsOnPropertyIterator + // InsertForgeFedTicket inserts a Ticket value at the specified index for + // a property "dependsOn". Existing elements at that index and higher + // are shifted back once. Invalidates all iterators. + InsertForgeFedTicket(idx int, v ForgeFedTicket) + // Insert inserts an IRI value at the specified index for a property + // "dependsOn". Existing elements at that index and higher are shifted + // back once. Invalidates all iterators. + InsertIRI(idx int, v *url.URL) + // PrependType prepends an arbitrary type value to the front of a list of + // the property "dependsOn". Invalidates all iterators. Returns an + // error if the type is not a valid one to set for this property. + InsertType(idx int, t Type) error + // JSONLDContext returns the JSONLD URIs required in the context string + // for this property and the specific values that are set. The value + // in the map is the alias used to import the property's value or + // values. + JSONLDContext() map[string]string + // KindIndex computes an arbitrary value for indexing this kind of value. + // This is a leaky API method specifically needed only for alternate + // implementations for go-fed. Applications should not use this + // method. Panics if the index is out of bounds. + KindIndex(idx int) int + // Len returns the number of values that exist for the "dependsOn" + // property. + Len() (length int) + // Less computes whether another property is less than this one. Mixing + // types results in a consistent but arbitrary ordering + Less(i, j int) bool + // LessThan compares two instances of this property with an arbitrary but + // stable comparison. Applications should not use this because it is + // only meant to help alternative implementations to go-fed to be able + // to normalize nonfunctional properties. + LessThan(o ForgeFedDependsOnProperty) bool + // Name returns the name of this property ("dependsOn") with any alias. + Name() string + // PrependForgeFedTicket prepends a Ticket value to the front of a list of + // the property "dependsOn". Invalidates all iterators. + PrependForgeFedTicket(v ForgeFedTicket) + // PrependIRI prepends an IRI value to the front of a list of the property + // "dependsOn". + PrependIRI(v *url.URL) + // PrependType prepends an arbitrary type value to the front of a list of + // the property "dependsOn". Invalidates all iterators. Returns an + // error if the type is not a valid one to set for this property. + PrependType(t Type) error + // Remove deletes an element at the specified index from a list of the + // property "dependsOn", regardless of its type. Panics if the index + // is out of bounds. Invalidates all iterators. + Remove(idx int) + // Serialize converts this into an interface representation suitable for + // marshalling into a text or binary format. Applications should not + // need this function as most typical use cases serialize types + // instead of individual properties. It is exposed for alternatives to + // go-fed implementations to use. + Serialize() (interface{}, error) + // Set sets a Ticket value to be at the specified index for the property + // "dependsOn". Panics if the index is out of bounds. Invalidates all + // iterators. + Set(idx int, v ForgeFedTicket) + // SetIRI sets an IRI value to be at the specified index for the property + // "dependsOn". Panics if the index is out of bounds. + SetIRI(idx int, v *url.URL) + // SetType sets an arbitrary type value to the specified index of the + // property "dependsOn". Invalidates all iterators. Returns an error + // if the type is not a valid one to set for this property. Panics if + // the index is out of bounds. + SetType(idx int, t Type) error + // Swap swaps the location of values at two indices for the "dependsOn" + // property. + Swap(i, j int) +} diff --git a/streams/vocab/gen_property_forgefed_description_interface.go b/streams/vocab/gen_property_forgefed_description_interface.go new file mode 100644 index 0000000..69c1022 --- /dev/null +++ b/streams/vocab/gen_property_forgefed_description_interface.go @@ -0,0 +1,752 @@ +// Code generated by astool. DO NOT EDIT. + +package vocab + +import "net/url" + +// Specifies the description text of a Commit, which is an optional possibly +// multi-line text provided in addition to the one-line commit title. The +// range of the description property works the same way the range of the +// ActivityPub source property works. +// +// { +// "@context": [ +// "https://www.w3.org/ns/activitystreams", +// "https://forgefed.peers.community/ns" +// ], +// "attributedTo": "https://example.dev/bob", +// "context": "https://example.dev/alice/myrepo", +// "created": "2019-07-11T12:34:56Z", +// "description": { +// "content": "It's about time people can install on their computers!", +// "mediaType": "text/plain" +// }, +// "hash": "109ec9a09c7df7fec775d2ba0b9d466e5643ec8c", +// "id": "https://example.dev/alice/myrepo/commits/109ec9a09c7df7fec775d2ba0b9d466e5643ec8c", +// "summary": "Add an installation script, fixes issue #89", +// "type": "Commit" +// } +type ForgeFedDescriptionProperty interface { + // Clear ensures no value of this property is set. Calling HasAny or any + // of the 'Is' methods afterwards will return false. + Clear() + // GetActivityStreamsAccept returns the value of this property. When + // IsActivityStreamsAccept returns false, GetActivityStreamsAccept + // will return an arbitrary value. + GetActivityStreamsAccept() ActivityStreamsAccept + // GetActivityStreamsActivity returns the value of this property. When + // IsActivityStreamsActivity returns false, GetActivityStreamsActivity + // will return an arbitrary value. + GetActivityStreamsActivity() ActivityStreamsActivity + // GetActivityStreamsAdd returns the value of this property. When + // IsActivityStreamsAdd returns false, GetActivityStreamsAdd will + // return an arbitrary value. + GetActivityStreamsAdd() ActivityStreamsAdd + // GetActivityStreamsAnnounce returns the value of this property. When + // IsActivityStreamsAnnounce returns false, GetActivityStreamsAnnounce + // will return an arbitrary value. + GetActivityStreamsAnnounce() ActivityStreamsAnnounce + // GetActivityStreamsApplication returns the value of this property. When + // IsActivityStreamsApplication returns false, + // GetActivityStreamsApplication will return an arbitrary value. + GetActivityStreamsApplication() ActivityStreamsApplication + // GetActivityStreamsArrive returns the value of this property. When + // IsActivityStreamsArrive returns false, GetActivityStreamsArrive + // will return an arbitrary value. + GetActivityStreamsArrive() ActivityStreamsArrive + // GetActivityStreamsArticle returns the value of this property. When + // IsActivityStreamsArticle returns false, GetActivityStreamsArticle + // will return an arbitrary value. + GetActivityStreamsArticle() ActivityStreamsArticle + // GetActivityStreamsAudio returns the value of this property. When + // IsActivityStreamsAudio returns false, GetActivityStreamsAudio will + // return an arbitrary value. + GetActivityStreamsAudio() ActivityStreamsAudio + // GetActivityStreamsBlock returns the value of this property. When + // IsActivityStreamsBlock returns false, GetActivityStreamsBlock will + // return an arbitrary value. + GetActivityStreamsBlock() ActivityStreamsBlock + // GetActivityStreamsCollection returns the value of this property. When + // IsActivityStreamsCollection returns false, + // GetActivityStreamsCollection will return an arbitrary value. + GetActivityStreamsCollection() ActivityStreamsCollection + // GetActivityStreamsCollectionPage returns the value of this property. + // When IsActivityStreamsCollectionPage returns false, + // GetActivityStreamsCollectionPage will return an arbitrary value. + GetActivityStreamsCollectionPage() ActivityStreamsCollectionPage + // GetActivityStreamsCreate returns the value of this property. When + // IsActivityStreamsCreate returns false, GetActivityStreamsCreate + // will return an arbitrary value. + GetActivityStreamsCreate() ActivityStreamsCreate + // GetActivityStreamsDelete returns the value of this property. When + // IsActivityStreamsDelete returns false, GetActivityStreamsDelete + // will return an arbitrary value. + GetActivityStreamsDelete() ActivityStreamsDelete + // GetActivityStreamsDislike returns the value of this property. When + // IsActivityStreamsDislike returns false, GetActivityStreamsDislike + // will return an arbitrary value. + GetActivityStreamsDislike() ActivityStreamsDislike + // GetActivityStreamsDocument returns the value of this property. When + // IsActivityStreamsDocument returns false, GetActivityStreamsDocument + // will return an arbitrary value. + GetActivityStreamsDocument() ActivityStreamsDocument + // GetActivityStreamsEvent returns the value of this property. When + // IsActivityStreamsEvent returns false, GetActivityStreamsEvent will + // return an arbitrary value. + GetActivityStreamsEvent() ActivityStreamsEvent + // GetActivityStreamsFlag returns the value of this property. When + // IsActivityStreamsFlag returns false, GetActivityStreamsFlag will + // return an arbitrary value. + GetActivityStreamsFlag() ActivityStreamsFlag + // GetActivityStreamsFollow returns the value of this property. When + // IsActivityStreamsFollow returns false, GetActivityStreamsFollow + // will return an arbitrary value. + GetActivityStreamsFollow() ActivityStreamsFollow + // GetActivityStreamsGroup returns the value of this property. When + // IsActivityStreamsGroup returns false, GetActivityStreamsGroup will + // return an arbitrary value. + GetActivityStreamsGroup() ActivityStreamsGroup + // GetActivityStreamsIgnore returns the value of this property. When + // IsActivityStreamsIgnore returns false, GetActivityStreamsIgnore + // will return an arbitrary value. + GetActivityStreamsIgnore() ActivityStreamsIgnore + // GetActivityStreamsImage returns the value of this property. When + // IsActivityStreamsImage returns false, GetActivityStreamsImage will + // return an arbitrary value. + GetActivityStreamsImage() ActivityStreamsImage + // GetActivityStreamsIntransitiveActivity returns the value of this + // property. When IsActivityStreamsIntransitiveActivity returns false, + // GetActivityStreamsIntransitiveActivity will return an arbitrary + // value. + GetActivityStreamsIntransitiveActivity() ActivityStreamsIntransitiveActivity + // GetActivityStreamsInvite returns the value of this property. When + // IsActivityStreamsInvite returns false, GetActivityStreamsInvite + // will return an arbitrary value. + GetActivityStreamsInvite() ActivityStreamsInvite + // GetActivityStreamsJoin returns the value of this property. When + // IsActivityStreamsJoin returns false, GetActivityStreamsJoin will + // return an arbitrary value. + GetActivityStreamsJoin() ActivityStreamsJoin + // GetActivityStreamsLeave returns the value of this property. When + // IsActivityStreamsLeave returns false, GetActivityStreamsLeave will + // return an arbitrary value. + GetActivityStreamsLeave() ActivityStreamsLeave + // GetActivityStreamsLike returns the value of this property. When + // IsActivityStreamsLike returns false, GetActivityStreamsLike will + // return an arbitrary value. + GetActivityStreamsLike() ActivityStreamsLike + // GetActivityStreamsListen returns the value of this property. When + // IsActivityStreamsListen returns false, GetActivityStreamsListen + // will return an arbitrary value. + GetActivityStreamsListen() ActivityStreamsListen + // GetActivityStreamsMove returns the value of this property. When + // IsActivityStreamsMove returns false, GetActivityStreamsMove will + // return an arbitrary value. + GetActivityStreamsMove() ActivityStreamsMove + // GetActivityStreamsNote returns the value of this property. When + // IsActivityStreamsNote returns false, GetActivityStreamsNote will + // return an arbitrary value. + GetActivityStreamsNote() ActivityStreamsNote + // GetActivityStreamsObject returns the value of this property. When + // IsActivityStreamsObject returns false, GetActivityStreamsObject + // will return an arbitrary value. + GetActivityStreamsObject() ActivityStreamsObject + // GetActivityStreamsOffer returns the value of this property. When + // IsActivityStreamsOffer returns false, GetActivityStreamsOffer will + // return an arbitrary value. + GetActivityStreamsOffer() ActivityStreamsOffer + // GetActivityStreamsOrderedCollection returns the value of this property. + // When IsActivityStreamsOrderedCollection returns false, + // GetActivityStreamsOrderedCollection will return an arbitrary value. + GetActivityStreamsOrderedCollection() ActivityStreamsOrderedCollection + // GetActivityStreamsOrderedCollectionPage returns the value of this + // property. When IsActivityStreamsOrderedCollectionPage returns + // false, GetActivityStreamsOrderedCollectionPage will return an + // arbitrary value. + GetActivityStreamsOrderedCollectionPage() ActivityStreamsOrderedCollectionPage + // GetActivityStreamsOrganization returns the value of this property. When + // IsActivityStreamsOrganization returns false, + // GetActivityStreamsOrganization will return an arbitrary value. + GetActivityStreamsOrganization() ActivityStreamsOrganization + // GetActivityStreamsPage returns the value of this property. When + // IsActivityStreamsPage returns false, GetActivityStreamsPage will + // return an arbitrary value. + GetActivityStreamsPage() ActivityStreamsPage + // GetActivityStreamsPerson returns the value of this property. When + // IsActivityStreamsPerson returns false, GetActivityStreamsPerson + // will return an arbitrary value. + GetActivityStreamsPerson() ActivityStreamsPerson + // GetActivityStreamsPlace returns the value of this property. When + // IsActivityStreamsPlace returns false, GetActivityStreamsPlace will + // return an arbitrary value. + GetActivityStreamsPlace() ActivityStreamsPlace + // GetActivityStreamsProfile returns the value of this property. When + // IsActivityStreamsProfile returns false, GetActivityStreamsProfile + // will return an arbitrary value. + GetActivityStreamsProfile() ActivityStreamsProfile + // GetActivityStreamsQuestion returns the value of this property. When + // IsActivityStreamsQuestion returns false, GetActivityStreamsQuestion + // will return an arbitrary value. + GetActivityStreamsQuestion() ActivityStreamsQuestion + // GetActivityStreamsRead returns the value of this property. When + // IsActivityStreamsRead returns false, GetActivityStreamsRead will + // return an arbitrary value. + GetActivityStreamsRead() ActivityStreamsRead + // GetActivityStreamsReject returns the value of this property. When + // IsActivityStreamsReject returns false, GetActivityStreamsReject + // will return an arbitrary value. + GetActivityStreamsReject() ActivityStreamsReject + // GetActivityStreamsRelationship returns the value of this property. When + // IsActivityStreamsRelationship returns false, + // GetActivityStreamsRelationship will return an arbitrary value. + GetActivityStreamsRelationship() ActivityStreamsRelationship + // GetActivityStreamsRemove returns the value of this property. When + // IsActivityStreamsRemove returns false, GetActivityStreamsRemove + // will return an arbitrary value. + GetActivityStreamsRemove() ActivityStreamsRemove + // GetActivityStreamsService returns the value of this property. When + // IsActivityStreamsService returns false, GetActivityStreamsService + // will return an arbitrary value. + GetActivityStreamsService() ActivityStreamsService + // GetActivityStreamsTentativeAccept returns the value of this property. + // When IsActivityStreamsTentativeAccept returns false, + // GetActivityStreamsTentativeAccept will return an arbitrary value. + GetActivityStreamsTentativeAccept() ActivityStreamsTentativeAccept + // GetActivityStreamsTentativeReject returns the value of this property. + // When IsActivityStreamsTentativeReject returns false, + // GetActivityStreamsTentativeReject will return an arbitrary value. + GetActivityStreamsTentativeReject() ActivityStreamsTentativeReject + // GetActivityStreamsTombstone returns the value of this property. When + // IsActivityStreamsTombstone returns false, + // GetActivityStreamsTombstone will return an arbitrary value. + GetActivityStreamsTombstone() ActivityStreamsTombstone + // GetActivityStreamsTravel returns the value of this property. When + // IsActivityStreamsTravel returns false, GetActivityStreamsTravel + // will return an arbitrary value. + GetActivityStreamsTravel() ActivityStreamsTravel + // GetActivityStreamsUndo returns the value of this property. When + // IsActivityStreamsUndo returns false, GetActivityStreamsUndo will + // return an arbitrary value. + GetActivityStreamsUndo() ActivityStreamsUndo + // GetActivityStreamsUpdate returns the value of this property. When + // IsActivityStreamsUpdate returns false, GetActivityStreamsUpdate + // will return an arbitrary value. + GetActivityStreamsUpdate() ActivityStreamsUpdate + // GetActivityStreamsVideo returns the value of this property. When + // IsActivityStreamsVideo returns false, GetActivityStreamsVideo will + // return an arbitrary value. + GetActivityStreamsVideo() ActivityStreamsVideo + // GetActivityStreamsView returns the value of this property. When + // IsActivityStreamsView returns false, GetActivityStreamsView will + // return an arbitrary value. + GetActivityStreamsView() ActivityStreamsView + // GetForgeFedBranch returns the value of this property. When + // IsForgeFedBranch returns false, GetForgeFedBranch will return an + // arbitrary value. + GetForgeFedBranch() ForgeFedBranch + // GetForgeFedCommit returns the value of this property. When + // IsForgeFedCommit returns false, GetForgeFedCommit will return an + // arbitrary value. + GetForgeFedCommit() ForgeFedCommit + // GetForgeFedPush returns the value of this property. When IsForgeFedPush + // returns false, GetForgeFedPush will return an arbitrary value. + GetForgeFedPush() ForgeFedPush + // GetForgeFedRepository returns the value of this property. When + // IsForgeFedRepository returns false, GetForgeFedRepository will + // return an arbitrary value. + GetForgeFedRepository() ForgeFedRepository + // GetForgeFedTicket returns the value of this property. When + // IsForgeFedTicket returns false, GetForgeFedTicket will return an + // arbitrary value. + GetForgeFedTicket() ForgeFedTicket + // GetForgeFedTicketDependency returns the value of this property. When + // IsForgeFedTicketDependency returns false, + // GetForgeFedTicketDependency will return an arbitrary value. + GetForgeFedTicketDependency() ForgeFedTicketDependency + // GetIRI returns the IRI of this property. When IsIRI returns false, + // GetIRI will return an arbitrary value. + GetIRI() *url.URL + // GetTootEmoji returns the value of this property. When IsTootEmoji + // returns false, GetTootEmoji will return an arbitrary value. + GetTootEmoji() TootEmoji + // GetTootIdentityProof returns the value of this property. When + // IsTootIdentityProof returns false, GetTootIdentityProof will return + // an arbitrary value. + GetTootIdentityProof() TootIdentityProof + // GetType returns the value in this property as a Type. Returns nil if + // the value is not an ActivityStreams type, such as an IRI or another + // value. + GetType() Type + // HasAny returns true if any of the different values is set. + HasAny() bool + // IsActivityStreamsAccept returns true if this property has a type of + // "Accept". When true, use the GetActivityStreamsAccept and + // SetActivityStreamsAccept methods to access and set this property. + IsActivityStreamsAccept() bool + // IsActivityStreamsActivity returns true if this property has a type of + // "Activity". When true, use the GetActivityStreamsActivity and + // SetActivityStreamsActivity methods to access and set this property. + IsActivityStreamsActivity() bool + // IsActivityStreamsAdd returns true if this property has a type of "Add". + // When true, use the GetActivityStreamsAdd and SetActivityStreamsAdd + // methods to access and set this property. + IsActivityStreamsAdd() bool + // IsActivityStreamsAnnounce returns true if this property has a type of + // "Announce". When true, use the GetActivityStreamsAnnounce and + // SetActivityStreamsAnnounce methods to access and set this property. + IsActivityStreamsAnnounce() bool + // IsActivityStreamsApplication returns true if this property has a type + // of "Application". When true, use the GetActivityStreamsApplication + // and SetActivityStreamsApplication methods to access and set this + // property. + IsActivityStreamsApplication() bool + // IsActivityStreamsArrive returns true if this property has a type of + // "Arrive". When true, use the GetActivityStreamsArrive and + // SetActivityStreamsArrive methods to access and set this property. + IsActivityStreamsArrive() bool + // IsActivityStreamsArticle returns true if this property has a type of + // "Article". When true, use the GetActivityStreamsArticle and + // SetActivityStreamsArticle methods to access and set this property. + IsActivityStreamsArticle() bool + // IsActivityStreamsAudio returns true if this property has a type of + // "Audio". When true, use the GetActivityStreamsAudio and + // SetActivityStreamsAudio methods to access and set this property. + IsActivityStreamsAudio() bool + // IsActivityStreamsBlock returns true if this property has a type of + // "Block". When true, use the GetActivityStreamsBlock and + // SetActivityStreamsBlock methods to access and set this property. + IsActivityStreamsBlock() bool + // IsActivityStreamsCollection returns true if this property has a type of + // "Collection". When true, use the GetActivityStreamsCollection and + // SetActivityStreamsCollection methods to access and set this + // property. + IsActivityStreamsCollection() bool + // IsActivityStreamsCollectionPage returns true if this property has a + // type of "CollectionPage". When true, use the + // GetActivityStreamsCollectionPage and + // SetActivityStreamsCollectionPage methods to access and set this + // property. + IsActivityStreamsCollectionPage() bool + // IsActivityStreamsCreate returns true if this property has a type of + // "Create". When true, use the GetActivityStreamsCreate and + // SetActivityStreamsCreate methods to access and set this property. + IsActivityStreamsCreate() bool + // IsActivityStreamsDelete returns true if this property has a type of + // "Delete". When true, use the GetActivityStreamsDelete and + // SetActivityStreamsDelete methods to access and set this property. + IsActivityStreamsDelete() bool + // IsActivityStreamsDislike returns true if this property has a type of + // "Dislike". When true, use the GetActivityStreamsDislike and + // SetActivityStreamsDislike methods to access and set this property. + IsActivityStreamsDislike() bool + // IsActivityStreamsDocument returns true if this property has a type of + // "Document". When true, use the GetActivityStreamsDocument and + // SetActivityStreamsDocument methods to access and set this property. + IsActivityStreamsDocument() bool + // IsActivityStreamsEvent returns true if this property has a type of + // "Event". When true, use the GetActivityStreamsEvent and + // SetActivityStreamsEvent methods to access and set this property. + IsActivityStreamsEvent() bool + // IsActivityStreamsFlag returns true if this property has a type of + // "Flag". When true, use the GetActivityStreamsFlag and + // SetActivityStreamsFlag methods to access and set this property. + IsActivityStreamsFlag() bool + // IsActivityStreamsFollow returns true if this property has a type of + // "Follow". When true, use the GetActivityStreamsFollow and + // SetActivityStreamsFollow methods to access and set this property. + IsActivityStreamsFollow() bool + // IsActivityStreamsGroup returns true if this property has a type of + // "Group". When true, use the GetActivityStreamsGroup and + // SetActivityStreamsGroup methods to access and set this property. + IsActivityStreamsGroup() bool + // IsActivityStreamsIgnore returns true if this property has a type of + // "Ignore". When true, use the GetActivityStreamsIgnore and + // SetActivityStreamsIgnore methods to access and set this property. + IsActivityStreamsIgnore() bool + // IsActivityStreamsImage returns true if this property has a type of + // "Image". When true, use the GetActivityStreamsImage and + // SetActivityStreamsImage methods to access and set this property. + IsActivityStreamsImage() bool + // IsActivityStreamsIntransitiveActivity returns true if this property has + // a type of "IntransitiveActivity". When true, use the + // GetActivityStreamsIntransitiveActivity and + // SetActivityStreamsIntransitiveActivity methods to access and set + // this property. + IsActivityStreamsIntransitiveActivity() bool + // IsActivityStreamsInvite returns true if this property has a type of + // "Invite". When true, use the GetActivityStreamsInvite and + // SetActivityStreamsInvite methods to access and set this property. + IsActivityStreamsInvite() bool + // IsActivityStreamsJoin returns true if this property has a type of + // "Join". When true, use the GetActivityStreamsJoin and + // SetActivityStreamsJoin methods to access and set this property. + IsActivityStreamsJoin() bool + // IsActivityStreamsLeave returns true if this property has a type of + // "Leave". When true, use the GetActivityStreamsLeave and + // SetActivityStreamsLeave methods to access and set this property. + IsActivityStreamsLeave() bool + // IsActivityStreamsLike returns true if this property has a type of + // "Like". When true, use the GetActivityStreamsLike and + // SetActivityStreamsLike methods to access and set this property. + IsActivityStreamsLike() bool + // IsActivityStreamsListen returns true if this property has a type of + // "Listen". When true, use the GetActivityStreamsListen and + // SetActivityStreamsListen methods to access and set this property. + IsActivityStreamsListen() bool + // IsActivityStreamsMove returns true if this property has a type of + // "Move". When true, use the GetActivityStreamsMove and + // SetActivityStreamsMove methods to access and set this property. + IsActivityStreamsMove() bool + // IsActivityStreamsNote returns true if this property has a type of + // "Note". When true, use the GetActivityStreamsNote and + // SetActivityStreamsNote methods to access and set this property. + IsActivityStreamsNote() bool + // IsActivityStreamsObject returns true if this property has a type of + // "Object". When true, use the GetActivityStreamsObject and + // SetActivityStreamsObject methods to access and set this property. + IsActivityStreamsObject() bool + // IsActivityStreamsOffer returns true if this property has a type of + // "Offer". When true, use the GetActivityStreamsOffer and + // SetActivityStreamsOffer methods to access and set this property. + IsActivityStreamsOffer() bool + // IsActivityStreamsOrderedCollection returns true if this property has a + // type of "OrderedCollection". When true, use the + // GetActivityStreamsOrderedCollection and + // SetActivityStreamsOrderedCollection methods to access and set this + // property. + IsActivityStreamsOrderedCollection() bool + // IsActivityStreamsOrderedCollectionPage returns true if this property + // has a type of "OrderedCollectionPage". When true, use the + // GetActivityStreamsOrderedCollectionPage and + // SetActivityStreamsOrderedCollectionPage methods to access and set + // this property. + IsActivityStreamsOrderedCollectionPage() bool + // IsActivityStreamsOrganization returns true if this property has a type + // of "Organization". When true, use the + // GetActivityStreamsOrganization and SetActivityStreamsOrganization + // methods to access and set this property. + IsActivityStreamsOrganization() bool + // IsActivityStreamsPage returns true if this property has a type of + // "Page". When true, use the GetActivityStreamsPage and + // SetActivityStreamsPage methods to access and set this property. + IsActivityStreamsPage() bool + // IsActivityStreamsPerson returns true if this property has a type of + // "Person". When true, use the GetActivityStreamsPerson and + // SetActivityStreamsPerson methods to access and set this property. + IsActivityStreamsPerson() bool + // IsActivityStreamsPlace returns true if this property has a type of + // "Place". When true, use the GetActivityStreamsPlace and + // SetActivityStreamsPlace methods to access and set this property. + IsActivityStreamsPlace() bool + // IsActivityStreamsProfile returns true if this property has a type of + // "Profile". When true, use the GetActivityStreamsProfile and + // SetActivityStreamsProfile methods to access and set this property. + IsActivityStreamsProfile() bool + // IsActivityStreamsQuestion returns true if this property has a type of + // "Question". When true, use the GetActivityStreamsQuestion and + // SetActivityStreamsQuestion methods to access and set this property. + IsActivityStreamsQuestion() bool + // IsActivityStreamsRead returns true if this property has a type of + // "Read". When true, use the GetActivityStreamsRead and + // SetActivityStreamsRead methods to access and set this property. + IsActivityStreamsRead() bool + // IsActivityStreamsReject returns true if this property has a type of + // "Reject". When true, use the GetActivityStreamsReject and + // SetActivityStreamsReject methods to access and set this property. + IsActivityStreamsReject() bool + // IsActivityStreamsRelationship returns true if this property has a type + // of "Relationship". When true, use the + // GetActivityStreamsRelationship and SetActivityStreamsRelationship + // methods to access and set this property. + IsActivityStreamsRelationship() bool + // IsActivityStreamsRemove returns true if this property has a type of + // "Remove". When true, use the GetActivityStreamsRemove and + // SetActivityStreamsRemove methods to access and set this property. + IsActivityStreamsRemove() bool + // IsActivityStreamsService returns true if this property has a type of + // "Service". When true, use the GetActivityStreamsService and + // SetActivityStreamsService methods to access and set this property. + IsActivityStreamsService() bool + // IsActivityStreamsTentativeAccept returns true if this property has a + // type of "TentativeAccept". When true, use the + // GetActivityStreamsTentativeAccept and + // SetActivityStreamsTentativeAccept methods to access and set this + // property. + IsActivityStreamsTentativeAccept() bool + // IsActivityStreamsTentativeReject returns true if this property has a + // type of "TentativeReject". When true, use the + // GetActivityStreamsTentativeReject and + // SetActivityStreamsTentativeReject methods to access and set this + // property. + IsActivityStreamsTentativeReject() bool + // IsActivityStreamsTombstone returns true if this property has a type of + // "Tombstone". When true, use the GetActivityStreamsTombstone and + // SetActivityStreamsTombstone methods to access and set this property. + IsActivityStreamsTombstone() bool + // IsActivityStreamsTravel returns true if this property has a type of + // "Travel". When true, use the GetActivityStreamsTravel and + // SetActivityStreamsTravel methods to access and set this property. + IsActivityStreamsTravel() bool + // IsActivityStreamsUndo returns true if this property has a type of + // "Undo". When true, use the GetActivityStreamsUndo and + // SetActivityStreamsUndo methods to access and set this property. + IsActivityStreamsUndo() bool + // IsActivityStreamsUpdate returns true if this property has a type of + // "Update". When true, use the GetActivityStreamsUpdate and + // SetActivityStreamsUpdate methods to access and set this property. + IsActivityStreamsUpdate() bool + // IsActivityStreamsVideo returns true if this property has a type of + // "Video". When true, use the GetActivityStreamsVideo and + // SetActivityStreamsVideo methods to access and set this property. + IsActivityStreamsVideo() bool + // IsActivityStreamsView returns true if this property has a type of + // "View". When true, use the GetActivityStreamsView and + // SetActivityStreamsView methods to access and set this property. + IsActivityStreamsView() bool + // IsForgeFedBranch returns true if this property has a type of "Branch". + // When true, use the GetForgeFedBranch and SetForgeFedBranch methods + // to access and set this property. + IsForgeFedBranch() bool + // IsForgeFedCommit returns true if this property has a type of "Commit". + // When true, use the GetForgeFedCommit and SetForgeFedCommit methods + // to access and set this property. + IsForgeFedCommit() bool + // IsForgeFedPush returns true if this property has a type of "Push". When + // true, use the GetForgeFedPush and SetForgeFedPush methods to access + // and set this property. + IsForgeFedPush() bool + // IsForgeFedRepository returns true if this property has a type of + // "Repository". When true, use the GetForgeFedRepository and + // SetForgeFedRepository methods to access and set this property. + IsForgeFedRepository() bool + // IsForgeFedTicket returns true if this property has a type of "Ticket". + // When true, use the GetForgeFedTicket and SetForgeFedTicket methods + // to access and set this property. + IsForgeFedTicket() bool + // IsForgeFedTicketDependency returns true if this property has a type of + // "TicketDependency". When true, use the GetForgeFedTicketDependency + // and SetForgeFedTicketDependency methods to access and set this + // property. + IsForgeFedTicketDependency() bool + // IsIRI returns true if this property is an IRI. When true, use GetIRI + // and SetIRI to access and set this property + IsIRI() bool + // IsTootEmoji returns true if this property has a type of "Emoji". When + // true, use the GetTootEmoji and SetTootEmoji methods to access and + // set this property. + IsTootEmoji() bool + // IsTootIdentityProof returns true if this property has a type of + // "IdentityProof". When true, use the GetTootIdentityProof and + // SetTootIdentityProof methods to access and set this property. + IsTootIdentityProof() bool + // JSONLDContext returns the JSONLD URIs required in the context string + // for this property and the specific values that are set. The value + // in the map is the alias used to import the property's value or + // values. + JSONLDContext() map[string]string + // KindIndex computes an arbitrary value for indexing this kind of value. + // This is a leaky API detail only for folks looking to replace the + // go-fed implementation. Applications should not use this method. + KindIndex() int + // LessThan compares two instances of this property with an arbitrary but + // stable comparison. Applications should not use this because it is + // only meant to help alternative implementations to go-fed to be able + // to normalize nonfunctional properties. + LessThan(o ForgeFedDescriptionProperty) bool + // Name returns the name of this property: "description". + Name() string + // Serialize converts this into an interface representation suitable for + // marshalling into a text or binary format. Applications should not + // need this function as most typical use cases serialize types + // instead of individual properties. It is exposed for alternatives to + // go-fed implementations to use. + Serialize() (interface{}, error) + // SetActivityStreamsAccept sets the value of this property. Calling + // IsActivityStreamsAccept afterwards returns true. + SetActivityStreamsAccept(v ActivityStreamsAccept) + // SetActivityStreamsActivity sets the value of this property. Calling + // IsActivityStreamsActivity afterwards returns true. + SetActivityStreamsActivity(v ActivityStreamsActivity) + // SetActivityStreamsAdd sets the value of this property. Calling + // IsActivityStreamsAdd afterwards returns true. + SetActivityStreamsAdd(v ActivityStreamsAdd) + // SetActivityStreamsAnnounce sets the value of this property. Calling + // IsActivityStreamsAnnounce afterwards returns true. + SetActivityStreamsAnnounce(v ActivityStreamsAnnounce) + // SetActivityStreamsApplication sets the value of this property. Calling + // IsActivityStreamsApplication afterwards returns true. + SetActivityStreamsApplication(v ActivityStreamsApplication) + // SetActivityStreamsArrive sets the value of this property. Calling + // IsActivityStreamsArrive afterwards returns true. + SetActivityStreamsArrive(v ActivityStreamsArrive) + // SetActivityStreamsArticle sets the value of this property. Calling + // IsActivityStreamsArticle afterwards returns true. + SetActivityStreamsArticle(v ActivityStreamsArticle) + // SetActivityStreamsAudio sets the value of this property. Calling + // IsActivityStreamsAudio afterwards returns true. + SetActivityStreamsAudio(v ActivityStreamsAudio) + // SetActivityStreamsBlock sets the value of this property. Calling + // IsActivityStreamsBlock afterwards returns true. + SetActivityStreamsBlock(v ActivityStreamsBlock) + // SetActivityStreamsCollection sets the value of this property. Calling + // IsActivityStreamsCollection afterwards returns true. + SetActivityStreamsCollection(v ActivityStreamsCollection) + // SetActivityStreamsCollectionPage sets the value of this property. + // Calling IsActivityStreamsCollectionPage afterwards returns true. + SetActivityStreamsCollectionPage(v ActivityStreamsCollectionPage) + // SetActivityStreamsCreate sets the value of this property. Calling + // IsActivityStreamsCreate afterwards returns true. + SetActivityStreamsCreate(v ActivityStreamsCreate) + // SetActivityStreamsDelete sets the value of this property. Calling + // IsActivityStreamsDelete afterwards returns true. + SetActivityStreamsDelete(v ActivityStreamsDelete) + // SetActivityStreamsDislike sets the value of this property. Calling + // IsActivityStreamsDislike afterwards returns true. + SetActivityStreamsDislike(v ActivityStreamsDislike) + // SetActivityStreamsDocument sets the value of this property. Calling + // IsActivityStreamsDocument afterwards returns true. + SetActivityStreamsDocument(v ActivityStreamsDocument) + // SetActivityStreamsEvent sets the value of this property. Calling + // IsActivityStreamsEvent afterwards returns true. + SetActivityStreamsEvent(v ActivityStreamsEvent) + // SetActivityStreamsFlag sets the value of this property. Calling + // IsActivityStreamsFlag afterwards returns true. + SetActivityStreamsFlag(v ActivityStreamsFlag) + // SetActivityStreamsFollow sets the value of this property. Calling + // IsActivityStreamsFollow afterwards returns true. + SetActivityStreamsFollow(v ActivityStreamsFollow) + // SetActivityStreamsGroup sets the value of this property. Calling + // IsActivityStreamsGroup afterwards returns true. + SetActivityStreamsGroup(v ActivityStreamsGroup) + // SetActivityStreamsIgnore sets the value of this property. Calling + // IsActivityStreamsIgnore afterwards returns true. + SetActivityStreamsIgnore(v ActivityStreamsIgnore) + // SetActivityStreamsImage sets the value of this property. Calling + // IsActivityStreamsImage afterwards returns true. + SetActivityStreamsImage(v ActivityStreamsImage) + // SetActivityStreamsIntransitiveActivity sets the value of this property. + // Calling IsActivityStreamsIntransitiveActivity afterwards returns + // true. + SetActivityStreamsIntransitiveActivity(v ActivityStreamsIntransitiveActivity) + // SetActivityStreamsInvite sets the value of this property. Calling + // IsActivityStreamsInvite afterwards returns true. + SetActivityStreamsInvite(v ActivityStreamsInvite) + // SetActivityStreamsJoin sets the value of this property. Calling + // IsActivityStreamsJoin afterwards returns true. + SetActivityStreamsJoin(v ActivityStreamsJoin) + // SetActivityStreamsLeave sets the value of this property. Calling + // IsActivityStreamsLeave afterwards returns true. + SetActivityStreamsLeave(v ActivityStreamsLeave) + // SetActivityStreamsLike sets the value of this property. Calling + // IsActivityStreamsLike afterwards returns true. + SetActivityStreamsLike(v ActivityStreamsLike) + // SetActivityStreamsListen sets the value of this property. Calling + // IsActivityStreamsListen afterwards returns true. + SetActivityStreamsListen(v ActivityStreamsListen) + // SetActivityStreamsMove sets the value of this property. Calling + // IsActivityStreamsMove afterwards returns true. + SetActivityStreamsMove(v ActivityStreamsMove) + // SetActivityStreamsNote sets the value of this property. Calling + // IsActivityStreamsNote afterwards returns true. + SetActivityStreamsNote(v ActivityStreamsNote) + // SetActivityStreamsObject sets the value of this property. Calling + // IsActivityStreamsObject afterwards returns true. + SetActivityStreamsObject(v ActivityStreamsObject) + // SetActivityStreamsOffer sets the value of this property. Calling + // IsActivityStreamsOffer afterwards returns true. + SetActivityStreamsOffer(v ActivityStreamsOffer) + // SetActivityStreamsOrderedCollection sets the value of this property. + // Calling IsActivityStreamsOrderedCollection afterwards returns true. + SetActivityStreamsOrderedCollection(v ActivityStreamsOrderedCollection) + // SetActivityStreamsOrderedCollectionPage sets the value of this + // property. Calling IsActivityStreamsOrderedCollectionPage afterwards + // returns true. + SetActivityStreamsOrderedCollectionPage(v ActivityStreamsOrderedCollectionPage) + // SetActivityStreamsOrganization sets the value of this property. Calling + // IsActivityStreamsOrganization afterwards returns true. + SetActivityStreamsOrganization(v ActivityStreamsOrganization) + // SetActivityStreamsPage sets the value of this property. Calling + // IsActivityStreamsPage afterwards returns true. + SetActivityStreamsPage(v ActivityStreamsPage) + // SetActivityStreamsPerson sets the value of this property. Calling + // IsActivityStreamsPerson afterwards returns true. + SetActivityStreamsPerson(v ActivityStreamsPerson) + // SetActivityStreamsPlace sets the value of this property. Calling + // IsActivityStreamsPlace afterwards returns true. + SetActivityStreamsPlace(v ActivityStreamsPlace) + // SetActivityStreamsProfile sets the value of this property. Calling + // IsActivityStreamsProfile afterwards returns true. + SetActivityStreamsProfile(v ActivityStreamsProfile) + // SetActivityStreamsQuestion sets the value of this property. Calling + // IsActivityStreamsQuestion afterwards returns true. + SetActivityStreamsQuestion(v ActivityStreamsQuestion) + // SetActivityStreamsRead sets the value of this property. Calling + // IsActivityStreamsRead afterwards returns true. + SetActivityStreamsRead(v ActivityStreamsRead) + // SetActivityStreamsReject sets the value of this property. Calling + // IsActivityStreamsReject afterwards returns true. + SetActivityStreamsReject(v ActivityStreamsReject) + // SetActivityStreamsRelationship sets the value of this property. Calling + // IsActivityStreamsRelationship afterwards returns true. + SetActivityStreamsRelationship(v ActivityStreamsRelationship) + // SetActivityStreamsRemove sets the value of this property. Calling + // IsActivityStreamsRemove afterwards returns true. + SetActivityStreamsRemove(v ActivityStreamsRemove) + // SetActivityStreamsService sets the value of this property. Calling + // IsActivityStreamsService afterwards returns true. + SetActivityStreamsService(v ActivityStreamsService) + // SetActivityStreamsTentativeAccept sets the value of this property. + // Calling IsActivityStreamsTentativeAccept afterwards returns true. + SetActivityStreamsTentativeAccept(v ActivityStreamsTentativeAccept) + // SetActivityStreamsTentativeReject sets the value of this property. + // Calling IsActivityStreamsTentativeReject afterwards returns true. + SetActivityStreamsTentativeReject(v ActivityStreamsTentativeReject) + // SetActivityStreamsTombstone sets the value of this property. Calling + // IsActivityStreamsTombstone afterwards returns true. + SetActivityStreamsTombstone(v ActivityStreamsTombstone) + // SetActivityStreamsTravel sets the value of this property. Calling + // IsActivityStreamsTravel afterwards returns true. + SetActivityStreamsTravel(v ActivityStreamsTravel) + // SetActivityStreamsUndo sets the value of this property. Calling + // IsActivityStreamsUndo afterwards returns true. + SetActivityStreamsUndo(v ActivityStreamsUndo) + // SetActivityStreamsUpdate sets the value of this property. Calling + // IsActivityStreamsUpdate afterwards returns true. + SetActivityStreamsUpdate(v ActivityStreamsUpdate) + // SetActivityStreamsVideo sets the value of this property. Calling + // IsActivityStreamsVideo afterwards returns true. + SetActivityStreamsVideo(v ActivityStreamsVideo) + // SetActivityStreamsView sets the value of this property. Calling + // IsActivityStreamsView afterwards returns true. + SetActivityStreamsView(v ActivityStreamsView) + // SetForgeFedBranch sets the value of this property. Calling + // IsForgeFedBranch afterwards returns true. + SetForgeFedBranch(v ForgeFedBranch) + // SetForgeFedCommit sets the value of this property. Calling + // IsForgeFedCommit afterwards returns true. + SetForgeFedCommit(v ForgeFedCommit) + // SetForgeFedPush sets the value of this property. Calling IsForgeFedPush + // afterwards returns true. + SetForgeFedPush(v ForgeFedPush) + // SetForgeFedRepository sets the value of this property. Calling + // IsForgeFedRepository afterwards returns true. + SetForgeFedRepository(v ForgeFedRepository) + // SetForgeFedTicket sets the value of this property. Calling + // IsForgeFedTicket afterwards returns true. + SetForgeFedTicket(v ForgeFedTicket) + // SetForgeFedTicketDependency sets the value of this property. Calling + // IsForgeFedTicketDependency afterwards returns true. + SetForgeFedTicketDependency(v ForgeFedTicketDependency) + // SetIRI sets the value of this property. Calling IsIRI afterwards + // returns true. + SetIRI(v *url.URL) + // SetTootEmoji sets the value of this property. Calling IsTootEmoji + // afterwards returns true. + SetTootEmoji(v TootEmoji) + // SetTootIdentityProof sets the value of this property. Calling + // IsTootIdentityProof afterwards returns true. + SetTootIdentityProof(v TootIdentityProof) + // SetType attempts to set the property for the arbitrary type. Returns an + // error if it is not a valid type to set on this property. + SetType(t Type) error +} diff --git a/streams/vocab/gen_property_forgefed_earlyItems_interface.go b/streams/vocab/gen_property_forgefed_earlyItems_interface.go new file mode 100644 index 0000000..df1ef96 --- /dev/null +++ b/streams/vocab/gen_property_forgefed_earlyItems_interface.go @@ -0,0 +1,1813 @@ +// Code generated by astool. DO NOT EDIT. + +package vocab + +import "net/url" + +// ForgeFedEarlyItemsPropertyIterator represents a single value for the +// "earlyItems" property. +type ForgeFedEarlyItemsPropertyIterator interface { + // GetActivityStreamsAccept returns the value of this property. When + // IsActivityStreamsAccept returns false, GetActivityStreamsAccept + // will return an arbitrary value. + GetActivityStreamsAccept() ActivityStreamsAccept + // GetActivityStreamsActivity returns the value of this property. When + // IsActivityStreamsActivity returns false, GetActivityStreamsActivity + // will return an arbitrary value. + GetActivityStreamsActivity() ActivityStreamsActivity + // GetActivityStreamsAdd returns the value of this property. When + // IsActivityStreamsAdd returns false, GetActivityStreamsAdd will + // return an arbitrary value. + GetActivityStreamsAdd() ActivityStreamsAdd + // GetActivityStreamsAnnounce returns the value of this property. When + // IsActivityStreamsAnnounce returns false, GetActivityStreamsAnnounce + // will return an arbitrary value. + GetActivityStreamsAnnounce() ActivityStreamsAnnounce + // GetActivityStreamsApplication returns the value of this property. When + // IsActivityStreamsApplication returns false, + // GetActivityStreamsApplication will return an arbitrary value. + GetActivityStreamsApplication() ActivityStreamsApplication + // GetActivityStreamsArrive returns the value of this property. When + // IsActivityStreamsArrive returns false, GetActivityStreamsArrive + // will return an arbitrary value. + GetActivityStreamsArrive() ActivityStreamsArrive + // GetActivityStreamsArticle returns the value of this property. When + // IsActivityStreamsArticle returns false, GetActivityStreamsArticle + // will return an arbitrary value. + GetActivityStreamsArticle() ActivityStreamsArticle + // GetActivityStreamsAudio returns the value of this property. When + // IsActivityStreamsAudio returns false, GetActivityStreamsAudio will + // return an arbitrary value. + GetActivityStreamsAudio() ActivityStreamsAudio + // GetActivityStreamsBlock returns the value of this property. When + // IsActivityStreamsBlock returns false, GetActivityStreamsBlock will + // return an arbitrary value. + GetActivityStreamsBlock() ActivityStreamsBlock + // GetActivityStreamsCollection returns the value of this property. When + // IsActivityStreamsCollection returns false, + // GetActivityStreamsCollection will return an arbitrary value. + GetActivityStreamsCollection() ActivityStreamsCollection + // GetActivityStreamsCollectionPage returns the value of this property. + // When IsActivityStreamsCollectionPage returns false, + // GetActivityStreamsCollectionPage will return an arbitrary value. + GetActivityStreamsCollectionPage() ActivityStreamsCollectionPage + // GetActivityStreamsCreate returns the value of this property. When + // IsActivityStreamsCreate returns false, GetActivityStreamsCreate + // will return an arbitrary value. + GetActivityStreamsCreate() ActivityStreamsCreate + // GetActivityStreamsDelete returns the value of this property. When + // IsActivityStreamsDelete returns false, GetActivityStreamsDelete + // will return an arbitrary value. + GetActivityStreamsDelete() ActivityStreamsDelete + // GetActivityStreamsDislike returns the value of this property. When + // IsActivityStreamsDislike returns false, GetActivityStreamsDislike + // will return an arbitrary value. + GetActivityStreamsDislike() ActivityStreamsDislike + // GetActivityStreamsDocument returns the value of this property. When + // IsActivityStreamsDocument returns false, GetActivityStreamsDocument + // will return an arbitrary value. + GetActivityStreamsDocument() ActivityStreamsDocument + // GetActivityStreamsEvent returns the value of this property. When + // IsActivityStreamsEvent returns false, GetActivityStreamsEvent will + // return an arbitrary value. + GetActivityStreamsEvent() ActivityStreamsEvent + // GetActivityStreamsFlag returns the value of this property. When + // IsActivityStreamsFlag returns false, GetActivityStreamsFlag will + // return an arbitrary value. + GetActivityStreamsFlag() ActivityStreamsFlag + // GetActivityStreamsFollow returns the value of this property. When + // IsActivityStreamsFollow returns false, GetActivityStreamsFollow + // will return an arbitrary value. + GetActivityStreamsFollow() ActivityStreamsFollow + // GetActivityStreamsGroup returns the value of this property. When + // IsActivityStreamsGroup returns false, GetActivityStreamsGroup will + // return an arbitrary value. + GetActivityStreamsGroup() ActivityStreamsGroup + // GetActivityStreamsIgnore returns the value of this property. When + // IsActivityStreamsIgnore returns false, GetActivityStreamsIgnore + // will return an arbitrary value. + GetActivityStreamsIgnore() ActivityStreamsIgnore + // GetActivityStreamsImage returns the value of this property. When + // IsActivityStreamsImage returns false, GetActivityStreamsImage will + // return an arbitrary value. + GetActivityStreamsImage() ActivityStreamsImage + // GetActivityStreamsIntransitiveActivity returns the value of this + // property. When IsActivityStreamsIntransitiveActivity returns false, + // GetActivityStreamsIntransitiveActivity will return an arbitrary + // value. + GetActivityStreamsIntransitiveActivity() ActivityStreamsIntransitiveActivity + // GetActivityStreamsInvite returns the value of this property. When + // IsActivityStreamsInvite returns false, GetActivityStreamsInvite + // will return an arbitrary value. + GetActivityStreamsInvite() ActivityStreamsInvite + // GetActivityStreamsJoin returns the value of this property. When + // IsActivityStreamsJoin returns false, GetActivityStreamsJoin will + // return an arbitrary value. + GetActivityStreamsJoin() ActivityStreamsJoin + // GetActivityStreamsLeave returns the value of this property. When + // IsActivityStreamsLeave returns false, GetActivityStreamsLeave will + // return an arbitrary value. + GetActivityStreamsLeave() ActivityStreamsLeave + // GetActivityStreamsLike returns the value of this property. When + // IsActivityStreamsLike returns false, GetActivityStreamsLike will + // return an arbitrary value. + GetActivityStreamsLike() ActivityStreamsLike + // GetActivityStreamsLink returns the value of this property. When + // IsActivityStreamsLink returns false, GetActivityStreamsLink will + // return an arbitrary value. + GetActivityStreamsLink() ActivityStreamsLink + // GetActivityStreamsListen returns the value of this property. When + // IsActivityStreamsListen returns false, GetActivityStreamsListen + // will return an arbitrary value. + GetActivityStreamsListen() ActivityStreamsListen + // GetActivityStreamsMention returns the value of this property. When + // IsActivityStreamsMention returns false, GetActivityStreamsMention + // will return an arbitrary value. + GetActivityStreamsMention() ActivityStreamsMention + // GetActivityStreamsMove returns the value of this property. When + // IsActivityStreamsMove returns false, GetActivityStreamsMove will + // return an arbitrary value. + GetActivityStreamsMove() ActivityStreamsMove + // GetActivityStreamsNote returns the value of this property. When + // IsActivityStreamsNote returns false, GetActivityStreamsNote will + // return an arbitrary value. + GetActivityStreamsNote() ActivityStreamsNote + // GetActivityStreamsObject returns the value of this property. When + // IsActivityStreamsObject returns false, GetActivityStreamsObject + // will return an arbitrary value. + GetActivityStreamsObject() ActivityStreamsObject + // GetActivityStreamsOffer returns the value of this property. When + // IsActivityStreamsOffer returns false, GetActivityStreamsOffer will + // return an arbitrary value. + GetActivityStreamsOffer() ActivityStreamsOffer + // GetActivityStreamsOrderedCollection returns the value of this property. + // When IsActivityStreamsOrderedCollection returns false, + // GetActivityStreamsOrderedCollection will return an arbitrary value. + GetActivityStreamsOrderedCollection() ActivityStreamsOrderedCollection + // GetActivityStreamsOrderedCollectionPage returns the value of this + // property. When IsActivityStreamsOrderedCollectionPage returns + // false, GetActivityStreamsOrderedCollectionPage will return an + // arbitrary value. + GetActivityStreamsOrderedCollectionPage() ActivityStreamsOrderedCollectionPage + // GetActivityStreamsOrganization returns the value of this property. When + // IsActivityStreamsOrganization returns false, + // GetActivityStreamsOrganization will return an arbitrary value. + GetActivityStreamsOrganization() ActivityStreamsOrganization + // GetActivityStreamsPage returns the value of this property. When + // IsActivityStreamsPage returns false, GetActivityStreamsPage will + // return an arbitrary value. + GetActivityStreamsPage() ActivityStreamsPage + // GetActivityStreamsPerson returns the value of this property. When + // IsActivityStreamsPerson returns false, GetActivityStreamsPerson + // will return an arbitrary value. + GetActivityStreamsPerson() ActivityStreamsPerson + // GetActivityStreamsPlace returns the value of this property. When + // IsActivityStreamsPlace returns false, GetActivityStreamsPlace will + // return an arbitrary value. + GetActivityStreamsPlace() ActivityStreamsPlace + // GetActivityStreamsProfile returns the value of this property. When + // IsActivityStreamsProfile returns false, GetActivityStreamsProfile + // will return an arbitrary value. + GetActivityStreamsProfile() ActivityStreamsProfile + // GetActivityStreamsQuestion returns the value of this property. When + // IsActivityStreamsQuestion returns false, GetActivityStreamsQuestion + // will return an arbitrary value. + GetActivityStreamsQuestion() ActivityStreamsQuestion + // GetActivityStreamsRead returns the value of this property. When + // IsActivityStreamsRead returns false, GetActivityStreamsRead will + // return an arbitrary value. + GetActivityStreamsRead() ActivityStreamsRead + // GetActivityStreamsReject returns the value of this property. When + // IsActivityStreamsReject returns false, GetActivityStreamsReject + // will return an arbitrary value. + GetActivityStreamsReject() ActivityStreamsReject + // GetActivityStreamsRelationship returns the value of this property. When + // IsActivityStreamsRelationship returns false, + // GetActivityStreamsRelationship will return an arbitrary value. + GetActivityStreamsRelationship() ActivityStreamsRelationship + // GetActivityStreamsRemove returns the value of this property. When + // IsActivityStreamsRemove returns false, GetActivityStreamsRemove + // will return an arbitrary value. + GetActivityStreamsRemove() ActivityStreamsRemove + // GetActivityStreamsService returns the value of this property. When + // IsActivityStreamsService returns false, GetActivityStreamsService + // will return an arbitrary value. + GetActivityStreamsService() ActivityStreamsService + // GetActivityStreamsTentativeAccept returns the value of this property. + // When IsActivityStreamsTentativeAccept returns false, + // GetActivityStreamsTentativeAccept will return an arbitrary value. + GetActivityStreamsTentativeAccept() ActivityStreamsTentativeAccept + // GetActivityStreamsTentativeReject returns the value of this property. + // When IsActivityStreamsTentativeReject returns false, + // GetActivityStreamsTentativeReject will return an arbitrary value. + GetActivityStreamsTentativeReject() ActivityStreamsTentativeReject + // GetActivityStreamsTombstone returns the value of this property. When + // IsActivityStreamsTombstone returns false, + // GetActivityStreamsTombstone will return an arbitrary value. + GetActivityStreamsTombstone() ActivityStreamsTombstone + // GetActivityStreamsTravel returns the value of this property. When + // IsActivityStreamsTravel returns false, GetActivityStreamsTravel + // will return an arbitrary value. + GetActivityStreamsTravel() ActivityStreamsTravel + // GetActivityStreamsUndo returns the value of this property. When + // IsActivityStreamsUndo returns false, GetActivityStreamsUndo will + // return an arbitrary value. + GetActivityStreamsUndo() ActivityStreamsUndo + // GetActivityStreamsUpdate returns the value of this property. When + // IsActivityStreamsUpdate returns false, GetActivityStreamsUpdate + // will return an arbitrary value. + GetActivityStreamsUpdate() ActivityStreamsUpdate + // GetActivityStreamsVideo returns the value of this property. When + // IsActivityStreamsVideo returns false, GetActivityStreamsVideo will + // return an arbitrary value. + GetActivityStreamsVideo() ActivityStreamsVideo + // GetActivityStreamsView returns the value of this property. When + // IsActivityStreamsView returns false, GetActivityStreamsView will + // return an arbitrary value. + GetActivityStreamsView() ActivityStreamsView + // GetForgeFedBranch returns the value of this property. When + // IsForgeFedBranch returns false, GetForgeFedBranch will return an + // arbitrary value. + GetForgeFedBranch() ForgeFedBranch + // GetForgeFedCommit returns the value of this property. When + // IsForgeFedCommit returns false, GetForgeFedCommit will return an + // arbitrary value. + GetForgeFedCommit() ForgeFedCommit + // GetForgeFedPush returns the value of this property. When IsForgeFedPush + // returns false, GetForgeFedPush will return an arbitrary value. + GetForgeFedPush() ForgeFedPush + // GetForgeFedRepository returns the value of this property. When + // IsForgeFedRepository returns false, GetForgeFedRepository will + // return an arbitrary value. + GetForgeFedRepository() ForgeFedRepository + // GetForgeFedTicket returns the value of this property. When + // IsForgeFedTicket returns false, GetForgeFedTicket will return an + // arbitrary value. + GetForgeFedTicket() ForgeFedTicket + // GetForgeFedTicketDependency returns the value of this property. When + // IsForgeFedTicketDependency returns false, + // GetForgeFedTicketDependency will return an arbitrary value. + GetForgeFedTicketDependency() ForgeFedTicketDependency + // GetIRI returns the IRI of this property. When IsIRI returns false, + // GetIRI will return an arbitrary value. + GetIRI() *url.URL + // GetTootEmoji returns the value of this property. When IsTootEmoji + // returns false, GetTootEmoji will return an arbitrary value. + GetTootEmoji() TootEmoji + // GetTootIdentityProof returns the value of this property. When + // IsTootIdentityProof returns false, GetTootIdentityProof will return + // an arbitrary value. + GetTootIdentityProof() TootIdentityProof + // GetType returns the value in this property as a Type. Returns nil if + // the value is not an ActivityStreams type, such as an IRI or another + // value. + GetType() Type + // HasAny returns true if any of the different values is set. + HasAny() bool + // IsActivityStreamsAccept returns true if this property has a type of + // "Accept". When true, use the GetActivityStreamsAccept and + // SetActivityStreamsAccept methods to access and set this property. + IsActivityStreamsAccept() bool + // IsActivityStreamsActivity returns true if this property has a type of + // "Activity". When true, use the GetActivityStreamsActivity and + // SetActivityStreamsActivity methods to access and set this property. + IsActivityStreamsActivity() bool + // IsActivityStreamsAdd returns true if this property has a type of "Add". + // When true, use the GetActivityStreamsAdd and SetActivityStreamsAdd + // methods to access and set this property. + IsActivityStreamsAdd() bool + // IsActivityStreamsAnnounce returns true if this property has a type of + // "Announce". When true, use the GetActivityStreamsAnnounce and + // SetActivityStreamsAnnounce methods to access and set this property. + IsActivityStreamsAnnounce() bool + // IsActivityStreamsApplication returns true if this property has a type + // of "Application". When true, use the GetActivityStreamsApplication + // and SetActivityStreamsApplication methods to access and set this + // property. + IsActivityStreamsApplication() bool + // IsActivityStreamsArrive returns true if this property has a type of + // "Arrive". When true, use the GetActivityStreamsArrive and + // SetActivityStreamsArrive methods to access and set this property. + IsActivityStreamsArrive() bool + // IsActivityStreamsArticle returns true if this property has a type of + // "Article". When true, use the GetActivityStreamsArticle and + // SetActivityStreamsArticle methods to access and set this property. + IsActivityStreamsArticle() bool + // IsActivityStreamsAudio returns true if this property has a type of + // "Audio". When true, use the GetActivityStreamsAudio and + // SetActivityStreamsAudio methods to access and set this property. + IsActivityStreamsAudio() bool + // IsActivityStreamsBlock returns true if this property has a type of + // "Block". When true, use the GetActivityStreamsBlock and + // SetActivityStreamsBlock methods to access and set this property. + IsActivityStreamsBlock() bool + // IsActivityStreamsCollection returns true if this property has a type of + // "Collection". When true, use the GetActivityStreamsCollection and + // SetActivityStreamsCollection methods to access and set this + // property. + IsActivityStreamsCollection() bool + // IsActivityStreamsCollectionPage returns true if this property has a + // type of "CollectionPage". When true, use the + // GetActivityStreamsCollectionPage and + // SetActivityStreamsCollectionPage methods to access and set this + // property. + IsActivityStreamsCollectionPage() bool + // IsActivityStreamsCreate returns true if this property has a type of + // "Create". When true, use the GetActivityStreamsCreate and + // SetActivityStreamsCreate methods to access and set this property. + IsActivityStreamsCreate() bool + // IsActivityStreamsDelete returns true if this property has a type of + // "Delete". When true, use the GetActivityStreamsDelete and + // SetActivityStreamsDelete methods to access and set this property. + IsActivityStreamsDelete() bool + // IsActivityStreamsDislike returns true if this property has a type of + // "Dislike". When true, use the GetActivityStreamsDislike and + // SetActivityStreamsDislike methods to access and set this property. + IsActivityStreamsDislike() bool + // IsActivityStreamsDocument returns true if this property has a type of + // "Document". When true, use the GetActivityStreamsDocument and + // SetActivityStreamsDocument methods to access and set this property. + IsActivityStreamsDocument() bool + // IsActivityStreamsEvent returns true if this property has a type of + // "Event". When true, use the GetActivityStreamsEvent and + // SetActivityStreamsEvent methods to access and set this property. + IsActivityStreamsEvent() bool + // IsActivityStreamsFlag returns true if this property has a type of + // "Flag". When true, use the GetActivityStreamsFlag and + // SetActivityStreamsFlag methods to access and set this property. + IsActivityStreamsFlag() bool + // IsActivityStreamsFollow returns true if this property has a type of + // "Follow". When true, use the GetActivityStreamsFollow and + // SetActivityStreamsFollow methods to access and set this property. + IsActivityStreamsFollow() bool + // IsActivityStreamsGroup returns true if this property has a type of + // "Group". When true, use the GetActivityStreamsGroup and + // SetActivityStreamsGroup methods to access and set this property. + IsActivityStreamsGroup() bool + // IsActivityStreamsIgnore returns true if this property has a type of + // "Ignore". When true, use the GetActivityStreamsIgnore and + // SetActivityStreamsIgnore methods to access and set this property. + IsActivityStreamsIgnore() bool + // IsActivityStreamsImage returns true if this property has a type of + // "Image". When true, use the GetActivityStreamsImage and + // SetActivityStreamsImage methods to access and set this property. + IsActivityStreamsImage() bool + // IsActivityStreamsIntransitiveActivity returns true if this property has + // a type of "IntransitiveActivity". When true, use the + // GetActivityStreamsIntransitiveActivity and + // SetActivityStreamsIntransitiveActivity methods to access and set + // this property. + IsActivityStreamsIntransitiveActivity() bool + // IsActivityStreamsInvite returns true if this property has a type of + // "Invite". When true, use the GetActivityStreamsInvite and + // SetActivityStreamsInvite methods to access and set this property. + IsActivityStreamsInvite() bool + // IsActivityStreamsJoin returns true if this property has a type of + // "Join". When true, use the GetActivityStreamsJoin and + // SetActivityStreamsJoin methods to access and set this property. + IsActivityStreamsJoin() bool + // IsActivityStreamsLeave returns true if this property has a type of + // "Leave". When true, use the GetActivityStreamsLeave and + // SetActivityStreamsLeave methods to access and set this property. + IsActivityStreamsLeave() bool + // IsActivityStreamsLike returns true if this property has a type of + // "Like". When true, use the GetActivityStreamsLike and + // SetActivityStreamsLike methods to access and set this property. + IsActivityStreamsLike() bool + // IsActivityStreamsLink returns true if this property has a type of + // "Link". When true, use the GetActivityStreamsLink and + // SetActivityStreamsLink methods to access and set this property. + IsActivityStreamsLink() bool + // IsActivityStreamsListen returns true if this property has a type of + // "Listen". When true, use the GetActivityStreamsListen and + // SetActivityStreamsListen methods to access and set this property. + IsActivityStreamsListen() bool + // IsActivityStreamsMention returns true if this property has a type of + // "Mention". When true, use the GetActivityStreamsMention and + // SetActivityStreamsMention methods to access and set this property. + IsActivityStreamsMention() bool + // IsActivityStreamsMove returns true if this property has a type of + // "Move". When true, use the GetActivityStreamsMove and + // SetActivityStreamsMove methods to access and set this property. + IsActivityStreamsMove() bool + // IsActivityStreamsNote returns true if this property has a type of + // "Note". When true, use the GetActivityStreamsNote and + // SetActivityStreamsNote methods to access and set this property. + IsActivityStreamsNote() bool + // IsActivityStreamsObject returns true if this property has a type of + // "Object". When true, use the GetActivityStreamsObject and + // SetActivityStreamsObject methods to access and set this property. + IsActivityStreamsObject() bool + // IsActivityStreamsOffer returns true if this property has a type of + // "Offer". When true, use the GetActivityStreamsOffer and + // SetActivityStreamsOffer methods to access and set this property. + IsActivityStreamsOffer() bool + // IsActivityStreamsOrderedCollection returns true if this property has a + // type of "OrderedCollection". When true, use the + // GetActivityStreamsOrderedCollection and + // SetActivityStreamsOrderedCollection methods to access and set this + // property. + IsActivityStreamsOrderedCollection() bool + // IsActivityStreamsOrderedCollectionPage returns true if this property + // has a type of "OrderedCollectionPage". When true, use the + // GetActivityStreamsOrderedCollectionPage and + // SetActivityStreamsOrderedCollectionPage methods to access and set + // this property. + IsActivityStreamsOrderedCollectionPage() bool + // IsActivityStreamsOrganization returns true if this property has a type + // of "Organization". When true, use the + // GetActivityStreamsOrganization and SetActivityStreamsOrganization + // methods to access and set this property. + IsActivityStreamsOrganization() bool + // IsActivityStreamsPage returns true if this property has a type of + // "Page". When true, use the GetActivityStreamsPage and + // SetActivityStreamsPage methods to access and set this property. + IsActivityStreamsPage() bool + // IsActivityStreamsPerson returns true if this property has a type of + // "Person". When true, use the GetActivityStreamsPerson and + // SetActivityStreamsPerson methods to access and set this property. + IsActivityStreamsPerson() bool + // IsActivityStreamsPlace returns true if this property has a type of + // "Place". When true, use the GetActivityStreamsPlace and + // SetActivityStreamsPlace methods to access and set this property. + IsActivityStreamsPlace() bool + // IsActivityStreamsProfile returns true if this property has a type of + // "Profile". When true, use the GetActivityStreamsProfile and + // SetActivityStreamsProfile methods to access and set this property. + IsActivityStreamsProfile() bool + // IsActivityStreamsQuestion returns true if this property has a type of + // "Question". When true, use the GetActivityStreamsQuestion and + // SetActivityStreamsQuestion methods to access and set this property. + IsActivityStreamsQuestion() bool + // IsActivityStreamsRead returns true if this property has a type of + // "Read". When true, use the GetActivityStreamsRead and + // SetActivityStreamsRead methods to access and set this property. + IsActivityStreamsRead() bool + // IsActivityStreamsReject returns true if this property has a type of + // "Reject". When true, use the GetActivityStreamsReject and + // SetActivityStreamsReject methods to access and set this property. + IsActivityStreamsReject() bool + // IsActivityStreamsRelationship returns true if this property has a type + // of "Relationship". When true, use the + // GetActivityStreamsRelationship and SetActivityStreamsRelationship + // methods to access and set this property. + IsActivityStreamsRelationship() bool + // IsActivityStreamsRemove returns true if this property has a type of + // "Remove". When true, use the GetActivityStreamsRemove and + // SetActivityStreamsRemove methods to access and set this property. + IsActivityStreamsRemove() bool + // IsActivityStreamsService returns true if this property has a type of + // "Service". When true, use the GetActivityStreamsService and + // SetActivityStreamsService methods to access and set this property. + IsActivityStreamsService() bool + // IsActivityStreamsTentativeAccept returns true if this property has a + // type of "TentativeAccept". When true, use the + // GetActivityStreamsTentativeAccept and + // SetActivityStreamsTentativeAccept methods to access and set this + // property. + IsActivityStreamsTentativeAccept() bool + // IsActivityStreamsTentativeReject returns true if this property has a + // type of "TentativeReject". When true, use the + // GetActivityStreamsTentativeReject and + // SetActivityStreamsTentativeReject methods to access and set this + // property. + IsActivityStreamsTentativeReject() bool + // IsActivityStreamsTombstone returns true if this property has a type of + // "Tombstone". When true, use the GetActivityStreamsTombstone and + // SetActivityStreamsTombstone methods to access and set this property. + IsActivityStreamsTombstone() bool + // IsActivityStreamsTravel returns true if this property has a type of + // "Travel". When true, use the GetActivityStreamsTravel and + // SetActivityStreamsTravel methods to access and set this property. + IsActivityStreamsTravel() bool + // IsActivityStreamsUndo returns true if this property has a type of + // "Undo". When true, use the GetActivityStreamsUndo and + // SetActivityStreamsUndo methods to access and set this property. + IsActivityStreamsUndo() bool + // IsActivityStreamsUpdate returns true if this property has a type of + // "Update". When true, use the GetActivityStreamsUpdate and + // SetActivityStreamsUpdate methods to access and set this property. + IsActivityStreamsUpdate() bool + // IsActivityStreamsVideo returns true if this property has a type of + // "Video". When true, use the GetActivityStreamsVideo and + // SetActivityStreamsVideo methods to access and set this property. + IsActivityStreamsVideo() bool + // IsActivityStreamsView returns true if this property has a type of + // "View". When true, use the GetActivityStreamsView and + // SetActivityStreamsView methods to access and set this property. + IsActivityStreamsView() bool + // IsForgeFedBranch returns true if this property has a type of "Branch". + // When true, use the GetForgeFedBranch and SetForgeFedBranch methods + // to access and set this property. + IsForgeFedBranch() bool + // IsForgeFedCommit returns true if this property has a type of "Commit". + // When true, use the GetForgeFedCommit and SetForgeFedCommit methods + // to access and set this property. + IsForgeFedCommit() bool + // IsForgeFedPush returns true if this property has a type of "Push". When + // true, use the GetForgeFedPush and SetForgeFedPush methods to access + // and set this property. + IsForgeFedPush() bool + // IsForgeFedRepository returns true if this property has a type of + // "Repository". When true, use the GetForgeFedRepository and + // SetForgeFedRepository methods to access and set this property. + IsForgeFedRepository() bool + // IsForgeFedTicket returns true if this property has a type of "Ticket". + // When true, use the GetForgeFedTicket and SetForgeFedTicket methods + // to access and set this property. + IsForgeFedTicket() bool + // IsForgeFedTicketDependency returns true if this property has a type of + // "TicketDependency". When true, use the GetForgeFedTicketDependency + // and SetForgeFedTicketDependency methods to access and set this + // property. + IsForgeFedTicketDependency() bool + // IsIRI returns true if this property is an IRI. When true, use GetIRI + // and SetIRI to access and set this property + IsIRI() bool + // IsTootEmoji returns true if this property has a type of "Emoji". When + // true, use the GetTootEmoji and SetTootEmoji methods to access and + // set this property. + IsTootEmoji() bool + // IsTootIdentityProof returns true if this property has a type of + // "IdentityProof". When true, use the GetTootIdentityProof and + // SetTootIdentityProof methods to access and set this property. + IsTootIdentityProof() bool + // JSONLDContext returns the JSONLD URIs required in the context string + // for this property and the specific values that are set. The value + // in the map is the alias used to import the property's value or + // values. + JSONLDContext() map[string]string + // KindIndex computes an arbitrary value for indexing this kind of value. + // This is a leaky API detail only for folks looking to replace the + // go-fed implementation. Applications should not use this method. + KindIndex() int + // LessThan compares two instances of this property with an arbitrary but + // stable comparison. Applications should not use this because it is + // only meant to help alternative implementations to go-fed to be able + // to normalize nonfunctional properties. + LessThan(o ForgeFedEarlyItemsPropertyIterator) bool + // Name returns the name of this property: "ForgeFedEarlyItems". + Name() string + // Next returns the next iterator, or nil if there is no next iterator. + Next() ForgeFedEarlyItemsPropertyIterator + // Prev returns the previous iterator, or nil if there is no previous + // iterator. + Prev() ForgeFedEarlyItemsPropertyIterator + // SetActivityStreamsAccept sets the value of this property. Calling + // IsActivityStreamsAccept afterwards returns true. + SetActivityStreamsAccept(v ActivityStreamsAccept) + // SetActivityStreamsActivity sets the value of this property. Calling + // IsActivityStreamsActivity afterwards returns true. + SetActivityStreamsActivity(v ActivityStreamsActivity) + // SetActivityStreamsAdd sets the value of this property. Calling + // IsActivityStreamsAdd afterwards returns true. + SetActivityStreamsAdd(v ActivityStreamsAdd) + // SetActivityStreamsAnnounce sets the value of this property. Calling + // IsActivityStreamsAnnounce afterwards returns true. + SetActivityStreamsAnnounce(v ActivityStreamsAnnounce) + // SetActivityStreamsApplication sets the value of this property. Calling + // IsActivityStreamsApplication afterwards returns true. + SetActivityStreamsApplication(v ActivityStreamsApplication) + // SetActivityStreamsArrive sets the value of this property. Calling + // IsActivityStreamsArrive afterwards returns true. + SetActivityStreamsArrive(v ActivityStreamsArrive) + // SetActivityStreamsArticle sets the value of this property. Calling + // IsActivityStreamsArticle afterwards returns true. + SetActivityStreamsArticle(v ActivityStreamsArticle) + // SetActivityStreamsAudio sets the value of this property. Calling + // IsActivityStreamsAudio afterwards returns true. + SetActivityStreamsAudio(v ActivityStreamsAudio) + // SetActivityStreamsBlock sets the value of this property. Calling + // IsActivityStreamsBlock afterwards returns true. + SetActivityStreamsBlock(v ActivityStreamsBlock) + // SetActivityStreamsCollection sets the value of this property. Calling + // IsActivityStreamsCollection afterwards returns true. + SetActivityStreamsCollection(v ActivityStreamsCollection) + // SetActivityStreamsCollectionPage sets the value of this property. + // Calling IsActivityStreamsCollectionPage afterwards returns true. + SetActivityStreamsCollectionPage(v ActivityStreamsCollectionPage) + // SetActivityStreamsCreate sets the value of this property. Calling + // IsActivityStreamsCreate afterwards returns true. + SetActivityStreamsCreate(v ActivityStreamsCreate) + // SetActivityStreamsDelete sets the value of this property. Calling + // IsActivityStreamsDelete afterwards returns true. + SetActivityStreamsDelete(v ActivityStreamsDelete) + // SetActivityStreamsDislike sets the value of this property. Calling + // IsActivityStreamsDislike afterwards returns true. + SetActivityStreamsDislike(v ActivityStreamsDislike) + // SetActivityStreamsDocument sets the value of this property. Calling + // IsActivityStreamsDocument afterwards returns true. + SetActivityStreamsDocument(v ActivityStreamsDocument) + // SetActivityStreamsEvent sets the value of this property. Calling + // IsActivityStreamsEvent afterwards returns true. + SetActivityStreamsEvent(v ActivityStreamsEvent) + // SetActivityStreamsFlag sets the value of this property. Calling + // IsActivityStreamsFlag afterwards returns true. + SetActivityStreamsFlag(v ActivityStreamsFlag) + // SetActivityStreamsFollow sets the value of this property. Calling + // IsActivityStreamsFollow afterwards returns true. + SetActivityStreamsFollow(v ActivityStreamsFollow) + // SetActivityStreamsGroup sets the value of this property. Calling + // IsActivityStreamsGroup afterwards returns true. + SetActivityStreamsGroup(v ActivityStreamsGroup) + // SetActivityStreamsIgnore sets the value of this property. Calling + // IsActivityStreamsIgnore afterwards returns true. + SetActivityStreamsIgnore(v ActivityStreamsIgnore) + // SetActivityStreamsImage sets the value of this property. Calling + // IsActivityStreamsImage afterwards returns true. + SetActivityStreamsImage(v ActivityStreamsImage) + // SetActivityStreamsIntransitiveActivity sets the value of this property. + // Calling IsActivityStreamsIntransitiveActivity afterwards returns + // true. + SetActivityStreamsIntransitiveActivity(v ActivityStreamsIntransitiveActivity) + // SetActivityStreamsInvite sets the value of this property. Calling + // IsActivityStreamsInvite afterwards returns true. + SetActivityStreamsInvite(v ActivityStreamsInvite) + // SetActivityStreamsJoin sets the value of this property. Calling + // IsActivityStreamsJoin afterwards returns true. + SetActivityStreamsJoin(v ActivityStreamsJoin) + // SetActivityStreamsLeave sets the value of this property. Calling + // IsActivityStreamsLeave afterwards returns true. + SetActivityStreamsLeave(v ActivityStreamsLeave) + // SetActivityStreamsLike sets the value of this property. Calling + // IsActivityStreamsLike afterwards returns true. + SetActivityStreamsLike(v ActivityStreamsLike) + // SetActivityStreamsLink sets the value of this property. Calling + // IsActivityStreamsLink afterwards returns true. + SetActivityStreamsLink(v ActivityStreamsLink) + // SetActivityStreamsListen sets the value of this property. Calling + // IsActivityStreamsListen afterwards returns true. + SetActivityStreamsListen(v ActivityStreamsListen) + // SetActivityStreamsMention sets the value of this property. Calling + // IsActivityStreamsMention afterwards returns true. + SetActivityStreamsMention(v ActivityStreamsMention) + // SetActivityStreamsMove sets the value of this property. Calling + // IsActivityStreamsMove afterwards returns true. + SetActivityStreamsMove(v ActivityStreamsMove) + // SetActivityStreamsNote sets the value of this property. Calling + // IsActivityStreamsNote afterwards returns true. + SetActivityStreamsNote(v ActivityStreamsNote) + // SetActivityStreamsObject sets the value of this property. Calling + // IsActivityStreamsObject afterwards returns true. + SetActivityStreamsObject(v ActivityStreamsObject) + // SetActivityStreamsOffer sets the value of this property. Calling + // IsActivityStreamsOffer afterwards returns true. + SetActivityStreamsOffer(v ActivityStreamsOffer) + // SetActivityStreamsOrderedCollection sets the value of this property. + // Calling IsActivityStreamsOrderedCollection afterwards returns true. + SetActivityStreamsOrderedCollection(v ActivityStreamsOrderedCollection) + // SetActivityStreamsOrderedCollectionPage sets the value of this + // property. Calling IsActivityStreamsOrderedCollectionPage afterwards + // returns true. + SetActivityStreamsOrderedCollectionPage(v ActivityStreamsOrderedCollectionPage) + // SetActivityStreamsOrganization sets the value of this property. Calling + // IsActivityStreamsOrganization afterwards returns true. + SetActivityStreamsOrganization(v ActivityStreamsOrganization) + // SetActivityStreamsPage sets the value of this property. Calling + // IsActivityStreamsPage afterwards returns true. + SetActivityStreamsPage(v ActivityStreamsPage) + // SetActivityStreamsPerson sets the value of this property. Calling + // IsActivityStreamsPerson afterwards returns true. + SetActivityStreamsPerson(v ActivityStreamsPerson) + // SetActivityStreamsPlace sets the value of this property. Calling + // IsActivityStreamsPlace afterwards returns true. + SetActivityStreamsPlace(v ActivityStreamsPlace) + // SetActivityStreamsProfile sets the value of this property. Calling + // IsActivityStreamsProfile afterwards returns true. + SetActivityStreamsProfile(v ActivityStreamsProfile) + // SetActivityStreamsQuestion sets the value of this property. Calling + // IsActivityStreamsQuestion afterwards returns true. + SetActivityStreamsQuestion(v ActivityStreamsQuestion) + // SetActivityStreamsRead sets the value of this property. Calling + // IsActivityStreamsRead afterwards returns true. + SetActivityStreamsRead(v ActivityStreamsRead) + // SetActivityStreamsReject sets the value of this property. Calling + // IsActivityStreamsReject afterwards returns true. + SetActivityStreamsReject(v ActivityStreamsReject) + // SetActivityStreamsRelationship sets the value of this property. Calling + // IsActivityStreamsRelationship afterwards returns true. + SetActivityStreamsRelationship(v ActivityStreamsRelationship) + // SetActivityStreamsRemove sets the value of this property. Calling + // IsActivityStreamsRemove afterwards returns true. + SetActivityStreamsRemove(v ActivityStreamsRemove) + // SetActivityStreamsService sets the value of this property. Calling + // IsActivityStreamsService afterwards returns true. + SetActivityStreamsService(v ActivityStreamsService) + // SetActivityStreamsTentativeAccept sets the value of this property. + // Calling IsActivityStreamsTentativeAccept afterwards returns true. + SetActivityStreamsTentativeAccept(v ActivityStreamsTentativeAccept) + // SetActivityStreamsTentativeReject sets the value of this property. + // Calling IsActivityStreamsTentativeReject afterwards returns true. + SetActivityStreamsTentativeReject(v ActivityStreamsTentativeReject) + // SetActivityStreamsTombstone sets the value of this property. Calling + // IsActivityStreamsTombstone afterwards returns true. + SetActivityStreamsTombstone(v ActivityStreamsTombstone) + // SetActivityStreamsTravel sets the value of this property. Calling + // IsActivityStreamsTravel afterwards returns true. + SetActivityStreamsTravel(v ActivityStreamsTravel) + // SetActivityStreamsUndo sets the value of this property. Calling + // IsActivityStreamsUndo afterwards returns true. + SetActivityStreamsUndo(v ActivityStreamsUndo) + // SetActivityStreamsUpdate sets the value of this property. Calling + // IsActivityStreamsUpdate afterwards returns true. + SetActivityStreamsUpdate(v ActivityStreamsUpdate) + // SetActivityStreamsVideo sets the value of this property. Calling + // IsActivityStreamsVideo afterwards returns true. + SetActivityStreamsVideo(v ActivityStreamsVideo) + // SetActivityStreamsView sets the value of this property. Calling + // IsActivityStreamsView afterwards returns true. + SetActivityStreamsView(v ActivityStreamsView) + // SetForgeFedBranch sets the value of this property. Calling + // IsForgeFedBranch afterwards returns true. + SetForgeFedBranch(v ForgeFedBranch) + // SetForgeFedCommit sets the value of this property. Calling + // IsForgeFedCommit afterwards returns true. + SetForgeFedCommit(v ForgeFedCommit) + // SetForgeFedPush sets the value of this property. Calling IsForgeFedPush + // afterwards returns true. + SetForgeFedPush(v ForgeFedPush) + // SetForgeFedRepository sets the value of this property. Calling + // IsForgeFedRepository afterwards returns true. + SetForgeFedRepository(v ForgeFedRepository) + // SetForgeFedTicket sets the value of this property. Calling + // IsForgeFedTicket afterwards returns true. + SetForgeFedTicket(v ForgeFedTicket) + // SetForgeFedTicketDependency sets the value of this property. Calling + // IsForgeFedTicketDependency afterwards returns true. + SetForgeFedTicketDependency(v ForgeFedTicketDependency) + // SetIRI sets the value of this property. Calling IsIRI afterwards + // returns true. + SetIRI(v *url.URL) + // SetTootEmoji sets the value of this property. Calling IsTootEmoji + // afterwards returns true. + SetTootEmoji(v TootEmoji) + // SetTootIdentityProof sets the value of this property. Calling + // IsTootIdentityProof afterwards returns true. + SetTootIdentityProof(v TootIdentityProof) + // SetType attempts to set the property for the arbitrary type. Returns an + // error if it is not a valid type to set on this property. + SetType(t Type) error +} + +// In an ordered collection (or an ordered collection page) in which items (or +// orderedItems) contains a continuous subset of the collection’s items from +// one end, earlyItems identifiers a continuous subset from the other end. For +// example, if items lists the chronologically latest items, earlyItems would +// list the chrologically earliest items. The ordering rule for items in +// earlyItems MUST be the same as in items. For examle, if items lists items +// in reverse chronogical order, then so does earlyItems. +// +// { +// "@context": [ +// "https://www.w3.org/ns/activitystreams", +// "https://forgefed.peers.community/ns" +// ], +// "earlyItems": [ +// "https://dev.example/aviva/outbox/3", +// "https://dev.example/aviva/outbox/2", +// "https://dev.example/aviva/outbox/1" +// ], +// "id": "https://dev.example/aviva/outbox", +// "orderedItems": [ +// "https://dev.example/aviva/outbox/712", +// "https://dev.example/aviva/outbox/711", +// "https://dev.example/aviva/outbox/710" +// ], +// "totalItems": 712, +// "type": "OrderedCollection" +// } +type ForgeFedEarlyItemsProperty interface { + // AppendActivityStreamsAccept appends a Accept value to the back of a + // list of the property "earlyItems". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsAccept(v ActivityStreamsAccept) + // AppendActivityStreamsActivity appends a Activity value to the back of a + // list of the property "earlyItems". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsActivity(v ActivityStreamsActivity) + // AppendActivityStreamsAdd appends a Add value to the back of a list of + // the property "earlyItems". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsAdd(v ActivityStreamsAdd) + // AppendActivityStreamsAnnounce appends a Announce value to the back of a + // list of the property "earlyItems". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsAnnounce(v ActivityStreamsAnnounce) + // AppendActivityStreamsApplication appends a Application value to the + // back of a list of the property "earlyItems". Invalidates iterators + // that are traversing using Prev. + AppendActivityStreamsApplication(v ActivityStreamsApplication) + // AppendActivityStreamsArrive appends a Arrive value to the back of a + // list of the property "earlyItems". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsArrive(v ActivityStreamsArrive) + // AppendActivityStreamsArticle appends a Article value to the back of a + // list of the property "earlyItems". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsArticle(v ActivityStreamsArticle) + // AppendActivityStreamsAudio appends a Audio value to the back of a list + // of the property "earlyItems". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsAudio(v ActivityStreamsAudio) + // AppendActivityStreamsBlock appends a Block value to the back of a list + // of the property "earlyItems". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsBlock(v ActivityStreamsBlock) + // AppendActivityStreamsCollection appends a Collection value to the back + // of a list of the property "earlyItems". Invalidates iterators that + // are traversing using Prev. + AppendActivityStreamsCollection(v ActivityStreamsCollection) + // AppendActivityStreamsCollectionPage appends a CollectionPage value to + // the back of a list of the property "earlyItems". Invalidates + // iterators that are traversing using Prev. + AppendActivityStreamsCollectionPage(v ActivityStreamsCollectionPage) + // AppendActivityStreamsCreate appends a Create value to the back of a + // list of the property "earlyItems". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsCreate(v ActivityStreamsCreate) + // AppendActivityStreamsDelete appends a Delete value to the back of a + // list of the property "earlyItems". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsDelete(v ActivityStreamsDelete) + // AppendActivityStreamsDislike appends a Dislike value to the back of a + // list of the property "earlyItems". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsDislike(v ActivityStreamsDislike) + // AppendActivityStreamsDocument appends a Document value to the back of a + // list of the property "earlyItems". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsDocument(v ActivityStreamsDocument) + // AppendActivityStreamsEvent appends a Event value to the back of a list + // of the property "earlyItems". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsEvent(v ActivityStreamsEvent) + // AppendActivityStreamsFlag appends a Flag value to the back of a list of + // the property "earlyItems". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsFlag(v ActivityStreamsFlag) + // AppendActivityStreamsFollow appends a Follow value to the back of a + // list of the property "earlyItems". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsFollow(v ActivityStreamsFollow) + // AppendActivityStreamsGroup appends a Group value to the back of a list + // of the property "earlyItems". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsGroup(v ActivityStreamsGroup) + // AppendActivityStreamsIgnore appends a Ignore value to the back of a + // list of the property "earlyItems". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsIgnore(v ActivityStreamsIgnore) + // AppendActivityStreamsImage appends a Image value to the back of a list + // of the property "earlyItems". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsImage(v ActivityStreamsImage) + // AppendActivityStreamsIntransitiveActivity appends a + // IntransitiveActivity value to the back of a list of the property + // "earlyItems". Invalidates iterators that are traversing using Prev. + AppendActivityStreamsIntransitiveActivity(v ActivityStreamsIntransitiveActivity) + // AppendActivityStreamsInvite appends a Invite value to the back of a + // list of the property "earlyItems". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsInvite(v ActivityStreamsInvite) + // AppendActivityStreamsJoin appends a Join value to the back of a list of + // the property "earlyItems". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsJoin(v ActivityStreamsJoin) + // AppendActivityStreamsLeave appends a Leave value to the back of a list + // of the property "earlyItems". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsLeave(v ActivityStreamsLeave) + // AppendActivityStreamsLike appends a Like value to the back of a list of + // the property "earlyItems". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsLike(v ActivityStreamsLike) + // AppendActivityStreamsLink appends a Link value to the back of a list of + // the property "earlyItems". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsLink(v ActivityStreamsLink) + // AppendActivityStreamsListen appends a Listen value to the back of a + // list of the property "earlyItems". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsListen(v ActivityStreamsListen) + // AppendActivityStreamsMention appends a Mention value to the back of a + // list of the property "earlyItems". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsMention(v ActivityStreamsMention) + // AppendActivityStreamsMove appends a Move value to the back of a list of + // the property "earlyItems". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsMove(v ActivityStreamsMove) + // AppendActivityStreamsNote appends a Note value to the back of a list of + // the property "earlyItems". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsNote(v ActivityStreamsNote) + // AppendActivityStreamsObject appends a Object value to the back of a + // list of the property "earlyItems". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsObject(v ActivityStreamsObject) + // AppendActivityStreamsOffer appends a Offer value to the back of a list + // of the property "earlyItems". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsOffer(v ActivityStreamsOffer) + // AppendActivityStreamsOrderedCollection appends a OrderedCollection + // value to the back of a list of the property "earlyItems". + // Invalidates iterators that are traversing using Prev. + AppendActivityStreamsOrderedCollection(v ActivityStreamsOrderedCollection) + // AppendActivityStreamsOrderedCollectionPage appends a + // OrderedCollectionPage value to the back of a list of the property + // "earlyItems". Invalidates iterators that are traversing using Prev. + AppendActivityStreamsOrderedCollectionPage(v ActivityStreamsOrderedCollectionPage) + // AppendActivityStreamsOrganization appends a Organization value to the + // back of a list of the property "earlyItems". Invalidates iterators + // that are traversing using Prev. + AppendActivityStreamsOrganization(v ActivityStreamsOrganization) + // AppendActivityStreamsPage appends a Page value to the back of a list of + // the property "earlyItems". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsPage(v ActivityStreamsPage) + // AppendActivityStreamsPerson appends a Person value to the back of a + // list of the property "earlyItems". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsPerson(v ActivityStreamsPerson) + // AppendActivityStreamsPlace appends a Place value to the back of a list + // of the property "earlyItems". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsPlace(v ActivityStreamsPlace) + // AppendActivityStreamsProfile appends a Profile value to the back of a + // list of the property "earlyItems". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsProfile(v ActivityStreamsProfile) + // AppendActivityStreamsQuestion appends a Question value to the back of a + // list of the property "earlyItems". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsQuestion(v ActivityStreamsQuestion) + // AppendActivityStreamsRead appends a Read value to the back of a list of + // the property "earlyItems". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsRead(v ActivityStreamsRead) + // AppendActivityStreamsReject appends a Reject value to the back of a + // list of the property "earlyItems". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsReject(v ActivityStreamsReject) + // AppendActivityStreamsRelationship appends a Relationship value to the + // back of a list of the property "earlyItems". Invalidates iterators + // that are traversing using Prev. + AppendActivityStreamsRelationship(v ActivityStreamsRelationship) + // AppendActivityStreamsRemove appends a Remove value to the back of a + // list of the property "earlyItems". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsRemove(v ActivityStreamsRemove) + // AppendActivityStreamsService appends a Service value to the back of a + // list of the property "earlyItems". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsService(v ActivityStreamsService) + // AppendActivityStreamsTentativeAccept appends a TentativeAccept value to + // the back of a list of the property "earlyItems". Invalidates + // iterators that are traversing using Prev. + AppendActivityStreamsTentativeAccept(v ActivityStreamsTentativeAccept) + // AppendActivityStreamsTentativeReject appends a TentativeReject value to + // the back of a list of the property "earlyItems". Invalidates + // iterators that are traversing using Prev. + AppendActivityStreamsTentativeReject(v ActivityStreamsTentativeReject) + // AppendActivityStreamsTombstone appends a Tombstone value to the back of + // a list of the property "earlyItems". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsTombstone(v ActivityStreamsTombstone) + // AppendActivityStreamsTravel appends a Travel value to the back of a + // list of the property "earlyItems". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsTravel(v ActivityStreamsTravel) + // AppendActivityStreamsUndo appends a Undo value to the back of a list of + // the property "earlyItems". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsUndo(v ActivityStreamsUndo) + // AppendActivityStreamsUpdate appends a Update value to the back of a + // list of the property "earlyItems". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsUpdate(v ActivityStreamsUpdate) + // AppendActivityStreamsVideo appends a Video value to the back of a list + // of the property "earlyItems". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsVideo(v ActivityStreamsVideo) + // AppendActivityStreamsView appends a View value to the back of a list of + // the property "earlyItems". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsView(v ActivityStreamsView) + // AppendForgeFedBranch appends a Branch value to the back of a list of + // the property "earlyItems". Invalidates iterators that are + // traversing using Prev. + AppendForgeFedBranch(v ForgeFedBranch) + // AppendForgeFedCommit appends a Commit value to the back of a list of + // the property "earlyItems". Invalidates iterators that are + // traversing using Prev. + AppendForgeFedCommit(v ForgeFedCommit) + // AppendForgeFedPush appends a Push value to the back of a list of the + // property "earlyItems". Invalidates iterators that are traversing + // using Prev. + AppendForgeFedPush(v ForgeFedPush) + // AppendForgeFedRepository appends a Repository value to the back of a + // list of the property "earlyItems". Invalidates iterators that are + // traversing using Prev. + AppendForgeFedRepository(v ForgeFedRepository) + // AppendForgeFedTicket appends a Ticket value to the back of a list of + // the property "earlyItems". Invalidates iterators that are + // traversing using Prev. + AppendForgeFedTicket(v ForgeFedTicket) + // AppendForgeFedTicketDependency appends a TicketDependency value to the + // back of a list of the property "earlyItems". Invalidates iterators + // that are traversing using Prev. + AppendForgeFedTicketDependency(v ForgeFedTicketDependency) + // AppendIRI appends an IRI value to the back of a list of the property + // "earlyItems" + AppendIRI(v *url.URL) + // AppendTootEmoji appends a Emoji value to the back of a list of the + // property "earlyItems". Invalidates iterators that are traversing + // using Prev. + AppendTootEmoji(v TootEmoji) + // AppendTootIdentityProof appends a IdentityProof value to the back of a + // list of the property "earlyItems". Invalidates iterators that are + // traversing using Prev. + AppendTootIdentityProof(v TootIdentityProof) + // PrependType prepends an arbitrary type value to the front of a list of + // the property "earlyItems". Invalidates iterators that are + // traversing using Prev. Returns an error if the type is not a valid + // one to set for this property. + AppendType(t Type) error + // At returns the property value for the specified index. Panics if the + // index is out of bounds. + At(index int) ForgeFedEarlyItemsPropertyIterator + // Begin returns the first iterator, or nil if empty. Can be used with the + // iterator's Next method and this property's End method to iterate + // from front to back through all values. + Begin() ForgeFedEarlyItemsPropertyIterator + // Empty returns returns true if there are no elements. + Empty() bool + // End returns beyond-the-last iterator, which is nil. Can be used with + // the iterator's Next method and this property's Begin method to + // iterate from front to back through all values. + End() ForgeFedEarlyItemsPropertyIterator + // InsertActivityStreamsAccept inserts a Accept value at the specified + // index for a property "earlyItems". Existing elements at that index + // and higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsAccept(idx int, v ActivityStreamsAccept) + // InsertActivityStreamsActivity inserts a Activity value at the specified + // index for a property "earlyItems". Existing elements at that index + // and higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsActivity(idx int, v ActivityStreamsActivity) + // InsertActivityStreamsAdd inserts a Add value at the specified index for + // a property "earlyItems". Existing elements at that index and higher + // are shifted back once. Invalidates all iterators. + InsertActivityStreamsAdd(idx int, v ActivityStreamsAdd) + // InsertActivityStreamsAnnounce inserts a Announce value at the specified + // index for a property "earlyItems". Existing elements at that index + // and higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsAnnounce(idx int, v ActivityStreamsAnnounce) + // InsertActivityStreamsApplication inserts a Application value at the + // specified index for a property "earlyItems". Existing elements at + // that index and higher are shifted back once. Invalidates all + // iterators. + InsertActivityStreamsApplication(idx int, v ActivityStreamsApplication) + // InsertActivityStreamsArrive inserts a Arrive value at the specified + // index for a property "earlyItems". Existing elements at that index + // and higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsArrive(idx int, v ActivityStreamsArrive) + // InsertActivityStreamsArticle inserts a Article value at the specified + // index for a property "earlyItems". Existing elements at that index + // and higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsArticle(idx int, v ActivityStreamsArticle) + // InsertActivityStreamsAudio inserts a Audio value at the specified index + // for a property "earlyItems". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsAudio(idx int, v ActivityStreamsAudio) + // InsertActivityStreamsBlock inserts a Block value at the specified index + // for a property "earlyItems". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsBlock(idx int, v ActivityStreamsBlock) + // InsertActivityStreamsCollection inserts a Collection value at the + // specified index for a property "earlyItems". Existing elements at + // that index and higher are shifted back once. Invalidates all + // iterators. + InsertActivityStreamsCollection(idx int, v ActivityStreamsCollection) + // InsertActivityStreamsCollectionPage inserts a CollectionPage value at + // the specified index for a property "earlyItems". Existing elements + // at that index and higher are shifted back once. Invalidates all + // iterators. + InsertActivityStreamsCollectionPage(idx int, v ActivityStreamsCollectionPage) + // InsertActivityStreamsCreate inserts a Create value at the specified + // index for a property "earlyItems". Existing elements at that index + // and higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsCreate(idx int, v ActivityStreamsCreate) + // InsertActivityStreamsDelete inserts a Delete value at the specified + // index for a property "earlyItems". Existing elements at that index + // and higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsDelete(idx int, v ActivityStreamsDelete) + // InsertActivityStreamsDislike inserts a Dislike value at the specified + // index for a property "earlyItems". Existing elements at that index + // and higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsDislike(idx int, v ActivityStreamsDislike) + // InsertActivityStreamsDocument inserts a Document value at the specified + // index for a property "earlyItems". Existing elements at that index + // and higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsDocument(idx int, v ActivityStreamsDocument) + // InsertActivityStreamsEvent inserts a Event value at the specified index + // for a property "earlyItems". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsEvent(idx int, v ActivityStreamsEvent) + // InsertActivityStreamsFlag inserts a Flag value at the specified index + // for a property "earlyItems". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsFlag(idx int, v ActivityStreamsFlag) + // InsertActivityStreamsFollow inserts a Follow value at the specified + // index for a property "earlyItems". Existing elements at that index + // and higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsFollow(idx int, v ActivityStreamsFollow) + // InsertActivityStreamsGroup inserts a Group value at the specified index + // for a property "earlyItems". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsGroup(idx int, v ActivityStreamsGroup) + // InsertActivityStreamsIgnore inserts a Ignore value at the specified + // index for a property "earlyItems". Existing elements at that index + // and higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsIgnore(idx int, v ActivityStreamsIgnore) + // InsertActivityStreamsImage inserts a Image value at the specified index + // for a property "earlyItems". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsImage(idx int, v ActivityStreamsImage) + // InsertActivityStreamsIntransitiveActivity inserts a + // IntransitiveActivity value at the specified index for a property + // "earlyItems". Existing elements at that index and higher are + // shifted back once. Invalidates all iterators. + InsertActivityStreamsIntransitiveActivity(idx int, v ActivityStreamsIntransitiveActivity) + // InsertActivityStreamsInvite inserts a Invite value at the specified + // index for a property "earlyItems". Existing elements at that index + // and higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsInvite(idx int, v ActivityStreamsInvite) + // InsertActivityStreamsJoin inserts a Join value at the specified index + // for a property "earlyItems". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsJoin(idx int, v ActivityStreamsJoin) + // InsertActivityStreamsLeave inserts a Leave value at the specified index + // for a property "earlyItems". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsLeave(idx int, v ActivityStreamsLeave) + // InsertActivityStreamsLike inserts a Like value at the specified index + // for a property "earlyItems". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsLike(idx int, v ActivityStreamsLike) + // InsertActivityStreamsLink inserts a Link value at the specified index + // for a property "earlyItems". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsLink(idx int, v ActivityStreamsLink) + // InsertActivityStreamsListen inserts a Listen value at the specified + // index for a property "earlyItems". Existing elements at that index + // and higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsListen(idx int, v ActivityStreamsListen) + // InsertActivityStreamsMention inserts a Mention value at the specified + // index for a property "earlyItems". Existing elements at that index + // and higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsMention(idx int, v ActivityStreamsMention) + // InsertActivityStreamsMove inserts a Move value at the specified index + // for a property "earlyItems". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsMove(idx int, v ActivityStreamsMove) + // InsertActivityStreamsNote inserts a Note value at the specified index + // for a property "earlyItems". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsNote(idx int, v ActivityStreamsNote) + // InsertActivityStreamsObject inserts a Object value at the specified + // index for a property "earlyItems". Existing elements at that index + // and higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsObject(idx int, v ActivityStreamsObject) + // InsertActivityStreamsOffer inserts a Offer value at the specified index + // for a property "earlyItems". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsOffer(idx int, v ActivityStreamsOffer) + // InsertActivityStreamsOrderedCollection inserts a OrderedCollection + // value at the specified index for a property "earlyItems". Existing + // elements at that index and higher are shifted back once. + // Invalidates all iterators. + InsertActivityStreamsOrderedCollection(idx int, v ActivityStreamsOrderedCollection) + // InsertActivityStreamsOrderedCollectionPage inserts a + // OrderedCollectionPage value at the specified index for a property + // "earlyItems". Existing elements at that index and higher are + // shifted back once. Invalidates all iterators. + InsertActivityStreamsOrderedCollectionPage(idx int, v ActivityStreamsOrderedCollectionPage) + // InsertActivityStreamsOrganization inserts a Organization value at the + // specified index for a property "earlyItems". Existing elements at + // that index and higher are shifted back once. Invalidates all + // iterators. + InsertActivityStreamsOrganization(idx int, v ActivityStreamsOrganization) + // InsertActivityStreamsPage inserts a Page value at the specified index + // for a property "earlyItems". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsPage(idx int, v ActivityStreamsPage) + // InsertActivityStreamsPerson inserts a Person value at the specified + // index for a property "earlyItems". Existing elements at that index + // and higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsPerson(idx int, v ActivityStreamsPerson) + // InsertActivityStreamsPlace inserts a Place value at the specified index + // for a property "earlyItems". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsPlace(idx int, v ActivityStreamsPlace) + // InsertActivityStreamsProfile inserts a Profile value at the specified + // index for a property "earlyItems". Existing elements at that index + // and higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsProfile(idx int, v ActivityStreamsProfile) + // InsertActivityStreamsQuestion inserts a Question value at the specified + // index for a property "earlyItems". Existing elements at that index + // and higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsQuestion(idx int, v ActivityStreamsQuestion) + // InsertActivityStreamsRead inserts a Read value at the specified index + // for a property "earlyItems". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsRead(idx int, v ActivityStreamsRead) + // InsertActivityStreamsReject inserts a Reject value at the specified + // index for a property "earlyItems". Existing elements at that index + // and higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsReject(idx int, v ActivityStreamsReject) + // InsertActivityStreamsRelationship inserts a Relationship value at the + // specified index for a property "earlyItems". Existing elements at + // that index and higher are shifted back once. Invalidates all + // iterators. + InsertActivityStreamsRelationship(idx int, v ActivityStreamsRelationship) + // InsertActivityStreamsRemove inserts a Remove value at the specified + // index for a property "earlyItems". Existing elements at that index + // and higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsRemove(idx int, v ActivityStreamsRemove) + // InsertActivityStreamsService inserts a Service value at the specified + // index for a property "earlyItems". Existing elements at that index + // and higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsService(idx int, v ActivityStreamsService) + // InsertActivityStreamsTentativeAccept inserts a TentativeAccept value at + // the specified index for a property "earlyItems". Existing elements + // at that index and higher are shifted back once. Invalidates all + // iterators. + InsertActivityStreamsTentativeAccept(idx int, v ActivityStreamsTentativeAccept) + // InsertActivityStreamsTentativeReject inserts a TentativeReject value at + // the specified index for a property "earlyItems". Existing elements + // at that index and higher are shifted back once. Invalidates all + // iterators. + InsertActivityStreamsTentativeReject(idx int, v ActivityStreamsTentativeReject) + // InsertActivityStreamsTombstone inserts a Tombstone value at the + // specified index for a property "earlyItems". Existing elements at + // that index and higher are shifted back once. Invalidates all + // iterators. + InsertActivityStreamsTombstone(idx int, v ActivityStreamsTombstone) + // InsertActivityStreamsTravel inserts a Travel value at the specified + // index for a property "earlyItems". Existing elements at that index + // and higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsTravel(idx int, v ActivityStreamsTravel) + // InsertActivityStreamsUndo inserts a Undo value at the specified index + // for a property "earlyItems". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsUndo(idx int, v ActivityStreamsUndo) + // InsertActivityStreamsUpdate inserts a Update value at the specified + // index for a property "earlyItems". Existing elements at that index + // and higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsUpdate(idx int, v ActivityStreamsUpdate) + // InsertActivityStreamsVideo inserts a Video value at the specified index + // for a property "earlyItems". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsVideo(idx int, v ActivityStreamsVideo) + // InsertActivityStreamsView inserts a View value at the specified index + // for a property "earlyItems". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsView(idx int, v ActivityStreamsView) + // InsertForgeFedBranch inserts a Branch value at the specified index for + // a property "earlyItems". Existing elements at that index and higher + // are shifted back once. Invalidates all iterators. + InsertForgeFedBranch(idx int, v ForgeFedBranch) + // InsertForgeFedCommit inserts a Commit value at the specified index for + // a property "earlyItems". Existing elements at that index and higher + // are shifted back once. Invalidates all iterators. + InsertForgeFedCommit(idx int, v ForgeFedCommit) + // InsertForgeFedPush inserts a Push value at the specified index for a + // property "earlyItems". Existing elements at that index and higher + // are shifted back once. Invalidates all iterators. + InsertForgeFedPush(idx int, v ForgeFedPush) + // InsertForgeFedRepository inserts a Repository value at the specified + // index for a property "earlyItems". Existing elements at that index + // and higher are shifted back once. Invalidates all iterators. + InsertForgeFedRepository(idx int, v ForgeFedRepository) + // InsertForgeFedTicket inserts a Ticket value at the specified index for + // a property "earlyItems". Existing elements at that index and higher + // are shifted back once. Invalidates all iterators. + InsertForgeFedTicket(idx int, v ForgeFedTicket) + // InsertForgeFedTicketDependency inserts a TicketDependency value at the + // specified index for a property "earlyItems". Existing elements at + // that index and higher are shifted back once. Invalidates all + // iterators. + InsertForgeFedTicketDependency(idx int, v ForgeFedTicketDependency) + // Insert inserts an IRI value at the specified index for a property + // "earlyItems". Existing elements at that index and higher are + // shifted back once. Invalidates all iterators. + InsertIRI(idx int, v *url.URL) + // InsertTootEmoji inserts a Emoji value at the specified index for a + // property "earlyItems". Existing elements at that index and higher + // are shifted back once. Invalidates all iterators. + InsertTootEmoji(idx int, v TootEmoji) + // InsertTootIdentityProof inserts a IdentityProof value at the specified + // index for a property "earlyItems". Existing elements at that index + // and higher are shifted back once. Invalidates all iterators. + InsertTootIdentityProof(idx int, v TootIdentityProof) + // PrependType prepends an arbitrary type value to the front of a list of + // the property "earlyItems". Invalidates all iterators. Returns an + // error if the type is not a valid one to set for this property. + InsertType(idx int, t Type) error + // JSONLDContext returns the JSONLD URIs required in the context string + // for this property and the specific values that are set. The value + // in the map is the alias used to import the property's value or + // values. + JSONLDContext() map[string]string + // KindIndex computes an arbitrary value for indexing this kind of value. + // This is a leaky API method specifically needed only for alternate + // implementations for go-fed. Applications should not use this + // method. Panics if the index is out of bounds. + KindIndex(idx int) int + // Len returns the number of values that exist for the "earlyItems" + // property. + Len() (length int) + // Less computes whether another property is less than this one. Mixing + // types results in a consistent but arbitrary ordering + Less(i, j int) bool + // LessThan compares two instances of this property with an arbitrary but + // stable comparison. Applications should not use this because it is + // only meant to help alternative implementations to go-fed to be able + // to normalize nonfunctional properties. + LessThan(o ForgeFedEarlyItemsProperty) bool + // Name returns the name of this property ("earlyItems") with any alias. + Name() string + // PrependActivityStreamsAccept prepends a Accept value to the front of a + // list of the property "earlyItems". Invalidates all iterators. + PrependActivityStreamsAccept(v ActivityStreamsAccept) + // PrependActivityStreamsActivity prepends a Activity value to the front + // of a list of the property "earlyItems". Invalidates all iterators. + PrependActivityStreamsActivity(v ActivityStreamsActivity) + // PrependActivityStreamsAdd prepends a Add value to the front of a list + // of the property "earlyItems". Invalidates all iterators. + PrependActivityStreamsAdd(v ActivityStreamsAdd) + // PrependActivityStreamsAnnounce prepends a Announce value to the front + // of a list of the property "earlyItems". Invalidates all iterators. + PrependActivityStreamsAnnounce(v ActivityStreamsAnnounce) + // PrependActivityStreamsApplication prepends a Application value to the + // front of a list of the property "earlyItems". Invalidates all + // iterators. + PrependActivityStreamsApplication(v ActivityStreamsApplication) + // PrependActivityStreamsArrive prepends a Arrive value to the front of a + // list of the property "earlyItems". Invalidates all iterators. + PrependActivityStreamsArrive(v ActivityStreamsArrive) + // PrependActivityStreamsArticle prepends a Article value to the front of + // a list of the property "earlyItems". Invalidates all iterators. + PrependActivityStreamsArticle(v ActivityStreamsArticle) + // PrependActivityStreamsAudio prepends a Audio value to the front of a + // list of the property "earlyItems". Invalidates all iterators. + PrependActivityStreamsAudio(v ActivityStreamsAudio) + // PrependActivityStreamsBlock prepends a Block value to the front of a + // list of the property "earlyItems". Invalidates all iterators. + PrependActivityStreamsBlock(v ActivityStreamsBlock) + // PrependActivityStreamsCollection prepends a Collection value to the + // front of a list of the property "earlyItems". Invalidates all + // iterators. + PrependActivityStreamsCollection(v ActivityStreamsCollection) + // PrependActivityStreamsCollectionPage prepends a CollectionPage value to + // the front of a list of the property "earlyItems". Invalidates all + // iterators. + PrependActivityStreamsCollectionPage(v ActivityStreamsCollectionPage) + // PrependActivityStreamsCreate prepends a Create value to the front of a + // list of the property "earlyItems". Invalidates all iterators. + PrependActivityStreamsCreate(v ActivityStreamsCreate) + // PrependActivityStreamsDelete prepends a Delete value to the front of a + // list of the property "earlyItems". Invalidates all iterators. + PrependActivityStreamsDelete(v ActivityStreamsDelete) + // PrependActivityStreamsDislike prepends a Dislike value to the front of + // a list of the property "earlyItems". Invalidates all iterators. + PrependActivityStreamsDislike(v ActivityStreamsDislike) + // PrependActivityStreamsDocument prepends a Document value to the front + // of a list of the property "earlyItems". Invalidates all iterators. + PrependActivityStreamsDocument(v ActivityStreamsDocument) + // PrependActivityStreamsEvent prepends a Event value to the front of a + // list of the property "earlyItems". Invalidates all iterators. + PrependActivityStreamsEvent(v ActivityStreamsEvent) + // PrependActivityStreamsFlag prepends a Flag value to the front of a list + // of the property "earlyItems". Invalidates all iterators. + PrependActivityStreamsFlag(v ActivityStreamsFlag) + // PrependActivityStreamsFollow prepends a Follow value to the front of a + // list of the property "earlyItems". Invalidates all iterators. + PrependActivityStreamsFollow(v ActivityStreamsFollow) + // PrependActivityStreamsGroup prepends a Group value to the front of a + // list of the property "earlyItems". Invalidates all iterators. + PrependActivityStreamsGroup(v ActivityStreamsGroup) + // PrependActivityStreamsIgnore prepends a Ignore value to the front of a + // list of the property "earlyItems". Invalidates all iterators. + PrependActivityStreamsIgnore(v ActivityStreamsIgnore) + // PrependActivityStreamsImage prepends a Image value to the front of a + // list of the property "earlyItems". Invalidates all iterators. + PrependActivityStreamsImage(v ActivityStreamsImage) + // PrependActivityStreamsIntransitiveActivity prepends a + // IntransitiveActivity value to the front of a list of the property + // "earlyItems". Invalidates all iterators. + PrependActivityStreamsIntransitiveActivity(v ActivityStreamsIntransitiveActivity) + // PrependActivityStreamsInvite prepends a Invite value to the front of a + // list of the property "earlyItems". Invalidates all iterators. + PrependActivityStreamsInvite(v ActivityStreamsInvite) + // PrependActivityStreamsJoin prepends a Join value to the front of a list + // of the property "earlyItems". Invalidates all iterators. + PrependActivityStreamsJoin(v ActivityStreamsJoin) + // PrependActivityStreamsLeave prepends a Leave value to the front of a + // list of the property "earlyItems". Invalidates all iterators. + PrependActivityStreamsLeave(v ActivityStreamsLeave) + // PrependActivityStreamsLike prepends a Like value to the front of a list + // of the property "earlyItems". Invalidates all iterators. + PrependActivityStreamsLike(v ActivityStreamsLike) + // PrependActivityStreamsLink prepends a Link value to the front of a list + // of the property "earlyItems". Invalidates all iterators. + PrependActivityStreamsLink(v ActivityStreamsLink) + // PrependActivityStreamsListen prepends a Listen value to the front of a + // list of the property "earlyItems". Invalidates all iterators. + PrependActivityStreamsListen(v ActivityStreamsListen) + // PrependActivityStreamsMention prepends a Mention value to the front of + // a list of the property "earlyItems". Invalidates all iterators. + PrependActivityStreamsMention(v ActivityStreamsMention) + // PrependActivityStreamsMove prepends a Move value to the front of a list + // of the property "earlyItems". Invalidates all iterators. + PrependActivityStreamsMove(v ActivityStreamsMove) + // PrependActivityStreamsNote prepends a Note value to the front of a list + // of the property "earlyItems". Invalidates all iterators. + PrependActivityStreamsNote(v ActivityStreamsNote) + // PrependActivityStreamsObject prepends a Object value to the front of a + // list of the property "earlyItems". Invalidates all iterators. + PrependActivityStreamsObject(v ActivityStreamsObject) + // PrependActivityStreamsOffer prepends a Offer value to the front of a + // list of the property "earlyItems". Invalidates all iterators. + PrependActivityStreamsOffer(v ActivityStreamsOffer) + // PrependActivityStreamsOrderedCollection prepends a OrderedCollection + // value to the front of a list of the property "earlyItems". + // Invalidates all iterators. + PrependActivityStreamsOrderedCollection(v ActivityStreamsOrderedCollection) + // PrependActivityStreamsOrderedCollectionPage prepends a + // OrderedCollectionPage value to the front of a list of the property + // "earlyItems". Invalidates all iterators. + PrependActivityStreamsOrderedCollectionPage(v ActivityStreamsOrderedCollectionPage) + // PrependActivityStreamsOrganization prepends a Organization value to the + // front of a list of the property "earlyItems". Invalidates all + // iterators. + PrependActivityStreamsOrganization(v ActivityStreamsOrganization) + // PrependActivityStreamsPage prepends a Page value to the front of a list + // of the property "earlyItems". Invalidates all iterators. + PrependActivityStreamsPage(v ActivityStreamsPage) + // PrependActivityStreamsPerson prepends a Person value to the front of a + // list of the property "earlyItems". Invalidates all iterators. + PrependActivityStreamsPerson(v ActivityStreamsPerson) + // PrependActivityStreamsPlace prepends a Place value to the front of a + // list of the property "earlyItems". Invalidates all iterators. + PrependActivityStreamsPlace(v ActivityStreamsPlace) + // PrependActivityStreamsProfile prepends a Profile value to the front of + // a list of the property "earlyItems". Invalidates all iterators. + PrependActivityStreamsProfile(v ActivityStreamsProfile) + // PrependActivityStreamsQuestion prepends a Question value to the front + // of a list of the property "earlyItems". Invalidates all iterators. + PrependActivityStreamsQuestion(v ActivityStreamsQuestion) + // PrependActivityStreamsRead prepends a Read value to the front of a list + // of the property "earlyItems". Invalidates all iterators. + PrependActivityStreamsRead(v ActivityStreamsRead) + // PrependActivityStreamsReject prepends a Reject value to the front of a + // list of the property "earlyItems". Invalidates all iterators. + PrependActivityStreamsReject(v ActivityStreamsReject) + // PrependActivityStreamsRelationship prepends a Relationship value to the + // front of a list of the property "earlyItems". Invalidates all + // iterators. + PrependActivityStreamsRelationship(v ActivityStreamsRelationship) + // PrependActivityStreamsRemove prepends a Remove value to the front of a + // list of the property "earlyItems". Invalidates all iterators. + PrependActivityStreamsRemove(v ActivityStreamsRemove) + // PrependActivityStreamsService prepends a Service value to the front of + // a list of the property "earlyItems". Invalidates all iterators. + PrependActivityStreamsService(v ActivityStreamsService) + // PrependActivityStreamsTentativeAccept prepends a TentativeAccept value + // to the front of a list of the property "earlyItems". Invalidates + // all iterators. + PrependActivityStreamsTentativeAccept(v ActivityStreamsTentativeAccept) + // PrependActivityStreamsTentativeReject prepends a TentativeReject value + // to the front of a list of the property "earlyItems". Invalidates + // all iterators. + PrependActivityStreamsTentativeReject(v ActivityStreamsTentativeReject) + // PrependActivityStreamsTombstone prepends a Tombstone value to the front + // of a list of the property "earlyItems". Invalidates all iterators. + PrependActivityStreamsTombstone(v ActivityStreamsTombstone) + // PrependActivityStreamsTravel prepends a Travel value to the front of a + // list of the property "earlyItems". Invalidates all iterators. + PrependActivityStreamsTravel(v ActivityStreamsTravel) + // PrependActivityStreamsUndo prepends a Undo value to the front of a list + // of the property "earlyItems". Invalidates all iterators. + PrependActivityStreamsUndo(v ActivityStreamsUndo) + // PrependActivityStreamsUpdate prepends a Update value to the front of a + // list of the property "earlyItems". Invalidates all iterators. + PrependActivityStreamsUpdate(v ActivityStreamsUpdate) + // PrependActivityStreamsVideo prepends a Video value to the front of a + // list of the property "earlyItems". Invalidates all iterators. + PrependActivityStreamsVideo(v ActivityStreamsVideo) + // PrependActivityStreamsView prepends a View value to the front of a list + // of the property "earlyItems". Invalidates all iterators. + PrependActivityStreamsView(v ActivityStreamsView) + // PrependForgeFedBranch prepends a Branch value to the front of a list of + // the property "earlyItems". Invalidates all iterators. + PrependForgeFedBranch(v ForgeFedBranch) + // PrependForgeFedCommit prepends a Commit value to the front of a list of + // the property "earlyItems". Invalidates all iterators. + PrependForgeFedCommit(v ForgeFedCommit) + // PrependForgeFedPush prepends a Push value to the front of a list of the + // property "earlyItems". Invalidates all iterators. + PrependForgeFedPush(v ForgeFedPush) + // PrependForgeFedRepository prepends a Repository value to the front of a + // list of the property "earlyItems". Invalidates all iterators. + PrependForgeFedRepository(v ForgeFedRepository) + // PrependForgeFedTicket prepends a Ticket value to the front of a list of + // the property "earlyItems". Invalidates all iterators. + PrependForgeFedTicket(v ForgeFedTicket) + // PrependForgeFedTicketDependency prepends a TicketDependency value to + // the front of a list of the property "earlyItems". Invalidates all + // iterators. + PrependForgeFedTicketDependency(v ForgeFedTicketDependency) + // PrependIRI prepends an IRI value to the front of a list of the property + // "earlyItems". + PrependIRI(v *url.URL) + // PrependTootEmoji prepends a Emoji value to the front of a list of the + // property "earlyItems". Invalidates all iterators. + PrependTootEmoji(v TootEmoji) + // PrependTootIdentityProof prepends a IdentityProof value to the front of + // a list of the property "earlyItems". Invalidates all iterators. + PrependTootIdentityProof(v TootIdentityProof) + // PrependType prepends an arbitrary type value to the front of a list of + // the property "earlyItems". Invalidates all iterators. Returns an + // error if the type is not a valid one to set for this property. + PrependType(t Type) error + // Remove deletes an element at the specified index from a list of the + // property "earlyItems", regardless of its type. Panics if the index + // is out of bounds. Invalidates all iterators. + Remove(idx int) + // Serialize converts this into an interface representation suitable for + // marshalling into a text or binary format. Applications should not + // need this function as most typical use cases serialize types + // instead of individual properties. It is exposed for alternatives to + // go-fed implementations to use. + Serialize() (interface{}, error) + // SetActivityStreamsAccept sets a Accept value to be at the specified + // index for the property "earlyItems". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsAccept(idx int, v ActivityStreamsAccept) + // SetActivityStreamsActivity sets a Activity value to be at the specified + // index for the property "earlyItems". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsActivity(idx int, v ActivityStreamsActivity) + // SetActivityStreamsAdd sets a Add value to be at the specified index for + // the property "earlyItems". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsAdd(idx int, v ActivityStreamsAdd) + // SetActivityStreamsAnnounce sets a Announce value to be at the specified + // index for the property "earlyItems". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsAnnounce(idx int, v ActivityStreamsAnnounce) + // SetActivityStreamsApplication sets a Application value to be at the + // specified index for the property "earlyItems". Panics if the index + // is out of bounds. Invalidates all iterators. + SetActivityStreamsApplication(idx int, v ActivityStreamsApplication) + // SetActivityStreamsArrive sets a Arrive value to be at the specified + // index for the property "earlyItems". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsArrive(idx int, v ActivityStreamsArrive) + // SetActivityStreamsArticle sets a Article value to be at the specified + // index for the property "earlyItems". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsArticle(idx int, v ActivityStreamsArticle) + // SetActivityStreamsAudio sets a Audio value to be at the specified index + // for the property "earlyItems". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsAudio(idx int, v ActivityStreamsAudio) + // SetActivityStreamsBlock sets a Block value to be at the specified index + // for the property "earlyItems". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsBlock(idx int, v ActivityStreamsBlock) + // SetActivityStreamsCollection sets a Collection value to be at the + // specified index for the property "earlyItems". Panics if the index + // is out of bounds. Invalidates all iterators. + SetActivityStreamsCollection(idx int, v ActivityStreamsCollection) + // SetActivityStreamsCollectionPage sets a CollectionPage value to be at + // the specified index for the property "earlyItems". Panics if the + // index is out of bounds. Invalidates all iterators. + SetActivityStreamsCollectionPage(idx int, v ActivityStreamsCollectionPage) + // SetActivityStreamsCreate sets a Create value to be at the specified + // index for the property "earlyItems". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsCreate(idx int, v ActivityStreamsCreate) + // SetActivityStreamsDelete sets a Delete value to be at the specified + // index for the property "earlyItems". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsDelete(idx int, v ActivityStreamsDelete) + // SetActivityStreamsDislike sets a Dislike value to be at the specified + // index for the property "earlyItems". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsDislike(idx int, v ActivityStreamsDislike) + // SetActivityStreamsDocument sets a Document value to be at the specified + // index for the property "earlyItems". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsDocument(idx int, v ActivityStreamsDocument) + // SetActivityStreamsEvent sets a Event value to be at the specified index + // for the property "earlyItems". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsEvent(idx int, v ActivityStreamsEvent) + // SetActivityStreamsFlag sets a Flag value to be at the specified index + // for the property "earlyItems". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsFlag(idx int, v ActivityStreamsFlag) + // SetActivityStreamsFollow sets a Follow value to be at the specified + // index for the property "earlyItems". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsFollow(idx int, v ActivityStreamsFollow) + // SetActivityStreamsGroup sets a Group value to be at the specified index + // for the property "earlyItems". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsGroup(idx int, v ActivityStreamsGroup) + // SetActivityStreamsIgnore sets a Ignore value to be at the specified + // index for the property "earlyItems". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsIgnore(idx int, v ActivityStreamsIgnore) + // SetActivityStreamsImage sets a Image value to be at the specified index + // for the property "earlyItems". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsImage(idx int, v ActivityStreamsImage) + // SetActivityStreamsIntransitiveActivity sets a IntransitiveActivity + // value to be at the specified index for the property "earlyItems". + // Panics if the index is out of bounds. Invalidates all iterators. + SetActivityStreamsIntransitiveActivity(idx int, v ActivityStreamsIntransitiveActivity) + // SetActivityStreamsInvite sets a Invite value to be at the specified + // index for the property "earlyItems". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsInvite(idx int, v ActivityStreamsInvite) + // SetActivityStreamsJoin sets a Join value to be at the specified index + // for the property "earlyItems". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsJoin(idx int, v ActivityStreamsJoin) + // SetActivityStreamsLeave sets a Leave value to be at the specified index + // for the property "earlyItems". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsLeave(idx int, v ActivityStreamsLeave) + // SetActivityStreamsLike sets a Like value to be at the specified index + // for the property "earlyItems". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsLike(idx int, v ActivityStreamsLike) + // SetActivityStreamsLink sets a Link value to be at the specified index + // for the property "earlyItems". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsLink(idx int, v ActivityStreamsLink) + // SetActivityStreamsListen sets a Listen value to be at the specified + // index for the property "earlyItems". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsListen(idx int, v ActivityStreamsListen) + // SetActivityStreamsMention sets a Mention value to be at the specified + // index for the property "earlyItems". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsMention(idx int, v ActivityStreamsMention) + // SetActivityStreamsMove sets a Move value to be at the specified index + // for the property "earlyItems". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsMove(idx int, v ActivityStreamsMove) + // SetActivityStreamsNote sets a Note value to be at the specified index + // for the property "earlyItems". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsNote(idx int, v ActivityStreamsNote) + // SetActivityStreamsObject sets a Object value to be at the specified + // index for the property "earlyItems". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsObject(idx int, v ActivityStreamsObject) + // SetActivityStreamsOffer sets a Offer value to be at the specified index + // for the property "earlyItems". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsOffer(idx int, v ActivityStreamsOffer) + // SetActivityStreamsOrderedCollection sets a OrderedCollection value to + // be at the specified index for the property "earlyItems". Panics if + // the index is out of bounds. Invalidates all iterators. + SetActivityStreamsOrderedCollection(idx int, v ActivityStreamsOrderedCollection) + // SetActivityStreamsOrderedCollectionPage sets a OrderedCollectionPage + // value to be at the specified index for the property "earlyItems". + // Panics if the index is out of bounds. Invalidates all iterators. + SetActivityStreamsOrderedCollectionPage(idx int, v ActivityStreamsOrderedCollectionPage) + // SetActivityStreamsOrganization sets a Organization value to be at the + // specified index for the property "earlyItems". Panics if the index + // is out of bounds. Invalidates all iterators. + SetActivityStreamsOrganization(idx int, v ActivityStreamsOrganization) + // SetActivityStreamsPage sets a Page value to be at the specified index + // for the property "earlyItems". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsPage(idx int, v ActivityStreamsPage) + // SetActivityStreamsPerson sets a Person value to be at the specified + // index for the property "earlyItems". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsPerson(idx int, v ActivityStreamsPerson) + // SetActivityStreamsPlace sets a Place value to be at the specified index + // for the property "earlyItems". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsPlace(idx int, v ActivityStreamsPlace) + // SetActivityStreamsProfile sets a Profile value to be at the specified + // index for the property "earlyItems". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsProfile(idx int, v ActivityStreamsProfile) + // SetActivityStreamsQuestion sets a Question value to be at the specified + // index for the property "earlyItems". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsQuestion(idx int, v ActivityStreamsQuestion) + // SetActivityStreamsRead sets a Read value to be at the specified index + // for the property "earlyItems". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsRead(idx int, v ActivityStreamsRead) + // SetActivityStreamsReject sets a Reject value to be at the specified + // index for the property "earlyItems". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsReject(idx int, v ActivityStreamsReject) + // SetActivityStreamsRelationship sets a Relationship value to be at the + // specified index for the property "earlyItems". Panics if the index + // is out of bounds. Invalidates all iterators. + SetActivityStreamsRelationship(idx int, v ActivityStreamsRelationship) + // SetActivityStreamsRemove sets a Remove value to be at the specified + // index for the property "earlyItems". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsRemove(idx int, v ActivityStreamsRemove) + // SetActivityStreamsService sets a Service value to be at the specified + // index for the property "earlyItems". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsService(idx int, v ActivityStreamsService) + // SetActivityStreamsTentativeAccept sets a TentativeAccept value to be at + // the specified index for the property "earlyItems". Panics if the + // index is out of bounds. Invalidates all iterators. + SetActivityStreamsTentativeAccept(idx int, v ActivityStreamsTentativeAccept) + // SetActivityStreamsTentativeReject sets a TentativeReject value to be at + // the specified index for the property "earlyItems". Panics if the + // index is out of bounds. Invalidates all iterators. + SetActivityStreamsTentativeReject(idx int, v ActivityStreamsTentativeReject) + // SetActivityStreamsTombstone sets a Tombstone value to be at the + // specified index for the property "earlyItems". Panics if the index + // is out of bounds. Invalidates all iterators. + SetActivityStreamsTombstone(idx int, v ActivityStreamsTombstone) + // SetActivityStreamsTravel sets a Travel value to be at the specified + // index for the property "earlyItems". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsTravel(idx int, v ActivityStreamsTravel) + // SetActivityStreamsUndo sets a Undo value to be at the specified index + // for the property "earlyItems". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsUndo(idx int, v ActivityStreamsUndo) + // SetActivityStreamsUpdate sets a Update value to be at the specified + // index for the property "earlyItems". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsUpdate(idx int, v ActivityStreamsUpdate) + // SetActivityStreamsVideo sets a Video value to be at the specified index + // for the property "earlyItems". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsVideo(idx int, v ActivityStreamsVideo) + // SetActivityStreamsView sets a View value to be at the specified index + // for the property "earlyItems". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsView(idx int, v ActivityStreamsView) + // SetForgeFedBranch sets a Branch value to be at the specified index for + // the property "earlyItems". Panics if the index is out of bounds. + // Invalidates all iterators. + SetForgeFedBranch(idx int, v ForgeFedBranch) + // SetForgeFedCommit sets a Commit value to be at the specified index for + // the property "earlyItems". Panics if the index is out of bounds. + // Invalidates all iterators. + SetForgeFedCommit(idx int, v ForgeFedCommit) + // SetForgeFedPush sets a Push value to be at the specified index for the + // property "earlyItems". Panics if the index is out of bounds. + // Invalidates all iterators. + SetForgeFedPush(idx int, v ForgeFedPush) + // SetForgeFedRepository sets a Repository value to be at the specified + // index for the property "earlyItems". Panics if the index is out of + // bounds. Invalidates all iterators. + SetForgeFedRepository(idx int, v ForgeFedRepository) + // SetForgeFedTicket sets a Ticket value to be at the specified index for + // the property "earlyItems". Panics if the index is out of bounds. + // Invalidates all iterators. + SetForgeFedTicket(idx int, v ForgeFedTicket) + // SetForgeFedTicketDependency sets a TicketDependency value to be at the + // specified index for the property "earlyItems". Panics if the index + // is out of bounds. Invalidates all iterators. + SetForgeFedTicketDependency(idx int, v ForgeFedTicketDependency) + // SetIRI sets an IRI value to be at the specified index for the property + // "earlyItems". Panics if the index is out of bounds. + SetIRI(idx int, v *url.URL) + // SetTootEmoji sets a Emoji value to be at the specified index for the + // property "earlyItems". Panics if the index is out of bounds. + // Invalidates all iterators. + SetTootEmoji(idx int, v TootEmoji) + // SetTootIdentityProof sets a IdentityProof value to be at the specified + // index for the property "earlyItems". Panics if the index is out of + // bounds. Invalidates all iterators. + SetTootIdentityProof(idx int, v TootIdentityProof) + // SetType sets an arbitrary type value to the specified index of the + // property "earlyItems". Invalidates all iterators. Returns an error + // if the type is not a valid one to set for this property. Panics if + // the index is out of bounds. + SetType(idx int, t Type) error + // Swap swaps the location of values at two indices for the "earlyItems" + // property. + Swap(i, j int) +} diff --git a/streams/vocab/gen_property_forgefed_filesAdded_interface.go b/streams/vocab/gen_property_forgefed_filesAdded_interface.go new file mode 100644 index 0000000..b7c567c --- /dev/null +++ b/streams/vocab/gen_property_forgefed_filesAdded_interface.go @@ -0,0 +1,132 @@ +// Code generated by astool. DO NOT EDIT. + +package vocab + +import "net/url" + +// ForgeFedFilesAddedPropertyIterator represents a single value for the +// "filesAdded" property. +type ForgeFedFilesAddedPropertyIterator interface { + // Get returns the value of this property. When IsXMLSchemaString returns + // false, Get will return any arbitrary value. + Get() string + // GetIRI returns the IRI of this property. When IsIRI returns false, + // GetIRI will return any arbitrary value. + GetIRI() *url.URL + // HasAny returns true if the value or IRI is set. + HasAny() bool + // IsIRI returns true if this property is an IRI. + IsIRI() bool + // IsXMLSchemaString returns true if this property is set and not an IRI. + IsXMLSchemaString() bool + // JSONLDContext returns the JSONLD URIs required in the context string + // for this property and the specific values that are set. The value + // in the map is the alias used to import the property's value or + // values. + JSONLDContext() map[string]string + // KindIndex computes an arbitrary value for indexing this kind of value. + // This is a leaky API detail only for folks looking to replace the + // go-fed implementation. Applications should not use this method. + KindIndex() int + // LessThan compares two instances of this property with an arbitrary but + // stable comparison. Applications should not use this because it is + // only meant to help alternative implementations to go-fed to be able + // to normalize nonfunctional properties. + LessThan(o ForgeFedFilesAddedPropertyIterator) bool + // Name returns the name of this property: "ForgeFedFilesAdded". + Name() string + // Next returns the next iterator, or nil if there is no next iterator. + Next() ForgeFedFilesAddedPropertyIterator + // Prev returns the previous iterator, or nil if there is no previous + // iterator. + Prev() ForgeFedFilesAddedPropertyIterator + // Set sets the value of this property. Calling IsXMLSchemaString + // afterwards will return true. + Set(v string) + // SetIRI sets the value of this property. Calling IsIRI afterwards will + // return true. + SetIRI(v *url.URL) +} + +// Specifies a filename, as a relative path, relative to the top of the tree of +// files in the Repository, of a file that got added in this Commit, and +// didn’t exist in the previous version of the tree. +type ForgeFedFilesAddedProperty interface { + // AppendIRI appends an IRI value to the back of a list of the property + // "filesAdded" + AppendIRI(v *url.URL) + // AppendXMLSchemaString appends a string value to the back of a list of + // the property "filesAdded". Invalidates iterators that are + // traversing using Prev. + AppendXMLSchemaString(v string) + // At returns the property value for the specified index. Panics if the + // index is out of bounds. + At(index int) ForgeFedFilesAddedPropertyIterator + // Begin returns the first iterator, or nil if empty. Can be used with the + // iterator's Next method and this property's End method to iterate + // from front to back through all values. + Begin() ForgeFedFilesAddedPropertyIterator + // Empty returns returns true if there are no elements. + Empty() bool + // End returns beyond-the-last iterator, which is nil. Can be used with + // the iterator's Next method and this property's Begin method to + // iterate from front to back through all values. + End() ForgeFedFilesAddedPropertyIterator + // Insert inserts an IRI value at the specified index for a property + // "filesAdded". Existing elements at that index and higher are + // shifted back once. Invalidates all iterators. + InsertIRI(idx int, v *url.URL) + // InsertXMLSchemaString inserts a string value at the specified index for + // a property "filesAdded". Existing elements at that index and higher + // are shifted back once. Invalidates all iterators. + InsertXMLSchemaString(idx int, v string) + // JSONLDContext returns the JSONLD URIs required in the context string + // for this property and the specific values that are set. The value + // in the map is the alias used to import the property's value or + // values. + JSONLDContext() map[string]string + // KindIndex computes an arbitrary value for indexing this kind of value. + // This is a leaky API method specifically needed only for alternate + // implementations for go-fed. Applications should not use this + // method. Panics if the index is out of bounds. + KindIndex(idx int) int + // Len returns the number of values that exist for the "filesAdded" + // property. + Len() (length int) + // Less computes whether another property is less than this one. Mixing + // types results in a consistent but arbitrary ordering + Less(i, j int) bool + // LessThan compares two instances of this property with an arbitrary but + // stable comparison. Applications should not use this because it is + // only meant to help alternative implementations to go-fed to be able + // to normalize nonfunctional properties. + LessThan(o ForgeFedFilesAddedProperty) bool + // Name returns the name of this property ("filesAdded") with any alias. + Name() string + // PrependIRI prepends an IRI value to the front of a list of the property + // "filesAdded". + PrependIRI(v *url.URL) + // PrependXMLSchemaString prepends a string value to the front of a list + // of the property "filesAdded". Invalidates all iterators. + PrependXMLSchemaString(v string) + // Remove deletes an element at the specified index from a list of the + // property "filesAdded", regardless of its type. Panics if the index + // is out of bounds. Invalidates all iterators. + Remove(idx int) + // Serialize converts this into an interface representation suitable for + // marshalling into a text or binary format. Applications should not + // need this function as most typical use cases serialize types + // instead of individual properties. It is exposed for alternatives to + // go-fed implementations to use. + Serialize() (interface{}, error) + // Set sets a string value to be at the specified index for the property + // "filesAdded". Panics if the index is out of bounds. Invalidates all + // iterators. + Set(idx int, v string) + // SetIRI sets an IRI value to be at the specified index for the property + // "filesAdded". Panics if the index is out of bounds. + SetIRI(idx int, v *url.URL) + // Swap swaps the location of values at two indices for the "filesAdded" + // property. + Swap(i, j int) +} diff --git a/streams/vocab/gen_property_forgefed_filesModified_interface.go b/streams/vocab/gen_property_forgefed_filesModified_interface.go new file mode 100644 index 0000000..9288187 --- /dev/null +++ b/streams/vocab/gen_property_forgefed_filesModified_interface.go @@ -0,0 +1,132 @@ +// Code generated by astool. DO NOT EDIT. + +package vocab + +import "net/url" + +// ForgeFedFilesModifiedPropertyIterator represents a single value for the +// "filesModified" property. +type ForgeFedFilesModifiedPropertyIterator interface { + // Get returns the value of this property. When IsXMLSchemaString returns + // false, Get will return any arbitrary value. + Get() string + // GetIRI returns the IRI of this property. When IsIRI returns false, + // GetIRI will return any arbitrary value. + GetIRI() *url.URL + // HasAny returns true if the value or IRI is set. + HasAny() bool + // IsIRI returns true if this property is an IRI. + IsIRI() bool + // IsXMLSchemaString returns true if this property is set and not an IRI. + IsXMLSchemaString() bool + // JSONLDContext returns the JSONLD URIs required in the context string + // for this property and the specific values that are set. The value + // in the map is the alias used to import the property's value or + // values. + JSONLDContext() map[string]string + // KindIndex computes an arbitrary value for indexing this kind of value. + // This is a leaky API detail only for folks looking to replace the + // go-fed implementation. Applications should not use this method. + KindIndex() int + // LessThan compares two instances of this property with an arbitrary but + // stable comparison. Applications should not use this because it is + // only meant to help alternative implementations to go-fed to be able + // to normalize nonfunctional properties. + LessThan(o ForgeFedFilesModifiedPropertyIterator) bool + // Name returns the name of this property: "ForgeFedFilesModified". + Name() string + // Next returns the next iterator, or nil if there is no next iterator. + Next() ForgeFedFilesModifiedPropertyIterator + // Prev returns the previous iterator, or nil if there is no previous + // iterator. + Prev() ForgeFedFilesModifiedPropertyIterator + // Set sets the value of this property. Calling IsXMLSchemaString + // afterwards will return true. + Set(v string) + // SetIRI sets the value of this property. Calling IsIRI afterwards will + // return true. + SetIRI(v *url.URL) +} + +// Specifies a filename, as a relative path, relative to the top of the tree of +// files in the Repository, of a file that existed in the previous version of +// the tree, and its contents got modified in this Commit. +type ForgeFedFilesModifiedProperty interface { + // AppendIRI appends an IRI value to the back of a list of the property + // "filesModified" + AppendIRI(v *url.URL) + // AppendXMLSchemaString appends a string value to the back of a list of + // the property "filesModified". Invalidates iterators that are + // traversing using Prev. + AppendXMLSchemaString(v string) + // At returns the property value for the specified index. Panics if the + // index is out of bounds. + At(index int) ForgeFedFilesModifiedPropertyIterator + // Begin returns the first iterator, or nil if empty. Can be used with the + // iterator's Next method and this property's End method to iterate + // from front to back through all values. + Begin() ForgeFedFilesModifiedPropertyIterator + // Empty returns returns true if there are no elements. + Empty() bool + // End returns beyond-the-last iterator, which is nil. Can be used with + // the iterator's Next method and this property's Begin method to + // iterate from front to back through all values. + End() ForgeFedFilesModifiedPropertyIterator + // Insert inserts an IRI value at the specified index for a property + // "filesModified". Existing elements at that index and higher are + // shifted back once. Invalidates all iterators. + InsertIRI(idx int, v *url.URL) + // InsertXMLSchemaString inserts a string value at the specified index for + // a property "filesModified". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertXMLSchemaString(idx int, v string) + // JSONLDContext returns the JSONLD URIs required in the context string + // for this property and the specific values that are set. The value + // in the map is the alias used to import the property's value or + // values. + JSONLDContext() map[string]string + // KindIndex computes an arbitrary value for indexing this kind of value. + // This is a leaky API method specifically needed only for alternate + // implementations for go-fed. Applications should not use this + // method. Panics if the index is out of bounds. + KindIndex(idx int) int + // Len returns the number of values that exist for the "filesModified" + // property. + Len() (length int) + // Less computes whether another property is less than this one. Mixing + // types results in a consistent but arbitrary ordering + Less(i, j int) bool + // LessThan compares two instances of this property with an arbitrary but + // stable comparison. Applications should not use this because it is + // only meant to help alternative implementations to go-fed to be able + // to normalize nonfunctional properties. + LessThan(o ForgeFedFilesModifiedProperty) bool + // Name returns the name of this property ("filesModified") with any alias. + Name() string + // PrependIRI prepends an IRI value to the front of a list of the property + // "filesModified". + PrependIRI(v *url.URL) + // PrependXMLSchemaString prepends a string value to the front of a list + // of the property "filesModified". Invalidates all iterators. + PrependXMLSchemaString(v string) + // Remove deletes an element at the specified index from a list of the + // property "filesModified", regardless of its type. Panics if the + // index is out of bounds. Invalidates all iterators. + Remove(idx int) + // Serialize converts this into an interface representation suitable for + // marshalling into a text or binary format. Applications should not + // need this function as most typical use cases serialize types + // instead of individual properties. It is exposed for alternatives to + // go-fed implementations to use. + Serialize() (interface{}, error) + // Set sets a string value to be at the specified index for the property + // "filesModified". Panics if the index is out of bounds. Invalidates + // all iterators. + Set(idx int, v string) + // SetIRI sets an IRI value to be at the specified index for the property + // "filesModified". Panics if the index is out of bounds. + SetIRI(idx int, v *url.URL) + // Swap swaps the location of values at two indices for the + // "filesModified" property. + Swap(i, j int) +} diff --git a/streams/vocab/gen_property_forgefed_filesRemoved_interface.go b/streams/vocab/gen_property_forgefed_filesRemoved_interface.go new file mode 100644 index 0000000..ecbbe81 --- /dev/null +++ b/streams/vocab/gen_property_forgefed_filesRemoved_interface.go @@ -0,0 +1,132 @@ +// Code generated by astool. DO NOT EDIT. + +package vocab + +import "net/url" + +// ForgeFedFilesRemovedPropertyIterator represents a single value for the +// "filesRemoved" property. +type ForgeFedFilesRemovedPropertyIterator interface { + // Get returns the value of this property. When IsXMLSchemaString returns + // false, Get will return any arbitrary value. + Get() string + // GetIRI returns the IRI of this property. When IsIRI returns false, + // GetIRI will return any arbitrary value. + GetIRI() *url.URL + // HasAny returns true if the value or IRI is set. + HasAny() bool + // IsIRI returns true if this property is an IRI. + IsIRI() bool + // IsXMLSchemaString returns true if this property is set and not an IRI. + IsXMLSchemaString() bool + // JSONLDContext returns the JSONLD URIs required in the context string + // for this property and the specific values that are set. The value + // in the map is the alias used to import the property's value or + // values. + JSONLDContext() map[string]string + // KindIndex computes an arbitrary value for indexing this kind of value. + // This is a leaky API detail only for folks looking to replace the + // go-fed implementation. Applications should not use this method. + KindIndex() int + // LessThan compares two instances of this property with an arbitrary but + // stable comparison. Applications should not use this because it is + // only meant to help alternative implementations to go-fed to be able + // to normalize nonfunctional properties. + LessThan(o ForgeFedFilesRemovedPropertyIterator) bool + // Name returns the name of this property: "ForgeFedFilesRemoved". + Name() string + // Next returns the next iterator, or nil if there is no next iterator. + Next() ForgeFedFilesRemovedPropertyIterator + // Prev returns the previous iterator, or nil if there is no previous + // iterator. + Prev() ForgeFedFilesRemovedPropertyIterator + // Set sets the value of this property. Calling IsXMLSchemaString + // afterwards will return true. + Set(v string) + // SetIRI sets the value of this property. Calling IsIRI afterwards will + // return true. + SetIRI(v *url.URL) +} + +// Specifies a filename, as a relative path, relative to the top of the tree of +// files in the Repository, of a file that existed in the previous version of +// the tree, and got removed from the tree in this Commit. +type ForgeFedFilesRemovedProperty interface { + // AppendIRI appends an IRI value to the back of a list of the property + // "filesRemoved" + AppendIRI(v *url.URL) + // AppendXMLSchemaString appends a string value to the back of a list of + // the property "filesRemoved". Invalidates iterators that are + // traversing using Prev. + AppendXMLSchemaString(v string) + // At returns the property value for the specified index. Panics if the + // index is out of bounds. + At(index int) ForgeFedFilesRemovedPropertyIterator + // Begin returns the first iterator, or nil if empty. Can be used with the + // iterator's Next method and this property's End method to iterate + // from front to back through all values. + Begin() ForgeFedFilesRemovedPropertyIterator + // Empty returns returns true if there are no elements. + Empty() bool + // End returns beyond-the-last iterator, which is nil. Can be used with + // the iterator's Next method and this property's Begin method to + // iterate from front to back through all values. + End() ForgeFedFilesRemovedPropertyIterator + // Insert inserts an IRI value at the specified index for a property + // "filesRemoved". Existing elements at that index and higher are + // shifted back once. Invalidates all iterators. + InsertIRI(idx int, v *url.URL) + // InsertXMLSchemaString inserts a string value at the specified index for + // a property "filesRemoved". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertXMLSchemaString(idx int, v string) + // JSONLDContext returns the JSONLD URIs required in the context string + // for this property and the specific values that are set. The value + // in the map is the alias used to import the property's value or + // values. + JSONLDContext() map[string]string + // KindIndex computes an arbitrary value for indexing this kind of value. + // This is a leaky API method specifically needed only for alternate + // implementations for go-fed. Applications should not use this + // method. Panics if the index is out of bounds. + KindIndex(idx int) int + // Len returns the number of values that exist for the "filesRemoved" + // property. + Len() (length int) + // Less computes whether another property is less than this one. Mixing + // types results in a consistent but arbitrary ordering + Less(i, j int) bool + // LessThan compares two instances of this property with an arbitrary but + // stable comparison. Applications should not use this because it is + // only meant to help alternative implementations to go-fed to be able + // to normalize nonfunctional properties. + LessThan(o ForgeFedFilesRemovedProperty) bool + // Name returns the name of this property ("filesRemoved") with any alias. + Name() string + // PrependIRI prepends an IRI value to the front of a list of the property + // "filesRemoved". + PrependIRI(v *url.URL) + // PrependXMLSchemaString prepends a string value to the front of a list + // of the property "filesRemoved". Invalidates all iterators. + PrependXMLSchemaString(v string) + // Remove deletes an element at the specified index from a list of the + // property "filesRemoved", regardless of its type. Panics if the + // index is out of bounds. Invalidates all iterators. + Remove(idx int) + // Serialize converts this into an interface representation suitable for + // marshalling into a text or binary format. Applications should not + // need this function as most typical use cases serialize types + // instead of individual properties. It is exposed for alternatives to + // go-fed implementations to use. + Serialize() (interface{}, error) + // Set sets a string value to be at the specified index for the property + // "filesRemoved". Panics if the index is out of bounds. Invalidates + // all iterators. + Set(idx int, v string) + // SetIRI sets an IRI value to be at the specified index for the property + // "filesRemoved". Panics if the index is out of bounds. + SetIRI(idx int, v *url.URL) + // Swap swaps the location of values at two indices for the "filesRemoved" + // property. + Swap(i, j int) +} diff --git a/streams/vocab/gen_property_forgefed_forks_interface.go b/streams/vocab/gen_property_forgefed_forks_interface.go new file mode 100644 index 0000000..545c08b --- /dev/null +++ b/streams/vocab/gen_property_forgefed_forks_interface.go @@ -0,0 +1,82 @@ +// Code generated by astool. DO NOT EDIT. + +package vocab + +import "net/url" + +// Identifies an OrderedCollection of Repositorys which were created as forks of +// this Repository, i.e. by cloning it. The order of the collection items is +// by reverse chronological order of the forking events. +type ForgeFedForksProperty interface { + // Clear ensures no value of this property is set. Calling HasAny or any + // of the 'Is' methods afterwards will return false. + Clear() + // GetActivityStreamsOrderedCollection returns the value of this property. + // When IsActivityStreamsOrderedCollection returns false, + // GetActivityStreamsOrderedCollection will return an arbitrary value. + GetActivityStreamsOrderedCollection() ActivityStreamsOrderedCollection + // GetActivityStreamsOrderedCollectionPage returns the value of this + // property. When IsActivityStreamsOrderedCollectionPage returns + // false, GetActivityStreamsOrderedCollectionPage will return an + // arbitrary value. + GetActivityStreamsOrderedCollectionPage() ActivityStreamsOrderedCollectionPage + // GetIRI returns the IRI of this property. When IsIRI returns false, + // GetIRI will return an arbitrary value. + GetIRI() *url.URL + // GetType returns the value in this property as a Type. Returns nil if + // the value is not an ActivityStreams type, such as an IRI or another + // value. + GetType() Type + // HasAny returns true if any of the different values is set. + HasAny() bool + // IsActivityStreamsOrderedCollection returns true if this property has a + // type of "OrderedCollection". When true, use the + // GetActivityStreamsOrderedCollection and + // SetActivityStreamsOrderedCollection methods to access and set this + // property. + IsActivityStreamsOrderedCollection() bool + // IsActivityStreamsOrderedCollectionPage returns true if this property + // has a type of "OrderedCollectionPage". When true, use the + // GetActivityStreamsOrderedCollectionPage and + // SetActivityStreamsOrderedCollectionPage methods to access and set + // this property. + IsActivityStreamsOrderedCollectionPage() bool + // IsIRI returns true if this property is an IRI. When true, use GetIRI + // and SetIRI to access and set this property + IsIRI() bool + // JSONLDContext returns the JSONLD URIs required in the context string + // for this property and the specific values that are set. The value + // in the map is the alias used to import the property's value or + // values. + JSONLDContext() map[string]string + // KindIndex computes an arbitrary value for indexing this kind of value. + // This is a leaky API detail only for folks looking to replace the + // go-fed implementation. Applications should not use this method. + KindIndex() int + // LessThan compares two instances of this property with an arbitrary but + // stable comparison. Applications should not use this because it is + // only meant to help alternative implementations to go-fed to be able + // to normalize nonfunctional properties. + LessThan(o ForgeFedForksProperty) bool + // Name returns the name of this property: "forks". + Name() string + // Serialize converts this into an interface representation suitable for + // marshalling into a text or binary format. Applications should not + // need this function as most typical use cases serialize types + // instead of individual properties. It is exposed for alternatives to + // go-fed implementations to use. + Serialize() (interface{}, error) + // SetActivityStreamsOrderedCollection sets the value of this property. + // Calling IsActivityStreamsOrderedCollection afterwards returns true. + SetActivityStreamsOrderedCollection(v ActivityStreamsOrderedCollection) + // SetActivityStreamsOrderedCollectionPage sets the value of this + // property. Calling IsActivityStreamsOrderedCollectionPage afterwards + // returns true. + SetActivityStreamsOrderedCollectionPage(v ActivityStreamsOrderedCollectionPage) + // SetIRI sets the value of this property. Calling IsIRI afterwards + // returns true. + SetIRI(v *url.URL) + // SetType attempts to set the property for the arbitrary type. Returns an + // error if it is not a valid type to set on this property. + SetType(t Type) error +} diff --git a/streams/vocab/gen_property_forgefed_hash_interface.go b/streams/vocab/gen_property_forgefed_hash_interface.go new file mode 100644 index 0000000..4f1a0b9 --- /dev/null +++ b/streams/vocab/gen_property_forgefed_hash_interface.go @@ -0,0 +1,56 @@ +// Code generated by astool. DO NOT EDIT. + +package vocab + +import "net/url" + +// Specifies the hash associated with a Commit, which is a unique identifier of +// the commit within the Repository, usually generated as a cryptographic hash +// function of some (or all) of the commit’s data or metadata. For example, +// in Git it would be the SHA1 hash of the commit; in Darcs it would be the +// SHA1 hash of the patch info. +type ForgeFedHashProperty interface { + // Clear ensures no value of this property is set. Calling + // IsXMLSchemaString afterwards will return false. + Clear() + // Get returns the value of this property. When IsXMLSchemaString returns + // false, Get will return any arbitrary value. + Get() string + // GetIRI returns the IRI of this property. When IsIRI returns false, + // GetIRI will return any arbitrary value. + GetIRI() *url.URL + // HasAny returns true if the value or IRI is set. + HasAny() bool + // IsIRI returns true if this property is an IRI. + IsIRI() bool + // IsXMLSchemaString returns true if this property is set and not an IRI. + IsXMLSchemaString() bool + // JSONLDContext returns the JSONLD URIs required in the context string + // for this property and the specific values that are set. The value + // in the map is the alias used to import the property's value or + // values. + JSONLDContext() map[string]string + // KindIndex computes an arbitrary value for indexing this kind of value. + // This is a leaky API detail only for folks looking to replace the + // go-fed implementation. Applications should not use this method. + KindIndex() int + // LessThan compares two instances of this property with an arbitrary but + // stable comparison. Applications should not use this because it is + // only meant to help alternative implementations to go-fed to be able + // to normalize nonfunctional properties. + LessThan(o ForgeFedHashProperty) bool + // Name returns the name of this property: "hash". + Name() string + // Serialize converts this into an interface representation suitable for + // marshalling into a text or binary format. Applications should not + // need this function as most typical use cases serialize types + // instead of individual properties. It is exposed for alternatives to + // go-fed implementations to use. + Serialize() (interface{}, error) + // Set sets the value of this property. Calling IsXMLSchemaString + // afterwards will return true. + Set(v string) + // SetIRI sets the value of this property. Calling IsIRI afterwards will + // return true. + SetIRI(v *url.URL) +} diff --git a/streams/vocab/gen_property_forgefed_isResolved_interface.go b/streams/vocab/gen_property_forgefed_isResolved_interface.go new file mode 100644 index 0000000..2567d86 --- /dev/null +++ b/streams/vocab/gen_property_forgefed_isResolved_interface.go @@ -0,0 +1,53 @@ +// Code generated by astool. DO NOT EDIT. + +package vocab + +import "net/url" + +// Specifies whether the Ticket is closed, i.e. the work on it is done and it +// doesn’t need to attract attention anymore. +type ForgeFedIsResolvedProperty interface { + // Clear ensures no value of this property is set. Calling + // IsXMLSchemaBoolean afterwards will return false. + Clear() + // Get returns the value of this property. When IsXMLSchemaBoolean returns + // false, Get will return any arbitrary value. + Get() bool + // GetIRI returns the IRI of this property. When IsIRI returns false, + // GetIRI will return any arbitrary value. + GetIRI() *url.URL + // HasAny returns true if the value or IRI is set. + HasAny() bool + // IsIRI returns true if this property is an IRI. + IsIRI() bool + // IsXMLSchemaBoolean returns true if this property is set and not an IRI. + IsXMLSchemaBoolean() bool + // JSONLDContext returns the JSONLD URIs required in the context string + // for this property and the specific values that are set. The value + // in the map is the alias used to import the property's value or + // values. + JSONLDContext() map[string]string + // KindIndex computes an arbitrary value for indexing this kind of value. + // This is a leaky API detail only for folks looking to replace the + // go-fed implementation. Applications should not use this method. + KindIndex() int + // LessThan compares two instances of this property with an arbitrary but + // stable comparison. Applications should not use this because it is + // only meant to help alternative implementations to go-fed to be able + // to normalize nonfunctional properties. + LessThan(o ForgeFedIsResolvedProperty) bool + // Name returns the name of this property: "isResolved". + Name() string + // Serialize converts this into an interface representation suitable for + // marshalling into a text or binary format. Applications should not + // need this function as most typical use cases serialize types + // instead of individual properties. It is exposed for alternatives to + // go-fed implementations to use. + Serialize() (interface{}, error) + // Set sets the value of this property. Calling IsXMLSchemaBoolean + // afterwards will return true. + Set(v bool) + // SetIRI sets the value of this property. Calling IsIRI afterwards will + // return true. + SetIRI(v *url.URL) +} diff --git a/streams/vocab/gen_property_forgefed_ref_interface.go b/streams/vocab/gen_property_forgefed_ref_interface.go new file mode 100644 index 0000000..10ad390 --- /dev/null +++ b/streams/vocab/gen_property_forgefed_ref_interface.go @@ -0,0 +1,66 @@ +// Code generated by astool. DO NOT EDIT. + +package vocab + +import "net/url" + +// Specifies an identifier for a Branch, that is used in the Repository to +// uniquely refer to it. For example, in Git, "refs/heads/master" would be the +// ref of the master branch. +// +// { +// "@context": [ +// "https://www.w3.org/ns/activitystreams", +// "https://forgefed.peers.community/ns" +// ], +// "context": "https://example.dev/luke/myrepo", +// "id": "https://example.dev/luke/myrepo/branches/master", +// "name": "master", +// "ref": "refs/heads/master", +// "type": "Branch" +// } +type ForgeFedRefProperty interface { + // Clear ensures no value of this property is set. Calling + // IsXMLSchemaString afterwards will return false. + Clear() + // Get returns the value of this property. When IsXMLSchemaString returns + // false, Get will return any arbitrary value. + Get() string + // GetIRI returns the IRI of this property. When IsIRI returns false, + // GetIRI will return any arbitrary value. + GetIRI() *url.URL + // HasAny returns true if the value or IRI is set. + HasAny() bool + // IsIRI returns true if this property is an IRI. + IsIRI() bool + // IsXMLSchemaString returns true if this property is set and not an IRI. + IsXMLSchemaString() bool + // JSONLDContext returns the JSONLD URIs required in the context string + // for this property and the specific values that are set. The value + // in the map is the alias used to import the property's value or + // values. + JSONLDContext() map[string]string + // KindIndex computes an arbitrary value for indexing this kind of value. + // This is a leaky API detail only for folks looking to replace the + // go-fed implementation. Applications should not use this method. + KindIndex() int + // LessThan compares two instances of this property with an arbitrary but + // stable comparison. Applications should not use this because it is + // only meant to help alternative implementations to go-fed to be able + // to normalize nonfunctional properties. + LessThan(o ForgeFedRefProperty) bool + // Name returns the name of this property: "ref". + Name() string + // Serialize converts this into an interface representation suitable for + // marshalling into a text or binary format. Applications should not + // need this function as most typical use cases serialize types + // instead of individual properties. It is exposed for alternatives to + // go-fed implementations to use. + Serialize() (interface{}, error) + // Set sets the value of this property. Calling IsXMLSchemaString + // afterwards will return true. + Set(v string) + // SetIRI sets the value of this property. Calling IsIRI afterwards will + // return true. + SetIRI(v *url.URL) +} diff --git a/streams/vocab/gen_property_forgefed_team_interface.go b/streams/vocab/gen_property_forgefed_team_interface.go new file mode 100644 index 0000000..9e8d88b --- /dev/null +++ b/streams/vocab/gen_property_forgefed_team_interface.go @@ -0,0 +1,142 @@ +// Code generated by astool. DO NOT EDIT. + +package vocab + +import "net/url" + +// Specifies a Collection of actors who are working on the object, or responsible +// for it, or managing or administrating it, or having edit access to it. For +// example, for a Repository, it could be the people who have push/edit +// access, the "collaborators" of the repository. +// +// { +// "@context": [ +// "https://www.w3.org/ns/activitystreams", +// "https://w3id.org/security/v1", +// "https://forgefed.peers.community/ns" +// ], +// "followers": "https://dev.example/aviva/treesim/followers", +// "id": "https://dev.example/aviva/treesim", +// "inbox": "https://dev.example/aviva/treesim/inbox", +// "name": "Tree Growth 3D Simulation", +// "outbox": "https://dev.example/aviva/treesim/outbox", +// "publicKey": { +// "id": "https://dev.example/aviva/treesim#main-key", +// "owner": "https://dev.example/aviva/treesim", +// "publicKeyPem": "-----BEGIN PUBLIC KEY-----\nMIIBIjANBgkqhki....." +// }, +// "summary": "\u003cp\u003eTree growth 3D simulator for my nature +// exploration game\u003c/p\u003e", +// "team": "https://dev.example/aviva/treesim/team", +// "type": "Repository" +// } +// +// { +// "@context": "https://www.w3.org/ns/activitystreams", +// "id": "https://dev.example/aviva/treesim/team", +// "items": [ +// "https://dev.example/aviva", +// "https://dev.example/luke", +// "https://code.community/users/lorax" +// ], +// "totalItems": 3, +// "type": "Collection" +// } +type ForgeFedTeamProperty interface { + // Clear ensures no value of this property is set. Calling HasAny or any + // of the 'Is' methods afterwards will return false. + Clear() + // GetActivityStreamsCollection returns the value of this property. When + // IsActivityStreamsCollection returns false, + // GetActivityStreamsCollection will return an arbitrary value. + GetActivityStreamsCollection() ActivityStreamsCollection + // GetActivityStreamsCollectionPage returns the value of this property. + // When IsActivityStreamsCollectionPage returns false, + // GetActivityStreamsCollectionPage will return an arbitrary value. + GetActivityStreamsCollectionPage() ActivityStreamsCollectionPage + // GetActivityStreamsOrderedCollection returns the value of this property. + // When IsActivityStreamsOrderedCollection returns false, + // GetActivityStreamsOrderedCollection will return an arbitrary value. + GetActivityStreamsOrderedCollection() ActivityStreamsOrderedCollection + // GetActivityStreamsOrderedCollectionPage returns the value of this + // property. When IsActivityStreamsOrderedCollectionPage returns + // false, GetActivityStreamsOrderedCollectionPage will return an + // arbitrary value. + GetActivityStreamsOrderedCollectionPage() ActivityStreamsOrderedCollectionPage + // GetIRI returns the IRI of this property. When IsIRI returns false, + // GetIRI will return an arbitrary value. + GetIRI() *url.URL + // GetType returns the value in this property as a Type. Returns nil if + // the value is not an ActivityStreams type, such as an IRI or another + // value. + GetType() Type + // HasAny returns true if any of the different values is set. + HasAny() bool + // IsActivityStreamsCollection returns true if this property has a type of + // "Collection". When true, use the GetActivityStreamsCollection and + // SetActivityStreamsCollection methods to access and set this + // property. + IsActivityStreamsCollection() bool + // IsActivityStreamsCollectionPage returns true if this property has a + // type of "CollectionPage". When true, use the + // GetActivityStreamsCollectionPage and + // SetActivityStreamsCollectionPage methods to access and set this + // property. + IsActivityStreamsCollectionPage() bool + // IsActivityStreamsOrderedCollection returns true if this property has a + // type of "OrderedCollection". When true, use the + // GetActivityStreamsOrderedCollection and + // SetActivityStreamsOrderedCollection methods to access and set this + // property. + IsActivityStreamsOrderedCollection() bool + // IsActivityStreamsOrderedCollectionPage returns true if this property + // has a type of "OrderedCollectionPage". When true, use the + // GetActivityStreamsOrderedCollectionPage and + // SetActivityStreamsOrderedCollectionPage methods to access and set + // this property. + IsActivityStreamsOrderedCollectionPage() bool + // IsIRI returns true if this property is an IRI. When true, use GetIRI + // and SetIRI to access and set this property + IsIRI() bool + // JSONLDContext returns the JSONLD URIs required in the context string + // for this property and the specific values that are set. The value + // in the map is the alias used to import the property's value or + // values. + JSONLDContext() map[string]string + // KindIndex computes an arbitrary value for indexing this kind of value. + // This is a leaky API detail only for folks looking to replace the + // go-fed implementation. Applications should not use this method. + KindIndex() int + // LessThan compares two instances of this property with an arbitrary but + // stable comparison. Applications should not use this because it is + // only meant to help alternative implementations to go-fed to be able + // to normalize nonfunctional properties. + LessThan(o ForgeFedTeamProperty) bool + // Name returns the name of this property: "team". + Name() string + // Serialize converts this into an interface representation suitable for + // marshalling into a text or binary format. Applications should not + // need this function as most typical use cases serialize types + // instead of individual properties. It is exposed for alternatives to + // go-fed implementations to use. + Serialize() (interface{}, error) + // SetActivityStreamsCollection sets the value of this property. Calling + // IsActivityStreamsCollection afterwards returns true. + SetActivityStreamsCollection(v ActivityStreamsCollection) + // SetActivityStreamsCollectionPage sets the value of this property. + // Calling IsActivityStreamsCollectionPage afterwards returns true. + SetActivityStreamsCollectionPage(v ActivityStreamsCollectionPage) + // SetActivityStreamsOrderedCollection sets the value of this property. + // Calling IsActivityStreamsOrderedCollection afterwards returns true. + SetActivityStreamsOrderedCollection(v ActivityStreamsOrderedCollection) + // SetActivityStreamsOrderedCollectionPage sets the value of this + // property. Calling IsActivityStreamsOrderedCollectionPage afterwards + // returns true. + SetActivityStreamsOrderedCollectionPage(v ActivityStreamsOrderedCollectionPage) + // SetIRI sets the value of this property. Calling IsIRI afterwards + // returns true. + SetIRI(v *url.URL) + // SetType attempts to set the property for the arbitrary type. Returns an + // error if it is not a valid type to set on this property. + SetType(t Type) error +} diff --git a/streams/vocab/gen_property_forgefed_ticketsTrackedBy_interface.go b/streams/vocab/gen_property_forgefed_ticketsTrackedBy_interface.go new file mode 100644 index 0000000..3ca4a90 --- /dev/null +++ b/streams/vocab/gen_property_forgefed_ticketsTrackedBy_interface.go @@ -0,0 +1,745 @@ +// Code generated by astool. DO NOT EDIT. + +package vocab + +import "net/url" + +// Identifies the actor which tracks tickets related to the given object. This is +// the actor to whom you send tickets you’d like to open against the object. +// +// { +// "@context": [ +// "https://www.w3.org/ns/activitystreams", +// "https://forgefed.peers.community/ns" +// ], +// "id": "https://dev.example/aviva/treesim", +// "name": "Tree Growth 3D Simulation", +// "summary": "\u003cp\u003eTree growth 3D simulator for my nature +// exploration game\u003c/p\u003e", +// "ticketsTrackedBy": "https://bugs.example/projects/treesim", +// "type": "Repository" +// } +type ForgeFedTicketsTrackedByProperty interface { + // Clear ensures no value of this property is set. Calling HasAny or any + // of the 'Is' methods afterwards will return false. + Clear() + // GetActivityStreamsAccept returns the value of this property. When + // IsActivityStreamsAccept returns false, GetActivityStreamsAccept + // will return an arbitrary value. + GetActivityStreamsAccept() ActivityStreamsAccept + // GetActivityStreamsActivity returns the value of this property. When + // IsActivityStreamsActivity returns false, GetActivityStreamsActivity + // will return an arbitrary value. + GetActivityStreamsActivity() ActivityStreamsActivity + // GetActivityStreamsAdd returns the value of this property. When + // IsActivityStreamsAdd returns false, GetActivityStreamsAdd will + // return an arbitrary value. + GetActivityStreamsAdd() ActivityStreamsAdd + // GetActivityStreamsAnnounce returns the value of this property. When + // IsActivityStreamsAnnounce returns false, GetActivityStreamsAnnounce + // will return an arbitrary value. + GetActivityStreamsAnnounce() ActivityStreamsAnnounce + // GetActivityStreamsApplication returns the value of this property. When + // IsActivityStreamsApplication returns false, + // GetActivityStreamsApplication will return an arbitrary value. + GetActivityStreamsApplication() ActivityStreamsApplication + // GetActivityStreamsArrive returns the value of this property. When + // IsActivityStreamsArrive returns false, GetActivityStreamsArrive + // will return an arbitrary value. + GetActivityStreamsArrive() ActivityStreamsArrive + // GetActivityStreamsArticle returns the value of this property. When + // IsActivityStreamsArticle returns false, GetActivityStreamsArticle + // will return an arbitrary value. + GetActivityStreamsArticle() ActivityStreamsArticle + // GetActivityStreamsAudio returns the value of this property. When + // IsActivityStreamsAudio returns false, GetActivityStreamsAudio will + // return an arbitrary value. + GetActivityStreamsAudio() ActivityStreamsAudio + // GetActivityStreamsBlock returns the value of this property. When + // IsActivityStreamsBlock returns false, GetActivityStreamsBlock will + // return an arbitrary value. + GetActivityStreamsBlock() ActivityStreamsBlock + // GetActivityStreamsCollection returns the value of this property. When + // IsActivityStreamsCollection returns false, + // GetActivityStreamsCollection will return an arbitrary value. + GetActivityStreamsCollection() ActivityStreamsCollection + // GetActivityStreamsCollectionPage returns the value of this property. + // When IsActivityStreamsCollectionPage returns false, + // GetActivityStreamsCollectionPage will return an arbitrary value. + GetActivityStreamsCollectionPage() ActivityStreamsCollectionPage + // GetActivityStreamsCreate returns the value of this property. When + // IsActivityStreamsCreate returns false, GetActivityStreamsCreate + // will return an arbitrary value. + GetActivityStreamsCreate() ActivityStreamsCreate + // GetActivityStreamsDelete returns the value of this property. When + // IsActivityStreamsDelete returns false, GetActivityStreamsDelete + // will return an arbitrary value. + GetActivityStreamsDelete() ActivityStreamsDelete + // GetActivityStreamsDislike returns the value of this property. When + // IsActivityStreamsDislike returns false, GetActivityStreamsDislike + // will return an arbitrary value. + GetActivityStreamsDislike() ActivityStreamsDislike + // GetActivityStreamsDocument returns the value of this property. When + // IsActivityStreamsDocument returns false, GetActivityStreamsDocument + // will return an arbitrary value. + GetActivityStreamsDocument() ActivityStreamsDocument + // GetActivityStreamsEvent returns the value of this property. When + // IsActivityStreamsEvent returns false, GetActivityStreamsEvent will + // return an arbitrary value. + GetActivityStreamsEvent() ActivityStreamsEvent + // GetActivityStreamsFlag returns the value of this property. When + // IsActivityStreamsFlag returns false, GetActivityStreamsFlag will + // return an arbitrary value. + GetActivityStreamsFlag() ActivityStreamsFlag + // GetActivityStreamsFollow returns the value of this property. When + // IsActivityStreamsFollow returns false, GetActivityStreamsFollow + // will return an arbitrary value. + GetActivityStreamsFollow() ActivityStreamsFollow + // GetActivityStreamsGroup returns the value of this property. When + // IsActivityStreamsGroup returns false, GetActivityStreamsGroup will + // return an arbitrary value. + GetActivityStreamsGroup() ActivityStreamsGroup + // GetActivityStreamsIgnore returns the value of this property. When + // IsActivityStreamsIgnore returns false, GetActivityStreamsIgnore + // will return an arbitrary value. + GetActivityStreamsIgnore() ActivityStreamsIgnore + // GetActivityStreamsImage returns the value of this property. When + // IsActivityStreamsImage returns false, GetActivityStreamsImage will + // return an arbitrary value. + GetActivityStreamsImage() ActivityStreamsImage + // GetActivityStreamsIntransitiveActivity returns the value of this + // property. When IsActivityStreamsIntransitiveActivity returns false, + // GetActivityStreamsIntransitiveActivity will return an arbitrary + // value. + GetActivityStreamsIntransitiveActivity() ActivityStreamsIntransitiveActivity + // GetActivityStreamsInvite returns the value of this property. When + // IsActivityStreamsInvite returns false, GetActivityStreamsInvite + // will return an arbitrary value. + GetActivityStreamsInvite() ActivityStreamsInvite + // GetActivityStreamsJoin returns the value of this property. When + // IsActivityStreamsJoin returns false, GetActivityStreamsJoin will + // return an arbitrary value. + GetActivityStreamsJoin() ActivityStreamsJoin + // GetActivityStreamsLeave returns the value of this property. When + // IsActivityStreamsLeave returns false, GetActivityStreamsLeave will + // return an arbitrary value. + GetActivityStreamsLeave() ActivityStreamsLeave + // GetActivityStreamsLike returns the value of this property. When + // IsActivityStreamsLike returns false, GetActivityStreamsLike will + // return an arbitrary value. + GetActivityStreamsLike() ActivityStreamsLike + // GetActivityStreamsListen returns the value of this property. When + // IsActivityStreamsListen returns false, GetActivityStreamsListen + // will return an arbitrary value. + GetActivityStreamsListen() ActivityStreamsListen + // GetActivityStreamsMove returns the value of this property. When + // IsActivityStreamsMove returns false, GetActivityStreamsMove will + // return an arbitrary value. + GetActivityStreamsMove() ActivityStreamsMove + // GetActivityStreamsNote returns the value of this property. When + // IsActivityStreamsNote returns false, GetActivityStreamsNote will + // return an arbitrary value. + GetActivityStreamsNote() ActivityStreamsNote + // GetActivityStreamsObject returns the value of this property. When + // IsActivityStreamsObject returns false, GetActivityStreamsObject + // will return an arbitrary value. + GetActivityStreamsObject() ActivityStreamsObject + // GetActivityStreamsOffer returns the value of this property. When + // IsActivityStreamsOffer returns false, GetActivityStreamsOffer will + // return an arbitrary value. + GetActivityStreamsOffer() ActivityStreamsOffer + // GetActivityStreamsOrderedCollection returns the value of this property. + // When IsActivityStreamsOrderedCollection returns false, + // GetActivityStreamsOrderedCollection will return an arbitrary value. + GetActivityStreamsOrderedCollection() ActivityStreamsOrderedCollection + // GetActivityStreamsOrderedCollectionPage returns the value of this + // property. When IsActivityStreamsOrderedCollectionPage returns + // false, GetActivityStreamsOrderedCollectionPage will return an + // arbitrary value. + GetActivityStreamsOrderedCollectionPage() ActivityStreamsOrderedCollectionPage + // GetActivityStreamsOrganization returns the value of this property. When + // IsActivityStreamsOrganization returns false, + // GetActivityStreamsOrganization will return an arbitrary value. + GetActivityStreamsOrganization() ActivityStreamsOrganization + // GetActivityStreamsPage returns the value of this property. When + // IsActivityStreamsPage returns false, GetActivityStreamsPage will + // return an arbitrary value. + GetActivityStreamsPage() ActivityStreamsPage + // GetActivityStreamsPerson returns the value of this property. When + // IsActivityStreamsPerson returns false, GetActivityStreamsPerson + // will return an arbitrary value. + GetActivityStreamsPerson() ActivityStreamsPerson + // GetActivityStreamsPlace returns the value of this property. When + // IsActivityStreamsPlace returns false, GetActivityStreamsPlace will + // return an arbitrary value. + GetActivityStreamsPlace() ActivityStreamsPlace + // GetActivityStreamsProfile returns the value of this property. When + // IsActivityStreamsProfile returns false, GetActivityStreamsProfile + // will return an arbitrary value. + GetActivityStreamsProfile() ActivityStreamsProfile + // GetActivityStreamsQuestion returns the value of this property. When + // IsActivityStreamsQuestion returns false, GetActivityStreamsQuestion + // will return an arbitrary value. + GetActivityStreamsQuestion() ActivityStreamsQuestion + // GetActivityStreamsRead returns the value of this property. When + // IsActivityStreamsRead returns false, GetActivityStreamsRead will + // return an arbitrary value. + GetActivityStreamsRead() ActivityStreamsRead + // GetActivityStreamsReject returns the value of this property. When + // IsActivityStreamsReject returns false, GetActivityStreamsReject + // will return an arbitrary value. + GetActivityStreamsReject() ActivityStreamsReject + // GetActivityStreamsRelationship returns the value of this property. When + // IsActivityStreamsRelationship returns false, + // GetActivityStreamsRelationship will return an arbitrary value. + GetActivityStreamsRelationship() ActivityStreamsRelationship + // GetActivityStreamsRemove returns the value of this property. When + // IsActivityStreamsRemove returns false, GetActivityStreamsRemove + // will return an arbitrary value. + GetActivityStreamsRemove() ActivityStreamsRemove + // GetActivityStreamsService returns the value of this property. When + // IsActivityStreamsService returns false, GetActivityStreamsService + // will return an arbitrary value. + GetActivityStreamsService() ActivityStreamsService + // GetActivityStreamsTentativeAccept returns the value of this property. + // When IsActivityStreamsTentativeAccept returns false, + // GetActivityStreamsTentativeAccept will return an arbitrary value. + GetActivityStreamsTentativeAccept() ActivityStreamsTentativeAccept + // GetActivityStreamsTentativeReject returns the value of this property. + // When IsActivityStreamsTentativeReject returns false, + // GetActivityStreamsTentativeReject will return an arbitrary value. + GetActivityStreamsTentativeReject() ActivityStreamsTentativeReject + // GetActivityStreamsTombstone returns the value of this property. When + // IsActivityStreamsTombstone returns false, + // GetActivityStreamsTombstone will return an arbitrary value. + GetActivityStreamsTombstone() ActivityStreamsTombstone + // GetActivityStreamsTravel returns the value of this property. When + // IsActivityStreamsTravel returns false, GetActivityStreamsTravel + // will return an arbitrary value. + GetActivityStreamsTravel() ActivityStreamsTravel + // GetActivityStreamsUndo returns the value of this property. When + // IsActivityStreamsUndo returns false, GetActivityStreamsUndo will + // return an arbitrary value. + GetActivityStreamsUndo() ActivityStreamsUndo + // GetActivityStreamsUpdate returns the value of this property. When + // IsActivityStreamsUpdate returns false, GetActivityStreamsUpdate + // will return an arbitrary value. + GetActivityStreamsUpdate() ActivityStreamsUpdate + // GetActivityStreamsVideo returns the value of this property. When + // IsActivityStreamsVideo returns false, GetActivityStreamsVideo will + // return an arbitrary value. + GetActivityStreamsVideo() ActivityStreamsVideo + // GetActivityStreamsView returns the value of this property. When + // IsActivityStreamsView returns false, GetActivityStreamsView will + // return an arbitrary value. + GetActivityStreamsView() ActivityStreamsView + // GetForgeFedBranch returns the value of this property. When + // IsForgeFedBranch returns false, GetForgeFedBranch will return an + // arbitrary value. + GetForgeFedBranch() ForgeFedBranch + // GetForgeFedCommit returns the value of this property. When + // IsForgeFedCommit returns false, GetForgeFedCommit will return an + // arbitrary value. + GetForgeFedCommit() ForgeFedCommit + // GetForgeFedPush returns the value of this property. When IsForgeFedPush + // returns false, GetForgeFedPush will return an arbitrary value. + GetForgeFedPush() ForgeFedPush + // GetForgeFedRepository returns the value of this property. When + // IsForgeFedRepository returns false, GetForgeFedRepository will + // return an arbitrary value. + GetForgeFedRepository() ForgeFedRepository + // GetForgeFedTicket returns the value of this property. When + // IsForgeFedTicket returns false, GetForgeFedTicket will return an + // arbitrary value. + GetForgeFedTicket() ForgeFedTicket + // GetForgeFedTicketDependency returns the value of this property. When + // IsForgeFedTicketDependency returns false, + // GetForgeFedTicketDependency will return an arbitrary value. + GetForgeFedTicketDependency() ForgeFedTicketDependency + // GetIRI returns the IRI of this property. When IsIRI returns false, + // GetIRI will return an arbitrary value. + GetIRI() *url.URL + // GetTootEmoji returns the value of this property. When IsTootEmoji + // returns false, GetTootEmoji will return an arbitrary value. + GetTootEmoji() TootEmoji + // GetTootIdentityProof returns the value of this property. When + // IsTootIdentityProof returns false, GetTootIdentityProof will return + // an arbitrary value. + GetTootIdentityProof() TootIdentityProof + // GetType returns the value in this property as a Type. Returns nil if + // the value is not an ActivityStreams type, such as an IRI or another + // value. + GetType() Type + // HasAny returns true if any of the different values is set. + HasAny() bool + // IsActivityStreamsAccept returns true if this property has a type of + // "Accept". When true, use the GetActivityStreamsAccept and + // SetActivityStreamsAccept methods to access and set this property. + IsActivityStreamsAccept() bool + // IsActivityStreamsActivity returns true if this property has a type of + // "Activity". When true, use the GetActivityStreamsActivity and + // SetActivityStreamsActivity methods to access and set this property. + IsActivityStreamsActivity() bool + // IsActivityStreamsAdd returns true if this property has a type of "Add". + // When true, use the GetActivityStreamsAdd and SetActivityStreamsAdd + // methods to access and set this property. + IsActivityStreamsAdd() bool + // IsActivityStreamsAnnounce returns true if this property has a type of + // "Announce". When true, use the GetActivityStreamsAnnounce and + // SetActivityStreamsAnnounce methods to access and set this property. + IsActivityStreamsAnnounce() bool + // IsActivityStreamsApplication returns true if this property has a type + // of "Application". When true, use the GetActivityStreamsApplication + // and SetActivityStreamsApplication methods to access and set this + // property. + IsActivityStreamsApplication() bool + // IsActivityStreamsArrive returns true if this property has a type of + // "Arrive". When true, use the GetActivityStreamsArrive and + // SetActivityStreamsArrive methods to access and set this property. + IsActivityStreamsArrive() bool + // IsActivityStreamsArticle returns true if this property has a type of + // "Article". When true, use the GetActivityStreamsArticle and + // SetActivityStreamsArticle methods to access and set this property. + IsActivityStreamsArticle() bool + // IsActivityStreamsAudio returns true if this property has a type of + // "Audio". When true, use the GetActivityStreamsAudio and + // SetActivityStreamsAudio methods to access and set this property. + IsActivityStreamsAudio() bool + // IsActivityStreamsBlock returns true if this property has a type of + // "Block". When true, use the GetActivityStreamsBlock and + // SetActivityStreamsBlock methods to access and set this property. + IsActivityStreamsBlock() bool + // IsActivityStreamsCollection returns true if this property has a type of + // "Collection". When true, use the GetActivityStreamsCollection and + // SetActivityStreamsCollection methods to access and set this + // property. + IsActivityStreamsCollection() bool + // IsActivityStreamsCollectionPage returns true if this property has a + // type of "CollectionPage". When true, use the + // GetActivityStreamsCollectionPage and + // SetActivityStreamsCollectionPage methods to access and set this + // property. + IsActivityStreamsCollectionPage() bool + // IsActivityStreamsCreate returns true if this property has a type of + // "Create". When true, use the GetActivityStreamsCreate and + // SetActivityStreamsCreate methods to access and set this property. + IsActivityStreamsCreate() bool + // IsActivityStreamsDelete returns true if this property has a type of + // "Delete". When true, use the GetActivityStreamsDelete and + // SetActivityStreamsDelete methods to access and set this property. + IsActivityStreamsDelete() bool + // IsActivityStreamsDislike returns true if this property has a type of + // "Dislike". When true, use the GetActivityStreamsDislike and + // SetActivityStreamsDislike methods to access and set this property. + IsActivityStreamsDislike() bool + // IsActivityStreamsDocument returns true if this property has a type of + // "Document". When true, use the GetActivityStreamsDocument and + // SetActivityStreamsDocument methods to access and set this property. + IsActivityStreamsDocument() bool + // IsActivityStreamsEvent returns true if this property has a type of + // "Event". When true, use the GetActivityStreamsEvent and + // SetActivityStreamsEvent methods to access and set this property. + IsActivityStreamsEvent() bool + // IsActivityStreamsFlag returns true if this property has a type of + // "Flag". When true, use the GetActivityStreamsFlag and + // SetActivityStreamsFlag methods to access and set this property. + IsActivityStreamsFlag() bool + // IsActivityStreamsFollow returns true if this property has a type of + // "Follow". When true, use the GetActivityStreamsFollow and + // SetActivityStreamsFollow methods to access and set this property. + IsActivityStreamsFollow() bool + // IsActivityStreamsGroup returns true if this property has a type of + // "Group". When true, use the GetActivityStreamsGroup and + // SetActivityStreamsGroup methods to access and set this property. + IsActivityStreamsGroup() bool + // IsActivityStreamsIgnore returns true if this property has a type of + // "Ignore". When true, use the GetActivityStreamsIgnore and + // SetActivityStreamsIgnore methods to access and set this property. + IsActivityStreamsIgnore() bool + // IsActivityStreamsImage returns true if this property has a type of + // "Image". When true, use the GetActivityStreamsImage and + // SetActivityStreamsImage methods to access and set this property. + IsActivityStreamsImage() bool + // IsActivityStreamsIntransitiveActivity returns true if this property has + // a type of "IntransitiveActivity". When true, use the + // GetActivityStreamsIntransitiveActivity and + // SetActivityStreamsIntransitiveActivity methods to access and set + // this property. + IsActivityStreamsIntransitiveActivity() bool + // IsActivityStreamsInvite returns true if this property has a type of + // "Invite". When true, use the GetActivityStreamsInvite and + // SetActivityStreamsInvite methods to access and set this property. + IsActivityStreamsInvite() bool + // IsActivityStreamsJoin returns true if this property has a type of + // "Join". When true, use the GetActivityStreamsJoin and + // SetActivityStreamsJoin methods to access and set this property. + IsActivityStreamsJoin() bool + // IsActivityStreamsLeave returns true if this property has a type of + // "Leave". When true, use the GetActivityStreamsLeave and + // SetActivityStreamsLeave methods to access and set this property. + IsActivityStreamsLeave() bool + // IsActivityStreamsLike returns true if this property has a type of + // "Like". When true, use the GetActivityStreamsLike and + // SetActivityStreamsLike methods to access and set this property. + IsActivityStreamsLike() bool + // IsActivityStreamsListen returns true if this property has a type of + // "Listen". When true, use the GetActivityStreamsListen and + // SetActivityStreamsListen methods to access and set this property. + IsActivityStreamsListen() bool + // IsActivityStreamsMove returns true if this property has a type of + // "Move". When true, use the GetActivityStreamsMove and + // SetActivityStreamsMove methods to access and set this property. + IsActivityStreamsMove() bool + // IsActivityStreamsNote returns true if this property has a type of + // "Note". When true, use the GetActivityStreamsNote and + // SetActivityStreamsNote methods to access and set this property. + IsActivityStreamsNote() bool + // IsActivityStreamsObject returns true if this property has a type of + // "Object". When true, use the GetActivityStreamsObject and + // SetActivityStreamsObject methods to access and set this property. + IsActivityStreamsObject() bool + // IsActivityStreamsOffer returns true if this property has a type of + // "Offer". When true, use the GetActivityStreamsOffer and + // SetActivityStreamsOffer methods to access and set this property. + IsActivityStreamsOffer() bool + // IsActivityStreamsOrderedCollection returns true if this property has a + // type of "OrderedCollection". When true, use the + // GetActivityStreamsOrderedCollection and + // SetActivityStreamsOrderedCollection methods to access and set this + // property. + IsActivityStreamsOrderedCollection() bool + // IsActivityStreamsOrderedCollectionPage returns true if this property + // has a type of "OrderedCollectionPage". When true, use the + // GetActivityStreamsOrderedCollectionPage and + // SetActivityStreamsOrderedCollectionPage methods to access and set + // this property. + IsActivityStreamsOrderedCollectionPage() bool + // IsActivityStreamsOrganization returns true if this property has a type + // of "Organization". When true, use the + // GetActivityStreamsOrganization and SetActivityStreamsOrganization + // methods to access and set this property. + IsActivityStreamsOrganization() bool + // IsActivityStreamsPage returns true if this property has a type of + // "Page". When true, use the GetActivityStreamsPage and + // SetActivityStreamsPage methods to access and set this property. + IsActivityStreamsPage() bool + // IsActivityStreamsPerson returns true if this property has a type of + // "Person". When true, use the GetActivityStreamsPerson and + // SetActivityStreamsPerson methods to access and set this property. + IsActivityStreamsPerson() bool + // IsActivityStreamsPlace returns true if this property has a type of + // "Place". When true, use the GetActivityStreamsPlace and + // SetActivityStreamsPlace methods to access and set this property. + IsActivityStreamsPlace() bool + // IsActivityStreamsProfile returns true if this property has a type of + // "Profile". When true, use the GetActivityStreamsProfile and + // SetActivityStreamsProfile methods to access and set this property. + IsActivityStreamsProfile() bool + // IsActivityStreamsQuestion returns true if this property has a type of + // "Question". When true, use the GetActivityStreamsQuestion and + // SetActivityStreamsQuestion methods to access and set this property. + IsActivityStreamsQuestion() bool + // IsActivityStreamsRead returns true if this property has a type of + // "Read". When true, use the GetActivityStreamsRead and + // SetActivityStreamsRead methods to access and set this property. + IsActivityStreamsRead() bool + // IsActivityStreamsReject returns true if this property has a type of + // "Reject". When true, use the GetActivityStreamsReject and + // SetActivityStreamsReject methods to access and set this property. + IsActivityStreamsReject() bool + // IsActivityStreamsRelationship returns true if this property has a type + // of "Relationship". When true, use the + // GetActivityStreamsRelationship and SetActivityStreamsRelationship + // methods to access and set this property. + IsActivityStreamsRelationship() bool + // IsActivityStreamsRemove returns true if this property has a type of + // "Remove". When true, use the GetActivityStreamsRemove and + // SetActivityStreamsRemove methods to access and set this property. + IsActivityStreamsRemove() bool + // IsActivityStreamsService returns true if this property has a type of + // "Service". When true, use the GetActivityStreamsService and + // SetActivityStreamsService methods to access and set this property. + IsActivityStreamsService() bool + // IsActivityStreamsTentativeAccept returns true if this property has a + // type of "TentativeAccept". When true, use the + // GetActivityStreamsTentativeAccept and + // SetActivityStreamsTentativeAccept methods to access and set this + // property. + IsActivityStreamsTentativeAccept() bool + // IsActivityStreamsTentativeReject returns true if this property has a + // type of "TentativeReject". When true, use the + // GetActivityStreamsTentativeReject and + // SetActivityStreamsTentativeReject methods to access and set this + // property. + IsActivityStreamsTentativeReject() bool + // IsActivityStreamsTombstone returns true if this property has a type of + // "Tombstone". When true, use the GetActivityStreamsTombstone and + // SetActivityStreamsTombstone methods to access and set this property. + IsActivityStreamsTombstone() bool + // IsActivityStreamsTravel returns true if this property has a type of + // "Travel". When true, use the GetActivityStreamsTravel and + // SetActivityStreamsTravel methods to access and set this property. + IsActivityStreamsTravel() bool + // IsActivityStreamsUndo returns true if this property has a type of + // "Undo". When true, use the GetActivityStreamsUndo and + // SetActivityStreamsUndo methods to access and set this property. + IsActivityStreamsUndo() bool + // IsActivityStreamsUpdate returns true if this property has a type of + // "Update". When true, use the GetActivityStreamsUpdate and + // SetActivityStreamsUpdate methods to access and set this property. + IsActivityStreamsUpdate() bool + // IsActivityStreamsVideo returns true if this property has a type of + // "Video". When true, use the GetActivityStreamsVideo and + // SetActivityStreamsVideo methods to access and set this property. + IsActivityStreamsVideo() bool + // IsActivityStreamsView returns true if this property has a type of + // "View". When true, use the GetActivityStreamsView and + // SetActivityStreamsView methods to access and set this property. + IsActivityStreamsView() bool + // IsForgeFedBranch returns true if this property has a type of "Branch". + // When true, use the GetForgeFedBranch and SetForgeFedBranch methods + // to access and set this property. + IsForgeFedBranch() bool + // IsForgeFedCommit returns true if this property has a type of "Commit". + // When true, use the GetForgeFedCommit and SetForgeFedCommit methods + // to access and set this property. + IsForgeFedCommit() bool + // IsForgeFedPush returns true if this property has a type of "Push". When + // true, use the GetForgeFedPush and SetForgeFedPush methods to access + // and set this property. + IsForgeFedPush() bool + // IsForgeFedRepository returns true if this property has a type of + // "Repository". When true, use the GetForgeFedRepository and + // SetForgeFedRepository methods to access and set this property. + IsForgeFedRepository() bool + // IsForgeFedTicket returns true if this property has a type of "Ticket". + // When true, use the GetForgeFedTicket and SetForgeFedTicket methods + // to access and set this property. + IsForgeFedTicket() bool + // IsForgeFedTicketDependency returns true if this property has a type of + // "TicketDependency". When true, use the GetForgeFedTicketDependency + // and SetForgeFedTicketDependency methods to access and set this + // property. + IsForgeFedTicketDependency() bool + // IsIRI returns true if this property is an IRI. When true, use GetIRI + // and SetIRI to access and set this property + IsIRI() bool + // IsTootEmoji returns true if this property has a type of "Emoji". When + // true, use the GetTootEmoji and SetTootEmoji methods to access and + // set this property. + IsTootEmoji() bool + // IsTootIdentityProof returns true if this property has a type of + // "IdentityProof". When true, use the GetTootIdentityProof and + // SetTootIdentityProof methods to access and set this property. + IsTootIdentityProof() bool + // JSONLDContext returns the JSONLD URIs required in the context string + // for this property and the specific values that are set. The value + // in the map is the alias used to import the property's value or + // values. + JSONLDContext() map[string]string + // KindIndex computes an arbitrary value for indexing this kind of value. + // This is a leaky API detail only for folks looking to replace the + // go-fed implementation. Applications should not use this method. + KindIndex() int + // LessThan compares two instances of this property with an arbitrary but + // stable comparison. Applications should not use this because it is + // only meant to help alternative implementations to go-fed to be able + // to normalize nonfunctional properties. + LessThan(o ForgeFedTicketsTrackedByProperty) bool + // Name returns the name of this property: "ticketsTrackedBy". + Name() string + // Serialize converts this into an interface representation suitable for + // marshalling into a text or binary format. Applications should not + // need this function as most typical use cases serialize types + // instead of individual properties. It is exposed for alternatives to + // go-fed implementations to use. + Serialize() (interface{}, error) + // SetActivityStreamsAccept sets the value of this property. Calling + // IsActivityStreamsAccept afterwards returns true. + SetActivityStreamsAccept(v ActivityStreamsAccept) + // SetActivityStreamsActivity sets the value of this property. Calling + // IsActivityStreamsActivity afterwards returns true. + SetActivityStreamsActivity(v ActivityStreamsActivity) + // SetActivityStreamsAdd sets the value of this property. Calling + // IsActivityStreamsAdd afterwards returns true. + SetActivityStreamsAdd(v ActivityStreamsAdd) + // SetActivityStreamsAnnounce sets the value of this property. Calling + // IsActivityStreamsAnnounce afterwards returns true. + SetActivityStreamsAnnounce(v ActivityStreamsAnnounce) + // SetActivityStreamsApplication sets the value of this property. Calling + // IsActivityStreamsApplication afterwards returns true. + SetActivityStreamsApplication(v ActivityStreamsApplication) + // SetActivityStreamsArrive sets the value of this property. Calling + // IsActivityStreamsArrive afterwards returns true. + SetActivityStreamsArrive(v ActivityStreamsArrive) + // SetActivityStreamsArticle sets the value of this property. Calling + // IsActivityStreamsArticle afterwards returns true. + SetActivityStreamsArticle(v ActivityStreamsArticle) + // SetActivityStreamsAudio sets the value of this property. Calling + // IsActivityStreamsAudio afterwards returns true. + SetActivityStreamsAudio(v ActivityStreamsAudio) + // SetActivityStreamsBlock sets the value of this property. Calling + // IsActivityStreamsBlock afterwards returns true. + SetActivityStreamsBlock(v ActivityStreamsBlock) + // SetActivityStreamsCollection sets the value of this property. Calling + // IsActivityStreamsCollection afterwards returns true. + SetActivityStreamsCollection(v ActivityStreamsCollection) + // SetActivityStreamsCollectionPage sets the value of this property. + // Calling IsActivityStreamsCollectionPage afterwards returns true. + SetActivityStreamsCollectionPage(v ActivityStreamsCollectionPage) + // SetActivityStreamsCreate sets the value of this property. Calling + // IsActivityStreamsCreate afterwards returns true. + SetActivityStreamsCreate(v ActivityStreamsCreate) + // SetActivityStreamsDelete sets the value of this property. Calling + // IsActivityStreamsDelete afterwards returns true. + SetActivityStreamsDelete(v ActivityStreamsDelete) + // SetActivityStreamsDislike sets the value of this property. Calling + // IsActivityStreamsDislike afterwards returns true. + SetActivityStreamsDislike(v ActivityStreamsDislike) + // SetActivityStreamsDocument sets the value of this property. Calling + // IsActivityStreamsDocument afterwards returns true. + SetActivityStreamsDocument(v ActivityStreamsDocument) + // SetActivityStreamsEvent sets the value of this property. Calling + // IsActivityStreamsEvent afterwards returns true. + SetActivityStreamsEvent(v ActivityStreamsEvent) + // SetActivityStreamsFlag sets the value of this property. Calling + // IsActivityStreamsFlag afterwards returns true. + SetActivityStreamsFlag(v ActivityStreamsFlag) + // SetActivityStreamsFollow sets the value of this property. Calling + // IsActivityStreamsFollow afterwards returns true. + SetActivityStreamsFollow(v ActivityStreamsFollow) + // SetActivityStreamsGroup sets the value of this property. Calling + // IsActivityStreamsGroup afterwards returns true. + SetActivityStreamsGroup(v ActivityStreamsGroup) + // SetActivityStreamsIgnore sets the value of this property. Calling + // IsActivityStreamsIgnore afterwards returns true. + SetActivityStreamsIgnore(v ActivityStreamsIgnore) + // SetActivityStreamsImage sets the value of this property. Calling + // IsActivityStreamsImage afterwards returns true. + SetActivityStreamsImage(v ActivityStreamsImage) + // SetActivityStreamsIntransitiveActivity sets the value of this property. + // Calling IsActivityStreamsIntransitiveActivity afterwards returns + // true. + SetActivityStreamsIntransitiveActivity(v ActivityStreamsIntransitiveActivity) + // SetActivityStreamsInvite sets the value of this property. Calling + // IsActivityStreamsInvite afterwards returns true. + SetActivityStreamsInvite(v ActivityStreamsInvite) + // SetActivityStreamsJoin sets the value of this property. Calling + // IsActivityStreamsJoin afterwards returns true. + SetActivityStreamsJoin(v ActivityStreamsJoin) + // SetActivityStreamsLeave sets the value of this property. Calling + // IsActivityStreamsLeave afterwards returns true. + SetActivityStreamsLeave(v ActivityStreamsLeave) + // SetActivityStreamsLike sets the value of this property. Calling + // IsActivityStreamsLike afterwards returns true. + SetActivityStreamsLike(v ActivityStreamsLike) + // SetActivityStreamsListen sets the value of this property. Calling + // IsActivityStreamsListen afterwards returns true. + SetActivityStreamsListen(v ActivityStreamsListen) + // SetActivityStreamsMove sets the value of this property. Calling + // IsActivityStreamsMove afterwards returns true. + SetActivityStreamsMove(v ActivityStreamsMove) + // SetActivityStreamsNote sets the value of this property. Calling + // IsActivityStreamsNote afterwards returns true. + SetActivityStreamsNote(v ActivityStreamsNote) + // SetActivityStreamsObject sets the value of this property. Calling + // IsActivityStreamsObject afterwards returns true. + SetActivityStreamsObject(v ActivityStreamsObject) + // SetActivityStreamsOffer sets the value of this property. Calling + // IsActivityStreamsOffer afterwards returns true. + SetActivityStreamsOffer(v ActivityStreamsOffer) + // SetActivityStreamsOrderedCollection sets the value of this property. + // Calling IsActivityStreamsOrderedCollection afterwards returns true. + SetActivityStreamsOrderedCollection(v ActivityStreamsOrderedCollection) + // SetActivityStreamsOrderedCollectionPage sets the value of this + // property. Calling IsActivityStreamsOrderedCollectionPage afterwards + // returns true. + SetActivityStreamsOrderedCollectionPage(v ActivityStreamsOrderedCollectionPage) + // SetActivityStreamsOrganization sets the value of this property. Calling + // IsActivityStreamsOrganization afterwards returns true. + SetActivityStreamsOrganization(v ActivityStreamsOrganization) + // SetActivityStreamsPage sets the value of this property. Calling + // IsActivityStreamsPage afterwards returns true. + SetActivityStreamsPage(v ActivityStreamsPage) + // SetActivityStreamsPerson sets the value of this property. Calling + // IsActivityStreamsPerson afterwards returns true. + SetActivityStreamsPerson(v ActivityStreamsPerson) + // SetActivityStreamsPlace sets the value of this property. Calling + // IsActivityStreamsPlace afterwards returns true. + SetActivityStreamsPlace(v ActivityStreamsPlace) + // SetActivityStreamsProfile sets the value of this property. Calling + // IsActivityStreamsProfile afterwards returns true. + SetActivityStreamsProfile(v ActivityStreamsProfile) + // SetActivityStreamsQuestion sets the value of this property. Calling + // IsActivityStreamsQuestion afterwards returns true. + SetActivityStreamsQuestion(v ActivityStreamsQuestion) + // SetActivityStreamsRead sets the value of this property. Calling + // IsActivityStreamsRead afterwards returns true. + SetActivityStreamsRead(v ActivityStreamsRead) + // SetActivityStreamsReject sets the value of this property. Calling + // IsActivityStreamsReject afterwards returns true. + SetActivityStreamsReject(v ActivityStreamsReject) + // SetActivityStreamsRelationship sets the value of this property. Calling + // IsActivityStreamsRelationship afterwards returns true. + SetActivityStreamsRelationship(v ActivityStreamsRelationship) + // SetActivityStreamsRemove sets the value of this property. Calling + // IsActivityStreamsRemove afterwards returns true. + SetActivityStreamsRemove(v ActivityStreamsRemove) + // SetActivityStreamsService sets the value of this property. Calling + // IsActivityStreamsService afterwards returns true. + SetActivityStreamsService(v ActivityStreamsService) + // SetActivityStreamsTentativeAccept sets the value of this property. + // Calling IsActivityStreamsTentativeAccept afterwards returns true. + SetActivityStreamsTentativeAccept(v ActivityStreamsTentativeAccept) + // SetActivityStreamsTentativeReject sets the value of this property. + // Calling IsActivityStreamsTentativeReject afterwards returns true. + SetActivityStreamsTentativeReject(v ActivityStreamsTentativeReject) + // SetActivityStreamsTombstone sets the value of this property. Calling + // IsActivityStreamsTombstone afterwards returns true. + SetActivityStreamsTombstone(v ActivityStreamsTombstone) + // SetActivityStreamsTravel sets the value of this property. Calling + // IsActivityStreamsTravel afterwards returns true. + SetActivityStreamsTravel(v ActivityStreamsTravel) + // SetActivityStreamsUndo sets the value of this property. Calling + // IsActivityStreamsUndo afterwards returns true. + SetActivityStreamsUndo(v ActivityStreamsUndo) + // SetActivityStreamsUpdate sets the value of this property. Calling + // IsActivityStreamsUpdate afterwards returns true. + SetActivityStreamsUpdate(v ActivityStreamsUpdate) + // SetActivityStreamsVideo sets the value of this property. Calling + // IsActivityStreamsVideo afterwards returns true. + SetActivityStreamsVideo(v ActivityStreamsVideo) + // SetActivityStreamsView sets the value of this property. Calling + // IsActivityStreamsView afterwards returns true. + SetActivityStreamsView(v ActivityStreamsView) + // SetForgeFedBranch sets the value of this property. Calling + // IsForgeFedBranch afterwards returns true. + SetForgeFedBranch(v ForgeFedBranch) + // SetForgeFedCommit sets the value of this property. Calling + // IsForgeFedCommit afterwards returns true. + SetForgeFedCommit(v ForgeFedCommit) + // SetForgeFedPush sets the value of this property. Calling IsForgeFedPush + // afterwards returns true. + SetForgeFedPush(v ForgeFedPush) + // SetForgeFedRepository sets the value of this property. Calling + // IsForgeFedRepository afterwards returns true. + SetForgeFedRepository(v ForgeFedRepository) + // SetForgeFedTicket sets the value of this property. Calling + // IsForgeFedTicket afterwards returns true. + SetForgeFedTicket(v ForgeFedTicket) + // SetForgeFedTicketDependency sets the value of this property. Calling + // IsForgeFedTicketDependency afterwards returns true. + SetForgeFedTicketDependency(v ForgeFedTicketDependency) + // SetIRI sets the value of this property. Calling IsIRI afterwards + // returns true. + SetIRI(v *url.URL) + // SetTootEmoji sets the value of this property. Calling IsTootEmoji + // afterwards returns true. + SetTootEmoji(v TootEmoji) + // SetTootIdentityProof sets the value of this property. Calling + // IsTootIdentityProof afterwards returns true. + SetTootIdentityProof(v TootIdentityProof) + // SetType attempts to set the property for the arbitrary type. Returns an + // error if it is not a valid type to set on this property. + SetType(t Type) error +} diff --git a/streams/vocab/gen_property_forgefed_tracksTicketsFor_interface.go b/streams/vocab/gen_property_forgefed_tracksTicketsFor_interface.go new file mode 100644 index 0000000..65471e6 --- /dev/null +++ b/streams/vocab/gen_property_forgefed_tracksTicketsFor_interface.go @@ -0,0 +1,1766 @@ +// Code generated by astool. DO NOT EDIT. + +package vocab + +import "net/url" + +// ForgeFedTracksTicketsForPropertyIterator represents a single value for the +// "tracksTicketsFor" property. +type ForgeFedTracksTicketsForPropertyIterator interface { + // GetActivityStreamsAccept returns the value of this property. When + // IsActivityStreamsAccept returns false, GetActivityStreamsAccept + // will return an arbitrary value. + GetActivityStreamsAccept() ActivityStreamsAccept + // GetActivityStreamsActivity returns the value of this property. When + // IsActivityStreamsActivity returns false, GetActivityStreamsActivity + // will return an arbitrary value. + GetActivityStreamsActivity() ActivityStreamsActivity + // GetActivityStreamsAdd returns the value of this property. When + // IsActivityStreamsAdd returns false, GetActivityStreamsAdd will + // return an arbitrary value. + GetActivityStreamsAdd() ActivityStreamsAdd + // GetActivityStreamsAnnounce returns the value of this property. When + // IsActivityStreamsAnnounce returns false, GetActivityStreamsAnnounce + // will return an arbitrary value. + GetActivityStreamsAnnounce() ActivityStreamsAnnounce + // GetActivityStreamsApplication returns the value of this property. When + // IsActivityStreamsApplication returns false, + // GetActivityStreamsApplication will return an arbitrary value. + GetActivityStreamsApplication() ActivityStreamsApplication + // GetActivityStreamsArrive returns the value of this property. When + // IsActivityStreamsArrive returns false, GetActivityStreamsArrive + // will return an arbitrary value. + GetActivityStreamsArrive() ActivityStreamsArrive + // GetActivityStreamsArticle returns the value of this property. When + // IsActivityStreamsArticle returns false, GetActivityStreamsArticle + // will return an arbitrary value. + GetActivityStreamsArticle() ActivityStreamsArticle + // GetActivityStreamsAudio returns the value of this property. When + // IsActivityStreamsAudio returns false, GetActivityStreamsAudio will + // return an arbitrary value. + GetActivityStreamsAudio() ActivityStreamsAudio + // GetActivityStreamsBlock returns the value of this property. When + // IsActivityStreamsBlock returns false, GetActivityStreamsBlock will + // return an arbitrary value. + GetActivityStreamsBlock() ActivityStreamsBlock + // GetActivityStreamsCollection returns the value of this property. When + // IsActivityStreamsCollection returns false, + // GetActivityStreamsCollection will return an arbitrary value. + GetActivityStreamsCollection() ActivityStreamsCollection + // GetActivityStreamsCollectionPage returns the value of this property. + // When IsActivityStreamsCollectionPage returns false, + // GetActivityStreamsCollectionPage will return an arbitrary value. + GetActivityStreamsCollectionPage() ActivityStreamsCollectionPage + // GetActivityStreamsCreate returns the value of this property. When + // IsActivityStreamsCreate returns false, GetActivityStreamsCreate + // will return an arbitrary value. + GetActivityStreamsCreate() ActivityStreamsCreate + // GetActivityStreamsDelete returns the value of this property. When + // IsActivityStreamsDelete returns false, GetActivityStreamsDelete + // will return an arbitrary value. + GetActivityStreamsDelete() ActivityStreamsDelete + // GetActivityStreamsDislike returns the value of this property. When + // IsActivityStreamsDislike returns false, GetActivityStreamsDislike + // will return an arbitrary value. + GetActivityStreamsDislike() ActivityStreamsDislike + // GetActivityStreamsDocument returns the value of this property. When + // IsActivityStreamsDocument returns false, GetActivityStreamsDocument + // will return an arbitrary value. + GetActivityStreamsDocument() ActivityStreamsDocument + // GetActivityStreamsEvent returns the value of this property. When + // IsActivityStreamsEvent returns false, GetActivityStreamsEvent will + // return an arbitrary value. + GetActivityStreamsEvent() ActivityStreamsEvent + // GetActivityStreamsFlag returns the value of this property. When + // IsActivityStreamsFlag returns false, GetActivityStreamsFlag will + // return an arbitrary value. + GetActivityStreamsFlag() ActivityStreamsFlag + // GetActivityStreamsFollow returns the value of this property. When + // IsActivityStreamsFollow returns false, GetActivityStreamsFollow + // will return an arbitrary value. + GetActivityStreamsFollow() ActivityStreamsFollow + // GetActivityStreamsGroup returns the value of this property. When + // IsActivityStreamsGroup returns false, GetActivityStreamsGroup will + // return an arbitrary value. + GetActivityStreamsGroup() ActivityStreamsGroup + // GetActivityStreamsIgnore returns the value of this property. When + // IsActivityStreamsIgnore returns false, GetActivityStreamsIgnore + // will return an arbitrary value. + GetActivityStreamsIgnore() ActivityStreamsIgnore + // GetActivityStreamsImage returns the value of this property. When + // IsActivityStreamsImage returns false, GetActivityStreamsImage will + // return an arbitrary value. + GetActivityStreamsImage() ActivityStreamsImage + // GetActivityStreamsIntransitiveActivity returns the value of this + // property. When IsActivityStreamsIntransitiveActivity returns false, + // GetActivityStreamsIntransitiveActivity will return an arbitrary + // value. + GetActivityStreamsIntransitiveActivity() ActivityStreamsIntransitiveActivity + // GetActivityStreamsInvite returns the value of this property. When + // IsActivityStreamsInvite returns false, GetActivityStreamsInvite + // will return an arbitrary value. + GetActivityStreamsInvite() ActivityStreamsInvite + // GetActivityStreamsJoin returns the value of this property. When + // IsActivityStreamsJoin returns false, GetActivityStreamsJoin will + // return an arbitrary value. + GetActivityStreamsJoin() ActivityStreamsJoin + // GetActivityStreamsLeave returns the value of this property. When + // IsActivityStreamsLeave returns false, GetActivityStreamsLeave will + // return an arbitrary value. + GetActivityStreamsLeave() ActivityStreamsLeave + // GetActivityStreamsLike returns the value of this property. When + // IsActivityStreamsLike returns false, GetActivityStreamsLike will + // return an arbitrary value. + GetActivityStreamsLike() ActivityStreamsLike + // GetActivityStreamsListen returns the value of this property. When + // IsActivityStreamsListen returns false, GetActivityStreamsListen + // will return an arbitrary value. + GetActivityStreamsListen() ActivityStreamsListen + // GetActivityStreamsMove returns the value of this property. When + // IsActivityStreamsMove returns false, GetActivityStreamsMove will + // return an arbitrary value. + GetActivityStreamsMove() ActivityStreamsMove + // GetActivityStreamsNote returns the value of this property. When + // IsActivityStreamsNote returns false, GetActivityStreamsNote will + // return an arbitrary value. + GetActivityStreamsNote() ActivityStreamsNote + // GetActivityStreamsObject returns the value of this property. When + // IsActivityStreamsObject returns false, GetActivityStreamsObject + // will return an arbitrary value. + GetActivityStreamsObject() ActivityStreamsObject + // GetActivityStreamsOffer returns the value of this property. When + // IsActivityStreamsOffer returns false, GetActivityStreamsOffer will + // return an arbitrary value. + GetActivityStreamsOffer() ActivityStreamsOffer + // GetActivityStreamsOrderedCollection returns the value of this property. + // When IsActivityStreamsOrderedCollection returns false, + // GetActivityStreamsOrderedCollection will return an arbitrary value. + GetActivityStreamsOrderedCollection() ActivityStreamsOrderedCollection + // GetActivityStreamsOrderedCollectionPage returns the value of this + // property. When IsActivityStreamsOrderedCollectionPage returns + // false, GetActivityStreamsOrderedCollectionPage will return an + // arbitrary value. + GetActivityStreamsOrderedCollectionPage() ActivityStreamsOrderedCollectionPage + // GetActivityStreamsOrganization returns the value of this property. When + // IsActivityStreamsOrganization returns false, + // GetActivityStreamsOrganization will return an arbitrary value. + GetActivityStreamsOrganization() ActivityStreamsOrganization + // GetActivityStreamsPage returns the value of this property. When + // IsActivityStreamsPage returns false, GetActivityStreamsPage will + // return an arbitrary value. + GetActivityStreamsPage() ActivityStreamsPage + // GetActivityStreamsPerson returns the value of this property. When + // IsActivityStreamsPerson returns false, GetActivityStreamsPerson + // will return an arbitrary value. + GetActivityStreamsPerson() ActivityStreamsPerson + // GetActivityStreamsPlace returns the value of this property. When + // IsActivityStreamsPlace returns false, GetActivityStreamsPlace will + // return an arbitrary value. + GetActivityStreamsPlace() ActivityStreamsPlace + // GetActivityStreamsProfile returns the value of this property. When + // IsActivityStreamsProfile returns false, GetActivityStreamsProfile + // will return an arbitrary value. + GetActivityStreamsProfile() ActivityStreamsProfile + // GetActivityStreamsQuestion returns the value of this property. When + // IsActivityStreamsQuestion returns false, GetActivityStreamsQuestion + // will return an arbitrary value. + GetActivityStreamsQuestion() ActivityStreamsQuestion + // GetActivityStreamsRead returns the value of this property. When + // IsActivityStreamsRead returns false, GetActivityStreamsRead will + // return an arbitrary value. + GetActivityStreamsRead() ActivityStreamsRead + // GetActivityStreamsReject returns the value of this property. When + // IsActivityStreamsReject returns false, GetActivityStreamsReject + // will return an arbitrary value. + GetActivityStreamsReject() ActivityStreamsReject + // GetActivityStreamsRelationship returns the value of this property. When + // IsActivityStreamsRelationship returns false, + // GetActivityStreamsRelationship will return an arbitrary value. + GetActivityStreamsRelationship() ActivityStreamsRelationship + // GetActivityStreamsRemove returns the value of this property. When + // IsActivityStreamsRemove returns false, GetActivityStreamsRemove + // will return an arbitrary value. + GetActivityStreamsRemove() ActivityStreamsRemove + // GetActivityStreamsService returns the value of this property. When + // IsActivityStreamsService returns false, GetActivityStreamsService + // will return an arbitrary value. + GetActivityStreamsService() ActivityStreamsService + // GetActivityStreamsTentativeAccept returns the value of this property. + // When IsActivityStreamsTentativeAccept returns false, + // GetActivityStreamsTentativeAccept will return an arbitrary value. + GetActivityStreamsTentativeAccept() ActivityStreamsTentativeAccept + // GetActivityStreamsTentativeReject returns the value of this property. + // When IsActivityStreamsTentativeReject returns false, + // GetActivityStreamsTentativeReject will return an arbitrary value. + GetActivityStreamsTentativeReject() ActivityStreamsTentativeReject + // GetActivityStreamsTombstone returns the value of this property. When + // IsActivityStreamsTombstone returns false, + // GetActivityStreamsTombstone will return an arbitrary value. + GetActivityStreamsTombstone() ActivityStreamsTombstone + // GetActivityStreamsTravel returns the value of this property. When + // IsActivityStreamsTravel returns false, GetActivityStreamsTravel + // will return an arbitrary value. + GetActivityStreamsTravel() ActivityStreamsTravel + // GetActivityStreamsUndo returns the value of this property. When + // IsActivityStreamsUndo returns false, GetActivityStreamsUndo will + // return an arbitrary value. + GetActivityStreamsUndo() ActivityStreamsUndo + // GetActivityStreamsUpdate returns the value of this property. When + // IsActivityStreamsUpdate returns false, GetActivityStreamsUpdate + // will return an arbitrary value. + GetActivityStreamsUpdate() ActivityStreamsUpdate + // GetActivityStreamsVideo returns the value of this property. When + // IsActivityStreamsVideo returns false, GetActivityStreamsVideo will + // return an arbitrary value. + GetActivityStreamsVideo() ActivityStreamsVideo + // GetActivityStreamsView returns the value of this property. When + // IsActivityStreamsView returns false, GetActivityStreamsView will + // return an arbitrary value. + GetActivityStreamsView() ActivityStreamsView + // GetForgeFedBranch returns the value of this property. When + // IsForgeFedBranch returns false, GetForgeFedBranch will return an + // arbitrary value. + GetForgeFedBranch() ForgeFedBranch + // GetForgeFedCommit returns the value of this property. When + // IsForgeFedCommit returns false, GetForgeFedCommit will return an + // arbitrary value. + GetForgeFedCommit() ForgeFedCommit + // GetForgeFedPush returns the value of this property. When IsForgeFedPush + // returns false, GetForgeFedPush will return an arbitrary value. + GetForgeFedPush() ForgeFedPush + // GetForgeFedRepository returns the value of this property. When + // IsForgeFedRepository returns false, GetForgeFedRepository will + // return an arbitrary value. + GetForgeFedRepository() ForgeFedRepository + // GetForgeFedTicket returns the value of this property. When + // IsForgeFedTicket returns false, GetForgeFedTicket will return an + // arbitrary value. + GetForgeFedTicket() ForgeFedTicket + // GetForgeFedTicketDependency returns the value of this property. When + // IsForgeFedTicketDependency returns false, + // GetForgeFedTicketDependency will return an arbitrary value. + GetForgeFedTicketDependency() ForgeFedTicketDependency + // GetIRI returns the IRI of this property. When IsIRI returns false, + // GetIRI will return an arbitrary value. + GetIRI() *url.URL + // GetTootEmoji returns the value of this property. When IsTootEmoji + // returns false, GetTootEmoji will return an arbitrary value. + GetTootEmoji() TootEmoji + // GetTootIdentityProof returns the value of this property. When + // IsTootIdentityProof returns false, GetTootIdentityProof will return + // an arbitrary value. + GetTootIdentityProof() TootIdentityProof + // GetType returns the value in this property as a Type. Returns nil if + // the value is not an ActivityStreams type, such as an IRI or another + // value. + GetType() Type + // HasAny returns true if any of the different values is set. + HasAny() bool + // IsActivityStreamsAccept returns true if this property has a type of + // "Accept". When true, use the GetActivityStreamsAccept and + // SetActivityStreamsAccept methods to access and set this property. + IsActivityStreamsAccept() bool + // IsActivityStreamsActivity returns true if this property has a type of + // "Activity". When true, use the GetActivityStreamsActivity and + // SetActivityStreamsActivity methods to access and set this property. + IsActivityStreamsActivity() bool + // IsActivityStreamsAdd returns true if this property has a type of "Add". + // When true, use the GetActivityStreamsAdd and SetActivityStreamsAdd + // methods to access and set this property. + IsActivityStreamsAdd() bool + // IsActivityStreamsAnnounce returns true if this property has a type of + // "Announce". When true, use the GetActivityStreamsAnnounce and + // SetActivityStreamsAnnounce methods to access and set this property. + IsActivityStreamsAnnounce() bool + // IsActivityStreamsApplication returns true if this property has a type + // of "Application". When true, use the GetActivityStreamsApplication + // and SetActivityStreamsApplication methods to access and set this + // property. + IsActivityStreamsApplication() bool + // IsActivityStreamsArrive returns true if this property has a type of + // "Arrive". When true, use the GetActivityStreamsArrive and + // SetActivityStreamsArrive methods to access and set this property. + IsActivityStreamsArrive() bool + // IsActivityStreamsArticle returns true if this property has a type of + // "Article". When true, use the GetActivityStreamsArticle and + // SetActivityStreamsArticle methods to access and set this property. + IsActivityStreamsArticle() bool + // IsActivityStreamsAudio returns true if this property has a type of + // "Audio". When true, use the GetActivityStreamsAudio and + // SetActivityStreamsAudio methods to access and set this property. + IsActivityStreamsAudio() bool + // IsActivityStreamsBlock returns true if this property has a type of + // "Block". When true, use the GetActivityStreamsBlock and + // SetActivityStreamsBlock methods to access and set this property. + IsActivityStreamsBlock() bool + // IsActivityStreamsCollection returns true if this property has a type of + // "Collection". When true, use the GetActivityStreamsCollection and + // SetActivityStreamsCollection methods to access and set this + // property. + IsActivityStreamsCollection() bool + // IsActivityStreamsCollectionPage returns true if this property has a + // type of "CollectionPage". When true, use the + // GetActivityStreamsCollectionPage and + // SetActivityStreamsCollectionPage methods to access and set this + // property. + IsActivityStreamsCollectionPage() bool + // IsActivityStreamsCreate returns true if this property has a type of + // "Create". When true, use the GetActivityStreamsCreate and + // SetActivityStreamsCreate methods to access and set this property. + IsActivityStreamsCreate() bool + // IsActivityStreamsDelete returns true if this property has a type of + // "Delete". When true, use the GetActivityStreamsDelete and + // SetActivityStreamsDelete methods to access and set this property. + IsActivityStreamsDelete() bool + // IsActivityStreamsDislike returns true if this property has a type of + // "Dislike". When true, use the GetActivityStreamsDislike and + // SetActivityStreamsDislike methods to access and set this property. + IsActivityStreamsDislike() bool + // IsActivityStreamsDocument returns true if this property has a type of + // "Document". When true, use the GetActivityStreamsDocument and + // SetActivityStreamsDocument methods to access and set this property. + IsActivityStreamsDocument() bool + // IsActivityStreamsEvent returns true if this property has a type of + // "Event". When true, use the GetActivityStreamsEvent and + // SetActivityStreamsEvent methods to access and set this property. + IsActivityStreamsEvent() bool + // IsActivityStreamsFlag returns true if this property has a type of + // "Flag". When true, use the GetActivityStreamsFlag and + // SetActivityStreamsFlag methods to access and set this property. + IsActivityStreamsFlag() bool + // IsActivityStreamsFollow returns true if this property has a type of + // "Follow". When true, use the GetActivityStreamsFollow and + // SetActivityStreamsFollow methods to access and set this property. + IsActivityStreamsFollow() bool + // IsActivityStreamsGroup returns true if this property has a type of + // "Group". When true, use the GetActivityStreamsGroup and + // SetActivityStreamsGroup methods to access and set this property. + IsActivityStreamsGroup() bool + // IsActivityStreamsIgnore returns true if this property has a type of + // "Ignore". When true, use the GetActivityStreamsIgnore and + // SetActivityStreamsIgnore methods to access and set this property. + IsActivityStreamsIgnore() bool + // IsActivityStreamsImage returns true if this property has a type of + // "Image". When true, use the GetActivityStreamsImage and + // SetActivityStreamsImage methods to access and set this property. + IsActivityStreamsImage() bool + // IsActivityStreamsIntransitiveActivity returns true if this property has + // a type of "IntransitiveActivity". When true, use the + // GetActivityStreamsIntransitiveActivity and + // SetActivityStreamsIntransitiveActivity methods to access and set + // this property. + IsActivityStreamsIntransitiveActivity() bool + // IsActivityStreamsInvite returns true if this property has a type of + // "Invite". When true, use the GetActivityStreamsInvite and + // SetActivityStreamsInvite methods to access and set this property. + IsActivityStreamsInvite() bool + // IsActivityStreamsJoin returns true if this property has a type of + // "Join". When true, use the GetActivityStreamsJoin and + // SetActivityStreamsJoin methods to access and set this property. + IsActivityStreamsJoin() bool + // IsActivityStreamsLeave returns true if this property has a type of + // "Leave". When true, use the GetActivityStreamsLeave and + // SetActivityStreamsLeave methods to access and set this property. + IsActivityStreamsLeave() bool + // IsActivityStreamsLike returns true if this property has a type of + // "Like". When true, use the GetActivityStreamsLike and + // SetActivityStreamsLike methods to access and set this property. + IsActivityStreamsLike() bool + // IsActivityStreamsListen returns true if this property has a type of + // "Listen". When true, use the GetActivityStreamsListen and + // SetActivityStreamsListen methods to access and set this property. + IsActivityStreamsListen() bool + // IsActivityStreamsMove returns true if this property has a type of + // "Move". When true, use the GetActivityStreamsMove and + // SetActivityStreamsMove methods to access and set this property. + IsActivityStreamsMove() bool + // IsActivityStreamsNote returns true if this property has a type of + // "Note". When true, use the GetActivityStreamsNote and + // SetActivityStreamsNote methods to access and set this property. + IsActivityStreamsNote() bool + // IsActivityStreamsObject returns true if this property has a type of + // "Object". When true, use the GetActivityStreamsObject and + // SetActivityStreamsObject methods to access and set this property. + IsActivityStreamsObject() bool + // IsActivityStreamsOffer returns true if this property has a type of + // "Offer". When true, use the GetActivityStreamsOffer and + // SetActivityStreamsOffer methods to access and set this property. + IsActivityStreamsOffer() bool + // IsActivityStreamsOrderedCollection returns true if this property has a + // type of "OrderedCollection". When true, use the + // GetActivityStreamsOrderedCollection and + // SetActivityStreamsOrderedCollection methods to access and set this + // property. + IsActivityStreamsOrderedCollection() bool + // IsActivityStreamsOrderedCollectionPage returns true if this property + // has a type of "OrderedCollectionPage". When true, use the + // GetActivityStreamsOrderedCollectionPage and + // SetActivityStreamsOrderedCollectionPage methods to access and set + // this property. + IsActivityStreamsOrderedCollectionPage() bool + // IsActivityStreamsOrganization returns true if this property has a type + // of "Organization". When true, use the + // GetActivityStreamsOrganization and SetActivityStreamsOrganization + // methods to access and set this property. + IsActivityStreamsOrganization() bool + // IsActivityStreamsPage returns true if this property has a type of + // "Page". When true, use the GetActivityStreamsPage and + // SetActivityStreamsPage methods to access and set this property. + IsActivityStreamsPage() bool + // IsActivityStreamsPerson returns true if this property has a type of + // "Person". When true, use the GetActivityStreamsPerson and + // SetActivityStreamsPerson methods to access and set this property. + IsActivityStreamsPerson() bool + // IsActivityStreamsPlace returns true if this property has a type of + // "Place". When true, use the GetActivityStreamsPlace and + // SetActivityStreamsPlace methods to access and set this property. + IsActivityStreamsPlace() bool + // IsActivityStreamsProfile returns true if this property has a type of + // "Profile". When true, use the GetActivityStreamsProfile and + // SetActivityStreamsProfile methods to access and set this property. + IsActivityStreamsProfile() bool + // IsActivityStreamsQuestion returns true if this property has a type of + // "Question". When true, use the GetActivityStreamsQuestion and + // SetActivityStreamsQuestion methods to access and set this property. + IsActivityStreamsQuestion() bool + // IsActivityStreamsRead returns true if this property has a type of + // "Read". When true, use the GetActivityStreamsRead and + // SetActivityStreamsRead methods to access and set this property. + IsActivityStreamsRead() bool + // IsActivityStreamsReject returns true if this property has a type of + // "Reject". When true, use the GetActivityStreamsReject and + // SetActivityStreamsReject methods to access and set this property. + IsActivityStreamsReject() bool + // IsActivityStreamsRelationship returns true if this property has a type + // of "Relationship". When true, use the + // GetActivityStreamsRelationship and SetActivityStreamsRelationship + // methods to access and set this property. + IsActivityStreamsRelationship() bool + // IsActivityStreamsRemove returns true if this property has a type of + // "Remove". When true, use the GetActivityStreamsRemove and + // SetActivityStreamsRemove methods to access and set this property. + IsActivityStreamsRemove() bool + // IsActivityStreamsService returns true if this property has a type of + // "Service". When true, use the GetActivityStreamsService and + // SetActivityStreamsService methods to access and set this property. + IsActivityStreamsService() bool + // IsActivityStreamsTentativeAccept returns true if this property has a + // type of "TentativeAccept". When true, use the + // GetActivityStreamsTentativeAccept and + // SetActivityStreamsTentativeAccept methods to access and set this + // property. + IsActivityStreamsTentativeAccept() bool + // IsActivityStreamsTentativeReject returns true if this property has a + // type of "TentativeReject". When true, use the + // GetActivityStreamsTentativeReject and + // SetActivityStreamsTentativeReject methods to access and set this + // property. + IsActivityStreamsTentativeReject() bool + // IsActivityStreamsTombstone returns true if this property has a type of + // "Tombstone". When true, use the GetActivityStreamsTombstone and + // SetActivityStreamsTombstone methods to access and set this property. + IsActivityStreamsTombstone() bool + // IsActivityStreamsTravel returns true if this property has a type of + // "Travel". When true, use the GetActivityStreamsTravel and + // SetActivityStreamsTravel methods to access and set this property. + IsActivityStreamsTravel() bool + // IsActivityStreamsUndo returns true if this property has a type of + // "Undo". When true, use the GetActivityStreamsUndo and + // SetActivityStreamsUndo methods to access and set this property. + IsActivityStreamsUndo() bool + // IsActivityStreamsUpdate returns true if this property has a type of + // "Update". When true, use the GetActivityStreamsUpdate and + // SetActivityStreamsUpdate methods to access and set this property. + IsActivityStreamsUpdate() bool + // IsActivityStreamsVideo returns true if this property has a type of + // "Video". When true, use the GetActivityStreamsVideo and + // SetActivityStreamsVideo methods to access and set this property. + IsActivityStreamsVideo() bool + // IsActivityStreamsView returns true if this property has a type of + // "View". When true, use the GetActivityStreamsView and + // SetActivityStreamsView methods to access and set this property. + IsActivityStreamsView() bool + // IsForgeFedBranch returns true if this property has a type of "Branch". + // When true, use the GetForgeFedBranch and SetForgeFedBranch methods + // to access and set this property. + IsForgeFedBranch() bool + // IsForgeFedCommit returns true if this property has a type of "Commit". + // When true, use the GetForgeFedCommit and SetForgeFedCommit methods + // to access and set this property. + IsForgeFedCommit() bool + // IsForgeFedPush returns true if this property has a type of "Push". When + // true, use the GetForgeFedPush and SetForgeFedPush methods to access + // and set this property. + IsForgeFedPush() bool + // IsForgeFedRepository returns true if this property has a type of + // "Repository". When true, use the GetForgeFedRepository and + // SetForgeFedRepository methods to access and set this property. + IsForgeFedRepository() bool + // IsForgeFedTicket returns true if this property has a type of "Ticket". + // When true, use the GetForgeFedTicket and SetForgeFedTicket methods + // to access and set this property. + IsForgeFedTicket() bool + // IsForgeFedTicketDependency returns true if this property has a type of + // "TicketDependency". When true, use the GetForgeFedTicketDependency + // and SetForgeFedTicketDependency methods to access and set this + // property. + IsForgeFedTicketDependency() bool + // IsIRI returns true if this property is an IRI. When true, use GetIRI + // and SetIRI to access and set this property + IsIRI() bool + // IsTootEmoji returns true if this property has a type of "Emoji". When + // true, use the GetTootEmoji and SetTootEmoji methods to access and + // set this property. + IsTootEmoji() bool + // IsTootIdentityProof returns true if this property has a type of + // "IdentityProof". When true, use the GetTootIdentityProof and + // SetTootIdentityProof methods to access and set this property. + IsTootIdentityProof() bool + // JSONLDContext returns the JSONLD URIs required in the context string + // for this property and the specific values that are set. The value + // in the map is the alias used to import the property's value or + // values. + JSONLDContext() map[string]string + // KindIndex computes an arbitrary value for indexing this kind of value. + // This is a leaky API detail only for folks looking to replace the + // go-fed implementation. Applications should not use this method. + KindIndex() int + // LessThan compares two instances of this property with an arbitrary but + // stable comparison. Applications should not use this because it is + // only meant to help alternative implementations to go-fed to be able + // to normalize nonfunctional properties. + LessThan(o ForgeFedTracksTicketsForPropertyIterator) bool + // Name returns the name of this property: "ForgeFedTracksTicketsFor". + Name() string + // Next returns the next iterator, or nil if there is no next iterator. + Next() ForgeFedTracksTicketsForPropertyIterator + // Prev returns the previous iterator, or nil if there is no previous + // iterator. + Prev() ForgeFedTracksTicketsForPropertyIterator + // SetActivityStreamsAccept sets the value of this property. Calling + // IsActivityStreamsAccept afterwards returns true. + SetActivityStreamsAccept(v ActivityStreamsAccept) + // SetActivityStreamsActivity sets the value of this property. Calling + // IsActivityStreamsActivity afterwards returns true. + SetActivityStreamsActivity(v ActivityStreamsActivity) + // SetActivityStreamsAdd sets the value of this property. Calling + // IsActivityStreamsAdd afterwards returns true. + SetActivityStreamsAdd(v ActivityStreamsAdd) + // SetActivityStreamsAnnounce sets the value of this property. Calling + // IsActivityStreamsAnnounce afterwards returns true. + SetActivityStreamsAnnounce(v ActivityStreamsAnnounce) + // SetActivityStreamsApplication sets the value of this property. Calling + // IsActivityStreamsApplication afterwards returns true. + SetActivityStreamsApplication(v ActivityStreamsApplication) + // SetActivityStreamsArrive sets the value of this property. Calling + // IsActivityStreamsArrive afterwards returns true. + SetActivityStreamsArrive(v ActivityStreamsArrive) + // SetActivityStreamsArticle sets the value of this property. Calling + // IsActivityStreamsArticle afterwards returns true. + SetActivityStreamsArticle(v ActivityStreamsArticle) + // SetActivityStreamsAudio sets the value of this property. Calling + // IsActivityStreamsAudio afterwards returns true. + SetActivityStreamsAudio(v ActivityStreamsAudio) + // SetActivityStreamsBlock sets the value of this property. Calling + // IsActivityStreamsBlock afterwards returns true. + SetActivityStreamsBlock(v ActivityStreamsBlock) + // SetActivityStreamsCollection sets the value of this property. Calling + // IsActivityStreamsCollection afterwards returns true. + SetActivityStreamsCollection(v ActivityStreamsCollection) + // SetActivityStreamsCollectionPage sets the value of this property. + // Calling IsActivityStreamsCollectionPage afterwards returns true. + SetActivityStreamsCollectionPage(v ActivityStreamsCollectionPage) + // SetActivityStreamsCreate sets the value of this property. Calling + // IsActivityStreamsCreate afterwards returns true. + SetActivityStreamsCreate(v ActivityStreamsCreate) + // SetActivityStreamsDelete sets the value of this property. Calling + // IsActivityStreamsDelete afterwards returns true. + SetActivityStreamsDelete(v ActivityStreamsDelete) + // SetActivityStreamsDislike sets the value of this property. Calling + // IsActivityStreamsDislike afterwards returns true. + SetActivityStreamsDislike(v ActivityStreamsDislike) + // SetActivityStreamsDocument sets the value of this property. Calling + // IsActivityStreamsDocument afterwards returns true. + SetActivityStreamsDocument(v ActivityStreamsDocument) + // SetActivityStreamsEvent sets the value of this property. Calling + // IsActivityStreamsEvent afterwards returns true. + SetActivityStreamsEvent(v ActivityStreamsEvent) + // SetActivityStreamsFlag sets the value of this property. Calling + // IsActivityStreamsFlag afterwards returns true. + SetActivityStreamsFlag(v ActivityStreamsFlag) + // SetActivityStreamsFollow sets the value of this property. Calling + // IsActivityStreamsFollow afterwards returns true. + SetActivityStreamsFollow(v ActivityStreamsFollow) + // SetActivityStreamsGroup sets the value of this property. Calling + // IsActivityStreamsGroup afterwards returns true. + SetActivityStreamsGroup(v ActivityStreamsGroup) + // SetActivityStreamsIgnore sets the value of this property. Calling + // IsActivityStreamsIgnore afterwards returns true. + SetActivityStreamsIgnore(v ActivityStreamsIgnore) + // SetActivityStreamsImage sets the value of this property. Calling + // IsActivityStreamsImage afterwards returns true. + SetActivityStreamsImage(v ActivityStreamsImage) + // SetActivityStreamsIntransitiveActivity sets the value of this property. + // Calling IsActivityStreamsIntransitiveActivity afterwards returns + // true. + SetActivityStreamsIntransitiveActivity(v ActivityStreamsIntransitiveActivity) + // SetActivityStreamsInvite sets the value of this property. Calling + // IsActivityStreamsInvite afterwards returns true. + SetActivityStreamsInvite(v ActivityStreamsInvite) + // SetActivityStreamsJoin sets the value of this property. Calling + // IsActivityStreamsJoin afterwards returns true. + SetActivityStreamsJoin(v ActivityStreamsJoin) + // SetActivityStreamsLeave sets the value of this property. Calling + // IsActivityStreamsLeave afterwards returns true. + SetActivityStreamsLeave(v ActivityStreamsLeave) + // SetActivityStreamsLike sets the value of this property. Calling + // IsActivityStreamsLike afterwards returns true. + SetActivityStreamsLike(v ActivityStreamsLike) + // SetActivityStreamsListen sets the value of this property. Calling + // IsActivityStreamsListen afterwards returns true. + SetActivityStreamsListen(v ActivityStreamsListen) + // SetActivityStreamsMove sets the value of this property. Calling + // IsActivityStreamsMove afterwards returns true. + SetActivityStreamsMove(v ActivityStreamsMove) + // SetActivityStreamsNote sets the value of this property. Calling + // IsActivityStreamsNote afterwards returns true. + SetActivityStreamsNote(v ActivityStreamsNote) + // SetActivityStreamsObject sets the value of this property. Calling + // IsActivityStreamsObject afterwards returns true. + SetActivityStreamsObject(v ActivityStreamsObject) + // SetActivityStreamsOffer sets the value of this property. Calling + // IsActivityStreamsOffer afterwards returns true. + SetActivityStreamsOffer(v ActivityStreamsOffer) + // SetActivityStreamsOrderedCollection sets the value of this property. + // Calling IsActivityStreamsOrderedCollection afterwards returns true. + SetActivityStreamsOrderedCollection(v ActivityStreamsOrderedCollection) + // SetActivityStreamsOrderedCollectionPage sets the value of this + // property. Calling IsActivityStreamsOrderedCollectionPage afterwards + // returns true. + SetActivityStreamsOrderedCollectionPage(v ActivityStreamsOrderedCollectionPage) + // SetActivityStreamsOrganization sets the value of this property. Calling + // IsActivityStreamsOrganization afterwards returns true. + SetActivityStreamsOrganization(v ActivityStreamsOrganization) + // SetActivityStreamsPage sets the value of this property. Calling + // IsActivityStreamsPage afterwards returns true. + SetActivityStreamsPage(v ActivityStreamsPage) + // SetActivityStreamsPerson sets the value of this property. Calling + // IsActivityStreamsPerson afterwards returns true. + SetActivityStreamsPerson(v ActivityStreamsPerson) + // SetActivityStreamsPlace sets the value of this property. Calling + // IsActivityStreamsPlace afterwards returns true. + SetActivityStreamsPlace(v ActivityStreamsPlace) + // SetActivityStreamsProfile sets the value of this property. Calling + // IsActivityStreamsProfile afterwards returns true. + SetActivityStreamsProfile(v ActivityStreamsProfile) + // SetActivityStreamsQuestion sets the value of this property. Calling + // IsActivityStreamsQuestion afterwards returns true. + SetActivityStreamsQuestion(v ActivityStreamsQuestion) + // SetActivityStreamsRead sets the value of this property. Calling + // IsActivityStreamsRead afterwards returns true. + SetActivityStreamsRead(v ActivityStreamsRead) + // SetActivityStreamsReject sets the value of this property. Calling + // IsActivityStreamsReject afterwards returns true. + SetActivityStreamsReject(v ActivityStreamsReject) + // SetActivityStreamsRelationship sets the value of this property. Calling + // IsActivityStreamsRelationship afterwards returns true. + SetActivityStreamsRelationship(v ActivityStreamsRelationship) + // SetActivityStreamsRemove sets the value of this property. Calling + // IsActivityStreamsRemove afterwards returns true. + SetActivityStreamsRemove(v ActivityStreamsRemove) + // SetActivityStreamsService sets the value of this property. Calling + // IsActivityStreamsService afterwards returns true. + SetActivityStreamsService(v ActivityStreamsService) + // SetActivityStreamsTentativeAccept sets the value of this property. + // Calling IsActivityStreamsTentativeAccept afterwards returns true. + SetActivityStreamsTentativeAccept(v ActivityStreamsTentativeAccept) + // SetActivityStreamsTentativeReject sets the value of this property. + // Calling IsActivityStreamsTentativeReject afterwards returns true. + SetActivityStreamsTentativeReject(v ActivityStreamsTentativeReject) + // SetActivityStreamsTombstone sets the value of this property. Calling + // IsActivityStreamsTombstone afterwards returns true. + SetActivityStreamsTombstone(v ActivityStreamsTombstone) + // SetActivityStreamsTravel sets the value of this property. Calling + // IsActivityStreamsTravel afterwards returns true. + SetActivityStreamsTravel(v ActivityStreamsTravel) + // SetActivityStreamsUndo sets the value of this property. Calling + // IsActivityStreamsUndo afterwards returns true. + SetActivityStreamsUndo(v ActivityStreamsUndo) + // SetActivityStreamsUpdate sets the value of this property. Calling + // IsActivityStreamsUpdate afterwards returns true. + SetActivityStreamsUpdate(v ActivityStreamsUpdate) + // SetActivityStreamsVideo sets the value of this property. Calling + // IsActivityStreamsVideo afterwards returns true. + SetActivityStreamsVideo(v ActivityStreamsVideo) + // SetActivityStreamsView sets the value of this property. Calling + // IsActivityStreamsView afterwards returns true. + SetActivityStreamsView(v ActivityStreamsView) + // SetForgeFedBranch sets the value of this property. Calling + // IsForgeFedBranch afterwards returns true. + SetForgeFedBranch(v ForgeFedBranch) + // SetForgeFedCommit sets the value of this property. Calling + // IsForgeFedCommit afterwards returns true. + SetForgeFedCommit(v ForgeFedCommit) + // SetForgeFedPush sets the value of this property. Calling IsForgeFedPush + // afterwards returns true. + SetForgeFedPush(v ForgeFedPush) + // SetForgeFedRepository sets the value of this property. Calling + // IsForgeFedRepository afterwards returns true. + SetForgeFedRepository(v ForgeFedRepository) + // SetForgeFedTicket sets the value of this property. Calling + // IsForgeFedTicket afterwards returns true. + SetForgeFedTicket(v ForgeFedTicket) + // SetForgeFedTicketDependency sets the value of this property. Calling + // IsForgeFedTicketDependency afterwards returns true. + SetForgeFedTicketDependency(v ForgeFedTicketDependency) + // SetIRI sets the value of this property. Calling IsIRI afterwards + // returns true. + SetIRI(v *url.URL) + // SetTootEmoji sets the value of this property. Calling IsTootEmoji + // afterwards returns true. + SetTootEmoji(v TootEmoji) + // SetTootIdentityProof sets the value of this property. Calling + // IsTootIdentityProof afterwards returns true. + SetTootIdentityProof(v TootIdentityProof) + // SetType attempts to set the property for the arbitrary type. Returns an + // error if it is not a valid type to set on this property. + SetType(t Type) error +} + +// Identifies objects for which which this ticket tracker tracks tickets. When +// you’d like to open a ticket against those objects, you can send them to +// this tracker. +// +// { +// "@context": [ +// "https://www.w3.org/ns/activitystreams", +// "https://forgefed.peers.community/ns" +// ], +// "id": "https://bugs.example/treesim", +// "tracksTicketsFor": [ +// "https://dev.example/aviva/liblsystem", +// "https://dev.example/aviva/3d-tree-models", +// "https://dev.example/aviva/treesim" +// ], +// "type": "Project" +// } +type ForgeFedTracksTicketsForProperty interface { + // AppendActivityStreamsAccept appends a Accept value to the back of a + // list of the property "tracksTicketsFor". Invalidates iterators that + // are traversing using Prev. + AppendActivityStreamsAccept(v ActivityStreamsAccept) + // AppendActivityStreamsActivity appends a Activity value to the back of a + // list of the property "tracksTicketsFor". Invalidates iterators that + // are traversing using Prev. + AppendActivityStreamsActivity(v ActivityStreamsActivity) + // AppendActivityStreamsAdd appends a Add value to the back of a list of + // the property "tracksTicketsFor". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsAdd(v ActivityStreamsAdd) + // AppendActivityStreamsAnnounce appends a Announce value to the back of a + // list of the property "tracksTicketsFor". Invalidates iterators that + // are traversing using Prev. + AppendActivityStreamsAnnounce(v ActivityStreamsAnnounce) + // AppendActivityStreamsApplication appends a Application value to the + // back of a list of the property "tracksTicketsFor". Invalidates + // iterators that are traversing using Prev. + AppendActivityStreamsApplication(v ActivityStreamsApplication) + // AppendActivityStreamsArrive appends a Arrive value to the back of a + // list of the property "tracksTicketsFor". Invalidates iterators that + // are traversing using Prev. + AppendActivityStreamsArrive(v ActivityStreamsArrive) + // AppendActivityStreamsArticle appends a Article value to the back of a + // list of the property "tracksTicketsFor". Invalidates iterators that + // are traversing using Prev. + AppendActivityStreamsArticle(v ActivityStreamsArticle) + // AppendActivityStreamsAudio appends a Audio value to the back of a list + // of the property "tracksTicketsFor". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsAudio(v ActivityStreamsAudio) + // AppendActivityStreamsBlock appends a Block value to the back of a list + // of the property "tracksTicketsFor". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsBlock(v ActivityStreamsBlock) + // AppendActivityStreamsCollection appends a Collection value to the back + // of a list of the property "tracksTicketsFor". Invalidates iterators + // that are traversing using Prev. + AppendActivityStreamsCollection(v ActivityStreamsCollection) + // AppendActivityStreamsCollectionPage appends a CollectionPage value to + // the back of a list of the property "tracksTicketsFor". Invalidates + // iterators that are traversing using Prev. + AppendActivityStreamsCollectionPage(v ActivityStreamsCollectionPage) + // AppendActivityStreamsCreate appends a Create value to the back of a + // list of the property "tracksTicketsFor". Invalidates iterators that + // are traversing using Prev. + AppendActivityStreamsCreate(v ActivityStreamsCreate) + // AppendActivityStreamsDelete appends a Delete value to the back of a + // list of the property "tracksTicketsFor". Invalidates iterators that + // are traversing using Prev. + AppendActivityStreamsDelete(v ActivityStreamsDelete) + // AppendActivityStreamsDislike appends a Dislike value to the back of a + // list of the property "tracksTicketsFor". Invalidates iterators that + // are traversing using Prev. + AppendActivityStreamsDislike(v ActivityStreamsDislike) + // AppendActivityStreamsDocument appends a Document value to the back of a + // list of the property "tracksTicketsFor". Invalidates iterators that + // are traversing using Prev. + AppendActivityStreamsDocument(v ActivityStreamsDocument) + // AppendActivityStreamsEvent appends a Event value to the back of a list + // of the property "tracksTicketsFor". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsEvent(v ActivityStreamsEvent) + // AppendActivityStreamsFlag appends a Flag value to the back of a list of + // the property "tracksTicketsFor". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsFlag(v ActivityStreamsFlag) + // AppendActivityStreamsFollow appends a Follow value to the back of a + // list of the property "tracksTicketsFor". Invalidates iterators that + // are traversing using Prev. + AppendActivityStreamsFollow(v ActivityStreamsFollow) + // AppendActivityStreamsGroup appends a Group value to the back of a list + // of the property "tracksTicketsFor". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsGroup(v ActivityStreamsGroup) + // AppendActivityStreamsIgnore appends a Ignore value to the back of a + // list of the property "tracksTicketsFor". Invalidates iterators that + // are traversing using Prev. + AppendActivityStreamsIgnore(v ActivityStreamsIgnore) + // AppendActivityStreamsImage appends a Image value to the back of a list + // of the property "tracksTicketsFor". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsImage(v ActivityStreamsImage) + // AppendActivityStreamsIntransitiveActivity appends a + // IntransitiveActivity value to the back of a list of the property + // "tracksTicketsFor". Invalidates iterators that are traversing using + // Prev. + AppendActivityStreamsIntransitiveActivity(v ActivityStreamsIntransitiveActivity) + // AppendActivityStreamsInvite appends a Invite value to the back of a + // list of the property "tracksTicketsFor". Invalidates iterators that + // are traversing using Prev. + AppendActivityStreamsInvite(v ActivityStreamsInvite) + // AppendActivityStreamsJoin appends a Join value to the back of a list of + // the property "tracksTicketsFor". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsJoin(v ActivityStreamsJoin) + // AppendActivityStreamsLeave appends a Leave value to the back of a list + // of the property "tracksTicketsFor". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsLeave(v ActivityStreamsLeave) + // AppendActivityStreamsLike appends a Like value to the back of a list of + // the property "tracksTicketsFor". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsLike(v ActivityStreamsLike) + // AppendActivityStreamsListen appends a Listen value to the back of a + // list of the property "tracksTicketsFor". Invalidates iterators that + // are traversing using Prev. + AppendActivityStreamsListen(v ActivityStreamsListen) + // AppendActivityStreamsMove appends a Move value to the back of a list of + // the property "tracksTicketsFor". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsMove(v ActivityStreamsMove) + // AppendActivityStreamsNote appends a Note value to the back of a list of + // the property "tracksTicketsFor". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsNote(v ActivityStreamsNote) + // AppendActivityStreamsObject appends a Object value to the back of a + // list of the property "tracksTicketsFor". Invalidates iterators that + // are traversing using Prev. + AppendActivityStreamsObject(v ActivityStreamsObject) + // AppendActivityStreamsOffer appends a Offer value to the back of a list + // of the property "tracksTicketsFor". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsOffer(v ActivityStreamsOffer) + // AppendActivityStreamsOrderedCollection appends a OrderedCollection + // value to the back of a list of the property "tracksTicketsFor". + // Invalidates iterators that are traversing using Prev. + AppendActivityStreamsOrderedCollection(v ActivityStreamsOrderedCollection) + // AppendActivityStreamsOrderedCollectionPage appends a + // OrderedCollectionPage value to the back of a list of the property + // "tracksTicketsFor". Invalidates iterators that are traversing using + // Prev. + AppendActivityStreamsOrderedCollectionPage(v ActivityStreamsOrderedCollectionPage) + // AppendActivityStreamsOrganization appends a Organization value to the + // back of a list of the property "tracksTicketsFor". Invalidates + // iterators that are traversing using Prev. + AppendActivityStreamsOrganization(v ActivityStreamsOrganization) + // AppendActivityStreamsPage appends a Page value to the back of a list of + // the property "tracksTicketsFor". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsPage(v ActivityStreamsPage) + // AppendActivityStreamsPerson appends a Person value to the back of a + // list of the property "tracksTicketsFor". Invalidates iterators that + // are traversing using Prev. + AppendActivityStreamsPerson(v ActivityStreamsPerson) + // AppendActivityStreamsPlace appends a Place value to the back of a list + // of the property "tracksTicketsFor". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsPlace(v ActivityStreamsPlace) + // AppendActivityStreamsProfile appends a Profile value to the back of a + // list of the property "tracksTicketsFor". Invalidates iterators that + // are traversing using Prev. + AppendActivityStreamsProfile(v ActivityStreamsProfile) + // AppendActivityStreamsQuestion appends a Question value to the back of a + // list of the property "tracksTicketsFor". Invalidates iterators that + // are traversing using Prev. + AppendActivityStreamsQuestion(v ActivityStreamsQuestion) + // AppendActivityStreamsRead appends a Read value to the back of a list of + // the property "tracksTicketsFor". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsRead(v ActivityStreamsRead) + // AppendActivityStreamsReject appends a Reject value to the back of a + // list of the property "tracksTicketsFor". Invalidates iterators that + // are traversing using Prev. + AppendActivityStreamsReject(v ActivityStreamsReject) + // AppendActivityStreamsRelationship appends a Relationship value to the + // back of a list of the property "tracksTicketsFor". Invalidates + // iterators that are traversing using Prev. + AppendActivityStreamsRelationship(v ActivityStreamsRelationship) + // AppendActivityStreamsRemove appends a Remove value to the back of a + // list of the property "tracksTicketsFor". Invalidates iterators that + // are traversing using Prev. + AppendActivityStreamsRemove(v ActivityStreamsRemove) + // AppendActivityStreamsService appends a Service value to the back of a + // list of the property "tracksTicketsFor". Invalidates iterators that + // are traversing using Prev. + AppendActivityStreamsService(v ActivityStreamsService) + // AppendActivityStreamsTentativeAccept appends a TentativeAccept value to + // the back of a list of the property "tracksTicketsFor". Invalidates + // iterators that are traversing using Prev. + AppendActivityStreamsTentativeAccept(v ActivityStreamsTentativeAccept) + // AppendActivityStreamsTentativeReject appends a TentativeReject value to + // the back of a list of the property "tracksTicketsFor". Invalidates + // iterators that are traversing using Prev. + AppendActivityStreamsTentativeReject(v ActivityStreamsTentativeReject) + // AppendActivityStreamsTombstone appends a Tombstone value to the back of + // a list of the property "tracksTicketsFor". Invalidates iterators + // that are traversing using Prev. + AppendActivityStreamsTombstone(v ActivityStreamsTombstone) + // AppendActivityStreamsTravel appends a Travel value to the back of a + // list of the property "tracksTicketsFor". Invalidates iterators that + // are traversing using Prev. + AppendActivityStreamsTravel(v ActivityStreamsTravel) + // AppendActivityStreamsUndo appends a Undo value to the back of a list of + // the property "tracksTicketsFor". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsUndo(v ActivityStreamsUndo) + // AppendActivityStreamsUpdate appends a Update value to the back of a + // list of the property "tracksTicketsFor". Invalidates iterators that + // are traversing using Prev. + AppendActivityStreamsUpdate(v ActivityStreamsUpdate) + // AppendActivityStreamsVideo appends a Video value to the back of a list + // of the property "tracksTicketsFor". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsVideo(v ActivityStreamsVideo) + // AppendActivityStreamsView appends a View value to the back of a list of + // the property "tracksTicketsFor". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsView(v ActivityStreamsView) + // AppendForgeFedBranch appends a Branch value to the back of a list of + // the property "tracksTicketsFor". Invalidates iterators that are + // traversing using Prev. + AppendForgeFedBranch(v ForgeFedBranch) + // AppendForgeFedCommit appends a Commit value to the back of a list of + // the property "tracksTicketsFor". Invalidates iterators that are + // traversing using Prev. + AppendForgeFedCommit(v ForgeFedCommit) + // AppendForgeFedPush appends a Push value to the back of a list of the + // property "tracksTicketsFor". Invalidates iterators that are + // traversing using Prev. + AppendForgeFedPush(v ForgeFedPush) + // AppendForgeFedRepository appends a Repository value to the back of a + // list of the property "tracksTicketsFor". Invalidates iterators that + // are traversing using Prev. + AppendForgeFedRepository(v ForgeFedRepository) + // AppendForgeFedTicket appends a Ticket value to the back of a list of + // the property "tracksTicketsFor". Invalidates iterators that are + // traversing using Prev. + AppendForgeFedTicket(v ForgeFedTicket) + // AppendForgeFedTicketDependency appends a TicketDependency value to the + // back of a list of the property "tracksTicketsFor". Invalidates + // iterators that are traversing using Prev. + AppendForgeFedTicketDependency(v ForgeFedTicketDependency) + // AppendIRI appends an IRI value to the back of a list of the property + // "tracksTicketsFor" + AppendIRI(v *url.URL) + // AppendTootEmoji appends a Emoji value to the back of a list of the + // property "tracksTicketsFor". Invalidates iterators that are + // traversing using Prev. + AppendTootEmoji(v TootEmoji) + // AppendTootIdentityProof appends a IdentityProof value to the back of a + // list of the property "tracksTicketsFor". Invalidates iterators that + // are traversing using Prev. + AppendTootIdentityProof(v TootIdentityProof) + // PrependType prepends an arbitrary type value to the front of a list of + // the property "tracksTicketsFor". Invalidates iterators that are + // traversing using Prev. Returns an error if the type is not a valid + // one to set for this property. + AppendType(t Type) error + // At returns the property value for the specified index. Panics if the + // index is out of bounds. + At(index int) ForgeFedTracksTicketsForPropertyIterator + // Begin returns the first iterator, or nil if empty. Can be used with the + // iterator's Next method and this property's End method to iterate + // from front to back through all values. + Begin() ForgeFedTracksTicketsForPropertyIterator + // Empty returns returns true if there are no elements. + Empty() bool + // End returns beyond-the-last iterator, which is nil. Can be used with + // the iterator's Next method and this property's Begin method to + // iterate from front to back through all values. + End() ForgeFedTracksTicketsForPropertyIterator + // InsertActivityStreamsAccept inserts a Accept value at the specified + // index for a property "tracksTicketsFor". Existing elements at that + // index and higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsAccept(idx int, v ActivityStreamsAccept) + // InsertActivityStreamsActivity inserts a Activity value at the specified + // index for a property "tracksTicketsFor". Existing elements at that + // index and higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsActivity(idx int, v ActivityStreamsActivity) + // InsertActivityStreamsAdd inserts a Add value at the specified index for + // a property "tracksTicketsFor". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsAdd(idx int, v ActivityStreamsAdd) + // InsertActivityStreamsAnnounce inserts a Announce value at the specified + // index for a property "tracksTicketsFor". Existing elements at that + // index and higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsAnnounce(idx int, v ActivityStreamsAnnounce) + // InsertActivityStreamsApplication inserts a Application value at the + // specified index for a property "tracksTicketsFor". Existing + // elements at that index and higher are shifted back once. + // Invalidates all iterators. + InsertActivityStreamsApplication(idx int, v ActivityStreamsApplication) + // InsertActivityStreamsArrive inserts a Arrive value at the specified + // index for a property "tracksTicketsFor". Existing elements at that + // index and higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsArrive(idx int, v ActivityStreamsArrive) + // InsertActivityStreamsArticle inserts a Article value at the specified + // index for a property "tracksTicketsFor". Existing elements at that + // index and higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsArticle(idx int, v ActivityStreamsArticle) + // InsertActivityStreamsAudio inserts a Audio value at the specified index + // for a property "tracksTicketsFor". Existing elements at that index + // and higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsAudio(idx int, v ActivityStreamsAudio) + // InsertActivityStreamsBlock inserts a Block value at the specified index + // for a property "tracksTicketsFor". Existing elements at that index + // and higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsBlock(idx int, v ActivityStreamsBlock) + // InsertActivityStreamsCollection inserts a Collection value at the + // specified index for a property "tracksTicketsFor". Existing + // elements at that index and higher are shifted back once. + // Invalidates all iterators. + InsertActivityStreamsCollection(idx int, v ActivityStreamsCollection) + // InsertActivityStreamsCollectionPage inserts a CollectionPage value at + // the specified index for a property "tracksTicketsFor". Existing + // elements at that index and higher are shifted back once. + // Invalidates all iterators. + InsertActivityStreamsCollectionPage(idx int, v ActivityStreamsCollectionPage) + // InsertActivityStreamsCreate inserts a Create value at the specified + // index for a property "tracksTicketsFor". Existing elements at that + // index and higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsCreate(idx int, v ActivityStreamsCreate) + // InsertActivityStreamsDelete inserts a Delete value at the specified + // index for a property "tracksTicketsFor". Existing elements at that + // index and higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsDelete(idx int, v ActivityStreamsDelete) + // InsertActivityStreamsDislike inserts a Dislike value at the specified + // index for a property "tracksTicketsFor". Existing elements at that + // index and higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsDislike(idx int, v ActivityStreamsDislike) + // InsertActivityStreamsDocument inserts a Document value at the specified + // index for a property "tracksTicketsFor". Existing elements at that + // index and higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsDocument(idx int, v ActivityStreamsDocument) + // InsertActivityStreamsEvent inserts a Event value at the specified index + // for a property "tracksTicketsFor". Existing elements at that index + // and higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsEvent(idx int, v ActivityStreamsEvent) + // InsertActivityStreamsFlag inserts a Flag value at the specified index + // for a property "tracksTicketsFor". Existing elements at that index + // and higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsFlag(idx int, v ActivityStreamsFlag) + // InsertActivityStreamsFollow inserts a Follow value at the specified + // index for a property "tracksTicketsFor". Existing elements at that + // index and higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsFollow(idx int, v ActivityStreamsFollow) + // InsertActivityStreamsGroup inserts a Group value at the specified index + // for a property "tracksTicketsFor". Existing elements at that index + // and higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsGroup(idx int, v ActivityStreamsGroup) + // InsertActivityStreamsIgnore inserts a Ignore value at the specified + // index for a property "tracksTicketsFor". Existing elements at that + // index and higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsIgnore(idx int, v ActivityStreamsIgnore) + // InsertActivityStreamsImage inserts a Image value at the specified index + // for a property "tracksTicketsFor". Existing elements at that index + // and higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsImage(idx int, v ActivityStreamsImage) + // InsertActivityStreamsIntransitiveActivity inserts a + // IntransitiveActivity value at the specified index for a property + // "tracksTicketsFor". Existing elements at that index and higher are + // shifted back once. Invalidates all iterators. + InsertActivityStreamsIntransitiveActivity(idx int, v ActivityStreamsIntransitiveActivity) + // InsertActivityStreamsInvite inserts a Invite value at the specified + // index for a property "tracksTicketsFor". Existing elements at that + // index and higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsInvite(idx int, v ActivityStreamsInvite) + // InsertActivityStreamsJoin inserts a Join value at the specified index + // for a property "tracksTicketsFor". Existing elements at that index + // and higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsJoin(idx int, v ActivityStreamsJoin) + // InsertActivityStreamsLeave inserts a Leave value at the specified index + // for a property "tracksTicketsFor". Existing elements at that index + // and higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsLeave(idx int, v ActivityStreamsLeave) + // InsertActivityStreamsLike inserts a Like value at the specified index + // for a property "tracksTicketsFor". Existing elements at that index + // and higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsLike(idx int, v ActivityStreamsLike) + // InsertActivityStreamsListen inserts a Listen value at the specified + // index for a property "tracksTicketsFor". Existing elements at that + // index and higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsListen(idx int, v ActivityStreamsListen) + // InsertActivityStreamsMove inserts a Move value at the specified index + // for a property "tracksTicketsFor". Existing elements at that index + // and higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsMove(idx int, v ActivityStreamsMove) + // InsertActivityStreamsNote inserts a Note value at the specified index + // for a property "tracksTicketsFor". Existing elements at that index + // and higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsNote(idx int, v ActivityStreamsNote) + // InsertActivityStreamsObject inserts a Object value at the specified + // index for a property "tracksTicketsFor". Existing elements at that + // index and higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsObject(idx int, v ActivityStreamsObject) + // InsertActivityStreamsOffer inserts a Offer value at the specified index + // for a property "tracksTicketsFor". Existing elements at that index + // and higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsOffer(idx int, v ActivityStreamsOffer) + // InsertActivityStreamsOrderedCollection inserts a OrderedCollection + // value at the specified index for a property "tracksTicketsFor". + // Existing elements at that index and higher are shifted back once. + // Invalidates all iterators. + InsertActivityStreamsOrderedCollection(idx int, v ActivityStreamsOrderedCollection) + // InsertActivityStreamsOrderedCollectionPage inserts a + // OrderedCollectionPage value at the specified index for a property + // "tracksTicketsFor". Existing elements at that index and higher are + // shifted back once. Invalidates all iterators. + InsertActivityStreamsOrderedCollectionPage(idx int, v ActivityStreamsOrderedCollectionPage) + // InsertActivityStreamsOrganization inserts a Organization value at the + // specified index for a property "tracksTicketsFor". Existing + // elements at that index and higher are shifted back once. + // Invalidates all iterators. + InsertActivityStreamsOrganization(idx int, v ActivityStreamsOrganization) + // InsertActivityStreamsPage inserts a Page value at the specified index + // for a property "tracksTicketsFor". Existing elements at that index + // and higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsPage(idx int, v ActivityStreamsPage) + // InsertActivityStreamsPerson inserts a Person value at the specified + // index for a property "tracksTicketsFor". Existing elements at that + // index and higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsPerson(idx int, v ActivityStreamsPerson) + // InsertActivityStreamsPlace inserts a Place value at the specified index + // for a property "tracksTicketsFor". Existing elements at that index + // and higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsPlace(idx int, v ActivityStreamsPlace) + // InsertActivityStreamsProfile inserts a Profile value at the specified + // index for a property "tracksTicketsFor". Existing elements at that + // index and higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsProfile(idx int, v ActivityStreamsProfile) + // InsertActivityStreamsQuestion inserts a Question value at the specified + // index for a property "tracksTicketsFor". Existing elements at that + // index and higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsQuestion(idx int, v ActivityStreamsQuestion) + // InsertActivityStreamsRead inserts a Read value at the specified index + // for a property "tracksTicketsFor". Existing elements at that index + // and higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsRead(idx int, v ActivityStreamsRead) + // InsertActivityStreamsReject inserts a Reject value at the specified + // index for a property "tracksTicketsFor". Existing elements at that + // index and higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsReject(idx int, v ActivityStreamsReject) + // InsertActivityStreamsRelationship inserts a Relationship value at the + // specified index for a property "tracksTicketsFor". Existing + // elements at that index and higher are shifted back once. + // Invalidates all iterators. + InsertActivityStreamsRelationship(idx int, v ActivityStreamsRelationship) + // InsertActivityStreamsRemove inserts a Remove value at the specified + // index for a property "tracksTicketsFor". Existing elements at that + // index and higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsRemove(idx int, v ActivityStreamsRemove) + // InsertActivityStreamsService inserts a Service value at the specified + // index for a property "tracksTicketsFor". Existing elements at that + // index and higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsService(idx int, v ActivityStreamsService) + // InsertActivityStreamsTentativeAccept inserts a TentativeAccept value at + // the specified index for a property "tracksTicketsFor". Existing + // elements at that index and higher are shifted back once. + // Invalidates all iterators. + InsertActivityStreamsTentativeAccept(idx int, v ActivityStreamsTentativeAccept) + // InsertActivityStreamsTentativeReject inserts a TentativeReject value at + // the specified index for a property "tracksTicketsFor". Existing + // elements at that index and higher are shifted back once. + // Invalidates all iterators. + InsertActivityStreamsTentativeReject(idx int, v ActivityStreamsTentativeReject) + // InsertActivityStreamsTombstone inserts a Tombstone value at the + // specified index for a property "tracksTicketsFor". Existing + // elements at that index and higher are shifted back once. + // Invalidates all iterators. + InsertActivityStreamsTombstone(idx int, v ActivityStreamsTombstone) + // InsertActivityStreamsTravel inserts a Travel value at the specified + // index for a property "tracksTicketsFor". Existing elements at that + // index and higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsTravel(idx int, v ActivityStreamsTravel) + // InsertActivityStreamsUndo inserts a Undo value at the specified index + // for a property "tracksTicketsFor". Existing elements at that index + // and higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsUndo(idx int, v ActivityStreamsUndo) + // InsertActivityStreamsUpdate inserts a Update value at the specified + // index for a property "tracksTicketsFor". Existing elements at that + // index and higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsUpdate(idx int, v ActivityStreamsUpdate) + // InsertActivityStreamsVideo inserts a Video value at the specified index + // for a property "tracksTicketsFor". Existing elements at that index + // and higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsVideo(idx int, v ActivityStreamsVideo) + // InsertActivityStreamsView inserts a View value at the specified index + // for a property "tracksTicketsFor". Existing elements at that index + // and higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsView(idx int, v ActivityStreamsView) + // InsertForgeFedBranch inserts a Branch value at the specified index for + // a property "tracksTicketsFor". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertForgeFedBranch(idx int, v ForgeFedBranch) + // InsertForgeFedCommit inserts a Commit value at the specified index for + // a property "tracksTicketsFor". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertForgeFedCommit(idx int, v ForgeFedCommit) + // InsertForgeFedPush inserts a Push value at the specified index for a + // property "tracksTicketsFor". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertForgeFedPush(idx int, v ForgeFedPush) + // InsertForgeFedRepository inserts a Repository value at the specified + // index for a property "tracksTicketsFor". Existing elements at that + // index and higher are shifted back once. Invalidates all iterators. + InsertForgeFedRepository(idx int, v ForgeFedRepository) + // InsertForgeFedTicket inserts a Ticket value at the specified index for + // a property "tracksTicketsFor". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertForgeFedTicket(idx int, v ForgeFedTicket) + // InsertForgeFedTicketDependency inserts a TicketDependency value at the + // specified index for a property "tracksTicketsFor". Existing + // elements at that index and higher are shifted back once. + // Invalidates all iterators. + InsertForgeFedTicketDependency(idx int, v ForgeFedTicketDependency) + // Insert inserts an IRI value at the specified index for a property + // "tracksTicketsFor". Existing elements at that index and higher are + // shifted back once. Invalidates all iterators. + InsertIRI(idx int, v *url.URL) + // InsertTootEmoji inserts a Emoji value at the specified index for a + // property "tracksTicketsFor". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertTootEmoji(idx int, v TootEmoji) + // InsertTootIdentityProof inserts a IdentityProof value at the specified + // index for a property "tracksTicketsFor". Existing elements at that + // index and higher are shifted back once. Invalidates all iterators. + InsertTootIdentityProof(idx int, v TootIdentityProof) + // PrependType prepends an arbitrary type value to the front of a list of + // the property "tracksTicketsFor". Invalidates all iterators. Returns + // an error if the type is not a valid one to set for this property. + InsertType(idx int, t Type) error + // JSONLDContext returns the JSONLD URIs required in the context string + // for this property and the specific values that are set. The value + // in the map is the alias used to import the property's value or + // values. + JSONLDContext() map[string]string + // KindIndex computes an arbitrary value for indexing this kind of value. + // This is a leaky API method specifically needed only for alternate + // implementations for go-fed. Applications should not use this + // method. Panics if the index is out of bounds. + KindIndex(idx int) int + // Len returns the number of values that exist for the "tracksTicketsFor" + // property. + Len() (length int) + // Less computes whether another property is less than this one. Mixing + // types results in a consistent but arbitrary ordering + Less(i, j int) bool + // LessThan compares two instances of this property with an arbitrary but + // stable comparison. Applications should not use this because it is + // only meant to help alternative implementations to go-fed to be able + // to normalize nonfunctional properties. + LessThan(o ForgeFedTracksTicketsForProperty) bool + // Name returns the name of this property ("tracksTicketsFor") with any + // alias. + Name() string + // PrependActivityStreamsAccept prepends a Accept value to the front of a + // list of the property "tracksTicketsFor". Invalidates all iterators. + PrependActivityStreamsAccept(v ActivityStreamsAccept) + // PrependActivityStreamsActivity prepends a Activity value to the front + // of a list of the property "tracksTicketsFor". Invalidates all + // iterators. + PrependActivityStreamsActivity(v ActivityStreamsActivity) + // PrependActivityStreamsAdd prepends a Add value to the front of a list + // of the property "tracksTicketsFor". Invalidates all iterators. + PrependActivityStreamsAdd(v ActivityStreamsAdd) + // PrependActivityStreamsAnnounce prepends a Announce value to the front + // of a list of the property "tracksTicketsFor". Invalidates all + // iterators. + PrependActivityStreamsAnnounce(v ActivityStreamsAnnounce) + // PrependActivityStreamsApplication prepends a Application value to the + // front of a list of the property "tracksTicketsFor". Invalidates all + // iterators. + PrependActivityStreamsApplication(v ActivityStreamsApplication) + // PrependActivityStreamsArrive prepends a Arrive value to the front of a + // list of the property "tracksTicketsFor". Invalidates all iterators. + PrependActivityStreamsArrive(v ActivityStreamsArrive) + // PrependActivityStreamsArticle prepends a Article value to the front of + // a list of the property "tracksTicketsFor". Invalidates all + // iterators. + PrependActivityStreamsArticle(v ActivityStreamsArticle) + // PrependActivityStreamsAudio prepends a Audio value to the front of a + // list of the property "tracksTicketsFor". Invalidates all iterators. + PrependActivityStreamsAudio(v ActivityStreamsAudio) + // PrependActivityStreamsBlock prepends a Block value to the front of a + // list of the property "tracksTicketsFor". Invalidates all iterators. + PrependActivityStreamsBlock(v ActivityStreamsBlock) + // PrependActivityStreamsCollection prepends a Collection value to the + // front of a list of the property "tracksTicketsFor". Invalidates all + // iterators. + PrependActivityStreamsCollection(v ActivityStreamsCollection) + // PrependActivityStreamsCollectionPage prepends a CollectionPage value to + // the front of a list of the property "tracksTicketsFor". Invalidates + // all iterators. + PrependActivityStreamsCollectionPage(v ActivityStreamsCollectionPage) + // PrependActivityStreamsCreate prepends a Create value to the front of a + // list of the property "tracksTicketsFor". Invalidates all iterators. + PrependActivityStreamsCreate(v ActivityStreamsCreate) + // PrependActivityStreamsDelete prepends a Delete value to the front of a + // list of the property "tracksTicketsFor". Invalidates all iterators. + PrependActivityStreamsDelete(v ActivityStreamsDelete) + // PrependActivityStreamsDislike prepends a Dislike value to the front of + // a list of the property "tracksTicketsFor". Invalidates all + // iterators. + PrependActivityStreamsDislike(v ActivityStreamsDislike) + // PrependActivityStreamsDocument prepends a Document value to the front + // of a list of the property "tracksTicketsFor". Invalidates all + // iterators. + PrependActivityStreamsDocument(v ActivityStreamsDocument) + // PrependActivityStreamsEvent prepends a Event value to the front of a + // list of the property "tracksTicketsFor". Invalidates all iterators. + PrependActivityStreamsEvent(v ActivityStreamsEvent) + // PrependActivityStreamsFlag prepends a Flag value to the front of a list + // of the property "tracksTicketsFor". Invalidates all iterators. + PrependActivityStreamsFlag(v ActivityStreamsFlag) + // PrependActivityStreamsFollow prepends a Follow value to the front of a + // list of the property "tracksTicketsFor". Invalidates all iterators. + PrependActivityStreamsFollow(v ActivityStreamsFollow) + // PrependActivityStreamsGroup prepends a Group value to the front of a + // list of the property "tracksTicketsFor". Invalidates all iterators. + PrependActivityStreamsGroup(v ActivityStreamsGroup) + // PrependActivityStreamsIgnore prepends a Ignore value to the front of a + // list of the property "tracksTicketsFor". Invalidates all iterators. + PrependActivityStreamsIgnore(v ActivityStreamsIgnore) + // PrependActivityStreamsImage prepends a Image value to the front of a + // list of the property "tracksTicketsFor". Invalidates all iterators. + PrependActivityStreamsImage(v ActivityStreamsImage) + // PrependActivityStreamsIntransitiveActivity prepends a + // IntransitiveActivity value to the front of a list of the property + // "tracksTicketsFor". Invalidates all iterators. + PrependActivityStreamsIntransitiveActivity(v ActivityStreamsIntransitiveActivity) + // PrependActivityStreamsInvite prepends a Invite value to the front of a + // list of the property "tracksTicketsFor". Invalidates all iterators. + PrependActivityStreamsInvite(v ActivityStreamsInvite) + // PrependActivityStreamsJoin prepends a Join value to the front of a list + // of the property "tracksTicketsFor". Invalidates all iterators. + PrependActivityStreamsJoin(v ActivityStreamsJoin) + // PrependActivityStreamsLeave prepends a Leave value to the front of a + // list of the property "tracksTicketsFor". Invalidates all iterators. + PrependActivityStreamsLeave(v ActivityStreamsLeave) + // PrependActivityStreamsLike prepends a Like value to the front of a list + // of the property "tracksTicketsFor". Invalidates all iterators. + PrependActivityStreamsLike(v ActivityStreamsLike) + // PrependActivityStreamsListen prepends a Listen value to the front of a + // list of the property "tracksTicketsFor". Invalidates all iterators. + PrependActivityStreamsListen(v ActivityStreamsListen) + // PrependActivityStreamsMove prepends a Move value to the front of a list + // of the property "tracksTicketsFor". Invalidates all iterators. + PrependActivityStreamsMove(v ActivityStreamsMove) + // PrependActivityStreamsNote prepends a Note value to the front of a list + // of the property "tracksTicketsFor". Invalidates all iterators. + PrependActivityStreamsNote(v ActivityStreamsNote) + // PrependActivityStreamsObject prepends a Object value to the front of a + // list of the property "tracksTicketsFor". Invalidates all iterators. + PrependActivityStreamsObject(v ActivityStreamsObject) + // PrependActivityStreamsOffer prepends a Offer value to the front of a + // list of the property "tracksTicketsFor". Invalidates all iterators. + PrependActivityStreamsOffer(v ActivityStreamsOffer) + // PrependActivityStreamsOrderedCollection prepends a OrderedCollection + // value to the front of a list of the property "tracksTicketsFor". + // Invalidates all iterators. + PrependActivityStreamsOrderedCollection(v ActivityStreamsOrderedCollection) + // PrependActivityStreamsOrderedCollectionPage prepends a + // OrderedCollectionPage value to the front of a list of the property + // "tracksTicketsFor". Invalidates all iterators. + PrependActivityStreamsOrderedCollectionPage(v ActivityStreamsOrderedCollectionPage) + // PrependActivityStreamsOrganization prepends a Organization value to the + // front of a list of the property "tracksTicketsFor". Invalidates all + // iterators. + PrependActivityStreamsOrganization(v ActivityStreamsOrganization) + // PrependActivityStreamsPage prepends a Page value to the front of a list + // of the property "tracksTicketsFor". Invalidates all iterators. + PrependActivityStreamsPage(v ActivityStreamsPage) + // PrependActivityStreamsPerson prepends a Person value to the front of a + // list of the property "tracksTicketsFor". Invalidates all iterators. + PrependActivityStreamsPerson(v ActivityStreamsPerson) + // PrependActivityStreamsPlace prepends a Place value to the front of a + // list of the property "tracksTicketsFor". Invalidates all iterators. + PrependActivityStreamsPlace(v ActivityStreamsPlace) + // PrependActivityStreamsProfile prepends a Profile value to the front of + // a list of the property "tracksTicketsFor". Invalidates all + // iterators. + PrependActivityStreamsProfile(v ActivityStreamsProfile) + // PrependActivityStreamsQuestion prepends a Question value to the front + // of a list of the property "tracksTicketsFor". Invalidates all + // iterators. + PrependActivityStreamsQuestion(v ActivityStreamsQuestion) + // PrependActivityStreamsRead prepends a Read value to the front of a list + // of the property "tracksTicketsFor". Invalidates all iterators. + PrependActivityStreamsRead(v ActivityStreamsRead) + // PrependActivityStreamsReject prepends a Reject value to the front of a + // list of the property "tracksTicketsFor". Invalidates all iterators. + PrependActivityStreamsReject(v ActivityStreamsReject) + // PrependActivityStreamsRelationship prepends a Relationship value to the + // front of a list of the property "tracksTicketsFor". Invalidates all + // iterators. + PrependActivityStreamsRelationship(v ActivityStreamsRelationship) + // PrependActivityStreamsRemove prepends a Remove value to the front of a + // list of the property "tracksTicketsFor". Invalidates all iterators. + PrependActivityStreamsRemove(v ActivityStreamsRemove) + // PrependActivityStreamsService prepends a Service value to the front of + // a list of the property "tracksTicketsFor". Invalidates all + // iterators. + PrependActivityStreamsService(v ActivityStreamsService) + // PrependActivityStreamsTentativeAccept prepends a TentativeAccept value + // to the front of a list of the property "tracksTicketsFor". + // Invalidates all iterators. + PrependActivityStreamsTentativeAccept(v ActivityStreamsTentativeAccept) + // PrependActivityStreamsTentativeReject prepends a TentativeReject value + // to the front of a list of the property "tracksTicketsFor". + // Invalidates all iterators. + PrependActivityStreamsTentativeReject(v ActivityStreamsTentativeReject) + // PrependActivityStreamsTombstone prepends a Tombstone value to the front + // of a list of the property "tracksTicketsFor". Invalidates all + // iterators. + PrependActivityStreamsTombstone(v ActivityStreamsTombstone) + // PrependActivityStreamsTravel prepends a Travel value to the front of a + // list of the property "tracksTicketsFor". Invalidates all iterators. + PrependActivityStreamsTravel(v ActivityStreamsTravel) + // PrependActivityStreamsUndo prepends a Undo value to the front of a list + // of the property "tracksTicketsFor". Invalidates all iterators. + PrependActivityStreamsUndo(v ActivityStreamsUndo) + // PrependActivityStreamsUpdate prepends a Update value to the front of a + // list of the property "tracksTicketsFor". Invalidates all iterators. + PrependActivityStreamsUpdate(v ActivityStreamsUpdate) + // PrependActivityStreamsVideo prepends a Video value to the front of a + // list of the property "tracksTicketsFor". Invalidates all iterators. + PrependActivityStreamsVideo(v ActivityStreamsVideo) + // PrependActivityStreamsView prepends a View value to the front of a list + // of the property "tracksTicketsFor". Invalidates all iterators. + PrependActivityStreamsView(v ActivityStreamsView) + // PrependForgeFedBranch prepends a Branch value to the front of a list of + // the property "tracksTicketsFor". Invalidates all iterators. + PrependForgeFedBranch(v ForgeFedBranch) + // PrependForgeFedCommit prepends a Commit value to the front of a list of + // the property "tracksTicketsFor". Invalidates all iterators. + PrependForgeFedCommit(v ForgeFedCommit) + // PrependForgeFedPush prepends a Push value to the front of a list of the + // property "tracksTicketsFor". Invalidates all iterators. + PrependForgeFedPush(v ForgeFedPush) + // PrependForgeFedRepository prepends a Repository value to the front of a + // list of the property "tracksTicketsFor". Invalidates all iterators. + PrependForgeFedRepository(v ForgeFedRepository) + // PrependForgeFedTicket prepends a Ticket value to the front of a list of + // the property "tracksTicketsFor". Invalidates all iterators. + PrependForgeFedTicket(v ForgeFedTicket) + // PrependForgeFedTicketDependency prepends a TicketDependency value to + // the front of a list of the property "tracksTicketsFor". Invalidates + // all iterators. + PrependForgeFedTicketDependency(v ForgeFedTicketDependency) + // PrependIRI prepends an IRI value to the front of a list of the property + // "tracksTicketsFor". + PrependIRI(v *url.URL) + // PrependTootEmoji prepends a Emoji value to the front of a list of the + // property "tracksTicketsFor". Invalidates all iterators. + PrependTootEmoji(v TootEmoji) + // PrependTootIdentityProof prepends a IdentityProof value to the front of + // a list of the property "tracksTicketsFor". Invalidates all + // iterators. + PrependTootIdentityProof(v TootIdentityProof) + // PrependType prepends an arbitrary type value to the front of a list of + // the property "tracksTicketsFor". Invalidates all iterators. Returns + // an error if the type is not a valid one to set for this property. + PrependType(t Type) error + // Remove deletes an element at the specified index from a list of the + // property "tracksTicketsFor", regardless of its type. Panics if the + // index is out of bounds. Invalidates all iterators. + Remove(idx int) + // Serialize converts this into an interface representation suitable for + // marshalling into a text or binary format. Applications should not + // need this function as most typical use cases serialize types + // instead of individual properties. It is exposed for alternatives to + // go-fed implementations to use. + Serialize() (interface{}, error) + // SetActivityStreamsAccept sets a Accept value to be at the specified + // index for the property "tracksTicketsFor". Panics if the index is + // out of bounds. Invalidates all iterators. + SetActivityStreamsAccept(idx int, v ActivityStreamsAccept) + // SetActivityStreamsActivity sets a Activity value to be at the specified + // index for the property "tracksTicketsFor". Panics if the index is + // out of bounds. Invalidates all iterators. + SetActivityStreamsActivity(idx int, v ActivityStreamsActivity) + // SetActivityStreamsAdd sets a Add value to be at the specified index for + // the property "tracksTicketsFor". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsAdd(idx int, v ActivityStreamsAdd) + // SetActivityStreamsAnnounce sets a Announce value to be at the specified + // index for the property "tracksTicketsFor". Panics if the index is + // out of bounds. Invalidates all iterators. + SetActivityStreamsAnnounce(idx int, v ActivityStreamsAnnounce) + // SetActivityStreamsApplication sets a Application value to be at the + // specified index for the property "tracksTicketsFor". Panics if the + // index is out of bounds. Invalidates all iterators. + SetActivityStreamsApplication(idx int, v ActivityStreamsApplication) + // SetActivityStreamsArrive sets a Arrive value to be at the specified + // index for the property "tracksTicketsFor". Panics if the index is + // out of bounds. Invalidates all iterators. + SetActivityStreamsArrive(idx int, v ActivityStreamsArrive) + // SetActivityStreamsArticle sets a Article value to be at the specified + // index for the property "tracksTicketsFor". Panics if the index is + // out of bounds. Invalidates all iterators. + SetActivityStreamsArticle(idx int, v ActivityStreamsArticle) + // SetActivityStreamsAudio sets a Audio value to be at the specified index + // for the property "tracksTicketsFor". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsAudio(idx int, v ActivityStreamsAudio) + // SetActivityStreamsBlock sets a Block value to be at the specified index + // for the property "tracksTicketsFor". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsBlock(idx int, v ActivityStreamsBlock) + // SetActivityStreamsCollection sets a Collection value to be at the + // specified index for the property "tracksTicketsFor". Panics if the + // index is out of bounds. Invalidates all iterators. + SetActivityStreamsCollection(idx int, v ActivityStreamsCollection) + // SetActivityStreamsCollectionPage sets a CollectionPage value to be at + // the specified index for the property "tracksTicketsFor". Panics if + // the index is out of bounds. Invalidates all iterators. + SetActivityStreamsCollectionPage(idx int, v ActivityStreamsCollectionPage) + // SetActivityStreamsCreate sets a Create value to be at the specified + // index for the property "tracksTicketsFor". Panics if the index is + // out of bounds. Invalidates all iterators. + SetActivityStreamsCreate(idx int, v ActivityStreamsCreate) + // SetActivityStreamsDelete sets a Delete value to be at the specified + // index for the property "tracksTicketsFor". Panics if the index is + // out of bounds. Invalidates all iterators. + SetActivityStreamsDelete(idx int, v ActivityStreamsDelete) + // SetActivityStreamsDislike sets a Dislike value to be at the specified + // index for the property "tracksTicketsFor". Panics if the index is + // out of bounds. Invalidates all iterators. + SetActivityStreamsDislike(idx int, v ActivityStreamsDislike) + // SetActivityStreamsDocument sets a Document value to be at the specified + // index for the property "tracksTicketsFor". Panics if the index is + // out of bounds. Invalidates all iterators. + SetActivityStreamsDocument(idx int, v ActivityStreamsDocument) + // SetActivityStreamsEvent sets a Event value to be at the specified index + // for the property "tracksTicketsFor". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsEvent(idx int, v ActivityStreamsEvent) + // SetActivityStreamsFlag sets a Flag value to be at the specified index + // for the property "tracksTicketsFor". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsFlag(idx int, v ActivityStreamsFlag) + // SetActivityStreamsFollow sets a Follow value to be at the specified + // index for the property "tracksTicketsFor". Panics if the index is + // out of bounds. Invalidates all iterators. + SetActivityStreamsFollow(idx int, v ActivityStreamsFollow) + // SetActivityStreamsGroup sets a Group value to be at the specified index + // for the property "tracksTicketsFor". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsGroup(idx int, v ActivityStreamsGroup) + // SetActivityStreamsIgnore sets a Ignore value to be at the specified + // index for the property "tracksTicketsFor". Panics if the index is + // out of bounds. Invalidates all iterators. + SetActivityStreamsIgnore(idx int, v ActivityStreamsIgnore) + // SetActivityStreamsImage sets a Image value to be at the specified index + // for the property "tracksTicketsFor". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsImage(idx int, v ActivityStreamsImage) + // SetActivityStreamsIntransitiveActivity sets a IntransitiveActivity + // value to be at the specified index for the property + // "tracksTicketsFor". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsIntransitiveActivity(idx int, v ActivityStreamsIntransitiveActivity) + // SetActivityStreamsInvite sets a Invite value to be at the specified + // index for the property "tracksTicketsFor". Panics if the index is + // out of bounds. Invalidates all iterators. + SetActivityStreamsInvite(idx int, v ActivityStreamsInvite) + // SetActivityStreamsJoin sets a Join value to be at the specified index + // for the property "tracksTicketsFor". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsJoin(idx int, v ActivityStreamsJoin) + // SetActivityStreamsLeave sets a Leave value to be at the specified index + // for the property "tracksTicketsFor". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsLeave(idx int, v ActivityStreamsLeave) + // SetActivityStreamsLike sets a Like value to be at the specified index + // for the property "tracksTicketsFor". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsLike(idx int, v ActivityStreamsLike) + // SetActivityStreamsListen sets a Listen value to be at the specified + // index for the property "tracksTicketsFor". Panics if the index is + // out of bounds. Invalidates all iterators. + SetActivityStreamsListen(idx int, v ActivityStreamsListen) + // SetActivityStreamsMove sets a Move value to be at the specified index + // for the property "tracksTicketsFor". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsMove(idx int, v ActivityStreamsMove) + // SetActivityStreamsNote sets a Note value to be at the specified index + // for the property "tracksTicketsFor". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsNote(idx int, v ActivityStreamsNote) + // SetActivityStreamsObject sets a Object value to be at the specified + // index for the property "tracksTicketsFor". Panics if the index is + // out of bounds. Invalidates all iterators. + SetActivityStreamsObject(idx int, v ActivityStreamsObject) + // SetActivityStreamsOffer sets a Offer value to be at the specified index + // for the property "tracksTicketsFor". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsOffer(idx int, v ActivityStreamsOffer) + // SetActivityStreamsOrderedCollection sets a OrderedCollection value to + // be at the specified index for the property "tracksTicketsFor". + // Panics if the index is out of bounds. Invalidates all iterators. + SetActivityStreamsOrderedCollection(idx int, v ActivityStreamsOrderedCollection) + // SetActivityStreamsOrderedCollectionPage sets a OrderedCollectionPage + // value to be at the specified index for the property + // "tracksTicketsFor". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsOrderedCollectionPage(idx int, v ActivityStreamsOrderedCollectionPage) + // SetActivityStreamsOrganization sets a Organization value to be at the + // specified index for the property "tracksTicketsFor". Panics if the + // index is out of bounds. Invalidates all iterators. + SetActivityStreamsOrganization(idx int, v ActivityStreamsOrganization) + // SetActivityStreamsPage sets a Page value to be at the specified index + // for the property "tracksTicketsFor". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsPage(idx int, v ActivityStreamsPage) + // SetActivityStreamsPerson sets a Person value to be at the specified + // index for the property "tracksTicketsFor". Panics if the index is + // out of bounds. Invalidates all iterators. + SetActivityStreamsPerson(idx int, v ActivityStreamsPerson) + // SetActivityStreamsPlace sets a Place value to be at the specified index + // for the property "tracksTicketsFor". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsPlace(idx int, v ActivityStreamsPlace) + // SetActivityStreamsProfile sets a Profile value to be at the specified + // index for the property "tracksTicketsFor". Panics if the index is + // out of bounds. Invalidates all iterators. + SetActivityStreamsProfile(idx int, v ActivityStreamsProfile) + // SetActivityStreamsQuestion sets a Question value to be at the specified + // index for the property "tracksTicketsFor". Panics if the index is + // out of bounds. Invalidates all iterators. + SetActivityStreamsQuestion(idx int, v ActivityStreamsQuestion) + // SetActivityStreamsRead sets a Read value to be at the specified index + // for the property "tracksTicketsFor". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsRead(idx int, v ActivityStreamsRead) + // SetActivityStreamsReject sets a Reject value to be at the specified + // index for the property "tracksTicketsFor". Panics if the index is + // out of bounds. Invalidates all iterators. + SetActivityStreamsReject(idx int, v ActivityStreamsReject) + // SetActivityStreamsRelationship sets a Relationship value to be at the + // specified index for the property "tracksTicketsFor". Panics if the + // index is out of bounds. Invalidates all iterators. + SetActivityStreamsRelationship(idx int, v ActivityStreamsRelationship) + // SetActivityStreamsRemove sets a Remove value to be at the specified + // index for the property "tracksTicketsFor". Panics if the index is + // out of bounds. Invalidates all iterators. + SetActivityStreamsRemove(idx int, v ActivityStreamsRemove) + // SetActivityStreamsService sets a Service value to be at the specified + // index for the property "tracksTicketsFor". Panics if the index is + // out of bounds. Invalidates all iterators. + SetActivityStreamsService(idx int, v ActivityStreamsService) + // SetActivityStreamsTentativeAccept sets a TentativeAccept value to be at + // the specified index for the property "tracksTicketsFor". Panics if + // the index is out of bounds. Invalidates all iterators. + SetActivityStreamsTentativeAccept(idx int, v ActivityStreamsTentativeAccept) + // SetActivityStreamsTentativeReject sets a TentativeReject value to be at + // the specified index for the property "tracksTicketsFor". Panics if + // the index is out of bounds. Invalidates all iterators. + SetActivityStreamsTentativeReject(idx int, v ActivityStreamsTentativeReject) + // SetActivityStreamsTombstone sets a Tombstone value to be at the + // specified index for the property "tracksTicketsFor". Panics if the + // index is out of bounds. Invalidates all iterators. + SetActivityStreamsTombstone(idx int, v ActivityStreamsTombstone) + // SetActivityStreamsTravel sets a Travel value to be at the specified + // index for the property "tracksTicketsFor". Panics if the index is + // out of bounds. Invalidates all iterators. + SetActivityStreamsTravel(idx int, v ActivityStreamsTravel) + // SetActivityStreamsUndo sets a Undo value to be at the specified index + // for the property "tracksTicketsFor". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsUndo(idx int, v ActivityStreamsUndo) + // SetActivityStreamsUpdate sets a Update value to be at the specified + // index for the property "tracksTicketsFor". Panics if the index is + // out of bounds. Invalidates all iterators. + SetActivityStreamsUpdate(idx int, v ActivityStreamsUpdate) + // SetActivityStreamsVideo sets a Video value to be at the specified index + // for the property "tracksTicketsFor". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsVideo(idx int, v ActivityStreamsVideo) + // SetActivityStreamsView sets a View value to be at the specified index + // for the property "tracksTicketsFor". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsView(idx int, v ActivityStreamsView) + // SetForgeFedBranch sets a Branch value to be at the specified index for + // the property "tracksTicketsFor". Panics if the index is out of + // bounds. Invalidates all iterators. + SetForgeFedBranch(idx int, v ForgeFedBranch) + // SetForgeFedCommit sets a Commit value to be at the specified index for + // the property "tracksTicketsFor". Panics if the index is out of + // bounds. Invalidates all iterators. + SetForgeFedCommit(idx int, v ForgeFedCommit) + // SetForgeFedPush sets a Push value to be at the specified index for the + // property "tracksTicketsFor". Panics if the index is out of bounds. + // Invalidates all iterators. + SetForgeFedPush(idx int, v ForgeFedPush) + // SetForgeFedRepository sets a Repository value to be at the specified + // index for the property "tracksTicketsFor". Panics if the index is + // out of bounds. Invalidates all iterators. + SetForgeFedRepository(idx int, v ForgeFedRepository) + // SetForgeFedTicket sets a Ticket value to be at the specified index for + // the property "tracksTicketsFor". Panics if the index is out of + // bounds. Invalidates all iterators. + SetForgeFedTicket(idx int, v ForgeFedTicket) + // SetForgeFedTicketDependency sets a TicketDependency value to be at the + // specified index for the property "tracksTicketsFor". Panics if the + // index is out of bounds. Invalidates all iterators. + SetForgeFedTicketDependency(idx int, v ForgeFedTicketDependency) + // SetIRI sets an IRI value to be at the specified index for the property + // "tracksTicketsFor". Panics if the index is out of bounds. + SetIRI(idx int, v *url.URL) + // SetTootEmoji sets a Emoji value to be at the specified index for the + // property "tracksTicketsFor". Panics if the index is out of bounds. + // Invalidates all iterators. + SetTootEmoji(idx int, v TootEmoji) + // SetTootIdentityProof sets a IdentityProof value to be at the specified + // index for the property "tracksTicketsFor". Panics if the index is + // out of bounds. Invalidates all iterators. + SetTootIdentityProof(idx int, v TootIdentityProof) + // SetType sets an arbitrary type value to the specified index of the + // property "tracksTicketsFor". Invalidates all iterators. Returns an + // error if the type is not a valid one to set for this property. + // Panics if the index is out of bounds. + SetType(idx int, t Type) error + // Swap swaps the location of values at two indices for the + // "tracksTicketsFor" property. + Swap(i, j int) +} diff --git a/streams/vocab/gen_type_activitystreams_accept_interface.go b/streams/vocab/gen_type_activitystreams_accept_interface.go index f03b99a..bac356d 100644 --- a/streams/vocab/gen_type_activitystreams_accept_interface.go +++ b/streams/vocab/gen_type_activitystreams_accept_interface.go @@ -150,6 +150,15 @@ type ActivityStreamsAccept interface { // GetActivityStreamsUrl returns the "url" property if it exists, and nil // otherwise. GetActivityStreamsUrl() ActivityStreamsUrlProperty + // GetForgeFedTeam returns the "team" property if it exists, and nil + // otherwise. + GetForgeFedTeam() ForgeFedTeamProperty + // GetForgeFedTicketsTrackedBy returns the "ticketsTrackedBy" property if + // it exists, and nil otherwise. + GetForgeFedTicketsTrackedBy() ForgeFedTicketsTrackedByProperty + // GetForgeFedTracksTicketsFor returns the "tracksTicketsFor" property if + // it exists, and nil otherwise. + GetForgeFedTracksTicketsFor() ForgeFedTracksTicketsForProperty // GetJSONLDId returns the "id" property if it exists, and nil otherwise. GetJSONLDId() JSONLDIdProperty // GetJSONLDType returns the "type" property if it exists, and nil @@ -249,6 +258,12 @@ type ActivityStreamsAccept interface { SetActivityStreamsUpdated(i ActivityStreamsUpdatedProperty) // SetActivityStreamsUrl sets the "url" property. SetActivityStreamsUrl(i ActivityStreamsUrlProperty) + // SetForgeFedTeam sets the "team" property. + SetForgeFedTeam(i ForgeFedTeamProperty) + // SetForgeFedTicketsTrackedBy sets the "ticketsTrackedBy" property. + SetForgeFedTicketsTrackedBy(i ForgeFedTicketsTrackedByProperty) + // SetForgeFedTracksTicketsFor sets the "tracksTicketsFor" property. + SetForgeFedTracksTicketsFor(i ForgeFedTracksTicketsForProperty) // SetJSONLDId sets the "id" property. SetJSONLDId(i JSONLDIdProperty) // SetJSONLDType sets the "type" property. diff --git a/streams/vocab/gen_type_activitystreams_activity_interface.go b/streams/vocab/gen_type_activitystreams_activity_interface.go index 9bdaf9f..f148dba 100644 --- a/streams/vocab/gen_type_activitystreams_activity_interface.go +++ b/streams/vocab/gen_type_activitystreams_activity_interface.go @@ -130,6 +130,15 @@ type ActivityStreamsActivity interface { // GetActivityStreamsUrl returns the "url" property if it exists, and nil // otherwise. GetActivityStreamsUrl() ActivityStreamsUrlProperty + // GetForgeFedTeam returns the "team" property if it exists, and nil + // otherwise. + GetForgeFedTeam() ForgeFedTeamProperty + // GetForgeFedTicketsTrackedBy returns the "ticketsTrackedBy" property if + // it exists, and nil otherwise. + GetForgeFedTicketsTrackedBy() ForgeFedTicketsTrackedByProperty + // GetForgeFedTracksTicketsFor returns the "tracksTicketsFor" property if + // it exists, and nil otherwise. + GetForgeFedTracksTicketsFor() ForgeFedTracksTicketsForProperty // GetJSONLDId returns the "id" property if it exists, and nil otherwise. GetJSONLDId() JSONLDIdProperty // GetJSONLDType returns the "type" property if it exists, and nil @@ -230,6 +239,12 @@ type ActivityStreamsActivity interface { SetActivityStreamsUpdated(i ActivityStreamsUpdatedProperty) // SetActivityStreamsUrl sets the "url" property. SetActivityStreamsUrl(i ActivityStreamsUrlProperty) + // SetForgeFedTeam sets the "team" property. + SetForgeFedTeam(i ForgeFedTeamProperty) + // SetForgeFedTicketsTrackedBy sets the "ticketsTrackedBy" property. + SetForgeFedTicketsTrackedBy(i ForgeFedTicketsTrackedByProperty) + // SetForgeFedTracksTicketsFor sets the "tracksTicketsFor" property. + SetForgeFedTracksTicketsFor(i ForgeFedTracksTicketsForProperty) // SetJSONLDId sets the "id" property. SetJSONLDId(i JSONLDIdProperty) // SetJSONLDType sets the "type" property. diff --git a/streams/vocab/gen_type_activitystreams_add_interface.go b/streams/vocab/gen_type_activitystreams_add_interface.go index 5692593..2f62d18 100644 --- a/streams/vocab/gen_type_activitystreams_add_interface.go +++ b/streams/vocab/gen_type_activitystreams_add_interface.go @@ -150,6 +150,15 @@ type ActivityStreamsAdd interface { // GetActivityStreamsUrl returns the "url" property if it exists, and nil // otherwise. GetActivityStreamsUrl() ActivityStreamsUrlProperty + // GetForgeFedTeam returns the "team" property if it exists, and nil + // otherwise. + GetForgeFedTeam() ForgeFedTeamProperty + // GetForgeFedTicketsTrackedBy returns the "ticketsTrackedBy" property if + // it exists, and nil otherwise. + GetForgeFedTicketsTrackedBy() ForgeFedTicketsTrackedByProperty + // GetForgeFedTracksTicketsFor returns the "tracksTicketsFor" property if + // it exists, and nil otherwise. + GetForgeFedTracksTicketsFor() ForgeFedTracksTicketsForProperty // GetJSONLDId returns the "id" property if it exists, and nil otherwise. GetJSONLDId() JSONLDIdProperty // GetJSONLDType returns the "type" property if it exists, and nil @@ -249,6 +258,12 @@ type ActivityStreamsAdd interface { SetActivityStreamsUpdated(i ActivityStreamsUpdatedProperty) // SetActivityStreamsUrl sets the "url" property. SetActivityStreamsUrl(i ActivityStreamsUrlProperty) + // SetForgeFedTeam sets the "team" property. + SetForgeFedTeam(i ForgeFedTeamProperty) + // SetForgeFedTicketsTrackedBy sets the "ticketsTrackedBy" property. + SetForgeFedTicketsTrackedBy(i ForgeFedTicketsTrackedByProperty) + // SetForgeFedTracksTicketsFor sets the "tracksTicketsFor" property. + SetForgeFedTracksTicketsFor(i ForgeFedTracksTicketsForProperty) // SetJSONLDId sets the "id" property. SetJSONLDId(i JSONLDIdProperty) // SetJSONLDType sets the "type" property. diff --git a/streams/vocab/gen_type_activitystreams_announce_interface.go b/streams/vocab/gen_type_activitystreams_announce_interface.go index be20f02..48d4312 100644 --- a/streams/vocab/gen_type_activitystreams_announce_interface.go +++ b/streams/vocab/gen_type_activitystreams_announce_interface.go @@ -132,6 +132,15 @@ type ActivityStreamsAnnounce interface { // GetActivityStreamsUrl returns the "url" property if it exists, and nil // otherwise. GetActivityStreamsUrl() ActivityStreamsUrlProperty + // GetForgeFedTeam returns the "team" property if it exists, and nil + // otherwise. + GetForgeFedTeam() ForgeFedTeamProperty + // GetForgeFedTicketsTrackedBy returns the "ticketsTrackedBy" property if + // it exists, and nil otherwise. + GetForgeFedTicketsTrackedBy() ForgeFedTicketsTrackedByProperty + // GetForgeFedTracksTicketsFor returns the "tracksTicketsFor" property if + // it exists, and nil otherwise. + GetForgeFedTracksTicketsFor() ForgeFedTracksTicketsForProperty // GetJSONLDId returns the "id" property if it exists, and nil otherwise. GetJSONLDId() JSONLDIdProperty // GetJSONLDType returns the "type" property if it exists, and nil @@ -232,6 +241,12 @@ type ActivityStreamsAnnounce interface { SetActivityStreamsUpdated(i ActivityStreamsUpdatedProperty) // SetActivityStreamsUrl sets the "url" property. SetActivityStreamsUrl(i ActivityStreamsUrlProperty) + // SetForgeFedTeam sets the "team" property. + SetForgeFedTeam(i ForgeFedTeamProperty) + // SetForgeFedTicketsTrackedBy sets the "ticketsTrackedBy" property. + SetForgeFedTicketsTrackedBy(i ForgeFedTicketsTrackedByProperty) + // SetForgeFedTracksTicketsFor sets the "tracksTicketsFor" property. + SetForgeFedTracksTicketsFor(i ForgeFedTracksTicketsForProperty) // SetJSONLDId sets the "id" property. SetJSONLDId(i JSONLDIdProperty) // SetJSONLDType sets the "type" property. diff --git a/streams/vocab/gen_type_activitystreams_application_interface.go b/streams/vocab/gen_type_activitystreams_application_interface.go index 14478a4..3fec42b 100644 --- a/streams/vocab/gen_type_activitystreams_application_interface.go +++ b/streams/vocab/gen_type_activitystreams_application_interface.go @@ -124,6 +124,15 @@ type ActivityStreamsApplication interface { // GetActivityStreamsUrl returns the "url" property if it exists, and nil // otherwise. GetActivityStreamsUrl() ActivityStreamsUrlProperty + // GetForgeFedTeam returns the "team" property if it exists, and nil + // otherwise. + GetForgeFedTeam() ForgeFedTeamProperty + // GetForgeFedTicketsTrackedBy returns the "ticketsTrackedBy" property if + // it exists, and nil otherwise. + GetForgeFedTicketsTrackedBy() ForgeFedTicketsTrackedByProperty + // GetForgeFedTracksTicketsFor returns the "tracksTicketsFor" property if + // it exists, and nil otherwise. + GetForgeFedTracksTicketsFor() ForgeFedTracksTicketsForProperty // GetJSONLDId returns the "id" property if it exists, and nil otherwise. GetJSONLDId() JSONLDIdProperty // GetJSONLDType returns the "type" property if it exists, and nil @@ -238,6 +247,12 @@ type ActivityStreamsApplication interface { SetActivityStreamsUpdated(i ActivityStreamsUpdatedProperty) // SetActivityStreamsUrl sets the "url" property. SetActivityStreamsUrl(i ActivityStreamsUrlProperty) + // SetForgeFedTeam sets the "team" property. + SetForgeFedTeam(i ForgeFedTeamProperty) + // SetForgeFedTicketsTrackedBy sets the "ticketsTrackedBy" property. + SetForgeFedTicketsTrackedBy(i ForgeFedTicketsTrackedByProperty) + // SetForgeFedTracksTicketsFor sets the "tracksTicketsFor" property. + SetForgeFedTracksTicketsFor(i ForgeFedTracksTicketsForProperty) // SetJSONLDId sets the "id" property. SetJSONLDId(i JSONLDIdProperty) // SetJSONLDType sets the "type" property. diff --git a/streams/vocab/gen_type_activitystreams_arrive_interface.go b/streams/vocab/gen_type_activitystreams_arrive_interface.go index f4f2278..5eaeacb 100644 --- a/streams/vocab/gen_type_activitystreams_arrive_interface.go +++ b/streams/vocab/gen_type_activitystreams_arrive_interface.go @@ -129,6 +129,15 @@ type ActivityStreamsArrive interface { // GetActivityStreamsUrl returns the "url" property if it exists, and nil // otherwise. GetActivityStreamsUrl() ActivityStreamsUrlProperty + // GetForgeFedTeam returns the "team" property if it exists, and nil + // otherwise. + GetForgeFedTeam() ForgeFedTeamProperty + // GetForgeFedTicketsTrackedBy returns the "ticketsTrackedBy" property if + // it exists, and nil otherwise. + GetForgeFedTicketsTrackedBy() ForgeFedTicketsTrackedByProperty + // GetForgeFedTracksTicketsFor returns the "tracksTicketsFor" property if + // it exists, and nil otherwise. + GetForgeFedTracksTicketsFor() ForgeFedTracksTicketsForProperty // GetJSONLDId returns the "id" property if it exists, and nil otherwise. GetJSONLDId() JSONLDIdProperty // GetJSONLDType returns the "type" property if it exists, and nil @@ -226,6 +235,12 @@ type ActivityStreamsArrive interface { SetActivityStreamsUpdated(i ActivityStreamsUpdatedProperty) // SetActivityStreamsUrl sets the "url" property. SetActivityStreamsUrl(i ActivityStreamsUrlProperty) + // SetForgeFedTeam sets the "team" property. + SetForgeFedTeam(i ForgeFedTeamProperty) + // SetForgeFedTicketsTrackedBy sets the "ticketsTrackedBy" property. + SetForgeFedTicketsTrackedBy(i ForgeFedTicketsTrackedByProperty) + // SetForgeFedTracksTicketsFor sets the "tracksTicketsFor" property. + SetForgeFedTracksTicketsFor(i ForgeFedTracksTicketsForProperty) // SetJSONLDId sets the "id" property. SetJSONLDId(i JSONLDIdProperty) // SetJSONLDType sets the "type" property. diff --git a/streams/vocab/gen_type_activitystreams_article_interface.go b/streams/vocab/gen_type_activitystreams_article_interface.go index 5c60072..984114d 100644 --- a/streams/vocab/gen_type_activitystreams_article_interface.go +++ b/streams/vocab/gen_type_activitystreams_article_interface.go @@ -106,6 +106,15 @@ type ActivityStreamsArticle interface { // GetActivityStreamsUrl returns the "url" property if it exists, and nil // otherwise. GetActivityStreamsUrl() ActivityStreamsUrlProperty + // GetForgeFedTeam returns the "team" property if it exists, and nil + // otherwise. + GetForgeFedTeam() ForgeFedTeamProperty + // GetForgeFedTicketsTrackedBy returns the "ticketsTrackedBy" property if + // it exists, and nil otherwise. + GetForgeFedTicketsTrackedBy() ForgeFedTicketsTrackedByProperty + // GetForgeFedTracksTicketsFor returns the "tracksTicketsFor" property if + // it exists, and nil otherwise. + GetForgeFedTracksTicketsFor() ForgeFedTracksTicketsForProperty // GetJSONLDId returns the "id" property if it exists, and nil otherwise. GetJSONLDId() JSONLDIdProperty // GetJSONLDType returns the "type" property if it exists, and nil @@ -196,6 +205,12 @@ type ActivityStreamsArticle interface { SetActivityStreamsUpdated(i ActivityStreamsUpdatedProperty) // SetActivityStreamsUrl sets the "url" property. SetActivityStreamsUrl(i ActivityStreamsUrlProperty) + // SetForgeFedTeam sets the "team" property. + SetForgeFedTeam(i ForgeFedTeamProperty) + // SetForgeFedTicketsTrackedBy sets the "ticketsTrackedBy" property. + SetForgeFedTicketsTrackedBy(i ForgeFedTicketsTrackedByProperty) + // SetForgeFedTracksTicketsFor sets the "tracksTicketsFor" property. + SetForgeFedTracksTicketsFor(i ForgeFedTracksTicketsForProperty) // SetJSONLDId sets the "id" property. SetJSONLDId(i JSONLDIdProperty) // SetJSONLDType sets the "type" property. diff --git a/streams/vocab/gen_type_activitystreams_audio_interface.go b/streams/vocab/gen_type_activitystreams_audio_interface.go index 74e3e39..c840de2 100644 --- a/streams/vocab/gen_type_activitystreams_audio_interface.go +++ b/streams/vocab/gen_type_activitystreams_audio_interface.go @@ -108,6 +108,15 @@ type ActivityStreamsAudio interface { // GetActivityStreamsUrl returns the "url" property if it exists, and nil // otherwise. GetActivityStreamsUrl() ActivityStreamsUrlProperty + // GetForgeFedTeam returns the "team" property if it exists, and nil + // otherwise. + GetForgeFedTeam() ForgeFedTeamProperty + // GetForgeFedTicketsTrackedBy returns the "ticketsTrackedBy" property if + // it exists, and nil otherwise. + GetForgeFedTicketsTrackedBy() ForgeFedTicketsTrackedByProperty + // GetForgeFedTracksTicketsFor returns the "tracksTicketsFor" property if + // it exists, and nil otherwise. + GetForgeFedTracksTicketsFor() ForgeFedTracksTicketsForProperty // GetJSONLDId returns the "id" property if it exists, and nil otherwise. GetJSONLDId() JSONLDIdProperty // GetJSONLDType returns the "type" property if it exists, and nil @@ -200,6 +209,12 @@ type ActivityStreamsAudio interface { SetActivityStreamsUpdated(i ActivityStreamsUpdatedProperty) // SetActivityStreamsUrl sets the "url" property. SetActivityStreamsUrl(i ActivityStreamsUrlProperty) + // SetForgeFedTeam sets the "team" property. + SetForgeFedTeam(i ForgeFedTeamProperty) + // SetForgeFedTicketsTrackedBy sets the "ticketsTrackedBy" property. + SetForgeFedTicketsTrackedBy(i ForgeFedTicketsTrackedByProperty) + // SetForgeFedTracksTicketsFor sets the "tracksTicketsFor" property. + SetForgeFedTracksTicketsFor(i ForgeFedTracksTicketsForProperty) // SetJSONLDId sets the "id" property. SetJSONLDId(i JSONLDIdProperty) // SetJSONLDType sets the "type" property. diff --git a/streams/vocab/gen_type_activitystreams_block_interface.go b/streams/vocab/gen_type_activitystreams_block_interface.go index 85b1973..a813f1e 100644 --- a/streams/vocab/gen_type_activitystreams_block_interface.go +++ b/streams/vocab/gen_type_activitystreams_block_interface.go @@ -123,6 +123,15 @@ type ActivityStreamsBlock interface { // GetActivityStreamsUrl returns the "url" property if it exists, and nil // otherwise. GetActivityStreamsUrl() ActivityStreamsUrlProperty + // GetForgeFedTeam returns the "team" property if it exists, and nil + // otherwise. + GetForgeFedTeam() ForgeFedTeamProperty + // GetForgeFedTicketsTrackedBy returns the "ticketsTrackedBy" property if + // it exists, and nil otherwise. + GetForgeFedTicketsTrackedBy() ForgeFedTicketsTrackedByProperty + // GetForgeFedTracksTicketsFor returns the "tracksTicketsFor" property if + // it exists, and nil otherwise. + GetForgeFedTracksTicketsFor() ForgeFedTracksTicketsForProperty // GetJSONLDId returns the "id" property if it exists, and nil otherwise. GetJSONLDId() JSONLDIdProperty // GetJSONLDType returns the "type" property if it exists, and nil @@ -222,6 +231,12 @@ type ActivityStreamsBlock interface { SetActivityStreamsUpdated(i ActivityStreamsUpdatedProperty) // SetActivityStreamsUrl sets the "url" property. SetActivityStreamsUrl(i ActivityStreamsUrlProperty) + // SetForgeFedTeam sets the "team" property. + SetForgeFedTeam(i ForgeFedTeamProperty) + // SetForgeFedTicketsTrackedBy sets the "ticketsTrackedBy" property. + SetForgeFedTicketsTrackedBy(i ForgeFedTicketsTrackedByProperty) + // SetForgeFedTracksTicketsFor sets the "tracksTicketsFor" property. + SetForgeFedTracksTicketsFor(i ForgeFedTracksTicketsForProperty) // SetJSONLDId sets the "id" property. SetJSONLDId(i JSONLDIdProperty) // SetJSONLDType sets the "type" property. diff --git a/streams/vocab/gen_type_activitystreams_collection_interface.go b/streams/vocab/gen_type_activitystreams_collection_interface.go index 3a8b1e7..43526fc 100644 --- a/streams/vocab/gen_type_activitystreams_collection_interface.go +++ b/streams/vocab/gen_type_activitystreams_collection_interface.go @@ -131,6 +131,15 @@ type ActivityStreamsCollection interface { // GetActivityStreamsUrl returns the "url" property if it exists, and nil // otherwise. GetActivityStreamsUrl() ActivityStreamsUrlProperty + // GetForgeFedTeam returns the "team" property if it exists, and nil + // otherwise. + GetForgeFedTeam() ForgeFedTeamProperty + // GetForgeFedTicketsTrackedBy returns the "ticketsTrackedBy" property if + // it exists, and nil otherwise. + GetForgeFedTicketsTrackedBy() ForgeFedTicketsTrackedByProperty + // GetForgeFedTracksTicketsFor returns the "tracksTicketsFor" property if + // it exists, and nil otherwise. + GetForgeFedTracksTicketsFor() ForgeFedTracksTicketsForProperty // GetJSONLDId returns the "id" property if it exists, and nil otherwise. GetJSONLDId() JSONLDIdProperty // GetJSONLDType returns the "type" property if it exists, and nil @@ -231,6 +240,12 @@ type ActivityStreamsCollection interface { SetActivityStreamsUpdated(i ActivityStreamsUpdatedProperty) // SetActivityStreamsUrl sets the "url" property. SetActivityStreamsUrl(i ActivityStreamsUrlProperty) + // SetForgeFedTeam sets the "team" property. + SetForgeFedTeam(i ForgeFedTeamProperty) + // SetForgeFedTicketsTrackedBy sets the "ticketsTrackedBy" property. + SetForgeFedTicketsTrackedBy(i ForgeFedTicketsTrackedByProperty) + // SetForgeFedTracksTicketsFor sets the "tracksTicketsFor" property. + SetForgeFedTracksTicketsFor(i ForgeFedTracksTicketsForProperty) // SetJSONLDId sets the "id" property. SetJSONLDId(i JSONLDIdProperty) // SetJSONLDType sets the "type" property. diff --git a/streams/vocab/gen_type_activitystreams_collectionpage_interface.go b/streams/vocab/gen_type_activitystreams_collectionpage_interface.go index ae56c15..ab0ed38 100644 --- a/streams/vocab/gen_type_activitystreams_collectionpage_interface.go +++ b/streams/vocab/gen_type_activitystreams_collectionpage_interface.go @@ -141,6 +141,15 @@ type ActivityStreamsCollectionPage interface { // GetActivityStreamsUrl returns the "url" property if it exists, and nil // otherwise. GetActivityStreamsUrl() ActivityStreamsUrlProperty + // GetForgeFedTeam returns the "team" property if it exists, and nil + // otherwise. + GetForgeFedTeam() ForgeFedTeamProperty + // GetForgeFedTicketsTrackedBy returns the "ticketsTrackedBy" property if + // it exists, and nil otherwise. + GetForgeFedTicketsTrackedBy() ForgeFedTicketsTrackedByProperty + // GetForgeFedTracksTicketsFor returns the "tracksTicketsFor" property if + // it exists, and nil otherwise. + GetForgeFedTracksTicketsFor() ForgeFedTracksTicketsForProperty // GetJSONLDId returns the "id" property if it exists, and nil otherwise. GetJSONLDId() JSONLDIdProperty // GetJSONLDType returns the "type" property if it exists, and nil @@ -247,6 +256,12 @@ type ActivityStreamsCollectionPage interface { SetActivityStreamsUpdated(i ActivityStreamsUpdatedProperty) // SetActivityStreamsUrl sets the "url" property. SetActivityStreamsUrl(i ActivityStreamsUrlProperty) + // SetForgeFedTeam sets the "team" property. + SetForgeFedTeam(i ForgeFedTeamProperty) + // SetForgeFedTicketsTrackedBy sets the "ticketsTrackedBy" property. + SetForgeFedTicketsTrackedBy(i ForgeFedTicketsTrackedByProperty) + // SetForgeFedTracksTicketsFor sets the "tracksTicketsFor" property. + SetForgeFedTracksTicketsFor(i ForgeFedTracksTicketsForProperty) // SetJSONLDId sets the "id" property. SetJSONLDId(i JSONLDIdProperty) // SetJSONLDType sets the "type" property. diff --git a/streams/vocab/gen_type_activitystreams_create_interface.go b/streams/vocab/gen_type_activitystreams_create_interface.go index 0b86ebe..2d2e67d 100644 --- a/streams/vocab/gen_type_activitystreams_create_interface.go +++ b/streams/vocab/gen_type_activitystreams_create_interface.go @@ -127,6 +127,15 @@ type ActivityStreamsCreate interface { // GetActivityStreamsUrl returns the "url" property if it exists, and nil // otherwise. GetActivityStreamsUrl() ActivityStreamsUrlProperty + // GetForgeFedTeam returns the "team" property if it exists, and nil + // otherwise. + GetForgeFedTeam() ForgeFedTeamProperty + // GetForgeFedTicketsTrackedBy returns the "ticketsTrackedBy" property if + // it exists, and nil otherwise. + GetForgeFedTicketsTrackedBy() ForgeFedTicketsTrackedByProperty + // GetForgeFedTracksTicketsFor returns the "tracksTicketsFor" property if + // it exists, and nil otherwise. + GetForgeFedTracksTicketsFor() ForgeFedTracksTicketsForProperty // GetJSONLDId returns the "id" property if it exists, and nil otherwise. GetJSONLDId() JSONLDIdProperty // GetJSONLDType returns the "type" property if it exists, and nil @@ -226,6 +235,12 @@ type ActivityStreamsCreate interface { SetActivityStreamsUpdated(i ActivityStreamsUpdatedProperty) // SetActivityStreamsUrl sets the "url" property. SetActivityStreamsUrl(i ActivityStreamsUrlProperty) + // SetForgeFedTeam sets the "team" property. + SetForgeFedTeam(i ForgeFedTeamProperty) + // SetForgeFedTicketsTrackedBy sets the "ticketsTrackedBy" property. + SetForgeFedTicketsTrackedBy(i ForgeFedTicketsTrackedByProperty) + // SetForgeFedTracksTicketsFor sets the "tracksTicketsFor" property. + SetForgeFedTracksTicketsFor(i ForgeFedTracksTicketsForProperty) // SetJSONLDId sets the "id" property. SetJSONLDId(i JSONLDIdProperty) // SetJSONLDType sets the "type" property. diff --git a/streams/vocab/gen_type_activitystreams_delete_interface.go b/streams/vocab/gen_type_activitystreams_delete_interface.go index 9aba3b8..d987998 100644 --- a/streams/vocab/gen_type_activitystreams_delete_interface.go +++ b/streams/vocab/gen_type_activitystreams_delete_interface.go @@ -128,6 +128,15 @@ type ActivityStreamsDelete interface { // GetActivityStreamsUrl returns the "url" property if it exists, and nil // otherwise. GetActivityStreamsUrl() ActivityStreamsUrlProperty + // GetForgeFedTeam returns the "team" property if it exists, and nil + // otherwise. + GetForgeFedTeam() ForgeFedTeamProperty + // GetForgeFedTicketsTrackedBy returns the "ticketsTrackedBy" property if + // it exists, and nil otherwise. + GetForgeFedTicketsTrackedBy() ForgeFedTicketsTrackedByProperty + // GetForgeFedTracksTicketsFor returns the "tracksTicketsFor" property if + // it exists, and nil otherwise. + GetForgeFedTracksTicketsFor() ForgeFedTracksTicketsForProperty // GetJSONLDId returns the "id" property if it exists, and nil otherwise. GetJSONLDId() JSONLDIdProperty // GetJSONLDType returns the "type" property if it exists, and nil @@ -227,6 +236,12 @@ type ActivityStreamsDelete interface { SetActivityStreamsUpdated(i ActivityStreamsUpdatedProperty) // SetActivityStreamsUrl sets the "url" property. SetActivityStreamsUrl(i ActivityStreamsUrlProperty) + // SetForgeFedTeam sets the "team" property. + SetForgeFedTeam(i ForgeFedTeamProperty) + // SetForgeFedTicketsTrackedBy sets the "ticketsTrackedBy" property. + SetForgeFedTicketsTrackedBy(i ForgeFedTicketsTrackedByProperty) + // SetForgeFedTracksTicketsFor sets the "tracksTicketsFor" property. + SetForgeFedTracksTicketsFor(i ForgeFedTracksTicketsForProperty) // SetJSONLDId sets the "id" property. SetJSONLDId(i JSONLDIdProperty) // SetJSONLDType sets the "type" property. diff --git a/streams/vocab/gen_type_activitystreams_dislike_interface.go b/streams/vocab/gen_type_activitystreams_dislike_interface.go index 1674930..b7fb54e 100644 --- a/streams/vocab/gen_type_activitystreams_dislike_interface.go +++ b/streams/vocab/gen_type_activitystreams_dislike_interface.go @@ -120,6 +120,15 @@ type ActivityStreamsDislike interface { // GetActivityStreamsUrl returns the "url" property if it exists, and nil // otherwise. GetActivityStreamsUrl() ActivityStreamsUrlProperty + // GetForgeFedTeam returns the "team" property if it exists, and nil + // otherwise. + GetForgeFedTeam() ForgeFedTeamProperty + // GetForgeFedTicketsTrackedBy returns the "ticketsTrackedBy" property if + // it exists, and nil otherwise. + GetForgeFedTicketsTrackedBy() ForgeFedTicketsTrackedByProperty + // GetForgeFedTracksTicketsFor returns the "tracksTicketsFor" property if + // it exists, and nil otherwise. + GetForgeFedTracksTicketsFor() ForgeFedTracksTicketsForProperty // GetJSONLDId returns the "id" property if it exists, and nil otherwise. GetJSONLDId() JSONLDIdProperty // GetJSONLDType returns the "type" property if it exists, and nil @@ -220,6 +229,12 @@ type ActivityStreamsDislike interface { SetActivityStreamsUpdated(i ActivityStreamsUpdatedProperty) // SetActivityStreamsUrl sets the "url" property. SetActivityStreamsUrl(i ActivityStreamsUrlProperty) + // SetForgeFedTeam sets the "team" property. + SetForgeFedTeam(i ForgeFedTeamProperty) + // SetForgeFedTicketsTrackedBy sets the "ticketsTrackedBy" property. + SetForgeFedTicketsTrackedBy(i ForgeFedTicketsTrackedByProperty) + // SetForgeFedTracksTicketsFor sets the "tracksTicketsFor" property. + SetForgeFedTracksTicketsFor(i ForgeFedTracksTicketsForProperty) // SetJSONLDId sets the "id" property. SetJSONLDId(i JSONLDIdProperty) // SetJSONLDType sets the "type" property. diff --git a/streams/vocab/gen_type_activitystreams_document_interface.go b/streams/vocab/gen_type_activitystreams_document_interface.go index 2901387..46312ca 100644 --- a/streams/vocab/gen_type_activitystreams_document_interface.go +++ b/streams/vocab/gen_type_activitystreams_document_interface.go @@ -104,6 +104,15 @@ type ActivityStreamsDocument interface { // GetActivityStreamsUrl returns the "url" property if it exists, and nil // otherwise. GetActivityStreamsUrl() ActivityStreamsUrlProperty + // GetForgeFedTeam returns the "team" property if it exists, and nil + // otherwise. + GetForgeFedTeam() ForgeFedTeamProperty + // GetForgeFedTicketsTrackedBy returns the "ticketsTrackedBy" property if + // it exists, and nil otherwise. + GetForgeFedTicketsTrackedBy() ForgeFedTicketsTrackedByProperty + // GetForgeFedTracksTicketsFor returns the "tracksTicketsFor" property if + // it exists, and nil otherwise. + GetForgeFedTracksTicketsFor() ForgeFedTracksTicketsForProperty // GetJSONLDId returns the "id" property if it exists, and nil otherwise. GetJSONLDId() JSONLDIdProperty // GetJSONLDType returns the "type" property if it exists, and nil @@ -197,6 +206,12 @@ type ActivityStreamsDocument interface { SetActivityStreamsUpdated(i ActivityStreamsUpdatedProperty) // SetActivityStreamsUrl sets the "url" property. SetActivityStreamsUrl(i ActivityStreamsUrlProperty) + // SetForgeFedTeam sets the "team" property. + SetForgeFedTeam(i ForgeFedTeamProperty) + // SetForgeFedTicketsTrackedBy sets the "ticketsTrackedBy" property. + SetForgeFedTicketsTrackedBy(i ForgeFedTicketsTrackedByProperty) + // SetForgeFedTracksTicketsFor sets the "tracksTicketsFor" property. + SetForgeFedTracksTicketsFor(i ForgeFedTracksTicketsForProperty) // SetJSONLDId sets the "id" property. SetJSONLDId(i JSONLDIdProperty) // SetJSONLDType sets the "type" property. diff --git a/streams/vocab/gen_type_activitystreams_event_interface.go b/streams/vocab/gen_type_activitystreams_event_interface.go index 9834bcc..bc25aee 100644 --- a/streams/vocab/gen_type_activitystreams_event_interface.go +++ b/streams/vocab/gen_type_activitystreams_event_interface.go @@ -105,6 +105,15 @@ type ActivityStreamsEvent interface { // GetActivityStreamsUrl returns the "url" property if it exists, and nil // otherwise. GetActivityStreamsUrl() ActivityStreamsUrlProperty + // GetForgeFedTeam returns the "team" property if it exists, and nil + // otherwise. + GetForgeFedTeam() ForgeFedTeamProperty + // GetForgeFedTicketsTrackedBy returns the "ticketsTrackedBy" property if + // it exists, and nil otherwise. + GetForgeFedTicketsTrackedBy() ForgeFedTicketsTrackedByProperty + // GetForgeFedTracksTicketsFor returns the "tracksTicketsFor" property if + // it exists, and nil otherwise. + GetForgeFedTracksTicketsFor() ForgeFedTracksTicketsForProperty // GetJSONLDId returns the "id" property if it exists, and nil otherwise. GetJSONLDId() JSONLDIdProperty // GetJSONLDType returns the "type" property if it exists, and nil @@ -194,6 +203,12 @@ type ActivityStreamsEvent interface { SetActivityStreamsUpdated(i ActivityStreamsUpdatedProperty) // SetActivityStreamsUrl sets the "url" property. SetActivityStreamsUrl(i ActivityStreamsUrlProperty) + // SetForgeFedTeam sets the "team" property. + SetForgeFedTeam(i ForgeFedTeamProperty) + // SetForgeFedTicketsTrackedBy sets the "ticketsTrackedBy" property. + SetForgeFedTicketsTrackedBy(i ForgeFedTicketsTrackedByProperty) + // SetForgeFedTracksTicketsFor sets the "tracksTicketsFor" property. + SetForgeFedTracksTicketsFor(i ForgeFedTracksTicketsForProperty) // SetJSONLDId sets the "id" property. SetJSONLDId(i JSONLDIdProperty) // SetJSONLDType sets the "type" property. diff --git a/streams/vocab/gen_type_activitystreams_flag_interface.go b/streams/vocab/gen_type_activitystreams_flag_interface.go index 117aa14..0aa5d1a 100644 --- a/streams/vocab/gen_type_activitystreams_flag_interface.go +++ b/streams/vocab/gen_type_activitystreams_flag_interface.go @@ -125,6 +125,15 @@ type ActivityStreamsFlag interface { // GetActivityStreamsUrl returns the "url" property if it exists, and nil // otherwise. GetActivityStreamsUrl() ActivityStreamsUrlProperty + // GetForgeFedTeam returns the "team" property if it exists, and nil + // otherwise. + GetForgeFedTeam() ForgeFedTeamProperty + // GetForgeFedTicketsTrackedBy returns the "ticketsTrackedBy" property if + // it exists, and nil otherwise. + GetForgeFedTicketsTrackedBy() ForgeFedTicketsTrackedByProperty + // GetForgeFedTracksTicketsFor returns the "tracksTicketsFor" property if + // it exists, and nil otherwise. + GetForgeFedTracksTicketsFor() ForgeFedTracksTicketsForProperty // GetJSONLDId returns the "id" property if it exists, and nil otherwise. GetJSONLDId() JSONLDIdProperty // GetJSONLDType returns the "type" property if it exists, and nil @@ -224,6 +233,12 @@ type ActivityStreamsFlag interface { SetActivityStreamsUpdated(i ActivityStreamsUpdatedProperty) // SetActivityStreamsUrl sets the "url" property. SetActivityStreamsUrl(i ActivityStreamsUrlProperty) + // SetForgeFedTeam sets the "team" property. + SetForgeFedTeam(i ForgeFedTeamProperty) + // SetForgeFedTicketsTrackedBy sets the "ticketsTrackedBy" property. + SetForgeFedTicketsTrackedBy(i ForgeFedTicketsTrackedByProperty) + // SetForgeFedTracksTicketsFor sets the "tracksTicketsFor" property. + SetForgeFedTracksTicketsFor(i ForgeFedTracksTicketsForProperty) // SetJSONLDId sets the "id" property. SetJSONLDId(i JSONLDIdProperty) // SetJSONLDType sets the "type" property. diff --git a/streams/vocab/gen_type_activitystreams_follow_interface.go b/streams/vocab/gen_type_activitystreams_follow_interface.go index 108ca60..fe7c5fd 100644 --- a/streams/vocab/gen_type_activitystreams_follow_interface.go +++ b/streams/vocab/gen_type_activitystreams_follow_interface.go @@ -129,6 +129,15 @@ type ActivityStreamsFollow interface { // GetActivityStreamsUrl returns the "url" property if it exists, and nil // otherwise. GetActivityStreamsUrl() ActivityStreamsUrlProperty + // GetForgeFedTeam returns the "team" property if it exists, and nil + // otherwise. + GetForgeFedTeam() ForgeFedTeamProperty + // GetForgeFedTicketsTrackedBy returns the "ticketsTrackedBy" property if + // it exists, and nil otherwise. + GetForgeFedTicketsTrackedBy() ForgeFedTicketsTrackedByProperty + // GetForgeFedTracksTicketsFor returns the "tracksTicketsFor" property if + // it exists, and nil otherwise. + GetForgeFedTracksTicketsFor() ForgeFedTracksTicketsForProperty // GetJSONLDId returns the "id" property if it exists, and nil otherwise. GetJSONLDId() JSONLDIdProperty // GetJSONLDType returns the "type" property if it exists, and nil @@ -228,6 +237,12 @@ type ActivityStreamsFollow interface { SetActivityStreamsUpdated(i ActivityStreamsUpdatedProperty) // SetActivityStreamsUrl sets the "url" property. SetActivityStreamsUrl(i ActivityStreamsUrlProperty) + // SetForgeFedTeam sets the "team" property. + SetForgeFedTeam(i ForgeFedTeamProperty) + // SetForgeFedTicketsTrackedBy sets the "ticketsTrackedBy" property. + SetForgeFedTicketsTrackedBy(i ForgeFedTicketsTrackedByProperty) + // SetForgeFedTracksTicketsFor sets the "tracksTicketsFor" property. + SetForgeFedTracksTicketsFor(i ForgeFedTracksTicketsForProperty) // SetJSONLDId sets the "id" property. SetJSONLDId(i JSONLDIdProperty) // SetJSONLDType sets the "type" property. diff --git a/streams/vocab/gen_type_activitystreams_group_interface.go b/streams/vocab/gen_type_activitystreams_group_interface.go index 1c3ccf3..8bca5f6 100644 --- a/streams/vocab/gen_type_activitystreams_group_interface.go +++ b/streams/vocab/gen_type_activitystreams_group_interface.go @@ -124,6 +124,15 @@ type ActivityStreamsGroup interface { // GetActivityStreamsUrl returns the "url" property if it exists, and nil // otherwise. GetActivityStreamsUrl() ActivityStreamsUrlProperty + // GetForgeFedTeam returns the "team" property if it exists, and nil + // otherwise. + GetForgeFedTeam() ForgeFedTeamProperty + // GetForgeFedTicketsTrackedBy returns the "ticketsTrackedBy" property if + // it exists, and nil otherwise. + GetForgeFedTicketsTrackedBy() ForgeFedTicketsTrackedByProperty + // GetForgeFedTracksTicketsFor returns the "tracksTicketsFor" property if + // it exists, and nil otherwise. + GetForgeFedTracksTicketsFor() ForgeFedTracksTicketsForProperty // GetJSONLDId returns the "id" property if it exists, and nil otherwise. GetJSONLDId() JSONLDIdProperty // GetJSONLDType returns the "type" property if it exists, and nil @@ -237,6 +246,12 @@ type ActivityStreamsGroup interface { SetActivityStreamsUpdated(i ActivityStreamsUpdatedProperty) // SetActivityStreamsUrl sets the "url" property. SetActivityStreamsUrl(i ActivityStreamsUrlProperty) + // SetForgeFedTeam sets the "team" property. + SetForgeFedTeam(i ForgeFedTeamProperty) + // SetForgeFedTicketsTrackedBy sets the "ticketsTrackedBy" property. + SetForgeFedTicketsTrackedBy(i ForgeFedTicketsTrackedByProperty) + // SetForgeFedTracksTicketsFor sets the "tracksTicketsFor" property. + SetForgeFedTracksTicketsFor(i ForgeFedTracksTicketsForProperty) // SetJSONLDId sets the "id" property. SetJSONLDId(i JSONLDIdProperty) // SetJSONLDType sets the "type" property. diff --git a/streams/vocab/gen_type_activitystreams_ignore_interface.go b/streams/vocab/gen_type_activitystreams_ignore_interface.go index f6a5068..33d93ef 100644 --- a/streams/vocab/gen_type_activitystreams_ignore_interface.go +++ b/streams/vocab/gen_type_activitystreams_ignore_interface.go @@ -124,6 +124,15 @@ type ActivityStreamsIgnore interface { // GetActivityStreamsUrl returns the "url" property if it exists, and nil // otherwise. GetActivityStreamsUrl() ActivityStreamsUrlProperty + // GetForgeFedTeam returns the "team" property if it exists, and nil + // otherwise. + GetForgeFedTeam() ForgeFedTeamProperty + // GetForgeFedTicketsTrackedBy returns the "ticketsTrackedBy" property if + // it exists, and nil otherwise. + GetForgeFedTicketsTrackedBy() ForgeFedTicketsTrackedByProperty + // GetForgeFedTracksTicketsFor returns the "tracksTicketsFor" property if + // it exists, and nil otherwise. + GetForgeFedTracksTicketsFor() ForgeFedTracksTicketsForProperty // GetJSONLDId returns the "id" property if it exists, and nil otherwise. GetJSONLDId() JSONLDIdProperty // GetJSONLDType returns the "type" property if it exists, and nil @@ -223,6 +232,12 @@ type ActivityStreamsIgnore interface { SetActivityStreamsUpdated(i ActivityStreamsUpdatedProperty) // SetActivityStreamsUrl sets the "url" property. SetActivityStreamsUrl(i ActivityStreamsUrlProperty) + // SetForgeFedTeam sets the "team" property. + SetForgeFedTeam(i ForgeFedTeamProperty) + // SetForgeFedTicketsTrackedBy sets the "ticketsTrackedBy" property. + SetForgeFedTicketsTrackedBy(i ForgeFedTicketsTrackedByProperty) + // SetForgeFedTracksTicketsFor sets the "tracksTicketsFor" property. + SetForgeFedTracksTicketsFor(i ForgeFedTracksTicketsForProperty) // SetJSONLDId sets the "id" property. SetJSONLDId(i JSONLDIdProperty) // SetJSONLDType sets the "type" property. diff --git a/streams/vocab/gen_type_activitystreams_image_interface.go b/streams/vocab/gen_type_activitystreams_image_interface.go index dd50bb7..b9151b8 100644 --- a/streams/vocab/gen_type_activitystreams_image_interface.go +++ b/streams/vocab/gen_type_activitystreams_image_interface.go @@ -121,6 +121,15 @@ type ActivityStreamsImage interface { // GetActivityStreamsWidth returns the "width" property if it exists, and // nil otherwise. GetActivityStreamsWidth() ActivityStreamsWidthProperty + // GetForgeFedTeam returns the "team" property if it exists, and nil + // otherwise. + GetForgeFedTeam() ForgeFedTeamProperty + // GetForgeFedTicketsTrackedBy returns the "ticketsTrackedBy" property if + // it exists, and nil otherwise. + GetForgeFedTicketsTrackedBy() ForgeFedTicketsTrackedByProperty + // GetForgeFedTracksTicketsFor returns the "tracksTicketsFor" property if + // it exists, and nil otherwise. + GetForgeFedTracksTicketsFor() ForgeFedTracksTicketsForProperty // GetJSONLDId returns the "id" property if it exists, and nil otherwise. GetJSONLDId() JSONLDIdProperty // GetJSONLDType returns the "type" property if it exists, and nil @@ -217,6 +226,12 @@ type ActivityStreamsImage interface { SetActivityStreamsUrl(i ActivityStreamsUrlProperty) // SetActivityStreamsWidth sets the "width" property. SetActivityStreamsWidth(i ActivityStreamsWidthProperty) + // SetForgeFedTeam sets the "team" property. + SetForgeFedTeam(i ForgeFedTeamProperty) + // SetForgeFedTicketsTrackedBy sets the "ticketsTrackedBy" property. + SetForgeFedTicketsTrackedBy(i ForgeFedTicketsTrackedByProperty) + // SetForgeFedTracksTicketsFor sets the "tracksTicketsFor" property. + SetForgeFedTracksTicketsFor(i ForgeFedTracksTicketsForProperty) // SetJSONLDId sets the "id" property. SetJSONLDId(i JSONLDIdProperty) // SetJSONLDType sets the "type" property. diff --git a/streams/vocab/gen_type_activitystreams_intransitiveactivity_interface.go b/streams/vocab/gen_type_activitystreams_intransitiveactivity_interface.go index f442a85..8f42bb6 100644 --- a/streams/vocab/gen_type_activitystreams_intransitiveactivity_interface.go +++ b/streams/vocab/gen_type_activitystreams_intransitiveactivity_interface.go @@ -125,6 +125,15 @@ type ActivityStreamsIntransitiveActivity interface { // GetActivityStreamsUrl returns the "url" property if it exists, and nil // otherwise. GetActivityStreamsUrl() ActivityStreamsUrlProperty + // GetForgeFedTeam returns the "team" property if it exists, and nil + // otherwise. + GetForgeFedTeam() ForgeFedTeamProperty + // GetForgeFedTicketsTrackedBy returns the "ticketsTrackedBy" property if + // it exists, and nil otherwise. + GetForgeFedTicketsTrackedBy() ForgeFedTicketsTrackedByProperty + // GetForgeFedTracksTicketsFor returns the "tracksTicketsFor" property if + // it exists, and nil otherwise. + GetForgeFedTracksTicketsFor() ForgeFedTracksTicketsForProperty // GetJSONLDId returns the "id" property if it exists, and nil otherwise. GetJSONLDId() JSONLDIdProperty // GetJSONLDType returns the "type" property if it exists, and nil @@ -223,6 +232,12 @@ type ActivityStreamsIntransitiveActivity interface { SetActivityStreamsUpdated(i ActivityStreamsUpdatedProperty) // SetActivityStreamsUrl sets the "url" property. SetActivityStreamsUrl(i ActivityStreamsUrlProperty) + // SetForgeFedTeam sets the "team" property. + SetForgeFedTeam(i ForgeFedTeamProperty) + // SetForgeFedTicketsTrackedBy sets the "ticketsTrackedBy" property. + SetForgeFedTicketsTrackedBy(i ForgeFedTicketsTrackedByProperty) + // SetForgeFedTracksTicketsFor sets the "tracksTicketsFor" property. + SetForgeFedTracksTicketsFor(i ForgeFedTracksTicketsForProperty) // SetJSONLDId sets the "id" property. SetJSONLDId(i JSONLDIdProperty) // SetJSONLDType sets the "type" property. diff --git a/streams/vocab/gen_type_activitystreams_invite_interface.go b/streams/vocab/gen_type_activitystreams_invite_interface.go index f09a858..fd20885 100644 --- a/streams/vocab/gen_type_activitystreams_invite_interface.go +++ b/streams/vocab/gen_type_activitystreams_invite_interface.go @@ -137,6 +137,15 @@ type ActivityStreamsInvite interface { // GetActivityStreamsUrl returns the "url" property if it exists, and nil // otherwise. GetActivityStreamsUrl() ActivityStreamsUrlProperty + // GetForgeFedTeam returns the "team" property if it exists, and nil + // otherwise. + GetForgeFedTeam() ForgeFedTeamProperty + // GetForgeFedTicketsTrackedBy returns the "ticketsTrackedBy" property if + // it exists, and nil otherwise. + GetForgeFedTicketsTrackedBy() ForgeFedTicketsTrackedByProperty + // GetForgeFedTracksTicketsFor returns the "tracksTicketsFor" property if + // it exists, and nil otherwise. + GetForgeFedTracksTicketsFor() ForgeFedTracksTicketsForProperty // GetJSONLDId returns the "id" property if it exists, and nil otherwise. GetJSONLDId() JSONLDIdProperty // GetJSONLDType returns the "type" property if it exists, and nil @@ -236,6 +245,12 @@ type ActivityStreamsInvite interface { SetActivityStreamsUpdated(i ActivityStreamsUpdatedProperty) // SetActivityStreamsUrl sets the "url" property. SetActivityStreamsUrl(i ActivityStreamsUrlProperty) + // SetForgeFedTeam sets the "team" property. + SetForgeFedTeam(i ForgeFedTeamProperty) + // SetForgeFedTicketsTrackedBy sets the "ticketsTrackedBy" property. + SetForgeFedTicketsTrackedBy(i ForgeFedTicketsTrackedByProperty) + // SetForgeFedTracksTicketsFor sets the "tracksTicketsFor" property. + SetForgeFedTracksTicketsFor(i ForgeFedTracksTicketsForProperty) // SetJSONLDId sets the "id" property. SetJSONLDId(i JSONLDIdProperty) // SetJSONLDType sets the "type" property. diff --git a/streams/vocab/gen_type_activitystreams_join_interface.go b/streams/vocab/gen_type_activitystreams_join_interface.go index 8ecbb40..d7135b9 100644 --- a/streams/vocab/gen_type_activitystreams_join_interface.go +++ b/streams/vocab/gen_type_activitystreams_join_interface.go @@ -127,6 +127,15 @@ type ActivityStreamsJoin interface { // GetActivityStreamsUrl returns the "url" property if it exists, and nil // otherwise. GetActivityStreamsUrl() ActivityStreamsUrlProperty + // GetForgeFedTeam returns the "team" property if it exists, and nil + // otherwise. + GetForgeFedTeam() ForgeFedTeamProperty + // GetForgeFedTicketsTrackedBy returns the "ticketsTrackedBy" property if + // it exists, and nil otherwise. + GetForgeFedTicketsTrackedBy() ForgeFedTicketsTrackedByProperty + // GetForgeFedTracksTicketsFor returns the "tracksTicketsFor" property if + // it exists, and nil otherwise. + GetForgeFedTracksTicketsFor() ForgeFedTracksTicketsForProperty // GetJSONLDId returns the "id" property if it exists, and nil otherwise. GetJSONLDId() JSONLDIdProperty // GetJSONLDType returns the "type" property if it exists, and nil @@ -226,6 +235,12 @@ type ActivityStreamsJoin interface { SetActivityStreamsUpdated(i ActivityStreamsUpdatedProperty) // SetActivityStreamsUrl sets the "url" property. SetActivityStreamsUrl(i ActivityStreamsUrlProperty) + // SetForgeFedTeam sets the "team" property. + SetForgeFedTeam(i ForgeFedTeamProperty) + // SetForgeFedTicketsTrackedBy sets the "ticketsTrackedBy" property. + SetForgeFedTicketsTrackedBy(i ForgeFedTicketsTrackedByProperty) + // SetForgeFedTracksTicketsFor sets the "tracksTicketsFor" property. + SetForgeFedTracksTicketsFor(i ForgeFedTracksTicketsForProperty) // SetJSONLDId sets the "id" property. SetJSONLDId(i JSONLDIdProperty) // SetJSONLDType sets the "type" property. diff --git a/streams/vocab/gen_type_activitystreams_leave_interface.go b/streams/vocab/gen_type_activitystreams_leave_interface.go index eb45cb5..2226a3f 100644 --- a/streams/vocab/gen_type_activitystreams_leave_interface.go +++ b/streams/vocab/gen_type_activitystreams_leave_interface.go @@ -141,6 +141,15 @@ type ActivityStreamsLeave interface { // GetActivityStreamsUrl returns the "url" property if it exists, and nil // otherwise. GetActivityStreamsUrl() ActivityStreamsUrlProperty + // GetForgeFedTeam returns the "team" property if it exists, and nil + // otherwise. + GetForgeFedTeam() ForgeFedTeamProperty + // GetForgeFedTicketsTrackedBy returns the "ticketsTrackedBy" property if + // it exists, and nil otherwise. + GetForgeFedTicketsTrackedBy() ForgeFedTicketsTrackedByProperty + // GetForgeFedTracksTicketsFor returns the "tracksTicketsFor" property if + // it exists, and nil otherwise. + GetForgeFedTracksTicketsFor() ForgeFedTracksTicketsForProperty // GetJSONLDId returns the "id" property if it exists, and nil otherwise. GetJSONLDId() JSONLDIdProperty // GetJSONLDType returns the "type" property if it exists, and nil @@ -240,6 +249,12 @@ type ActivityStreamsLeave interface { SetActivityStreamsUpdated(i ActivityStreamsUpdatedProperty) // SetActivityStreamsUrl sets the "url" property. SetActivityStreamsUrl(i ActivityStreamsUrlProperty) + // SetForgeFedTeam sets the "team" property. + SetForgeFedTeam(i ForgeFedTeamProperty) + // SetForgeFedTicketsTrackedBy sets the "ticketsTrackedBy" property. + SetForgeFedTicketsTrackedBy(i ForgeFedTicketsTrackedByProperty) + // SetForgeFedTracksTicketsFor sets the "tracksTicketsFor" property. + SetForgeFedTracksTicketsFor(i ForgeFedTracksTicketsForProperty) // SetJSONLDId sets the "id" property. SetJSONLDId(i JSONLDIdProperty) // SetJSONLDType sets the "type" property. diff --git a/streams/vocab/gen_type_activitystreams_like_interface.go b/streams/vocab/gen_type_activitystreams_like_interface.go index 649428b..87887a6 100644 --- a/streams/vocab/gen_type_activitystreams_like_interface.go +++ b/streams/vocab/gen_type_activitystreams_like_interface.go @@ -124,6 +124,15 @@ type ActivityStreamsLike interface { // GetActivityStreamsUrl returns the "url" property if it exists, and nil // otherwise. GetActivityStreamsUrl() ActivityStreamsUrlProperty + // GetForgeFedTeam returns the "team" property if it exists, and nil + // otherwise. + GetForgeFedTeam() ForgeFedTeamProperty + // GetForgeFedTicketsTrackedBy returns the "ticketsTrackedBy" property if + // it exists, and nil otherwise. + GetForgeFedTicketsTrackedBy() ForgeFedTicketsTrackedByProperty + // GetForgeFedTracksTicketsFor returns the "tracksTicketsFor" property if + // it exists, and nil otherwise. + GetForgeFedTracksTicketsFor() ForgeFedTracksTicketsForProperty // GetJSONLDId returns the "id" property if it exists, and nil otherwise. GetJSONLDId() JSONLDIdProperty // GetJSONLDType returns the "type" property if it exists, and nil @@ -223,6 +232,12 @@ type ActivityStreamsLike interface { SetActivityStreamsUpdated(i ActivityStreamsUpdatedProperty) // SetActivityStreamsUrl sets the "url" property. SetActivityStreamsUrl(i ActivityStreamsUrlProperty) + // SetForgeFedTeam sets the "team" property. + SetForgeFedTeam(i ForgeFedTeamProperty) + // SetForgeFedTicketsTrackedBy sets the "ticketsTrackedBy" property. + SetForgeFedTicketsTrackedBy(i ForgeFedTicketsTrackedByProperty) + // SetForgeFedTracksTicketsFor sets the "tracksTicketsFor" property. + SetForgeFedTracksTicketsFor(i ForgeFedTracksTicketsForProperty) // SetJSONLDId sets the "id" property. SetJSONLDId(i JSONLDIdProperty) // SetJSONLDType sets the "type" property. diff --git a/streams/vocab/gen_type_activitystreams_listen_interface.go b/streams/vocab/gen_type_activitystreams_listen_interface.go index bd5110d..1bdd0d9 100644 --- a/streams/vocab/gen_type_activitystreams_listen_interface.go +++ b/streams/vocab/gen_type_activitystreams_listen_interface.go @@ -123,6 +123,15 @@ type ActivityStreamsListen interface { // GetActivityStreamsUrl returns the "url" property if it exists, and nil // otherwise. GetActivityStreamsUrl() ActivityStreamsUrlProperty + // GetForgeFedTeam returns the "team" property if it exists, and nil + // otherwise. + GetForgeFedTeam() ForgeFedTeamProperty + // GetForgeFedTicketsTrackedBy returns the "ticketsTrackedBy" property if + // it exists, and nil otherwise. + GetForgeFedTicketsTrackedBy() ForgeFedTicketsTrackedByProperty + // GetForgeFedTracksTicketsFor returns the "tracksTicketsFor" property if + // it exists, and nil otherwise. + GetForgeFedTracksTicketsFor() ForgeFedTracksTicketsForProperty // GetJSONLDId returns the "id" property if it exists, and nil otherwise. GetJSONLDId() JSONLDIdProperty // GetJSONLDType returns the "type" property if it exists, and nil @@ -222,6 +231,12 @@ type ActivityStreamsListen interface { SetActivityStreamsUpdated(i ActivityStreamsUpdatedProperty) // SetActivityStreamsUrl sets the "url" property. SetActivityStreamsUrl(i ActivityStreamsUrlProperty) + // SetForgeFedTeam sets the "team" property. + SetForgeFedTeam(i ForgeFedTeamProperty) + // SetForgeFedTicketsTrackedBy sets the "ticketsTrackedBy" property. + SetForgeFedTicketsTrackedBy(i ForgeFedTicketsTrackedByProperty) + // SetForgeFedTracksTicketsFor sets the "tracksTicketsFor" property. + SetForgeFedTracksTicketsFor(i ForgeFedTracksTicketsForProperty) // SetJSONLDId sets the "id" property. SetJSONLDId(i JSONLDIdProperty) // SetJSONLDType sets the "type" property. diff --git a/streams/vocab/gen_type_activitystreams_move_interface.go b/streams/vocab/gen_type_activitystreams_move_interface.go index 8dc42bb..43359f6 100644 --- a/streams/vocab/gen_type_activitystreams_move_interface.go +++ b/streams/vocab/gen_type_activitystreams_move_interface.go @@ -132,6 +132,15 @@ type ActivityStreamsMove interface { // GetActivityStreamsUrl returns the "url" property if it exists, and nil // otherwise. GetActivityStreamsUrl() ActivityStreamsUrlProperty + // GetForgeFedTeam returns the "team" property if it exists, and nil + // otherwise. + GetForgeFedTeam() ForgeFedTeamProperty + // GetForgeFedTicketsTrackedBy returns the "ticketsTrackedBy" property if + // it exists, and nil otherwise. + GetForgeFedTicketsTrackedBy() ForgeFedTicketsTrackedByProperty + // GetForgeFedTracksTicketsFor returns the "tracksTicketsFor" property if + // it exists, and nil otherwise. + GetForgeFedTracksTicketsFor() ForgeFedTracksTicketsForProperty // GetJSONLDId returns the "id" property if it exists, and nil otherwise. GetJSONLDId() JSONLDIdProperty // GetJSONLDType returns the "type" property if it exists, and nil @@ -231,6 +240,12 @@ type ActivityStreamsMove interface { SetActivityStreamsUpdated(i ActivityStreamsUpdatedProperty) // SetActivityStreamsUrl sets the "url" property. SetActivityStreamsUrl(i ActivityStreamsUrlProperty) + // SetForgeFedTeam sets the "team" property. + SetForgeFedTeam(i ForgeFedTeamProperty) + // SetForgeFedTicketsTrackedBy sets the "ticketsTrackedBy" property. + SetForgeFedTicketsTrackedBy(i ForgeFedTicketsTrackedByProperty) + // SetForgeFedTracksTicketsFor sets the "tracksTicketsFor" property. + SetForgeFedTracksTicketsFor(i ForgeFedTracksTicketsForProperty) // SetJSONLDId sets the "id" property. SetJSONLDId(i JSONLDIdProperty) // SetJSONLDType sets the "type" property. diff --git a/streams/vocab/gen_type_activitystreams_note_interface.go b/streams/vocab/gen_type_activitystreams_note_interface.go index d7ba747..0cde211 100644 --- a/streams/vocab/gen_type_activitystreams_note_interface.go +++ b/streams/vocab/gen_type_activitystreams_note_interface.go @@ -105,6 +105,15 @@ type ActivityStreamsNote interface { // GetActivityStreamsUrl returns the "url" property if it exists, and nil // otherwise. GetActivityStreamsUrl() ActivityStreamsUrlProperty + // GetForgeFedTeam returns the "team" property if it exists, and nil + // otherwise. + GetForgeFedTeam() ForgeFedTeamProperty + // GetForgeFedTicketsTrackedBy returns the "ticketsTrackedBy" property if + // it exists, and nil otherwise. + GetForgeFedTicketsTrackedBy() ForgeFedTicketsTrackedByProperty + // GetForgeFedTracksTicketsFor returns the "tracksTicketsFor" property if + // it exists, and nil otherwise. + GetForgeFedTracksTicketsFor() ForgeFedTracksTicketsForProperty // GetJSONLDId returns the "id" property if it exists, and nil otherwise. GetJSONLDId() JSONLDIdProperty // GetJSONLDType returns the "type" property if it exists, and nil @@ -194,6 +203,12 @@ type ActivityStreamsNote interface { SetActivityStreamsUpdated(i ActivityStreamsUpdatedProperty) // SetActivityStreamsUrl sets the "url" property. SetActivityStreamsUrl(i ActivityStreamsUrlProperty) + // SetForgeFedTeam sets the "team" property. + SetForgeFedTeam(i ForgeFedTeamProperty) + // SetForgeFedTicketsTrackedBy sets the "ticketsTrackedBy" property. + SetForgeFedTicketsTrackedBy(i ForgeFedTicketsTrackedByProperty) + // SetForgeFedTracksTicketsFor sets the "tracksTicketsFor" property. + SetForgeFedTracksTicketsFor(i ForgeFedTracksTicketsForProperty) // SetJSONLDId sets the "id" property. SetJSONLDId(i JSONLDIdProperty) // SetJSONLDType sets the "type" property. diff --git a/streams/vocab/gen_type_activitystreams_object_interface.go b/streams/vocab/gen_type_activitystreams_object_interface.go index d4f3d0d..b6f3fef 100644 --- a/streams/vocab/gen_type_activitystreams_object_interface.go +++ b/streams/vocab/gen_type_activitystreams_object_interface.go @@ -107,6 +107,15 @@ type ActivityStreamsObject interface { // GetActivityStreamsUrl returns the "url" property if it exists, and nil // otherwise. GetActivityStreamsUrl() ActivityStreamsUrlProperty + // GetForgeFedTeam returns the "team" property if it exists, and nil + // otherwise. + GetForgeFedTeam() ForgeFedTeamProperty + // GetForgeFedTicketsTrackedBy returns the "ticketsTrackedBy" property if + // it exists, and nil otherwise. + GetForgeFedTicketsTrackedBy() ForgeFedTicketsTrackedByProperty + // GetForgeFedTracksTicketsFor returns the "tracksTicketsFor" property if + // it exists, and nil otherwise. + GetForgeFedTracksTicketsFor() ForgeFedTracksTicketsForProperty // GetJSONLDId returns the "id" property if it exists, and nil otherwise. GetJSONLDId() JSONLDIdProperty // GetJSONLDType returns the "type" property if it exists, and nil @@ -196,6 +205,12 @@ type ActivityStreamsObject interface { SetActivityStreamsUpdated(i ActivityStreamsUpdatedProperty) // SetActivityStreamsUrl sets the "url" property. SetActivityStreamsUrl(i ActivityStreamsUrlProperty) + // SetForgeFedTeam sets the "team" property. + SetForgeFedTeam(i ForgeFedTeamProperty) + // SetForgeFedTicketsTrackedBy sets the "ticketsTrackedBy" property. + SetForgeFedTicketsTrackedBy(i ForgeFedTicketsTrackedByProperty) + // SetForgeFedTracksTicketsFor sets the "tracksTicketsFor" property. + SetForgeFedTracksTicketsFor(i ForgeFedTracksTicketsForProperty) // SetJSONLDId sets the "id" property. SetJSONLDId(i JSONLDIdProperty) // SetJSONLDType sets the "type" property. diff --git a/streams/vocab/gen_type_activitystreams_offer_interface.go b/streams/vocab/gen_type_activitystreams_offer_interface.go index f00718f..6f4cc98 100644 --- a/streams/vocab/gen_type_activitystreams_offer_interface.go +++ b/streams/vocab/gen_type_activitystreams_offer_interface.go @@ -131,6 +131,15 @@ type ActivityStreamsOffer interface { // GetActivityStreamsUrl returns the "url" property if it exists, and nil // otherwise. GetActivityStreamsUrl() ActivityStreamsUrlProperty + // GetForgeFedTeam returns the "team" property if it exists, and nil + // otherwise. + GetForgeFedTeam() ForgeFedTeamProperty + // GetForgeFedTicketsTrackedBy returns the "ticketsTrackedBy" property if + // it exists, and nil otherwise. + GetForgeFedTicketsTrackedBy() ForgeFedTicketsTrackedByProperty + // GetForgeFedTracksTicketsFor returns the "tracksTicketsFor" property if + // it exists, and nil otherwise. + GetForgeFedTracksTicketsFor() ForgeFedTracksTicketsForProperty // GetJSONLDId returns the "id" property if it exists, and nil otherwise. GetJSONLDId() JSONLDIdProperty // GetJSONLDType returns the "type" property if it exists, and nil @@ -230,6 +239,12 @@ type ActivityStreamsOffer interface { SetActivityStreamsUpdated(i ActivityStreamsUpdatedProperty) // SetActivityStreamsUrl sets the "url" property. SetActivityStreamsUrl(i ActivityStreamsUrlProperty) + // SetForgeFedTeam sets the "team" property. + SetForgeFedTeam(i ForgeFedTeamProperty) + // SetForgeFedTicketsTrackedBy sets the "ticketsTrackedBy" property. + SetForgeFedTicketsTrackedBy(i ForgeFedTicketsTrackedByProperty) + // SetForgeFedTracksTicketsFor sets the "tracksTicketsFor" property. + SetForgeFedTracksTicketsFor(i ForgeFedTracksTicketsForProperty) // SetJSONLDId sets the "id" property. SetJSONLDId(i JSONLDIdProperty) // SetJSONLDType sets the "type" property. diff --git a/streams/vocab/gen_type_activitystreams_orderedcollection_interface.go b/streams/vocab/gen_type_activitystreams_orderedcollection_interface.go index 6bd6889..9bb278e 100644 --- a/streams/vocab/gen_type_activitystreams_orderedcollection_interface.go +++ b/streams/vocab/gen_type_activitystreams_orderedcollection_interface.go @@ -130,6 +130,18 @@ type ActivityStreamsOrderedCollection interface { // GetActivityStreamsUrl returns the "url" property if it exists, and nil // otherwise. GetActivityStreamsUrl() ActivityStreamsUrlProperty + // GetForgeFedEarlyItems returns the "earlyItems" property if it exists, + // and nil otherwise. + GetForgeFedEarlyItems() ForgeFedEarlyItemsProperty + // GetForgeFedTeam returns the "team" property if it exists, and nil + // otherwise. + GetForgeFedTeam() ForgeFedTeamProperty + // GetForgeFedTicketsTrackedBy returns the "ticketsTrackedBy" property if + // it exists, and nil otherwise. + GetForgeFedTicketsTrackedBy() ForgeFedTicketsTrackedByProperty + // GetForgeFedTracksTicketsFor returns the "tracksTicketsFor" property if + // it exists, and nil otherwise. + GetForgeFedTracksTicketsFor() ForgeFedTracksTicketsForProperty // GetJSONLDId returns the "id" property if it exists, and nil otherwise. GetJSONLDId() JSONLDIdProperty // GetJSONLDType returns the "type" property if it exists, and nil @@ -230,6 +242,14 @@ type ActivityStreamsOrderedCollection interface { SetActivityStreamsUpdated(i ActivityStreamsUpdatedProperty) // SetActivityStreamsUrl sets the "url" property. SetActivityStreamsUrl(i ActivityStreamsUrlProperty) + // SetForgeFedEarlyItems sets the "earlyItems" property. + SetForgeFedEarlyItems(i ForgeFedEarlyItemsProperty) + // SetForgeFedTeam sets the "team" property. + SetForgeFedTeam(i ForgeFedTeamProperty) + // SetForgeFedTicketsTrackedBy sets the "ticketsTrackedBy" property. + SetForgeFedTicketsTrackedBy(i ForgeFedTicketsTrackedByProperty) + // SetForgeFedTracksTicketsFor sets the "tracksTicketsFor" property. + SetForgeFedTracksTicketsFor(i ForgeFedTracksTicketsForProperty) // SetJSONLDId sets the "id" property. SetJSONLDId(i JSONLDIdProperty) // SetJSONLDType sets the "type" property. diff --git a/streams/vocab/gen_type_activitystreams_orderedcollectionpage_interface.go b/streams/vocab/gen_type_activitystreams_orderedcollectionpage_interface.go index 1fdb337..58f0cb3 100644 --- a/streams/vocab/gen_type_activitystreams_orderedcollectionpage_interface.go +++ b/streams/vocab/gen_type_activitystreams_orderedcollectionpage_interface.go @@ -144,6 +144,18 @@ type ActivityStreamsOrderedCollectionPage interface { // GetActivityStreamsUrl returns the "url" property if it exists, and nil // otherwise. GetActivityStreamsUrl() ActivityStreamsUrlProperty + // GetForgeFedEarlyItems returns the "earlyItems" property if it exists, + // and nil otherwise. + GetForgeFedEarlyItems() ForgeFedEarlyItemsProperty + // GetForgeFedTeam returns the "team" property if it exists, and nil + // otherwise. + GetForgeFedTeam() ForgeFedTeamProperty + // GetForgeFedTicketsTrackedBy returns the "ticketsTrackedBy" property if + // it exists, and nil otherwise. + GetForgeFedTicketsTrackedBy() ForgeFedTicketsTrackedByProperty + // GetForgeFedTracksTicketsFor returns the "tracksTicketsFor" property if + // it exists, and nil otherwise. + GetForgeFedTracksTicketsFor() ForgeFedTracksTicketsForProperty // GetJSONLDId returns the "id" property if it exists, and nil otherwise. GetJSONLDId() JSONLDIdProperty // GetJSONLDType returns the "type" property if it exists, and nil @@ -252,6 +264,14 @@ type ActivityStreamsOrderedCollectionPage interface { SetActivityStreamsUpdated(i ActivityStreamsUpdatedProperty) // SetActivityStreamsUrl sets the "url" property. SetActivityStreamsUrl(i ActivityStreamsUrlProperty) + // SetForgeFedEarlyItems sets the "earlyItems" property. + SetForgeFedEarlyItems(i ForgeFedEarlyItemsProperty) + // SetForgeFedTeam sets the "team" property. + SetForgeFedTeam(i ForgeFedTeamProperty) + // SetForgeFedTicketsTrackedBy sets the "ticketsTrackedBy" property. + SetForgeFedTicketsTrackedBy(i ForgeFedTicketsTrackedByProperty) + // SetForgeFedTracksTicketsFor sets the "tracksTicketsFor" property. + SetForgeFedTracksTicketsFor(i ForgeFedTracksTicketsForProperty) // SetJSONLDId sets the "id" property. SetJSONLDId(i JSONLDIdProperty) // SetJSONLDType sets the "type" property. diff --git a/streams/vocab/gen_type_activitystreams_organization_interface.go b/streams/vocab/gen_type_activitystreams_organization_interface.go index f7f3212..2b18b58 100644 --- a/streams/vocab/gen_type_activitystreams_organization_interface.go +++ b/streams/vocab/gen_type_activitystreams_organization_interface.go @@ -124,6 +124,15 @@ type ActivityStreamsOrganization interface { // GetActivityStreamsUrl returns the "url" property if it exists, and nil // otherwise. GetActivityStreamsUrl() ActivityStreamsUrlProperty + // GetForgeFedTeam returns the "team" property if it exists, and nil + // otherwise. + GetForgeFedTeam() ForgeFedTeamProperty + // GetForgeFedTicketsTrackedBy returns the "ticketsTrackedBy" property if + // it exists, and nil otherwise. + GetForgeFedTicketsTrackedBy() ForgeFedTicketsTrackedByProperty + // GetForgeFedTracksTicketsFor returns the "tracksTicketsFor" property if + // it exists, and nil otherwise. + GetForgeFedTracksTicketsFor() ForgeFedTracksTicketsForProperty // GetJSONLDId returns the "id" property if it exists, and nil otherwise. GetJSONLDId() JSONLDIdProperty // GetJSONLDType returns the "type" property if it exists, and nil @@ -238,6 +247,12 @@ type ActivityStreamsOrganization interface { SetActivityStreamsUpdated(i ActivityStreamsUpdatedProperty) // SetActivityStreamsUrl sets the "url" property. SetActivityStreamsUrl(i ActivityStreamsUrlProperty) + // SetForgeFedTeam sets the "team" property. + SetForgeFedTeam(i ForgeFedTeamProperty) + // SetForgeFedTicketsTrackedBy sets the "ticketsTrackedBy" property. + SetForgeFedTicketsTrackedBy(i ForgeFedTicketsTrackedByProperty) + // SetForgeFedTracksTicketsFor sets the "tracksTicketsFor" property. + SetForgeFedTracksTicketsFor(i ForgeFedTracksTicketsForProperty) // SetJSONLDId sets the "id" property. SetJSONLDId(i JSONLDIdProperty) // SetJSONLDType sets the "type" property. diff --git a/streams/vocab/gen_type_activitystreams_page_interface.go b/streams/vocab/gen_type_activitystreams_page_interface.go index 9dbd863..f449c0a 100644 --- a/streams/vocab/gen_type_activitystreams_page_interface.go +++ b/streams/vocab/gen_type_activitystreams_page_interface.go @@ -104,6 +104,15 @@ type ActivityStreamsPage interface { // GetActivityStreamsUrl returns the "url" property if it exists, and nil // otherwise. GetActivityStreamsUrl() ActivityStreamsUrlProperty + // GetForgeFedTeam returns the "team" property if it exists, and nil + // otherwise. + GetForgeFedTeam() ForgeFedTeamProperty + // GetForgeFedTicketsTrackedBy returns the "ticketsTrackedBy" property if + // it exists, and nil otherwise. + GetForgeFedTicketsTrackedBy() ForgeFedTicketsTrackedByProperty + // GetForgeFedTracksTicketsFor returns the "tracksTicketsFor" property if + // it exists, and nil otherwise. + GetForgeFedTracksTicketsFor() ForgeFedTracksTicketsForProperty // GetJSONLDId returns the "id" property if it exists, and nil otherwise. GetJSONLDId() JSONLDIdProperty // GetJSONLDType returns the "type" property if it exists, and nil @@ -196,6 +205,12 @@ type ActivityStreamsPage interface { SetActivityStreamsUpdated(i ActivityStreamsUpdatedProperty) // SetActivityStreamsUrl sets the "url" property. SetActivityStreamsUrl(i ActivityStreamsUrlProperty) + // SetForgeFedTeam sets the "team" property. + SetForgeFedTeam(i ForgeFedTeamProperty) + // SetForgeFedTicketsTrackedBy sets the "ticketsTrackedBy" property. + SetForgeFedTicketsTrackedBy(i ForgeFedTicketsTrackedByProperty) + // SetForgeFedTracksTicketsFor sets the "tracksTicketsFor" property. + SetForgeFedTracksTicketsFor(i ForgeFedTracksTicketsForProperty) // SetJSONLDId sets the "id" property. SetJSONLDId(i JSONLDIdProperty) // SetJSONLDType sets the "type" property. diff --git a/streams/vocab/gen_type_activitystreams_person_interface.go b/streams/vocab/gen_type_activitystreams_person_interface.go index 7af3c6f..66b91cc 100644 --- a/streams/vocab/gen_type_activitystreams_person_interface.go +++ b/streams/vocab/gen_type_activitystreams_person_interface.go @@ -124,6 +124,15 @@ type ActivityStreamsPerson interface { // GetActivityStreamsUrl returns the "url" property if it exists, and nil // otherwise. GetActivityStreamsUrl() ActivityStreamsUrlProperty + // GetForgeFedTeam returns the "team" property if it exists, and nil + // otherwise. + GetForgeFedTeam() ForgeFedTeamProperty + // GetForgeFedTicketsTrackedBy returns the "ticketsTrackedBy" property if + // it exists, and nil otherwise. + GetForgeFedTicketsTrackedBy() ForgeFedTicketsTrackedByProperty + // GetForgeFedTracksTicketsFor returns the "tracksTicketsFor" property if + // it exists, and nil otherwise. + GetForgeFedTracksTicketsFor() ForgeFedTracksTicketsForProperty // GetJSONLDId returns the "id" property if it exists, and nil otherwise. GetJSONLDId() JSONLDIdProperty // GetJSONLDType returns the "type" property if it exists, and nil @@ -237,6 +246,12 @@ type ActivityStreamsPerson interface { SetActivityStreamsUpdated(i ActivityStreamsUpdatedProperty) // SetActivityStreamsUrl sets the "url" property. SetActivityStreamsUrl(i ActivityStreamsUrlProperty) + // SetForgeFedTeam sets the "team" property. + SetForgeFedTeam(i ForgeFedTeamProperty) + // SetForgeFedTicketsTrackedBy sets the "ticketsTrackedBy" property. + SetForgeFedTicketsTrackedBy(i ForgeFedTicketsTrackedByProperty) + // SetForgeFedTracksTicketsFor sets the "tracksTicketsFor" property. + SetForgeFedTracksTicketsFor(i ForgeFedTracksTicketsForProperty) // SetJSONLDId sets the "id" property. SetJSONLDId(i JSONLDIdProperty) // SetJSONLDType sets the "type" property. diff --git a/streams/vocab/gen_type_activitystreams_place_interface.go b/streams/vocab/gen_type_activitystreams_place_interface.go index abc0d8b..ac38a66 100644 --- a/streams/vocab/gen_type_activitystreams_place_interface.go +++ b/streams/vocab/gen_type_activitystreams_place_interface.go @@ -129,6 +129,15 @@ type ActivityStreamsPlace interface { // GetActivityStreamsUrl returns the "url" property if it exists, and nil // otherwise. GetActivityStreamsUrl() ActivityStreamsUrlProperty + // GetForgeFedTeam returns the "team" property if it exists, and nil + // otherwise. + GetForgeFedTeam() ForgeFedTeamProperty + // GetForgeFedTicketsTrackedBy returns the "ticketsTrackedBy" property if + // it exists, and nil otherwise. + GetForgeFedTicketsTrackedBy() ForgeFedTicketsTrackedByProperty + // GetForgeFedTracksTicketsFor returns the "tracksTicketsFor" property if + // it exists, and nil otherwise. + GetForgeFedTracksTicketsFor() ForgeFedTracksTicketsForProperty // GetJSONLDId returns the "id" property if it exists, and nil otherwise. GetJSONLDId() JSONLDIdProperty // GetJSONLDType returns the "type" property if it exists, and nil @@ -228,6 +237,12 @@ type ActivityStreamsPlace interface { SetActivityStreamsUpdated(i ActivityStreamsUpdatedProperty) // SetActivityStreamsUrl sets the "url" property. SetActivityStreamsUrl(i ActivityStreamsUrlProperty) + // SetForgeFedTeam sets the "team" property. + SetForgeFedTeam(i ForgeFedTeamProperty) + // SetForgeFedTicketsTrackedBy sets the "ticketsTrackedBy" property. + SetForgeFedTicketsTrackedBy(i ForgeFedTicketsTrackedByProperty) + // SetForgeFedTracksTicketsFor sets the "tracksTicketsFor" property. + SetForgeFedTracksTicketsFor(i ForgeFedTracksTicketsForProperty) // SetJSONLDId sets the "id" property. SetJSONLDId(i JSONLDIdProperty) // SetJSONLDType sets the "type" property. diff --git a/streams/vocab/gen_type_activitystreams_profile_interface.go b/streams/vocab/gen_type_activitystreams_profile_interface.go index a147170..27e84db 100644 --- a/streams/vocab/gen_type_activitystreams_profile_interface.go +++ b/streams/vocab/gen_type_activitystreams_profile_interface.go @@ -112,6 +112,15 @@ type ActivityStreamsProfile interface { // GetActivityStreamsUrl returns the "url" property if it exists, and nil // otherwise. GetActivityStreamsUrl() ActivityStreamsUrlProperty + // GetForgeFedTeam returns the "team" property if it exists, and nil + // otherwise. + GetForgeFedTeam() ForgeFedTeamProperty + // GetForgeFedTicketsTrackedBy returns the "ticketsTrackedBy" property if + // it exists, and nil otherwise. + GetForgeFedTicketsTrackedBy() ForgeFedTicketsTrackedByProperty + // GetForgeFedTracksTicketsFor returns the "tracksTicketsFor" property if + // it exists, and nil otherwise. + GetForgeFedTracksTicketsFor() ForgeFedTracksTicketsForProperty // GetJSONLDId returns the "id" property if it exists, and nil otherwise. GetJSONLDId() JSONLDIdProperty // GetJSONLDType returns the "type" property if it exists, and nil @@ -204,6 +213,12 @@ type ActivityStreamsProfile interface { SetActivityStreamsUpdated(i ActivityStreamsUpdatedProperty) // SetActivityStreamsUrl sets the "url" property. SetActivityStreamsUrl(i ActivityStreamsUrlProperty) + // SetForgeFedTeam sets the "team" property. + SetForgeFedTeam(i ForgeFedTeamProperty) + // SetForgeFedTicketsTrackedBy sets the "ticketsTrackedBy" property. + SetForgeFedTicketsTrackedBy(i ForgeFedTicketsTrackedByProperty) + // SetForgeFedTracksTicketsFor sets the "tracksTicketsFor" property. + SetForgeFedTracksTicketsFor(i ForgeFedTracksTicketsForProperty) // SetJSONLDId sets the "id" property. SetJSONLDId(i JSONLDIdProperty) // SetJSONLDType sets the "type" property. diff --git a/streams/vocab/gen_type_activitystreams_question_interface.go b/streams/vocab/gen_type_activitystreams_question_interface.go index 1cb3847..a551b2a 100644 --- a/streams/vocab/gen_type_activitystreams_question_interface.go +++ b/streams/vocab/gen_type_activitystreams_question_interface.go @@ -146,6 +146,15 @@ type ActivityStreamsQuestion interface { // GetActivityStreamsUrl returns the "url" property if it exists, and nil // otherwise. GetActivityStreamsUrl() ActivityStreamsUrlProperty + // GetForgeFedTeam returns the "team" property if it exists, and nil + // otherwise. + GetForgeFedTeam() ForgeFedTeamProperty + // GetForgeFedTicketsTrackedBy returns the "ticketsTrackedBy" property if + // it exists, and nil otherwise. + GetForgeFedTicketsTrackedBy() ForgeFedTicketsTrackedByProperty + // GetForgeFedTracksTicketsFor returns the "tracksTicketsFor" property if + // it exists, and nil otherwise. + GetForgeFedTracksTicketsFor() ForgeFedTracksTicketsForProperty // GetJSONLDId returns the "id" property if it exists, and nil otherwise. GetJSONLDId() JSONLDIdProperty // GetJSONLDType returns the "type" property if it exists, and nil @@ -253,6 +262,12 @@ type ActivityStreamsQuestion interface { SetActivityStreamsUpdated(i ActivityStreamsUpdatedProperty) // SetActivityStreamsUrl sets the "url" property. SetActivityStreamsUrl(i ActivityStreamsUrlProperty) + // SetForgeFedTeam sets the "team" property. + SetForgeFedTeam(i ForgeFedTeamProperty) + // SetForgeFedTicketsTrackedBy sets the "ticketsTrackedBy" property. + SetForgeFedTicketsTrackedBy(i ForgeFedTicketsTrackedByProperty) + // SetForgeFedTracksTicketsFor sets the "tracksTicketsFor" property. + SetForgeFedTracksTicketsFor(i ForgeFedTracksTicketsForProperty) // SetJSONLDId sets the "id" property. SetJSONLDId(i JSONLDIdProperty) // SetJSONLDType sets the "type" property. diff --git a/streams/vocab/gen_type_activitystreams_read_interface.go b/streams/vocab/gen_type_activitystreams_read_interface.go index 5d28e80..2a6806b 100644 --- a/streams/vocab/gen_type_activitystreams_read_interface.go +++ b/streams/vocab/gen_type_activitystreams_read_interface.go @@ -123,6 +123,15 @@ type ActivityStreamsRead interface { // GetActivityStreamsUrl returns the "url" property if it exists, and nil // otherwise. GetActivityStreamsUrl() ActivityStreamsUrlProperty + // GetForgeFedTeam returns the "team" property if it exists, and nil + // otherwise. + GetForgeFedTeam() ForgeFedTeamProperty + // GetForgeFedTicketsTrackedBy returns the "ticketsTrackedBy" property if + // it exists, and nil otherwise. + GetForgeFedTicketsTrackedBy() ForgeFedTicketsTrackedByProperty + // GetForgeFedTracksTicketsFor returns the "tracksTicketsFor" property if + // it exists, and nil otherwise. + GetForgeFedTracksTicketsFor() ForgeFedTracksTicketsForProperty // GetJSONLDId returns the "id" property if it exists, and nil otherwise. GetJSONLDId() JSONLDIdProperty // GetJSONLDType returns the "type" property if it exists, and nil @@ -222,6 +231,12 @@ type ActivityStreamsRead interface { SetActivityStreamsUpdated(i ActivityStreamsUpdatedProperty) // SetActivityStreamsUrl sets the "url" property. SetActivityStreamsUrl(i ActivityStreamsUrlProperty) + // SetForgeFedTeam sets the "team" property. + SetForgeFedTeam(i ForgeFedTeamProperty) + // SetForgeFedTicketsTrackedBy sets the "ticketsTrackedBy" property. + SetForgeFedTicketsTrackedBy(i ForgeFedTicketsTrackedByProperty) + // SetForgeFedTracksTicketsFor sets the "tracksTicketsFor" property. + SetForgeFedTracksTicketsFor(i ForgeFedTracksTicketsForProperty) // SetJSONLDId sets the "id" property. SetJSONLDId(i JSONLDIdProperty) // SetJSONLDType sets the "type" property. diff --git a/streams/vocab/gen_type_activitystreams_reject_interface.go b/streams/vocab/gen_type_activitystreams_reject_interface.go index 552f8c8..aa15967 100644 --- a/streams/vocab/gen_type_activitystreams_reject_interface.go +++ b/streams/vocab/gen_type_activitystreams_reject_interface.go @@ -131,6 +131,15 @@ type ActivityStreamsReject interface { // GetActivityStreamsUrl returns the "url" property if it exists, and nil // otherwise. GetActivityStreamsUrl() ActivityStreamsUrlProperty + // GetForgeFedTeam returns the "team" property if it exists, and nil + // otherwise. + GetForgeFedTeam() ForgeFedTeamProperty + // GetForgeFedTicketsTrackedBy returns the "ticketsTrackedBy" property if + // it exists, and nil otherwise. + GetForgeFedTicketsTrackedBy() ForgeFedTicketsTrackedByProperty + // GetForgeFedTracksTicketsFor returns the "tracksTicketsFor" property if + // it exists, and nil otherwise. + GetForgeFedTracksTicketsFor() ForgeFedTracksTicketsForProperty // GetJSONLDId returns the "id" property if it exists, and nil otherwise. GetJSONLDId() JSONLDIdProperty // GetJSONLDType returns the "type" property if it exists, and nil @@ -230,6 +239,12 @@ type ActivityStreamsReject interface { SetActivityStreamsUpdated(i ActivityStreamsUpdatedProperty) // SetActivityStreamsUrl sets the "url" property. SetActivityStreamsUrl(i ActivityStreamsUrlProperty) + // SetForgeFedTeam sets the "team" property. + SetForgeFedTeam(i ForgeFedTeamProperty) + // SetForgeFedTicketsTrackedBy sets the "ticketsTrackedBy" property. + SetForgeFedTicketsTrackedBy(i ForgeFedTicketsTrackedByProperty) + // SetForgeFedTracksTicketsFor sets the "tracksTicketsFor" property. + SetForgeFedTracksTicketsFor(i ForgeFedTracksTicketsForProperty) // SetJSONLDId sets the "id" property. SetJSONLDId(i JSONLDIdProperty) // SetJSONLDType sets the "type" property. diff --git a/streams/vocab/gen_type_activitystreams_relationship_interface.go b/streams/vocab/gen_type_activitystreams_relationship_interface.go index d375b8c..b0c161f 100644 --- a/streams/vocab/gen_type_activitystreams_relationship_interface.go +++ b/streams/vocab/gen_type_activitystreams_relationship_interface.go @@ -120,6 +120,15 @@ type ActivityStreamsRelationship interface { // GetActivityStreamsUrl returns the "url" property if it exists, and nil // otherwise. GetActivityStreamsUrl() ActivityStreamsUrlProperty + // GetForgeFedTeam returns the "team" property if it exists, and nil + // otherwise. + GetForgeFedTeam() ForgeFedTeamProperty + // GetForgeFedTicketsTrackedBy returns the "ticketsTrackedBy" property if + // it exists, and nil otherwise. + GetForgeFedTicketsTrackedBy() ForgeFedTicketsTrackedByProperty + // GetForgeFedTracksTicketsFor returns the "tracksTicketsFor" property if + // it exists, and nil otherwise. + GetForgeFedTracksTicketsFor() ForgeFedTracksTicketsForProperty // GetJSONLDId returns the "id" property if it exists, and nil otherwise. GetJSONLDId() JSONLDIdProperty // GetJSONLDType returns the "type" property if it exists, and nil @@ -214,6 +223,12 @@ type ActivityStreamsRelationship interface { SetActivityStreamsUpdated(i ActivityStreamsUpdatedProperty) // SetActivityStreamsUrl sets the "url" property. SetActivityStreamsUrl(i ActivityStreamsUrlProperty) + // SetForgeFedTeam sets the "team" property. + SetForgeFedTeam(i ForgeFedTeamProperty) + // SetForgeFedTicketsTrackedBy sets the "ticketsTrackedBy" property. + SetForgeFedTicketsTrackedBy(i ForgeFedTicketsTrackedByProperty) + // SetForgeFedTracksTicketsFor sets the "tracksTicketsFor" property. + SetForgeFedTracksTicketsFor(i ForgeFedTracksTicketsForProperty) // SetJSONLDId sets the "id" property. SetJSONLDId(i JSONLDIdProperty) // SetJSONLDType sets the "type" property. diff --git a/streams/vocab/gen_type_activitystreams_remove_interface.go b/streams/vocab/gen_type_activitystreams_remove_interface.go index d36becf..5ef981a 100644 --- a/streams/vocab/gen_type_activitystreams_remove_interface.go +++ b/streams/vocab/gen_type_activitystreams_remove_interface.go @@ -146,6 +146,15 @@ type ActivityStreamsRemove interface { // GetActivityStreamsUrl returns the "url" property if it exists, and nil // otherwise. GetActivityStreamsUrl() ActivityStreamsUrlProperty + // GetForgeFedTeam returns the "team" property if it exists, and nil + // otherwise. + GetForgeFedTeam() ForgeFedTeamProperty + // GetForgeFedTicketsTrackedBy returns the "ticketsTrackedBy" property if + // it exists, and nil otherwise. + GetForgeFedTicketsTrackedBy() ForgeFedTicketsTrackedByProperty + // GetForgeFedTracksTicketsFor returns the "tracksTicketsFor" property if + // it exists, and nil otherwise. + GetForgeFedTracksTicketsFor() ForgeFedTracksTicketsForProperty // GetJSONLDId returns the "id" property if it exists, and nil otherwise. GetJSONLDId() JSONLDIdProperty // GetJSONLDType returns the "type" property if it exists, and nil @@ -245,6 +254,12 @@ type ActivityStreamsRemove interface { SetActivityStreamsUpdated(i ActivityStreamsUpdatedProperty) // SetActivityStreamsUrl sets the "url" property. SetActivityStreamsUrl(i ActivityStreamsUrlProperty) + // SetForgeFedTeam sets the "team" property. + SetForgeFedTeam(i ForgeFedTeamProperty) + // SetForgeFedTicketsTrackedBy sets the "ticketsTrackedBy" property. + SetForgeFedTicketsTrackedBy(i ForgeFedTicketsTrackedByProperty) + // SetForgeFedTracksTicketsFor sets the "tracksTicketsFor" property. + SetForgeFedTracksTicketsFor(i ForgeFedTracksTicketsForProperty) // SetJSONLDId sets the "id" property. SetJSONLDId(i JSONLDIdProperty) // SetJSONLDType sets the "type" property. diff --git a/streams/vocab/gen_type_activitystreams_service_interface.go b/streams/vocab/gen_type_activitystreams_service_interface.go index 62331dc..f8bf114 100644 --- a/streams/vocab/gen_type_activitystreams_service_interface.go +++ b/streams/vocab/gen_type_activitystreams_service_interface.go @@ -124,6 +124,15 @@ type ActivityStreamsService interface { // GetActivityStreamsUrl returns the "url" property if it exists, and nil // otherwise. GetActivityStreamsUrl() ActivityStreamsUrlProperty + // GetForgeFedTeam returns the "team" property if it exists, and nil + // otherwise. + GetForgeFedTeam() ForgeFedTeamProperty + // GetForgeFedTicketsTrackedBy returns the "ticketsTrackedBy" property if + // it exists, and nil otherwise. + GetForgeFedTicketsTrackedBy() ForgeFedTicketsTrackedByProperty + // GetForgeFedTracksTicketsFor returns the "tracksTicketsFor" property if + // it exists, and nil otherwise. + GetForgeFedTracksTicketsFor() ForgeFedTracksTicketsForProperty // GetJSONLDId returns the "id" property if it exists, and nil otherwise. GetJSONLDId() JSONLDIdProperty // GetJSONLDType returns the "type" property if it exists, and nil @@ -238,6 +247,12 @@ type ActivityStreamsService interface { SetActivityStreamsUpdated(i ActivityStreamsUpdatedProperty) // SetActivityStreamsUrl sets the "url" property. SetActivityStreamsUrl(i ActivityStreamsUrlProperty) + // SetForgeFedTeam sets the "team" property. + SetForgeFedTeam(i ForgeFedTeamProperty) + // SetForgeFedTicketsTrackedBy sets the "ticketsTrackedBy" property. + SetForgeFedTicketsTrackedBy(i ForgeFedTicketsTrackedByProperty) + // SetForgeFedTracksTicketsFor sets the "tracksTicketsFor" property. + SetForgeFedTracksTicketsFor(i ForgeFedTracksTicketsForProperty) // SetJSONLDId sets the "id" property. SetJSONLDId(i JSONLDIdProperty) // SetJSONLDType sets the "type" property. diff --git a/streams/vocab/gen_type_activitystreams_tentativeaccept_interface.go b/streams/vocab/gen_type_activitystreams_tentativeaccept_interface.go index 14abb28..6a2feb2 100644 --- a/streams/vocab/gen_type_activitystreams_tentativeaccept_interface.go +++ b/streams/vocab/gen_type_activitystreams_tentativeaccept_interface.go @@ -130,6 +130,15 @@ type ActivityStreamsTentativeAccept interface { // GetActivityStreamsUrl returns the "url" property if it exists, and nil // otherwise. GetActivityStreamsUrl() ActivityStreamsUrlProperty + // GetForgeFedTeam returns the "team" property if it exists, and nil + // otherwise. + GetForgeFedTeam() ForgeFedTeamProperty + // GetForgeFedTicketsTrackedBy returns the "ticketsTrackedBy" property if + // it exists, and nil otherwise. + GetForgeFedTicketsTrackedBy() ForgeFedTicketsTrackedByProperty + // GetForgeFedTracksTicketsFor returns the "tracksTicketsFor" property if + // it exists, and nil otherwise. + GetForgeFedTracksTicketsFor() ForgeFedTracksTicketsForProperty // GetJSONLDId returns the "id" property if it exists, and nil otherwise. GetJSONLDId() JSONLDIdProperty // GetJSONLDType returns the "type" property if it exists, and nil @@ -230,6 +239,12 @@ type ActivityStreamsTentativeAccept interface { SetActivityStreamsUpdated(i ActivityStreamsUpdatedProperty) // SetActivityStreamsUrl sets the "url" property. SetActivityStreamsUrl(i ActivityStreamsUrlProperty) + // SetForgeFedTeam sets the "team" property. + SetForgeFedTeam(i ForgeFedTeamProperty) + // SetForgeFedTicketsTrackedBy sets the "ticketsTrackedBy" property. + SetForgeFedTicketsTrackedBy(i ForgeFedTicketsTrackedByProperty) + // SetForgeFedTracksTicketsFor sets the "tracksTicketsFor" property. + SetForgeFedTracksTicketsFor(i ForgeFedTracksTicketsForProperty) // SetJSONLDId sets the "id" property. SetJSONLDId(i JSONLDIdProperty) // SetJSONLDType sets the "type" property. diff --git a/streams/vocab/gen_type_activitystreams_tentativereject_interface.go b/streams/vocab/gen_type_activitystreams_tentativereject_interface.go index 1ae710d..4f845c9 100644 --- a/streams/vocab/gen_type_activitystreams_tentativereject_interface.go +++ b/streams/vocab/gen_type_activitystreams_tentativereject_interface.go @@ -130,6 +130,15 @@ type ActivityStreamsTentativeReject interface { // GetActivityStreamsUrl returns the "url" property if it exists, and nil // otherwise. GetActivityStreamsUrl() ActivityStreamsUrlProperty + // GetForgeFedTeam returns the "team" property if it exists, and nil + // otherwise. + GetForgeFedTeam() ForgeFedTeamProperty + // GetForgeFedTicketsTrackedBy returns the "ticketsTrackedBy" property if + // it exists, and nil otherwise. + GetForgeFedTicketsTrackedBy() ForgeFedTicketsTrackedByProperty + // GetForgeFedTracksTicketsFor returns the "tracksTicketsFor" property if + // it exists, and nil otherwise. + GetForgeFedTracksTicketsFor() ForgeFedTracksTicketsForProperty // GetJSONLDId returns the "id" property if it exists, and nil otherwise. GetJSONLDId() JSONLDIdProperty // GetJSONLDType returns the "type" property if it exists, and nil @@ -230,6 +239,12 @@ type ActivityStreamsTentativeReject interface { SetActivityStreamsUpdated(i ActivityStreamsUpdatedProperty) // SetActivityStreamsUrl sets the "url" property. SetActivityStreamsUrl(i ActivityStreamsUrlProperty) + // SetForgeFedTeam sets the "team" property. + SetForgeFedTeam(i ForgeFedTeamProperty) + // SetForgeFedTicketsTrackedBy sets the "ticketsTrackedBy" property. + SetForgeFedTicketsTrackedBy(i ForgeFedTicketsTrackedByProperty) + // SetForgeFedTracksTicketsFor sets the "tracksTicketsFor" property. + SetForgeFedTracksTicketsFor(i ForgeFedTracksTicketsForProperty) // SetJSONLDId sets the "id" property. SetJSONLDId(i JSONLDIdProperty) // SetJSONLDType sets the "type" property. diff --git a/streams/vocab/gen_type_activitystreams_tombstone_interface.go b/streams/vocab/gen_type_activitystreams_tombstone_interface.go index 27d572f..60ef273 100644 --- a/streams/vocab/gen_type_activitystreams_tombstone_interface.go +++ b/streams/vocab/gen_type_activitystreams_tombstone_interface.go @@ -128,6 +128,15 @@ type ActivityStreamsTombstone interface { // GetActivityStreamsUrl returns the "url" property if it exists, and nil // otherwise. GetActivityStreamsUrl() ActivityStreamsUrlProperty + // GetForgeFedTeam returns the "team" property if it exists, and nil + // otherwise. + GetForgeFedTeam() ForgeFedTeamProperty + // GetForgeFedTicketsTrackedBy returns the "ticketsTrackedBy" property if + // it exists, and nil otherwise. + GetForgeFedTicketsTrackedBy() ForgeFedTicketsTrackedByProperty + // GetForgeFedTracksTicketsFor returns the "tracksTicketsFor" property if + // it exists, and nil otherwise. + GetForgeFedTracksTicketsFor() ForgeFedTracksTicketsForProperty // GetJSONLDId returns the "id" property if it exists, and nil otherwise. GetJSONLDId() JSONLDIdProperty // GetJSONLDType returns the "type" property if it exists, and nil @@ -222,6 +231,12 @@ type ActivityStreamsTombstone interface { SetActivityStreamsUpdated(i ActivityStreamsUpdatedProperty) // SetActivityStreamsUrl sets the "url" property. SetActivityStreamsUrl(i ActivityStreamsUrlProperty) + // SetForgeFedTeam sets the "team" property. + SetForgeFedTeam(i ForgeFedTeamProperty) + // SetForgeFedTicketsTrackedBy sets the "ticketsTrackedBy" property. + SetForgeFedTicketsTrackedBy(i ForgeFedTicketsTrackedByProperty) + // SetForgeFedTracksTicketsFor sets the "tracksTicketsFor" property. + SetForgeFedTracksTicketsFor(i ForgeFedTracksTicketsForProperty) // SetJSONLDId sets the "id" property. SetJSONLDId(i JSONLDIdProperty) // SetJSONLDType sets the "type" property. diff --git a/streams/vocab/gen_type_activitystreams_travel_interface.go b/streams/vocab/gen_type_activitystreams_travel_interface.go index 6928c5a..c0913a8 100644 --- a/streams/vocab/gen_type_activitystreams_travel_interface.go +++ b/streams/vocab/gen_type_activitystreams_travel_interface.go @@ -129,6 +129,15 @@ type ActivityStreamsTravel interface { // GetActivityStreamsUrl returns the "url" property if it exists, and nil // otherwise. GetActivityStreamsUrl() ActivityStreamsUrlProperty + // GetForgeFedTeam returns the "team" property if it exists, and nil + // otherwise. + GetForgeFedTeam() ForgeFedTeamProperty + // GetForgeFedTicketsTrackedBy returns the "ticketsTrackedBy" property if + // it exists, and nil otherwise. + GetForgeFedTicketsTrackedBy() ForgeFedTicketsTrackedByProperty + // GetForgeFedTracksTicketsFor returns the "tracksTicketsFor" property if + // it exists, and nil otherwise. + GetForgeFedTracksTicketsFor() ForgeFedTracksTicketsForProperty // GetJSONLDId returns the "id" property if it exists, and nil otherwise. GetJSONLDId() JSONLDIdProperty // GetJSONLDType returns the "type" property if it exists, and nil @@ -226,6 +235,12 @@ type ActivityStreamsTravel interface { SetActivityStreamsUpdated(i ActivityStreamsUpdatedProperty) // SetActivityStreamsUrl sets the "url" property. SetActivityStreamsUrl(i ActivityStreamsUrlProperty) + // SetForgeFedTeam sets the "team" property. + SetForgeFedTeam(i ForgeFedTeamProperty) + // SetForgeFedTicketsTrackedBy sets the "ticketsTrackedBy" property. + SetForgeFedTicketsTrackedBy(i ForgeFedTicketsTrackedByProperty) + // SetForgeFedTracksTicketsFor sets the "tracksTicketsFor" property. + SetForgeFedTracksTicketsFor(i ForgeFedTracksTicketsForProperty) // SetJSONLDId sets the "id" property. SetJSONLDId(i JSONLDIdProperty) // SetJSONLDType sets the "type" property. diff --git a/streams/vocab/gen_type_activitystreams_undo_interface.go b/streams/vocab/gen_type_activitystreams_undo_interface.go index 62862bc..adc7795 100644 --- a/streams/vocab/gen_type_activitystreams_undo_interface.go +++ b/streams/vocab/gen_type_activitystreams_undo_interface.go @@ -129,6 +129,15 @@ type ActivityStreamsUndo interface { // GetActivityStreamsUrl returns the "url" property if it exists, and nil // otherwise. GetActivityStreamsUrl() ActivityStreamsUrlProperty + // GetForgeFedTeam returns the "team" property if it exists, and nil + // otherwise. + GetForgeFedTeam() ForgeFedTeamProperty + // GetForgeFedTicketsTrackedBy returns the "ticketsTrackedBy" property if + // it exists, and nil otherwise. + GetForgeFedTicketsTrackedBy() ForgeFedTicketsTrackedByProperty + // GetForgeFedTracksTicketsFor returns the "tracksTicketsFor" property if + // it exists, and nil otherwise. + GetForgeFedTracksTicketsFor() ForgeFedTracksTicketsForProperty // GetJSONLDId returns the "id" property if it exists, and nil otherwise. GetJSONLDId() JSONLDIdProperty // GetJSONLDType returns the "type" property if it exists, and nil @@ -228,6 +237,12 @@ type ActivityStreamsUndo interface { SetActivityStreamsUpdated(i ActivityStreamsUpdatedProperty) // SetActivityStreamsUrl sets the "url" property. SetActivityStreamsUrl(i ActivityStreamsUrlProperty) + // SetForgeFedTeam sets the "team" property. + SetForgeFedTeam(i ForgeFedTeamProperty) + // SetForgeFedTicketsTrackedBy sets the "ticketsTrackedBy" property. + SetForgeFedTicketsTrackedBy(i ForgeFedTicketsTrackedByProperty) + // SetForgeFedTracksTicketsFor sets the "tracksTicketsFor" property. + SetForgeFedTracksTicketsFor(i ForgeFedTracksTicketsForProperty) // SetJSONLDId sets the "id" property. SetJSONLDId(i JSONLDIdProperty) // SetJSONLDType sets the "type" property. diff --git a/streams/vocab/gen_type_activitystreams_update_interface.go b/streams/vocab/gen_type_activitystreams_update_interface.go index 9a4d105..1e80395 100644 --- a/streams/vocab/gen_type_activitystreams_update_interface.go +++ b/streams/vocab/gen_type_activitystreams_update_interface.go @@ -126,6 +126,15 @@ type ActivityStreamsUpdate interface { // GetActivityStreamsUrl returns the "url" property if it exists, and nil // otherwise. GetActivityStreamsUrl() ActivityStreamsUrlProperty + // GetForgeFedTeam returns the "team" property if it exists, and nil + // otherwise. + GetForgeFedTeam() ForgeFedTeamProperty + // GetForgeFedTicketsTrackedBy returns the "ticketsTrackedBy" property if + // it exists, and nil otherwise. + GetForgeFedTicketsTrackedBy() ForgeFedTicketsTrackedByProperty + // GetForgeFedTracksTicketsFor returns the "tracksTicketsFor" property if + // it exists, and nil otherwise. + GetForgeFedTracksTicketsFor() ForgeFedTracksTicketsForProperty // GetJSONLDId returns the "id" property if it exists, and nil otherwise. GetJSONLDId() JSONLDIdProperty // GetJSONLDType returns the "type" property if it exists, and nil @@ -225,6 +234,12 @@ type ActivityStreamsUpdate interface { SetActivityStreamsUpdated(i ActivityStreamsUpdatedProperty) // SetActivityStreamsUrl sets the "url" property. SetActivityStreamsUrl(i ActivityStreamsUrlProperty) + // SetForgeFedTeam sets the "team" property. + SetForgeFedTeam(i ForgeFedTeamProperty) + // SetForgeFedTicketsTrackedBy sets the "ticketsTrackedBy" property. + SetForgeFedTicketsTrackedBy(i ForgeFedTicketsTrackedByProperty) + // SetForgeFedTracksTicketsFor sets the "tracksTicketsFor" property. + SetForgeFedTracksTicketsFor(i ForgeFedTracksTicketsForProperty) // SetJSONLDId sets the "id" property. SetJSONLDId(i JSONLDIdProperty) // SetJSONLDType sets the "type" property. diff --git a/streams/vocab/gen_type_activitystreams_video_interface.go b/streams/vocab/gen_type_activitystreams_video_interface.go index 7eff20f..f34bc2b 100644 --- a/streams/vocab/gen_type_activitystreams_video_interface.go +++ b/streams/vocab/gen_type_activitystreams_video_interface.go @@ -105,6 +105,15 @@ type ActivityStreamsVideo interface { // GetActivityStreamsUrl returns the "url" property if it exists, and nil // otherwise. GetActivityStreamsUrl() ActivityStreamsUrlProperty + // GetForgeFedTeam returns the "team" property if it exists, and nil + // otherwise. + GetForgeFedTeam() ForgeFedTeamProperty + // GetForgeFedTicketsTrackedBy returns the "ticketsTrackedBy" property if + // it exists, and nil otherwise. + GetForgeFedTicketsTrackedBy() ForgeFedTicketsTrackedByProperty + // GetForgeFedTracksTicketsFor returns the "tracksTicketsFor" property if + // it exists, and nil otherwise. + GetForgeFedTracksTicketsFor() ForgeFedTracksTicketsForProperty // GetJSONLDId returns the "id" property if it exists, and nil otherwise. GetJSONLDId() JSONLDIdProperty // GetJSONLDType returns the "type" property if it exists, and nil @@ -197,6 +206,12 @@ type ActivityStreamsVideo interface { SetActivityStreamsUpdated(i ActivityStreamsUpdatedProperty) // SetActivityStreamsUrl sets the "url" property. SetActivityStreamsUrl(i ActivityStreamsUrlProperty) + // SetForgeFedTeam sets the "team" property. + SetForgeFedTeam(i ForgeFedTeamProperty) + // SetForgeFedTicketsTrackedBy sets the "ticketsTrackedBy" property. + SetForgeFedTicketsTrackedBy(i ForgeFedTicketsTrackedByProperty) + // SetForgeFedTracksTicketsFor sets the "tracksTicketsFor" property. + SetForgeFedTracksTicketsFor(i ForgeFedTracksTicketsForProperty) // SetJSONLDId sets the "id" property. SetJSONLDId(i JSONLDIdProperty) // SetJSONLDType sets the "type" property. diff --git a/streams/vocab/gen_type_activitystreams_view_interface.go b/streams/vocab/gen_type_activitystreams_view_interface.go index 92fa85e..0192185 100644 --- a/streams/vocab/gen_type_activitystreams_view_interface.go +++ b/streams/vocab/gen_type_activitystreams_view_interface.go @@ -126,6 +126,15 @@ type ActivityStreamsView interface { // GetActivityStreamsUrl returns the "url" property if it exists, and nil // otherwise. GetActivityStreamsUrl() ActivityStreamsUrlProperty + // GetForgeFedTeam returns the "team" property if it exists, and nil + // otherwise. + GetForgeFedTeam() ForgeFedTeamProperty + // GetForgeFedTicketsTrackedBy returns the "ticketsTrackedBy" property if + // it exists, and nil otherwise. + GetForgeFedTicketsTrackedBy() ForgeFedTicketsTrackedByProperty + // GetForgeFedTracksTicketsFor returns the "tracksTicketsFor" property if + // it exists, and nil otherwise. + GetForgeFedTracksTicketsFor() ForgeFedTracksTicketsForProperty // GetJSONLDId returns the "id" property if it exists, and nil otherwise. GetJSONLDId() JSONLDIdProperty // GetJSONLDType returns the "type" property if it exists, and nil @@ -225,6 +234,12 @@ type ActivityStreamsView interface { SetActivityStreamsUpdated(i ActivityStreamsUpdatedProperty) // SetActivityStreamsUrl sets the "url" property. SetActivityStreamsUrl(i ActivityStreamsUrlProperty) + // SetForgeFedTeam sets the "team" property. + SetForgeFedTeam(i ForgeFedTeamProperty) + // SetForgeFedTicketsTrackedBy sets the "ticketsTrackedBy" property. + SetForgeFedTicketsTrackedBy(i ForgeFedTicketsTrackedByProperty) + // SetForgeFedTracksTicketsFor sets the "tracksTicketsFor" property. + SetForgeFedTracksTicketsFor(i ForgeFedTracksTicketsForProperty) // SetJSONLDId sets the "id" property. SetJSONLDId(i JSONLDIdProperty) // SetJSONLDType sets the "type" property. diff --git a/streams/vocab/gen_type_forgefed_branch_interface.go b/streams/vocab/gen_type_forgefed_branch_interface.go new file mode 100644 index 0000000..dcd0c93 --- /dev/null +++ b/streams/vocab/gen_type_forgefed_branch_interface.go @@ -0,0 +1,229 @@ +// Code generated by astool. DO NOT EDIT. + +package vocab + +// Represents a named variable reference to a version of the Repository, typically +// used for committing changes in parallel to other development, and usually +// eventually merging the changes into the main history line. +// +// { +// "@context": [ +// "https://www.w3.org/ns/activitystreams", +// "https://forgefed.peers.community/ns" +// ], +// "context": "https://example.dev/luke/myrepo", +// "id": "https://example.dev/luke/myrepo/branches/master", +// "name": "master", +// "ref": "refs/heads/master", +// "type": "Branch" +// } +type ForgeFedBranch interface { + // GetActivityStreamsAltitude returns the "altitude" property if it + // exists, and nil otherwise. + GetActivityStreamsAltitude() ActivityStreamsAltitudeProperty + // GetActivityStreamsAttachment returns the "attachment" property if it + // exists, and nil otherwise. + GetActivityStreamsAttachment() ActivityStreamsAttachmentProperty + // GetActivityStreamsAttributedTo returns the "attributedTo" property if + // it exists, and nil otherwise. + GetActivityStreamsAttributedTo() ActivityStreamsAttributedToProperty + // GetActivityStreamsAudience returns the "audience" property if it + // exists, and nil otherwise. + GetActivityStreamsAudience() ActivityStreamsAudienceProperty + // GetActivityStreamsBcc returns the "bcc" property if it exists, and nil + // otherwise. + GetActivityStreamsBcc() ActivityStreamsBccProperty + // GetActivityStreamsBto returns the "bto" property if it exists, and nil + // otherwise. + GetActivityStreamsBto() ActivityStreamsBtoProperty + // GetActivityStreamsCc returns the "cc" property if it exists, and nil + // otherwise. + GetActivityStreamsCc() ActivityStreamsCcProperty + // GetActivityStreamsContent returns the "content" property if it exists, + // and nil otherwise. + GetActivityStreamsContent() ActivityStreamsContentProperty + // GetActivityStreamsContext returns the "context" property if it exists, + // and nil otherwise. + GetActivityStreamsContext() ActivityStreamsContextProperty + // GetActivityStreamsDuration returns the "duration" property if it + // exists, and nil otherwise. + GetActivityStreamsDuration() ActivityStreamsDurationProperty + // GetActivityStreamsEndTime returns the "endTime" property if it exists, + // and nil otherwise. + GetActivityStreamsEndTime() ActivityStreamsEndTimeProperty + // GetActivityStreamsGenerator returns the "generator" property if it + // exists, and nil otherwise. + GetActivityStreamsGenerator() ActivityStreamsGeneratorProperty + // GetActivityStreamsIcon returns the "icon" property if it exists, and + // nil otherwise. + GetActivityStreamsIcon() ActivityStreamsIconProperty + // GetActivityStreamsImage returns the "image" property if it exists, and + // nil otherwise. + GetActivityStreamsImage() ActivityStreamsImageProperty + // GetActivityStreamsInReplyTo returns the "inReplyTo" property if it + // exists, and nil otherwise. + GetActivityStreamsInReplyTo() ActivityStreamsInReplyToProperty + // GetActivityStreamsLikes returns the "likes" property if it exists, and + // nil otherwise. + GetActivityStreamsLikes() ActivityStreamsLikesProperty + // GetActivityStreamsLocation returns the "location" property if it + // exists, and nil otherwise. + GetActivityStreamsLocation() ActivityStreamsLocationProperty + // GetActivityStreamsMediaType returns the "mediaType" property if it + // exists, and nil otherwise. + GetActivityStreamsMediaType() ActivityStreamsMediaTypeProperty + // GetActivityStreamsName returns the "name" property if it exists, and + // nil otherwise. + GetActivityStreamsName() ActivityStreamsNameProperty + // GetActivityStreamsObject returns the "object" property if it exists, + // and nil otherwise. + GetActivityStreamsObject() ActivityStreamsObjectProperty + // GetActivityStreamsPreview returns the "preview" property if it exists, + // and nil otherwise. + GetActivityStreamsPreview() ActivityStreamsPreviewProperty + // GetActivityStreamsPublished returns the "published" property if it + // exists, and nil otherwise. + GetActivityStreamsPublished() ActivityStreamsPublishedProperty + // GetActivityStreamsReplies returns the "replies" property if it exists, + // and nil otherwise. + GetActivityStreamsReplies() ActivityStreamsRepliesProperty + // GetActivityStreamsShares returns the "shares" property if it exists, + // and nil otherwise. + GetActivityStreamsShares() ActivityStreamsSharesProperty + // GetActivityStreamsSource returns the "source" property if it exists, + // and nil otherwise. + GetActivityStreamsSource() ActivityStreamsSourceProperty + // GetActivityStreamsStartTime returns the "startTime" property if it + // exists, and nil otherwise. + GetActivityStreamsStartTime() ActivityStreamsStartTimeProperty + // GetActivityStreamsSummary returns the "summary" property if it exists, + // and nil otherwise. + GetActivityStreamsSummary() ActivityStreamsSummaryProperty + // GetActivityStreamsTag returns the "tag" property if it exists, and nil + // otherwise. + GetActivityStreamsTag() ActivityStreamsTagProperty + // GetActivityStreamsTo returns the "to" property if it exists, and nil + // otherwise. + GetActivityStreamsTo() ActivityStreamsToProperty + // GetActivityStreamsUpdated returns the "updated" property if it exists, + // and nil otherwise. + GetActivityStreamsUpdated() ActivityStreamsUpdatedProperty + // GetActivityStreamsUrl returns the "url" property if it exists, and nil + // otherwise. + GetActivityStreamsUrl() ActivityStreamsUrlProperty + // GetForgeFedRef returns the "ref" property if it exists, and nil + // otherwise. + GetForgeFedRef() ForgeFedRefProperty + // GetForgeFedTeam returns the "team" property if it exists, and nil + // otherwise. + GetForgeFedTeam() ForgeFedTeamProperty + // GetForgeFedTicketsTrackedBy returns the "ticketsTrackedBy" property if + // it exists, and nil otherwise. + GetForgeFedTicketsTrackedBy() ForgeFedTicketsTrackedByProperty + // GetForgeFedTracksTicketsFor returns the "tracksTicketsFor" property if + // it exists, and nil otherwise. + GetForgeFedTracksTicketsFor() ForgeFedTracksTicketsForProperty + // GetJSONLDId returns the "id" property if it exists, and nil otherwise. + GetJSONLDId() JSONLDIdProperty + // GetJSONLDType returns the "type" property if it exists, and nil + // otherwise. + GetJSONLDType() JSONLDTypeProperty + // GetTypeName returns the name of this type. + GetTypeName() string + // GetUnknownProperties returns the unknown properties for the Branch + // type. Note that this should not be used by app developers. It is + // only used to help determine which implementation is LessThan the + // other. Developers who are creating a different implementation of + // this type's interface can use this method in their LessThan + // implementation, but routine ActivityPub applications should not use + // this to bypass the code generation tool. + GetUnknownProperties() map[string]interface{} + // IsExtending returns true if the Branch type extends from the other type. + IsExtending(other Type) bool + // JSONLDContext returns the JSONLD URIs required in the context string + // for this type and the specific properties that are set. The value + // in the map is the alias used to import the type and its properties. + JSONLDContext() map[string]string + // LessThan computes if this Branch is lesser, with an arbitrary but + // stable determination. + LessThan(o ForgeFedBranch) bool + // Serialize converts this into an interface representation suitable for + // marshalling into a text or binary format. + Serialize() (map[string]interface{}, error) + // SetActivityStreamsAltitude sets the "altitude" property. + SetActivityStreamsAltitude(i ActivityStreamsAltitudeProperty) + // SetActivityStreamsAttachment sets the "attachment" property. + SetActivityStreamsAttachment(i ActivityStreamsAttachmentProperty) + // SetActivityStreamsAttributedTo sets the "attributedTo" property. + SetActivityStreamsAttributedTo(i ActivityStreamsAttributedToProperty) + // SetActivityStreamsAudience sets the "audience" property. + SetActivityStreamsAudience(i ActivityStreamsAudienceProperty) + // SetActivityStreamsBcc sets the "bcc" property. + SetActivityStreamsBcc(i ActivityStreamsBccProperty) + // SetActivityStreamsBto sets the "bto" property. + SetActivityStreamsBto(i ActivityStreamsBtoProperty) + // SetActivityStreamsCc sets the "cc" property. + SetActivityStreamsCc(i ActivityStreamsCcProperty) + // SetActivityStreamsContent sets the "content" property. + SetActivityStreamsContent(i ActivityStreamsContentProperty) + // SetActivityStreamsContext sets the "context" property. + SetActivityStreamsContext(i ActivityStreamsContextProperty) + // SetActivityStreamsDuration sets the "duration" property. + SetActivityStreamsDuration(i ActivityStreamsDurationProperty) + // SetActivityStreamsEndTime sets the "endTime" property. + SetActivityStreamsEndTime(i ActivityStreamsEndTimeProperty) + // SetActivityStreamsGenerator sets the "generator" property. + SetActivityStreamsGenerator(i ActivityStreamsGeneratorProperty) + // SetActivityStreamsIcon sets the "icon" property. + SetActivityStreamsIcon(i ActivityStreamsIconProperty) + // SetActivityStreamsImage sets the "image" property. + SetActivityStreamsImage(i ActivityStreamsImageProperty) + // SetActivityStreamsInReplyTo sets the "inReplyTo" property. + SetActivityStreamsInReplyTo(i ActivityStreamsInReplyToProperty) + // SetActivityStreamsLikes sets the "likes" property. + SetActivityStreamsLikes(i ActivityStreamsLikesProperty) + // SetActivityStreamsLocation sets the "location" property. + SetActivityStreamsLocation(i ActivityStreamsLocationProperty) + // SetActivityStreamsMediaType sets the "mediaType" property. + SetActivityStreamsMediaType(i ActivityStreamsMediaTypeProperty) + // SetActivityStreamsName sets the "name" property. + SetActivityStreamsName(i ActivityStreamsNameProperty) + // SetActivityStreamsObject sets the "object" property. + SetActivityStreamsObject(i ActivityStreamsObjectProperty) + // SetActivityStreamsPreview sets the "preview" property. + SetActivityStreamsPreview(i ActivityStreamsPreviewProperty) + // SetActivityStreamsPublished sets the "published" property. + SetActivityStreamsPublished(i ActivityStreamsPublishedProperty) + // SetActivityStreamsReplies sets the "replies" property. + SetActivityStreamsReplies(i ActivityStreamsRepliesProperty) + // SetActivityStreamsShares sets the "shares" property. + SetActivityStreamsShares(i ActivityStreamsSharesProperty) + // SetActivityStreamsSource sets the "source" property. + SetActivityStreamsSource(i ActivityStreamsSourceProperty) + // SetActivityStreamsStartTime sets the "startTime" property. + SetActivityStreamsStartTime(i ActivityStreamsStartTimeProperty) + // SetActivityStreamsSummary sets the "summary" property. + SetActivityStreamsSummary(i ActivityStreamsSummaryProperty) + // SetActivityStreamsTag sets the "tag" property. + SetActivityStreamsTag(i ActivityStreamsTagProperty) + // SetActivityStreamsTo sets the "to" property. + SetActivityStreamsTo(i ActivityStreamsToProperty) + // SetActivityStreamsUpdated sets the "updated" property. + SetActivityStreamsUpdated(i ActivityStreamsUpdatedProperty) + // SetActivityStreamsUrl sets the "url" property. + SetActivityStreamsUrl(i ActivityStreamsUrlProperty) + // SetForgeFedRef sets the "ref" property. + SetForgeFedRef(i ForgeFedRefProperty) + // SetForgeFedTeam sets the "team" property. + SetForgeFedTeam(i ForgeFedTeamProperty) + // SetForgeFedTicketsTrackedBy sets the "ticketsTrackedBy" property. + SetForgeFedTicketsTrackedBy(i ForgeFedTicketsTrackedByProperty) + // SetForgeFedTracksTicketsFor sets the "tracksTicketsFor" property. + SetForgeFedTracksTicketsFor(i ForgeFedTracksTicketsForProperty) + // SetJSONLDId sets the "id" property. + SetJSONLDId(i JSONLDIdProperty) + // SetJSONLDType sets the "type" property. + SetJSONLDType(i JSONLDTypeProperty) + // VocabularyURI returns the vocabulary's URI as a string. + VocabularyURI() string +} diff --git a/streams/vocab/gen_type_forgefed_commit_interface.go b/streams/vocab/gen_type_forgefed_commit_interface.go new file mode 100644 index 0000000..b513196 --- /dev/null +++ b/streams/vocab/gen_type_forgefed_commit_interface.go @@ -0,0 +1,269 @@ +// Code generated by astool. DO NOT EDIT. + +package vocab + +// Represents a named set of changes in the history of a Repository. This is +// called "commit" in Git, Mercurial and Monotone; "patch" in Darcs; sometimes +// called "change set". Note that Commit is a set of changes that already +// exists in a repo’s history, while a Patch is a separate proposed change +// set, that could be applied and pushed to a repo, resulting with a Commit. +// +// { +// "@context": [ +// "https://www.w3.org/ns/activitystreams", +// "https://forgefed.peers.community/ns" +// ], +// "attributedTo": "https://example.dev/bob", +// "committed": "2019-07-26T23:45:01Z", +// "committedBy": "https://example.dev/alice", +// "context": "https://example.dev/alice/myrepo", +// "created": "2019-07-11T12:34:56Z", +// "description": { +// "content": "It's about time people can install on their computers!", +// "mediaType": "text/plain" +// }, +// "hash": "109ec9a09c7df7fec775d2ba0b9d466e5643ec8c", +// "id": "https://example.dev/alice/myrepo/commits/109ec9a09c7df7fec775d2ba0b9d466e5643ec8c", +// "summary": "Add an installation script, fixes issue #89", +// "type": "Commit" +// } +type ForgeFedCommit interface { + // GetActivityStreamsAltitude returns the "altitude" property if it + // exists, and nil otherwise. + GetActivityStreamsAltitude() ActivityStreamsAltitudeProperty + // GetActivityStreamsAttachment returns the "attachment" property if it + // exists, and nil otherwise. + GetActivityStreamsAttachment() ActivityStreamsAttachmentProperty + // GetActivityStreamsAttributedTo returns the "attributedTo" property if + // it exists, and nil otherwise. + GetActivityStreamsAttributedTo() ActivityStreamsAttributedToProperty + // GetActivityStreamsAudience returns the "audience" property if it + // exists, and nil otherwise. + GetActivityStreamsAudience() ActivityStreamsAudienceProperty + // GetActivityStreamsBcc returns the "bcc" property if it exists, and nil + // otherwise. + GetActivityStreamsBcc() ActivityStreamsBccProperty + // GetActivityStreamsBto returns the "bto" property if it exists, and nil + // otherwise. + GetActivityStreamsBto() ActivityStreamsBtoProperty + // GetActivityStreamsCc returns the "cc" property if it exists, and nil + // otherwise. + GetActivityStreamsCc() ActivityStreamsCcProperty + // GetActivityStreamsContent returns the "content" property if it exists, + // and nil otherwise. + GetActivityStreamsContent() ActivityStreamsContentProperty + // GetActivityStreamsContext returns the "context" property if it exists, + // and nil otherwise. + GetActivityStreamsContext() ActivityStreamsContextProperty + // GetActivityStreamsDuration returns the "duration" property if it + // exists, and nil otherwise. + GetActivityStreamsDuration() ActivityStreamsDurationProperty + // GetActivityStreamsEndTime returns the "endTime" property if it exists, + // and nil otherwise. + GetActivityStreamsEndTime() ActivityStreamsEndTimeProperty + // GetActivityStreamsGenerator returns the "generator" property if it + // exists, and nil otherwise. + GetActivityStreamsGenerator() ActivityStreamsGeneratorProperty + // GetActivityStreamsIcon returns the "icon" property if it exists, and + // nil otherwise. + GetActivityStreamsIcon() ActivityStreamsIconProperty + // GetActivityStreamsImage returns the "image" property if it exists, and + // nil otherwise. + GetActivityStreamsImage() ActivityStreamsImageProperty + // GetActivityStreamsInReplyTo returns the "inReplyTo" property if it + // exists, and nil otherwise. + GetActivityStreamsInReplyTo() ActivityStreamsInReplyToProperty + // GetActivityStreamsLikes returns the "likes" property if it exists, and + // nil otherwise. + GetActivityStreamsLikes() ActivityStreamsLikesProperty + // GetActivityStreamsLocation returns the "location" property if it + // exists, and nil otherwise. + GetActivityStreamsLocation() ActivityStreamsLocationProperty + // GetActivityStreamsMediaType returns the "mediaType" property if it + // exists, and nil otherwise. + GetActivityStreamsMediaType() ActivityStreamsMediaTypeProperty + // GetActivityStreamsName returns the "name" property if it exists, and + // nil otherwise. + GetActivityStreamsName() ActivityStreamsNameProperty + // GetActivityStreamsObject returns the "object" property if it exists, + // and nil otherwise. + GetActivityStreamsObject() ActivityStreamsObjectProperty + // GetActivityStreamsPreview returns the "preview" property if it exists, + // and nil otherwise. + GetActivityStreamsPreview() ActivityStreamsPreviewProperty + // GetActivityStreamsPublished returns the "published" property if it + // exists, and nil otherwise. + GetActivityStreamsPublished() ActivityStreamsPublishedProperty + // GetActivityStreamsReplies returns the "replies" property if it exists, + // and nil otherwise. + GetActivityStreamsReplies() ActivityStreamsRepliesProperty + // GetActivityStreamsShares returns the "shares" property if it exists, + // and nil otherwise. + GetActivityStreamsShares() ActivityStreamsSharesProperty + // GetActivityStreamsSource returns the "source" property if it exists, + // and nil otherwise. + GetActivityStreamsSource() ActivityStreamsSourceProperty + // GetActivityStreamsStartTime returns the "startTime" property if it + // exists, and nil otherwise. + GetActivityStreamsStartTime() ActivityStreamsStartTimeProperty + // GetActivityStreamsSummary returns the "summary" property if it exists, + // and nil otherwise. + GetActivityStreamsSummary() ActivityStreamsSummaryProperty + // GetActivityStreamsTag returns the "tag" property if it exists, and nil + // otherwise. + GetActivityStreamsTag() ActivityStreamsTagProperty + // GetActivityStreamsTo returns the "to" property if it exists, and nil + // otherwise. + GetActivityStreamsTo() ActivityStreamsToProperty + // GetActivityStreamsUpdated returns the "updated" property if it exists, + // and nil otherwise. + GetActivityStreamsUpdated() ActivityStreamsUpdatedProperty + // GetActivityStreamsUrl returns the "url" property if it exists, and nil + // otherwise. + GetActivityStreamsUrl() ActivityStreamsUrlProperty + // GetForgeFedCommitted returns the "committed" property if it exists, and + // nil otherwise. + GetForgeFedCommitted() ForgeFedCommittedProperty + // GetForgeFedCommittedBy returns the "committedBy" property if it exists, + // and nil otherwise. + GetForgeFedCommittedBy() ForgeFedCommittedByProperty + // GetForgeFedDescription returns the "description" property if it exists, + // and nil otherwise. + GetForgeFedDescription() ForgeFedDescriptionProperty + // GetForgeFedFilesAdded returns the "filesAdded" property if it exists, + // and nil otherwise. + GetForgeFedFilesAdded() ForgeFedFilesAddedProperty + // GetForgeFedFilesModified returns the "filesModified" property if it + // exists, and nil otherwise. + GetForgeFedFilesModified() ForgeFedFilesModifiedProperty + // GetForgeFedFilesRemoved returns the "filesRemoved" property if it + // exists, and nil otherwise. + GetForgeFedFilesRemoved() ForgeFedFilesRemovedProperty + // GetForgeFedHash returns the "hash" property if it exists, and nil + // otherwise. + GetForgeFedHash() ForgeFedHashProperty + // GetForgeFedTeam returns the "team" property if it exists, and nil + // otherwise. + GetForgeFedTeam() ForgeFedTeamProperty + // GetForgeFedTicketsTrackedBy returns the "ticketsTrackedBy" property if + // it exists, and nil otherwise. + GetForgeFedTicketsTrackedBy() ForgeFedTicketsTrackedByProperty + // GetForgeFedTracksTicketsFor returns the "tracksTicketsFor" property if + // it exists, and nil otherwise. + GetForgeFedTracksTicketsFor() ForgeFedTracksTicketsForProperty + // GetJSONLDId returns the "id" property if it exists, and nil otherwise. + GetJSONLDId() JSONLDIdProperty + // GetJSONLDType returns the "type" property if it exists, and nil + // otherwise. + GetJSONLDType() JSONLDTypeProperty + // GetTypeName returns the name of this type. + GetTypeName() string + // GetUnknownProperties returns the unknown properties for the Commit + // type. Note that this should not be used by app developers. It is + // only used to help determine which implementation is LessThan the + // other. Developers who are creating a different implementation of + // this type's interface can use this method in their LessThan + // implementation, but routine ActivityPub applications should not use + // this to bypass the code generation tool. + GetUnknownProperties() map[string]interface{} + // IsExtending returns true if the Commit type extends from the other type. + IsExtending(other Type) bool + // JSONLDContext returns the JSONLD URIs required in the context string + // for this type and the specific properties that are set. The value + // in the map is the alias used to import the type and its properties. + JSONLDContext() map[string]string + // LessThan computes if this Commit is lesser, with an arbitrary but + // stable determination. + LessThan(o ForgeFedCommit) bool + // Serialize converts this into an interface representation suitable for + // marshalling into a text or binary format. + Serialize() (map[string]interface{}, error) + // SetActivityStreamsAltitude sets the "altitude" property. + SetActivityStreamsAltitude(i ActivityStreamsAltitudeProperty) + // SetActivityStreamsAttachment sets the "attachment" property. + SetActivityStreamsAttachment(i ActivityStreamsAttachmentProperty) + // SetActivityStreamsAttributedTo sets the "attributedTo" property. + SetActivityStreamsAttributedTo(i ActivityStreamsAttributedToProperty) + // SetActivityStreamsAudience sets the "audience" property. + SetActivityStreamsAudience(i ActivityStreamsAudienceProperty) + // SetActivityStreamsBcc sets the "bcc" property. + SetActivityStreamsBcc(i ActivityStreamsBccProperty) + // SetActivityStreamsBto sets the "bto" property. + SetActivityStreamsBto(i ActivityStreamsBtoProperty) + // SetActivityStreamsCc sets the "cc" property. + SetActivityStreamsCc(i ActivityStreamsCcProperty) + // SetActivityStreamsContent sets the "content" property. + SetActivityStreamsContent(i ActivityStreamsContentProperty) + // SetActivityStreamsContext sets the "context" property. + SetActivityStreamsContext(i ActivityStreamsContextProperty) + // SetActivityStreamsDuration sets the "duration" property. + SetActivityStreamsDuration(i ActivityStreamsDurationProperty) + // SetActivityStreamsEndTime sets the "endTime" property. + SetActivityStreamsEndTime(i ActivityStreamsEndTimeProperty) + // SetActivityStreamsGenerator sets the "generator" property. + SetActivityStreamsGenerator(i ActivityStreamsGeneratorProperty) + // SetActivityStreamsIcon sets the "icon" property. + SetActivityStreamsIcon(i ActivityStreamsIconProperty) + // SetActivityStreamsImage sets the "image" property. + SetActivityStreamsImage(i ActivityStreamsImageProperty) + // SetActivityStreamsInReplyTo sets the "inReplyTo" property. + SetActivityStreamsInReplyTo(i ActivityStreamsInReplyToProperty) + // SetActivityStreamsLikes sets the "likes" property. + SetActivityStreamsLikes(i ActivityStreamsLikesProperty) + // SetActivityStreamsLocation sets the "location" property. + SetActivityStreamsLocation(i ActivityStreamsLocationProperty) + // SetActivityStreamsMediaType sets the "mediaType" property. + SetActivityStreamsMediaType(i ActivityStreamsMediaTypeProperty) + // SetActivityStreamsName sets the "name" property. + SetActivityStreamsName(i ActivityStreamsNameProperty) + // SetActivityStreamsObject sets the "object" property. + SetActivityStreamsObject(i ActivityStreamsObjectProperty) + // SetActivityStreamsPreview sets the "preview" property. + SetActivityStreamsPreview(i ActivityStreamsPreviewProperty) + // SetActivityStreamsPublished sets the "published" property. + SetActivityStreamsPublished(i ActivityStreamsPublishedProperty) + // SetActivityStreamsReplies sets the "replies" property. + SetActivityStreamsReplies(i ActivityStreamsRepliesProperty) + // SetActivityStreamsShares sets the "shares" property. + SetActivityStreamsShares(i ActivityStreamsSharesProperty) + // SetActivityStreamsSource sets the "source" property. + SetActivityStreamsSource(i ActivityStreamsSourceProperty) + // SetActivityStreamsStartTime sets the "startTime" property. + SetActivityStreamsStartTime(i ActivityStreamsStartTimeProperty) + // SetActivityStreamsSummary sets the "summary" property. + SetActivityStreamsSummary(i ActivityStreamsSummaryProperty) + // SetActivityStreamsTag sets the "tag" property. + SetActivityStreamsTag(i ActivityStreamsTagProperty) + // SetActivityStreamsTo sets the "to" property. + SetActivityStreamsTo(i ActivityStreamsToProperty) + // SetActivityStreamsUpdated sets the "updated" property. + SetActivityStreamsUpdated(i ActivityStreamsUpdatedProperty) + // SetActivityStreamsUrl sets the "url" property. + SetActivityStreamsUrl(i ActivityStreamsUrlProperty) + // SetForgeFedCommitted sets the "committed" property. + SetForgeFedCommitted(i ForgeFedCommittedProperty) + // SetForgeFedCommittedBy sets the "committedBy" property. + SetForgeFedCommittedBy(i ForgeFedCommittedByProperty) + // SetForgeFedDescription sets the "description" property. + SetForgeFedDescription(i ForgeFedDescriptionProperty) + // SetForgeFedFilesAdded sets the "filesAdded" property. + SetForgeFedFilesAdded(i ForgeFedFilesAddedProperty) + // SetForgeFedFilesModified sets the "filesModified" property. + SetForgeFedFilesModified(i ForgeFedFilesModifiedProperty) + // SetForgeFedFilesRemoved sets the "filesRemoved" property. + SetForgeFedFilesRemoved(i ForgeFedFilesRemovedProperty) + // SetForgeFedHash sets the "hash" property. + SetForgeFedHash(i ForgeFedHashProperty) + // SetForgeFedTeam sets the "team" property. + SetForgeFedTeam(i ForgeFedTeamProperty) + // SetForgeFedTicketsTrackedBy sets the "ticketsTrackedBy" property. + SetForgeFedTicketsTrackedBy(i ForgeFedTicketsTrackedByProperty) + // SetForgeFedTracksTicketsFor sets the "tracksTicketsFor" property. + SetForgeFedTracksTicketsFor(i ForgeFedTracksTicketsForProperty) + // SetJSONLDId sets the "id" property. + SetJSONLDId(i JSONLDIdProperty) + // SetJSONLDType sets the "type" property. + SetJSONLDType(i JSONLDTypeProperty) + // VocabularyURI returns the vocabulary's URI as a string. + VocabularyURI() string +} diff --git a/streams/vocab/gen_type_forgefed_push_interface.go b/streams/vocab/gen_type_forgefed_push_interface.go new file mode 100644 index 0000000..39a9429 --- /dev/null +++ b/streams/vocab/gen_type_forgefed_push_interface.go @@ -0,0 +1,270 @@ +// Code generated by astool. DO NOT EDIT. + +package vocab + +// Indicates that new content has been pushed to the Repository. +// +// { +// "@context": [ +// "https://www.w3.org/ns/activitystreams", +// "https://forgefed.peers.community/ns" +// ], +// "actor": "https://example.dev/aviva", +// "context": "https://example.dev/aviva/myproject", +// "id": "https://example.dev/aviva/outbox/reBGo", +// "object": { +// "items": [ +// { +// "attributedTo": "https://example.dev/aviva", +// "context": "https://example.dev/aviva/myproject", +// "created": "2019-11-03T13:43:59Z", +// "hash": "d96596230322716bd6f87a232a648ca9822a1c20", +// "id": "https://example.dev/aviva/myproject/commits/d96596230322716bd6f87a232a648ca9822a1c20", +// "summary": "Provide hints in sign-up form fields", +// "type": "Commit" +// } +// ], +// "totalItems": 1, +// "type": "OrderedCollection" +// }, +// "summary": "\u003cp\u003eAviva pushed a commit to +// myproject\u003c/p\u003e", +// "target": "https://example.dev/aviva/myproject/branches/master", +// "to": [ +// "https://example.dev/aviva/followers", +// "https://example.dev/aviva/myproject", +// "https://example.dev/aviva/myproject/team", +// "https://example.dev/aviva/myproject/followers" +// ], +// "type": "Push" +// } +type ForgeFedPush interface { + // GetActivityStreamsActor returns the "actor" property if it exists, and + // nil otherwise. + GetActivityStreamsActor() ActivityStreamsActorProperty + // GetActivityStreamsAltitude returns the "altitude" property if it + // exists, and nil otherwise. + GetActivityStreamsAltitude() ActivityStreamsAltitudeProperty + // GetActivityStreamsAttachment returns the "attachment" property if it + // exists, and nil otherwise. + GetActivityStreamsAttachment() ActivityStreamsAttachmentProperty + // GetActivityStreamsAttributedTo returns the "attributedTo" property if + // it exists, and nil otherwise. + GetActivityStreamsAttributedTo() ActivityStreamsAttributedToProperty + // GetActivityStreamsAudience returns the "audience" property if it + // exists, and nil otherwise. + GetActivityStreamsAudience() ActivityStreamsAudienceProperty + // GetActivityStreamsBcc returns the "bcc" property if it exists, and nil + // otherwise. + GetActivityStreamsBcc() ActivityStreamsBccProperty + // GetActivityStreamsBto returns the "bto" property if it exists, and nil + // otherwise. + GetActivityStreamsBto() ActivityStreamsBtoProperty + // GetActivityStreamsCc returns the "cc" property if it exists, and nil + // otherwise. + GetActivityStreamsCc() ActivityStreamsCcProperty + // GetActivityStreamsContent returns the "content" property if it exists, + // and nil otherwise. + GetActivityStreamsContent() ActivityStreamsContentProperty + // GetActivityStreamsContext returns the "context" property if it exists, + // and nil otherwise. + GetActivityStreamsContext() ActivityStreamsContextProperty + // GetActivityStreamsDuration returns the "duration" property if it + // exists, and nil otherwise. + GetActivityStreamsDuration() ActivityStreamsDurationProperty + // GetActivityStreamsEndTime returns the "endTime" property if it exists, + // and nil otherwise. + GetActivityStreamsEndTime() ActivityStreamsEndTimeProperty + // GetActivityStreamsGenerator returns the "generator" property if it + // exists, and nil otherwise. + GetActivityStreamsGenerator() ActivityStreamsGeneratorProperty + // GetActivityStreamsIcon returns the "icon" property if it exists, and + // nil otherwise. + GetActivityStreamsIcon() ActivityStreamsIconProperty + // GetActivityStreamsImage returns the "image" property if it exists, and + // nil otherwise. + GetActivityStreamsImage() ActivityStreamsImageProperty + // GetActivityStreamsInReplyTo returns the "inReplyTo" property if it + // exists, and nil otherwise. + GetActivityStreamsInReplyTo() ActivityStreamsInReplyToProperty + // GetActivityStreamsInstrument returns the "instrument" property if it + // exists, and nil otherwise. + GetActivityStreamsInstrument() ActivityStreamsInstrumentProperty + // GetActivityStreamsLikes returns the "likes" property if it exists, and + // nil otherwise. + GetActivityStreamsLikes() ActivityStreamsLikesProperty + // GetActivityStreamsLocation returns the "location" property if it + // exists, and nil otherwise. + GetActivityStreamsLocation() ActivityStreamsLocationProperty + // GetActivityStreamsMediaType returns the "mediaType" property if it + // exists, and nil otherwise. + GetActivityStreamsMediaType() ActivityStreamsMediaTypeProperty + // GetActivityStreamsName returns the "name" property if it exists, and + // nil otherwise. + GetActivityStreamsName() ActivityStreamsNameProperty + // GetActivityStreamsObject returns the "object" property if it exists, + // and nil otherwise. + GetActivityStreamsObject() ActivityStreamsObjectProperty + // GetActivityStreamsOrigin returns the "origin" property if it exists, + // and nil otherwise. + GetActivityStreamsOrigin() ActivityStreamsOriginProperty + // GetActivityStreamsPreview returns the "preview" property if it exists, + // and nil otherwise. + GetActivityStreamsPreview() ActivityStreamsPreviewProperty + // GetActivityStreamsPublished returns the "published" property if it + // exists, and nil otherwise. + GetActivityStreamsPublished() ActivityStreamsPublishedProperty + // GetActivityStreamsReplies returns the "replies" property if it exists, + // and nil otherwise. + GetActivityStreamsReplies() ActivityStreamsRepliesProperty + // GetActivityStreamsResult returns the "result" property if it exists, + // and nil otherwise. + GetActivityStreamsResult() ActivityStreamsResultProperty + // GetActivityStreamsShares returns the "shares" property if it exists, + // and nil otherwise. + GetActivityStreamsShares() ActivityStreamsSharesProperty + // GetActivityStreamsSource returns the "source" property if it exists, + // and nil otherwise. + GetActivityStreamsSource() ActivityStreamsSourceProperty + // GetActivityStreamsStartTime returns the "startTime" property if it + // exists, and nil otherwise. + GetActivityStreamsStartTime() ActivityStreamsStartTimeProperty + // GetActivityStreamsSummary returns the "summary" property if it exists, + // and nil otherwise. + GetActivityStreamsSummary() ActivityStreamsSummaryProperty + // GetActivityStreamsTag returns the "tag" property if it exists, and nil + // otherwise. + GetActivityStreamsTag() ActivityStreamsTagProperty + // GetActivityStreamsTarget returns the "target" property if it exists, + // and nil otherwise. + GetActivityStreamsTarget() ActivityStreamsTargetProperty + // GetActivityStreamsTo returns the "to" property if it exists, and nil + // otherwise. + GetActivityStreamsTo() ActivityStreamsToProperty + // GetActivityStreamsUpdated returns the "updated" property if it exists, + // and nil otherwise. + GetActivityStreamsUpdated() ActivityStreamsUpdatedProperty + // GetActivityStreamsUrl returns the "url" property if it exists, and nil + // otherwise. + GetActivityStreamsUrl() ActivityStreamsUrlProperty + // GetForgeFedTeam returns the "team" property if it exists, and nil + // otherwise. + GetForgeFedTeam() ForgeFedTeamProperty + // GetForgeFedTicketsTrackedBy returns the "ticketsTrackedBy" property if + // it exists, and nil otherwise. + GetForgeFedTicketsTrackedBy() ForgeFedTicketsTrackedByProperty + // GetForgeFedTracksTicketsFor returns the "tracksTicketsFor" property if + // it exists, and nil otherwise. + GetForgeFedTracksTicketsFor() ForgeFedTracksTicketsForProperty + // GetJSONLDId returns the "id" property if it exists, and nil otherwise. + GetJSONLDId() JSONLDIdProperty + // GetJSONLDType returns the "type" property if it exists, and nil + // otherwise. + GetJSONLDType() JSONLDTypeProperty + // GetTypeName returns the name of this type. + GetTypeName() string + // GetUnknownProperties returns the unknown properties for the Push type. + // Note that this should not be used by app developers. It is only + // used to help determine which implementation is LessThan the other. + // Developers who are creating a different implementation of this + // type's interface can use this method in their LessThan + // implementation, but routine ActivityPub applications should not use + // this to bypass the code generation tool. + GetUnknownProperties() map[string]interface{} + // IsExtending returns true if the Push type extends from the other type. + IsExtending(other Type) bool + // JSONLDContext returns the JSONLD URIs required in the context string + // for this type and the specific properties that are set. The value + // in the map is the alias used to import the type and its properties. + JSONLDContext() map[string]string + // LessThan computes if this Push is lesser, with an arbitrary but stable + // determination. + LessThan(o ForgeFedPush) bool + // Serialize converts this into an interface representation suitable for + // marshalling into a text or binary format. + Serialize() (map[string]interface{}, error) + // SetActivityStreamsActor sets the "actor" property. + SetActivityStreamsActor(i ActivityStreamsActorProperty) + // SetActivityStreamsAltitude sets the "altitude" property. + SetActivityStreamsAltitude(i ActivityStreamsAltitudeProperty) + // SetActivityStreamsAttachment sets the "attachment" property. + SetActivityStreamsAttachment(i ActivityStreamsAttachmentProperty) + // SetActivityStreamsAttributedTo sets the "attributedTo" property. + SetActivityStreamsAttributedTo(i ActivityStreamsAttributedToProperty) + // SetActivityStreamsAudience sets the "audience" property. + SetActivityStreamsAudience(i ActivityStreamsAudienceProperty) + // SetActivityStreamsBcc sets the "bcc" property. + SetActivityStreamsBcc(i ActivityStreamsBccProperty) + // SetActivityStreamsBto sets the "bto" property. + SetActivityStreamsBto(i ActivityStreamsBtoProperty) + // SetActivityStreamsCc sets the "cc" property. + SetActivityStreamsCc(i ActivityStreamsCcProperty) + // SetActivityStreamsContent sets the "content" property. + SetActivityStreamsContent(i ActivityStreamsContentProperty) + // SetActivityStreamsContext sets the "context" property. + SetActivityStreamsContext(i ActivityStreamsContextProperty) + // SetActivityStreamsDuration sets the "duration" property. + SetActivityStreamsDuration(i ActivityStreamsDurationProperty) + // SetActivityStreamsEndTime sets the "endTime" property. + SetActivityStreamsEndTime(i ActivityStreamsEndTimeProperty) + // SetActivityStreamsGenerator sets the "generator" property. + SetActivityStreamsGenerator(i ActivityStreamsGeneratorProperty) + // SetActivityStreamsIcon sets the "icon" property. + SetActivityStreamsIcon(i ActivityStreamsIconProperty) + // SetActivityStreamsImage sets the "image" property. + SetActivityStreamsImage(i ActivityStreamsImageProperty) + // SetActivityStreamsInReplyTo sets the "inReplyTo" property. + SetActivityStreamsInReplyTo(i ActivityStreamsInReplyToProperty) + // SetActivityStreamsInstrument sets the "instrument" property. + SetActivityStreamsInstrument(i ActivityStreamsInstrumentProperty) + // SetActivityStreamsLikes sets the "likes" property. + SetActivityStreamsLikes(i ActivityStreamsLikesProperty) + // SetActivityStreamsLocation sets the "location" property. + SetActivityStreamsLocation(i ActivityStreamsLocationProperty) + // SetActivityStreamsMediaType sets the "mediaType" property. + SetActivityStreamsMediaType(i ActivityStreamsMediaTypeProperty) + // SetActivityStreamsName sets the "name" property. + SetActivityStreamsName(i ActivityStreamsNameProperty) + // SetActivityStreamsObject sets the "object" property. + SetActivityStreamsObject(i ActivityStreamsObjectProperty) + // SetActivityStreamsOrigin sets the "origin" property. + SetActivityStreamsOrigin(i ActivityStreamsOriginProperty) + // SetActivityStreamsPreview sets the "preview" property. + SetActivityStreamsPreview(i ActivityStreamsPreviewProperty) + // SetActivityStreamsPublished sets the "published" property. + SetActivityStreamsPublished(i ActivityStreamsPublishedProperty) + // SetActivityStreamsReplies sets the "replies" property. + SetActivityStreamsReplies(i ActivityStreamsRepliesProperty) + // SetActivityStreamsResult sets the "result" property. + SetActivityStreamsResult(i ActivityStreamsResultProperty) + // SetActivityStreamsShares sets the "shares" property. + SetActivityStreamsShares(i ActivityStreamsSharesProperty) + // SetActivityStreamsSource sets the "source" property. + SetActivityStreamsSource(i ActivityStreamsSourceProperty) + // SetActivityStreamsStartTime sets the "startTime" property. + SetActivityStreamsStartTime(i ActivityStreamsStartTimeProperty) + // SetActivityStreamsSummary sets the "summary" property. + SetActivityStreamsSummary(i ActivityStreamsSummaryProperty) + // SetActivityStreamsTag sets the "tag" property. + SetActivityStreamsTag(i ActivityStreamsTagProperty) + // SetActivityStreamsTarget sets the "target" property. + SetActivityStreamsTarget(i ActivityStreamsTargetProperty) + // SetActivityStreamsTo sets the "to" property. + SetActivityStreamsTo(i ActivityStreamsToProperty) + // SetActivityStreamsUpdated sets the "updated" property. + SetActivityStreamsUpdated(i ActivityStreamsUpdatedProperty) + // SetActivityStreamsUrl sets the "url" property. + SetActivityStreamsUrl(i ActivityStreamsUrlProperty) + // SetForgeFedTeam sets the "team" property. + SetForgeFedTeam(i ForgeFedTeamProperty) + // SetForgeFedTicketsTrackedBy sets the "ticketsTrackedBy" property. + SetForgeFedTicketsTrackedBy(i ForgeFedTicketsTrackedByProperty) + // SetForgeFedTracksTicketsFor sets the "tracksTicketsFor" property. + SetForgeFedTracksTicketsFor(i ForgeFedTracksTicketsForProperty) + // SetJSONLDId sets the "id" property. + SetJSONLDId(i JSONLDIdProperty) + // SetJSONLDType sets the "type" property. + SetJSONLDType(i JSONLDTypeProperty) + // VocabularyURI returns the vocabulary's URI as a string. + VocabularyURI() string +} diff --git a/streams/vocab/gen_type_forgefed_repository_interface.go b/streams/vocab/gen_type_forgefed_repository_interface.go new file mode 100644 index 0000000..00fc92c --- /dev/null +++ b/streams/vocab/gen_type_forgefed_repository_interface.go @@ -0,0 +1,238 @@ +// Code generated by astool. DO NOT EDIT. + +package vocab + +// Represents a version control system repository. +// +// { +// "@context": [ +// "https://www.w3.org/ns/activitystreams", +// "https://w3id.org/security/v1", +// "https://forgefed.peers.community/ns" +// ], +// "followers": "https://dev.example/aviva/treesim/followers", +// "id": "https://dev.example/aviva/treesim", +// "inbox": "https://dev.example/aviva/treesim/inbox", +// "name": "Tree Growth 3D Simulation", +// "outbox": "https://dev.example/aviva/treesim/outbox", +// "publicKey": { +// "id": "https://dev.example/aviva/treesim#main-key", +// "owner": "https://dev.example/aviva/treesim", +// "publicKeyPem": "-----BEGIN PUBLIC KEY-----\nMIIBIjANBgkqhki....." +// }, +// "summary": "\u003cp\u003eTree growth 3D simulator for my nature +// exploration game\u003c/p\u003e", +// "team": "https://dev.example/aviva/treesim/team", +// "type": "Repository" +// } +type ForgeFedRepository interface { + // GetActivityStreamsAltitude returns the "altitude" property if it + // exists, and nil otherwise. + GetActivityStreamsAltitude() ActivityStreamsAltitudeProperty + // GetActivityStreamsAttachment returns the "attachment" property if it + // exists, and nil otherwise. + GetActivityStreamsAttachment() ActivityStreamsAttachmentProperty + // GetActivityStreamsAttributedTo returns the "attributedTo" property if + // it exists, and nil otherwise. + GetActivityStreamsAttributedTo() ActivityStreamsAttributedToProperty + // GetActivityStreamsAudience returns the "audience" property if it + // exists, and nil otherwise. + GetActivityStreamsAudience() ActivityStreamsAudienceProperty + // GetActivityStreamsBcc returns the "bcc" property if it exists, and nil + // otherwise. + GetActivityStreamsBcc() ActivityStreamsBccProperty + // GetActivityStreamsBto returns the "bto" property if it exists, and nil + // otherwise. + GetActivityStreamsBto() ActivityStreamsBtoProperty + // GetActivityStreamsCc returns the "cc" property if it exists, and nil + // otherwise. + GetActivityStreamsCc() ActivityStreamsCcProperty + // GetActivityStreamsContent returns the "content" property if it exists, + // and nil otherwise. + GetActivityStreamsContent() ActivityStreamsContentProperty + // GetActivityStreamsContext returns the "context" property if it exists, + // and nil otherwise. + GetActivityStreamsContext() ActivityStreamsContextProperty + // GetActivityStreamsDuration returns the "duration" property if it + // exists, and nil otherwise. + GetActivityStreamsDuration() ActivityStreamsDurationProperty + // GetActivityStreamsEndTime returns the "endTime" property if it exists, + // and nil otherwise. + GetActivityStreamsEndTime() ActivityStreamsEndTimeProperty + // GetActivityStreamsGenerator returns the "generator" property if it + // exists, and nil otherwise. + GetActivityStreamsGenerator() ActivityStreamsGeneratorProperty + // GetActivityStreamsIcon returns the "icon" property if it exists, and + // nil otherwise. + GetActivityStreamsIcon() ActivityStreamsIconProperty + // GetActivityStreamsImage returns the "image" property if it exists, and + // nil otherwise. + GetActivityStreamsImage() ActivityStreamsImageProperty + // GetActivityStreamsInReplyTo returns the "inReplyTo" property if it + // exists, and nil otherwise. + GetActivityStreamsInReplyTo() ActivityStreamsInReplyToProperty + // GetActivityStreamsLikes returns the "likes" property if it exists, and + // nil otherwise. + GetActivityStreamsLikes() ActivityStreamsLikesProperty + // GetActivityStreamsLocation returns the "location" property if it + // exists, and nil otherwise. + GetActivityStreamsLocation() ActivityStreamsLocationProperty + // GetActivityStreamsMediaType returns the "mediaType" property if it + // exists, and nil otherwise. + GetActivityStreamsMediaType() ActivityStreamsMediaTypeProperty + // GetActivityStreamsName returns the "name" property if it exists, and + // nil otherwise. + GetActivityStreamsName() ActivityStreamsNameProperty + // GetActivityStreamsObject returns the "object" property if it exists, + // and nil otherwise. + GetActivityStreamsObject() ActivityStreamsObjectProperty + // GetActivityStreamsPreview returns the "preview" property if it exists, + // and nil otherwise. + GetActivityStreamsPreview() ActivityStreamsPreviewProperty + // GetActivityStreamsPublished returns the "published" property if it + // exists, and nil otherwise. + GetActivityStreamsPublished() ActivityStreamsPublishedProperty + // GetActivityStreamsReplies returns the "replies" property if it exists, + // and nil otherwise. + GetActivityStreamsReplies() ActivityStreamsRepliesProperty + // GetActivityStreamsShares returns the "shares" property if it exists, + // and nil otherwise. + GetActivityStreamsShares() ActivityStreamsSharesProperty + // GetActivityStreamsSource returns the "source" property if it exists, + // and nil otherwise. + GetActivityStreamsSource() ActivityStreamsSourceProperty + // GetActivityStreamsStartTime returns the "startTime" property if it + // exists, and nil otherwise. + GetActivityStreamsStartTime() ActivityStreamsStartTimeProperty + // GetActivityStreamsSummary returns the "summary" property if it exists, + // and nil otherwise. + GetActivityStreamsSummary() ActivityStreamsSummaryProperty + // GetActivityStreamsTag returns the "tag" property if it exists, and nil + // otherwise. + GetActivityStreamsTag() ActivityStreamsTagProperty + // GetActivityStreamsTo returns the "to" property if it exists, and nil + // otherwise. + GetActivityStreamsTo() ActivityStreamsToProperty + // GetActivityStreamsUpdated returns the "updated" property if it exists, + // and nil otherwise. + GetActivityStreamsUpdated() ActivityStreamsUpdatedProperty + // GetActivityStreamsUrl returns the "url" property if it exists, and nil + // otherwise. + GetActivityStreamsUrl() ActivityStreamsUrlProperty + // GetForgeFedForks returns the "forks" property if it exists, and nil + // otherwise. + GetForgeFedForks() ForgeFedForksProperty + // GetForgeFedTeam returns the "team" property if it exists, and nil + // otherwise. + GetForgeFedTeam() ForgeFedTeamProperty + // GetForgeFedTicketsTrackedBy returns the "ticketsTrackedBy" property if + // it exists, and nil otherwise. + GetForgeFedTicketsTrackedBy() ForgeFedTicketsTrackedByProperty + // GetForgeFedTracksTicketsFor returns the "tracksTicketsFor" property if + // it exists, and nil otherwise. + GetForgeFedTracksTicketsFor() ForgeFedTracksTicketsForProperty + // GetJSONLDId returns the "id" property if it exists, and nil otherwise. + GetJSONLDId() JSONLDIdProperty + // GetJSONLDType returns the "type" property if it exists, and nil + // otherwise. + GetJSONLDType() JSONLDTypeProperty + // GetTypeName returns the name of this type. + GetTypeName() string + // GetUnknownProperties returns the unknown properties for the Repository + // type. Note that this should not be used by app developers. It is + // only used to help determine which implementation is LessThan the + // other. Developers who are creating a different implementation of + // this type's interface can use this method in their LessThan + // implementation, but routine ActivityPub applications should not use + // this to bypass the code generation tool. + GetUnknownProperties() map[string]interface{} + // IsExtending returns true if the Repository type extends from the other + // type. + IsExtending(other Type) bool + // JSONLDContext returns the JSONLD URIs required in the context string + // for this type and the specific properties that are set. The value + // in the map is the alias used to import the type and its properties. + JSONLDContext() map[string]string + // LessThan computes if this Repository is lesser, with an arbitrary but + // stable determination. + LessThan(o ForgeFedRepository) bool + // Serialize converts this into an interface representation suitable for + // marshalling into a text or binary format. + Serialize() (map[string]interface{}, error) + // SetActivityStreamsAltitude sets the "altitude" property. + SetActivityStreamsAltitude(i ActivityStreamsAltitudeProperty) + // SetActivityStreamsAttachment sets the "attachment" property. + SetActivityStreamsAttachment(i ActivityStreamsAttachmentProperty) + // SetActivityStreamsAttributedTo sets the "attributedTo" property. + SetActivityStreamsAttributedTo(i ActivityStreamsAttributedToProperty) + // SetActivityStreamsAudience sets the "audience" property. + SetActivityStreamsAudience(i ActivityStreamsAudienceProperty) + // SetActivityStreamsBcc sets the "bcc" property. + SetActivityStreamsBcc(i ActivityStreamsBccProperty) + // SetActivityStreamsBto sets the "bto" property. + SetActivityStreamsBto(i ActivityStreamsBtoProperty) + // SetActivityStreamsCc sets the "cc" property. + SetActivityStreamsCc(i ActivityStreamsCcProperty) + // SetActivityStreamsContent sets the "content" property. + SetActivityStreamsContent(i ActivityStreamsContentProperty) + // SetActivityStreamsContext sets the "context" property. + SetActivityStreamsContext(i ActivityStreamsContextProperty) + // SetActivityStreamsDuration sets the "duration" property. + SetActivityStreamsDuration(i ActivityStreamsDurationProperty) + // SetActivityStreamsEndTime sets the "endTime" property. + SetActivityStreamsEndTime(i ActivityStreamsEndTimeProperty) + // SetActivityStreamsGenerator sets the "generator" property. + SetActivityStreamsGenerator(i ActivityStreamsGeneratorProperty) + // SetActivityStreamsIcon sets the "icon" property. + SetActivityStreamsIcon(i ActivityStreamsIconProperty) + // SetActivityStreamsImage sets the "image" property. + SetActivityStreamsImage(i ActivityStreamsImageProperty) + // SetActivityStreamsInReplyTo sets the "inReplyTo" property. + SetActivityStreamsInReplyTo(i ActivityStreamsInReplyToProperty) + // SetActivityStreamsLikes sets the "likes" property. + SetActivityStreamsLikes(i ActivityStreamsLikesProperty) + // SetActivityStreamsLocation sets the "location" property. + SetActivityStreamsLocation(i ActivityStreamsLocationProperty) + // SetActivityStreamsMediaType sets the "mediaType" property. + SetActivityStreamsMediaType(i ActivityStreamsMediaTypeProperty) + // SetActivityStreamsName sets the "name" property. + SetActivityStreamsName(i ActivityStreamsNameProperty) + // SetActivityStreamsObject sets the "object" property. + SetActivityStreamsObject(i ActivityStreamsObjectProperty) + // SetActivityStreamsPreview sets the "preview" property. + SetActivityStreamsPreview(i ActivityStreamsPreviewProperty) + // SetActivityStreamsPublished sets the "published" property. + SetActivityStreamsPublished(i ActivityStreamsPublishedProperty) + // SetActivityStreamsReplies sets the "replies" property. + SetActivityStreamsReplies(i ActivityStreamsRepliesProperty) + // SetActivityStreamsShares sets the "shares" property. + SetActivityStreamsShares(i ActivityStreamsSharesProperty) + // SetActivityStreamsSource sets the "source" property. + SetActivityStreamsSource(i ActivityStreamsSourceProperty) + // SetActivityStreamsStartTime sets the "startTime" property. + SetActivityStreamsStartTime(i ActivityStreamsStartTimeProperty) + // SetActivityStreamsSummary sets the "summary" property. + SetActivityStreamsSummary(i ActivityStreamsSummaryProperty) + // SetActivityStreamsTag sets the "tag" property. + SetActivityStreamsTag(i ActivityStreamsTagProperty) + // SetActivityStreamsTo sets the "to" property. + SetActivityStreamsTo(i ActivityStreamsToProperty) + // SetActivityStreamsUpdated sets the "updated" property. + SetActivityStreamsUpdated(i ActivityStreamsUpdatedProperty) + // SetActivityStreamsUrl sets the "url" property. + SetActivityStreamsUrl(i ActivityStreamsUrlProperty) + // SetForgeFedForks sets the "forks" property. + SetForgeFedForks(i ForgeFedForksProperty) + // SetForgeFedTeam sets the "team" property. + SetForgeFedTeam(i ForgeFedTeamProperty) + // SetForgeFedTicketsTrackedBy sets the "ticketsTrackedBy" property. + SetForgeFedTicketsTrackedBy(i ForgeFedTicketsTrackedByProperty) + // SetForgeFedTracksTicketsFor sets the "tracksTicketsFor" property. + SetForgeFedTracksTicketsFor(i ForgeFedTracksTicketsForProperty) + // SetJSONLDId sets the "id" property. + SetJSONLDId(i JSONLDIdProperty) + // SetJSONLDType sets the "type" property. + SetJSONLDType(i JSONLDTypeProperty) + // VocabularyURI returns the vocabulary's URI as a string. + VocabularyURI() string +} diff --git a/streams/vocab/gen_type_forgefed_ticket_interface.go b/streams/vocab/gen_type_forgefed_ticket_interface.go new file mode 100644 index 0000000..28edd66 --- /dev/null +++ b/streams/vocab/gen_type_forgefed_ticket_interface.go @@ -0,0 +1,263 @@ +// Code generated by astool. DO NOT EDIT. + +package vocab + +// Represents an item that requires work or attention. Tickets exist in the +// context of a project (which may or may not be a version-control +// repository), and are used to track ideas, proposals, tasks, bugs and more. +// +// { +// "@context": [ +// "https://www.w3.org/ns/activitystreams", +// "https://forgefed.peers.community/ns" +// ], +// "assignedTo": "https://example.dev/alice", +// "attributedTo": "https://dev.community/bob", +// "content": "\u003cp\u003ePlease fix. +// \u003ci\u003eEverything\u003c/i\u003e is broken!\u003c/p\u003e", +// "context": "https://example.dev/alice/myrepo", +// "id": "https://example.dev/alice/myrepo/issues/42", +// "isResolved": false, +// "mediaType": "text/html", +// "source": { +// "content": "Please fix. *Everything* is broken!", +// "mediaType": "text/markdown; variant=CommonMark" +// }, +// "summary": "Nothing works!", +// "type": "Ticket" +// } +type ForgeFedTicket interface { + // GetActivityStreamsAltitude returns the "altitude" property if it + // exists, and nil otherwise. + GetActivityStreamsAltitude() ActivityStreamsAltitudeProperty + // GetActivityStreamsAttachment returns the "attachment" property if it + // exists, and nil otherwise. + GetActivityStreamsAttachment() ActivityStreamsAttachmentProperty + // GetActivityStreamsAttributedTo returns the "attributedTo" property if + // it exists, and nil otherwise. + GetActivityStreamsAttributedTo() ActivityStreamsAttributedToProperty + // GetActivityStreamsAudience returns the "audience" property if it + // exists, and nil otherwise. + GetActivityStreamsAudience() ActivityStreamsAudienceProperty + // GetActivityStreamsBcc returns the "bcc" property if it exists, and nil + // otherwise. + GetActivityStreamsBcc() ActivityStreamsBccProperty + // GetActivityStreamsBto returns the "bto" property if it exists, and nil + // otherwise. + GetActivityStreamsBto() ActivityStreamsBtoProperty + // GetActivityStreamsCc returns the "cc" property if it exists, and nil + // otherwise. + GetActivityStreamsCc() ActivityStreamsCcProperty + // GetActivityStreamsContent returns the "content" property if it exists, + // and nil otherwise. + GetActivityStreamsContent() ActivityStreamsContentProperty + // GetActivityStreamsContext returns the "context" property if it exists, + // and nil otherwise. + GetActivityStreamsContext() ActivityStreamsContextProperty + // GetActivityStreamsDuration returns the "duration" property if it + // exists, and nil otherwise. + GetActivityStreamsDuration() ActivityStreamsDurationProperty + // GetActivityStreamsEndTime returns the "endTime" property if it exists, + // and nil otherwise. + GetActivityStreamsEndTime() ActivityStreamsEndTimeProperty + // GetActivityStreamsGenerator returns the "generator" property if it + // exists, and nil otherwise. + GetActivityStreamsGenerator() ActivityStreamsGeneratorProperty + // GetActivityStreamsIcon returns the "icon" property if it exists, and + // nil otherwise. + GetActivityStreamsIcon() ActivityStreamsIconProperty + // GetActivityStreamsImage returns the "image" property if it exists, and + // nil otherwise. + GetActivityStreamsImage() ActivityStreamsImageProperty + // GetActivityStreamsInReplyTo returns the "inReplyTo" property if it + // exists, and nil otherwise. + GetActivityStreamsInReplyTo() ActivityStreamsInReplyToProperty + // GetActivityStreamsLikes returns the "likes" property if it exists, and + // nil otherwise. + GetActivityStreamsLikes() ActivityStreamsLikesProperty + // GetActivityStreamsLocation returns the "location" property if it + // exists, and nil otherwise. + GetActivityStreamsLocation() ActivityStreamsLocationProperty + // GetActivityStreamsMediaType returns the "mediaType" property if it + // exists, and nil otherwise. + GetActivityStreamsMediaType() ActivityStreamsMediaTypeProperty + // GetActivityStreamsName returns the "name" property if it exists, and + // nil otherwise. + GetActivityStreamsName() ActivityStreamsNameProperty + // GetActivityStreamsObject returns the "object" property if it exists, + // and nil otherwise. + GetActivityStreamsObject() ActivityStreamsObjectProperty + // GetActivityStreamsPreview returns the "preview" property if it exists, + // and nil otherwise. + GetActivityStreamsPreview() ActivityStreamsPreviewProperty + // GetActivityStreamsPublished returns the "published" property if it + // exists, and nil otherwise. + GetActivityStreamsPublished() ActivityStreamsPublishedProperty + // GetActivityStreamsReplies returns the "replies" property if it exists, + // and nil otherwise. + GetActivityStreamsReplies() ActivityStreamsRepliesProperty + // GetActivityStreamsShares returns the "shares" property if it exists, + // and nil otherwise. + GetActivityStreamsShares() ActivityStreamsSharesProperty + // GetActivityStreamsSource returns the "source" property if it exists, + // and nil otherwise. + GetActivityStreamsSource() ActivityStreamsSourceProperty + // GetActivityStreamsStartTime returns the "startTime" property if it + // exists, and nil otherwise. + GetActivityStreamsStartTime() ActivityStreamsStartTimeProperty + // GetActivityStreamsSummary returns the "summary" property if it exists, + // and nil otherwise. + GetActivityStreamsSummary() ActivityStreamsSummaryProperty + // GetActivityStreamsTag returns the "tag" property if it exists, and nil + // otherwise. + GetActivityStreamsTag() ActivityStreamsTagProperty + // GetActivityStreamsTo returns the "to" property if it exists, and nil + // otherwise. + GetActivityStreamsTo() ActivityStreamsToProperty + // GetActivityStreamsUpdated returns the "updated" property if it exists, + // and nil otherwise. + GetActivityStreamsUpdated() ActivityStreamsUpdatedProperty + // GetActivityStreamsUrl returns the "url" property if it exists, and nil + // otherwise. + GetActivityStreamsUrl() ActivityStreamsUrlProperty + // GetForgeFedAssignedTo returns the "assignedTo" property if it exists, + // and nil otherwise. + GetForgeFedAssignedTo() ForgeFedAssignedToProperty + // GetForgeFedDependants returns the "dependants" property if it exists, + // and nil otherwise. + GetForgeFedDependants() ForgeFedDependantsProperty + // GetForgeFedDependedBy returns the "dependedBy" property if it exists, + // and nil otherwise. + GetForgeFedDependedBy() ForgeFedDependedByProperty + // GetForgeFedDependencies returns the "dependencies" property if it + // exists, and nil otherwise. + GetForgeFedDependencies() ForgeFedDependenciesProperty + // GetForgeFedDependsOn returns the "dependsOn" property if it exists, and + // nil otherwise. + GetForgeFedDependsOn() ForgeFedDependsOnProperty + // GetForgeFedIsResolved returns the "isResolved" property if it exists, + // and nil otherwise. + GetForgeFedIsResolved() ForgeFedIsResolvedProperty + // GetForgeFedTeam returns the "team" property if it exists, and nil + // otherwise. + GetForgeFedTeam() ForgeFedTeamProperty + // GetForgeFedTicketsTrackedBy returns the "ticketsTrackedBy" property if + // it exists, and nil otherwise. + GetForgeFedTicketsTrackedBy() ForgeFedTicketsTrackedByProperty + // GetForgeFedTracksTicketsFor returns the "tracksTicketsFor" property if + // it exists, and nil otherwise. + GetForgeFedTracksTicketsFor() ForgeFedTracksTicketsForProperty + // GetJSONLDId returns the "id" property if it exists, and nil otherwise. + GetJSONLDId() JSONLDIdProperty + // GetJSONLDType returns the "type" property if it exists, and nil + // otherwise. + GetJSONLDType() JSONLDTypeProperty + // GetTypeName returns the name of this type. + GetTypeName() string + // GetUnknownProperties returns the unknown properties for the Ticket + // type. Note that this should not be used by app developers. It is + // only used to help determine which implementation is LessThan the + // other. Developers who are creating a different implementation of + // this type's interface can use this method in their LessThan + // implementation, but routine ActivityPub applications should not use + // this to bypass the code generation tool. + GetUnknownProperties() map[string]interface{} + // IsExtending returns true if the Ticket type extends from the other type. + IsExtending(other Type) bool + // JSONLDContext returns the JSONLD URIs required in the context string + // for this type and the specific properties that are set. The value + // in the map is the alias used to import the type and its properties. + JSONLDContext() map[string]string + // LessThan computes if this Ticket is lesser, with an arbitrary but + // stable determination. + LessThan(o ForgeFedTicket) bool + // Serialize converts this into an interface representation suitable for + // marshalling into a text or binary format. + Serialize() (map[string]interface{}, error) + // SetActivityStreamsAltitude sets the "altitude" property. + SetActivityStreamsAltitude(i ActivityStreamsAltitudeProperty) + // SetActivityStreamsAttachment sets the "attachment" property. + SetActivityStreamsAttachment(i ActivityStreamsAttachmentProperty) + // SetActivityStreamsAttributedTo sets the "attributedTo" property. + SetActivityStreamsAttributedTo(i ActivityStreamsAttributedToProperty) + // SetActivityStreamsAudience sets the "audience" property. + SetActivityStreamsAudience(i ActivityStreamsAudienceProperty) + // SetActivityStreamsBcc sets the "bcc" property. + SetActivityStreamsBcc(i ActivityStreamsBccProperty) + // SetActivityStreamsBto sets the "bto" property. + SetActivityStreamsBto(i ActivityStreamsBtoProperty) + // SetActivityStreamsCc sets the "cc" property. + SetActivityStreamsCc(i ActivityStreamsCcProperty) + // SetActivityStreamsContent sets the "content" property. + SetActivityStreamsContent(i ActivityStreamsContentProperty) + // SetActivityStreamsContext sets the "context" property. + SetActivityStreamsContext(i ActivityStreamsContextProperty) + // SetActivityStreamsDuration sets the "duration" property. + SetActivityStreamsDuration(i ActivityStreamsDurationProperty) + // SetActivityStreamsEndTime sets the "endTime" property. + SetActivityStreamsEndTime(i ActivityStreamsEndTimeProperty) + // SetActivityStreamsGenerator sets the "generator" property. + SetActivityStreamsGenerator(i ActivityStreamsGeneratorProperty) + // SetActivityStreamsIcon sets the "icon" property. + SetActivityStreamsIcon(i ActivityStreamsIconProperty) + // SetActivityStreamsImage sets the "image" property. + SetActivityStreamsImage(i ActivityStreamsImageProperty) + // SetActivityStreamsInReplyTo sets the "inReplyTo" property. + SetActivityStreamsInReplyTo(i ActivityStreamsInReplyToProperty) + // SetActivityStreamsLikes sets the "likes" property. + SetActivityStreamsLikes(i ActivityStreamsLikesProperty) + // SetActivityStreamsLocation sets the "location" property. + SetActivityStreamsLocation(i ActivityStreamsLocationProperty) + // SetActivityStreamsMediaType sets the "mediaType" property. + SetActivityStreamsMediaType(i ActivityStreamsMediaTypeProperty) + // SetActivityStreamsName sets the "name" property. + SetActivityStreamsName(i ActivityStreamsNameProperty) + // SetActivityStreamsObject sets the "object" property. + SetActivityStreamsObject(i ActivityStreamsObjectProperty) + // SetActivityStreamsPreview sets the "preview" property. + SetActivityStreamsPreview(i ActivityStreamsPreviewProperty) + // SetActivityStreamsPublished sets the "published" property. + SetActivityStreamsPublished(i ActivityStreamsPublishedProperty) + // SetActivityStreamsReplies sets the "replies" property. + SetActivityStreamsReplies(i ActivityStreamsRepliesProperty) + // SetActivityStreamsShares sets the "shares" property. + SetActivityStreamsShares(i ActivityStreamsSharesProperty) + // SetActivityStreamsSource sets the "source" property. + SetActivityStreamsSource(i ActivityStreamsSourceProperty) + // SetActivityStreamsStartTime sets the "startTime" property. + SetActivityStreamsStartTime(i ActivityStreamsStartTimeProperty) + // SetActivityStreamsSummary sets the "summary" property. + SetActivityStreamsSummary(i ActivityStreamsSummaryProperty) + // SetActivityStreamsTag sets the "tag" property. + SetActivityStreamsTag(i ActivityStreamsTagProperty) + // SetActivityStreamsTo sets the "to" property. + SetActivityStreamsTo(i ActivityStreamsToProperty) + // SetActivityStreamsUpdated sets the "updated" property. + SetActivityStreamsUpdated(i ActivityStreamsUpdatedProperty) + // SetActivityStreamsUrl sets the "url" property. + SetActivityStreamsUrl(i ActivityStreamsUrlProperty) + // SetForgeFedAssignedTo sets the "assignedTo" property. + SetForgeFedAssignedTo(i ForgeFedAssignedToProperty) + // SetForgeFedDependants sets the "dependants" property. + SetForgeFedDependants(i ForgeFedDependantsProperty) + // SetForgeFedDependedBy sets the "dependedBy" property. + SetForgeFedDependedBy(i ForgeFedDependedByProperty) + // SetForgeFedDependencies sets the "dependencies" property. + SetForgeFedDependencies(i ForgeFedDependenciesProperty) + // SetForgeFedDependsOn sets the "dependsOn" property. + SetForgeFedDependsOn(i ForgeFedDependsOnProperty) + // SetForgeFedIsResolved sets the "isResolved" property. + SetForgeFedIsResolved(i ForgeFedIsResolvedProperty) + // SetForgeFedTeam sets the "team" property. + SetForgeFedTeam(i ForgeFedTeamProperty) + // SetForgeFedTicketsTrackedBy sets the "ticketsTrackedBy" property. + SetForgeFedTicketsTrackedBy(i ForgeFedTicketsTrackedByProperty) + // SetForgeFedTracksTicketsFor sets the "tracksTicketsFor" property. + SetForgeFedTracksTicketsFor(i ForgeFedTracksTicketsForProperty) + // SetJSONLDId sets the "id" property. + SetJSONLDId(i JSONLDIdProperty) + // SetJSONLDType sets the "type" property. + SetJSONLDType(i JSONLDTypeProperty) + // VocabularyURI returns the vocabulary's URI as a string. + VocabularyURI() string +} diff --git a/streams/vocab/gen_type_forgefed_ticketdependency_interface.go b/streams/vocab/gen_type_forgefed_ticketdependency_interface.go new file mode 100644 index 0000000..972a3df --- /dev/null +++ b/streams/vocab/gen_type_forgefed_ticketdependency_interface.go @@ -0,0 +1,242 @@ +// Code generated by astool. DO NOT EDIT. + +package vocab + +// Represents a relationship between 2 Tickets, in which the resolution of one +// ticket requires the other ticket to be resolved too. It MUST specify the +// subject, object and relationship properties, and the relationship property +// MUST be dependsOn. +// +// { +// "@context": [ +// "https://www.w3.org/ns/activitystreams", +// "https://forgefed.peers.community/ns" +// ], +// "attributedTo": "https://example.dev/alice", +// "id": "https://example.dev/ticket-deps/2342593", +// "object": "https://dev.community/bob/coolproj/issues/85", +// "published": "2019-07-11T12:34:56Z", +// "relationship": "dependsOn", +// "subject": "https://example.dev/alice/myproj/issues/42", +// "summary": "Alice's ticket depends on Bob's ticket", +// "type": [ +// "Relationship", +// "TicketDependency" +// ] +// } +type ForgeFedTicketDependency interface { + // GetActivityStreamsAltitude returns the "altitude" property if it + // exists, and nil otherwise. + GetActivityStreamsAltitude() ActivityStreamsAltitudeProperty + // GetActivityStreamsAttachment returns the "attachment" property if it + // exists, and nil otherwise. + GetActivityStreamsAttachment() ActivityStreamsAttachmentProperty + // GetActivityStreamsAttributedTo returns the "attributedTo" property if + // it exists, and nil otherwise. + GetActivityStreamsAttributedTo() ActivityStreamsAttributedToProperty + // GetActivityStreamsAudience returns the "audience" property if it + // exists, and nil otherwise. + GetActivityStreamsAudience() ActivityStreamsAudienceProperty + // GetActivityStreamsBcc returns the "bcc" property if it exists, and nil + // otherwise. + GetActivityStreamsBcc() ActivityStreamsBccProperty + // GetActivityStreamsBto returns the "bto" property if it exists, and nil + // otherwise. + GetActivityStreamsBto() ActivityStreamsBtoProperty + // GetActivityStreamsCc returns the "cc" property if it exists, and nil + // otherwise. + GetActivityStreamsCc() ActivityStreamsCcProperty + // GetActivityStreamsContent returns the "content" property if it exists, + // and nil otherwise. + GetActivityStreamsContent() ActivityStreamsContentProperty + // GetActivityStreamsContext returns the "context" property if it exists, + // and nil otherwise. + GetActivityStreamsContext() ActivityStreamsContextProperty + // GetActivityStreamsDuration returns the "duration" property if it + // exists, and nil otherwise. + GetActivityStreamsDuration() ActivityStreamsDurationProperty + // GetActivityStreamsEndTime returns the "endTime" property if it exists, + // and nil otherwise. + GetActivityStreamsEndTime() ActivityStreamsEndTimeProperty + // GetActivityStreamsGenerator returns the "generator" property if it + // exists, and nil otherwise. + GetActivityStreamsGenerator() ActivityStreamsGeneratorProperty + // GetActivityStreamsIcon returns the "icon" property if it exists, and + // nil otherwise. + GetActivityStreamsIcon() ActivityStreamsIconProperty + // GetActivityStreamsImage returns the "image" property if it exists, and + // nil otherwise. + GetActivityStreamsImage() ActivityStreamsImageProperty + // GetActivityStreamsInReplyTo returns the "inReplyTo" property if it + // exists, and nil otherwise. + GetActivityStreamsInReplyTo() ActivityStreamsInReplyToProperty + // GetActivityStreamsLikes returns the "likes" property if it exists, and + // nil otherwise. + GetActivityStreamsLikes() ActivityStreamsLikesProperty + // GetActivityStreamsLocation returns the "location" property if it + // exists, and nil otherwise. + GetActivityStreamsLocation() ActivityStreamsLocationProperty + // GetActivityStreamsMediaType returns the "mediaType" property if it + // exists, and nil otherwise. + GetActivityStreamsMediaType() ActivityStreamsMediaTypeProperty + // GetActivityStreamsName returns the "name" property if it exists, and + // nil otherwise. + GetActivityStreamsName() ActivityStreamsNameProperty + // GetActivityStreamsObject returns the "object" property if it exists, + // and nil otherwise. + GetActivityStreamsObject() ActivityStreamsObjectProperty + // GetActivityStreamsPreview returns the "preview" property if it exists, + // and nil otherwise. + GetActivityStreamsPreview() ActivityStreamsPreviewProperty + // GetActivityStreamsPublished returns the "published" property if it + // exists, and nil otherwise. + GetActivityStreamsPublished() ActivityStreamsPublishedProperty + // GetActivityStreamsRelationship returns the "relationship" property if + // it exists, and nil otherwise. + GetActivityStreamsRelationship() ActivityStreamsRelationshipProperty + // GetActivityStreamsReplies returns the "replies" property if it exists, + // and nil otherwise. + GetActivityStreamsReplies() ActivityStreamsRepliesProperty + // GetActivityStreamsShares returns the "shares" property if it exists, + // and nil otherwise. + GetActivityStreamsShares() ActivityStreamsSharesProperty + // GetActivityStreamsSource returns the "source" property if it exists, + // and nil otherwise. + GetActivityStreamsSource() ActivityStreamsSourceProperty + // GetActivityStreamsStartTime returns the "startTime" property if it + // exists, and nil otherwise. + GetActivityStreamsStartTime() ActivityStreamsStartTimeProperty + // GetActivityStreamsSubject returns the "subject" property if it exists, + // and nil otherwise. + GetActivityStreamsSubject() ActivityStreamsSubjectProperty + // GetActivityStreamsSummary returns the "summary" property if it exists, + // and nil otherwise. + GetActivityStreamsSummary() ActivityStreamsSummaryProperty + // GetActivityStreamsTag returns the "tag" property if it exists, and nil + // otherwise. + GetActivityStreamsTag() ActivityStreamsTagProperty + // GetActivityStreamsTo returns the "to" property if it exists, and nil + // otherwise. + GetActivityStreamsTo() ActivityStreamsToProperty + // GetActivityStreamsUpdated returns the "updated" property if it exists, + // and nil otherwise. + GetActivityStreamsUpdated() ActivityStreamsUpdatedProperty + // GetActivityStreamsUrl returns the "url" property if it exists, and nil + // otherwise. + GetActivityStreamsUrl() ActivityStreamsUrlProperty + // GetForgeFedTeam returns the "team" property if it exists, and nil + // otherwise. + GetForgeFedTeam() ForgeFedTeamProperty + // GetForgeFedTicketsTrackedBy returns the "ticketsTrackedBy" property if + // it exists, and nil otherwise. + GetForgeFedTicketsTrackedBy() ForgeFedTicketsTrackedByProperty + // GetForgeFedTracksTicketsFor returns the "tracksTicketsFor" property if + // it exists, and nil otherwise. + GetForgeFedTracksTicketsFor() ForgeFedTracksTicketsForProperty + // GetJSONLDId returns the "id" property if it exists, and nil otherwise. + GetJSONLDId() JSONLDIdProperty + // GetJSONLDType returns the "type" property if it exists, and nil + // otherwise. + GetJSONLDType() JSONLDTypeProperty + // GetTypeName returns the name of this type. + GetTypeName() string + // GetUnknownProperties returns the unknown properties for the + // TicketDependency type. Note that this should not be used by app + // developers. It is only used to help determine which implementation + // is LessThan the other. Developers who are creating a different + // implementation of this type's interface can use this method in + // their LessThan implementation, but routine ActivityPub applications + // should not use this to bypass the code generation tool. + GetUnknownProperties() map[string]interface{} + // IsExtending returns true if the TicketDependency type extends from the + // other type. + IsExtending(other Type) bool + // JSONLDContext returns the JSONLD URIs required in the context string + // for this type and the specific properties that are set. The value + // in the map is the alias used to import the type and its properties. + JSONLDContext() map[string]string + // LessThan computes if this TicketDependency is lesser, with an arbitrary + // but stable determination. + LessThan(o ForgeFedTicketDependency) bool + // Serialize converts this into an interface representation suitable for + // marshalling into a text or binary format. + Serialize() (map[string]interface{}, error) + // SetActivityStreamsAltitude sets the "altitude" property. + SetActivityStreamsAltitude(i ActivityStreamsAltitudeProperty) + // SetActivityStreamsAttachment sets the "attachment" property. + SetActivityStreamsAttachment(i ActivityStreamsAttachmentProperty) + // SetActivityStreamsAttributedTo sets the "attributedTo" property. + SetActivityStreamsAttributedTo(i ActivityStreamsAttributedToProperty) + // SetActivityStreamsAudience sets the "audience" property. + SetActivityStreamsAudience(i ActivityStreamsAudienceProperty) + // SetActivityStreamsBcc sets the "bcc" property. + SetActivityStreamsBcc(i ActivityStreamsBccProperty) + // SetActivityStreamsBto sets the "bto" property. + SetActivityStreamsBto(i ActivityStreamsBtoProperty) + // SetActivityStreamsCc sets the "cc" property. + SetActivityStreamsCc(i ActivityStreamsCcProperty) + // SetActivityStreamsContent sets the "content" property. + SetActivityStreamsContent(i ActivityStreamsContentProperty) + // SetActivityStreamsContext sets the "context" property. + SetActivityStreamsContext(i ActivityStreamsContextProperty) + // SetActivityStreamsDuration sets the "duration" property. + SetActivityStreamsDuration(i ActivityStreamsDurationProperty) + // SetActivityStreamsEndTime sets the "endTime" property. + SetActivityStreamsEndTime(i ActivityStreamsEndTimeProperty) + // SetActivityStreamsGenerator sets the "generator" property. + SetActivityStreamsGenerator(i ActivityStreamsGeneratorProperty) + // SetActivityStreamsIcon sets the "icon" property. + SetActivityStreamsIcon(i ActivityStreamsIconProperty) + // SetActivityStreamsImage sets the "image" property. + SetActivityStreamsImage(i ActivityStreamsImageProperty) + // SetActivityStreamsInReplyTo sets the "inReplyTo" property. + SetActivityStreamsInReplyTo(i ActivityStreamsInReplyToProperty) + // SetActivityStreamsLikes sets the "likes" property. + SetActivityStreamsLikes(i ActivityStreamsLikesProperty) + // SetActivityStreamsLocation sets the "location" property. + SetActivityStreamsLocation(i ActivityStreamsLocationProperty) + // SetActivityStreamsMediaType sets the "mediaType" property. + SetActivityStreamsMediaType(i ActivityStreamsMediaTypeProperty) + // SetActivityStreamsName sets the "name" property. + SetActivityStreamsName(i ActivityStreamsNameProperty) + // SetActivityStreamsObject sets the "object" property. + SetActivityStreamsObject(i ActivityStreamsObjectProperty) + // SetActivityStreamsPreview sets the "preview" property. + SetActivityStreamsPreview(i ActivityStreamsPreviewProperty) + // SetActivityStreamsPublished sets the "published" property. + SetActivityStreamsPublished(i ActivityStreamsPublishedProperty) + // SetActivityStreamsRelationship sets the "relationship" property. + SetActivityStreamsRelationship(i ActivityStreamsRelationshipProperty) + // SetActivityStreamsReplies sets the "replies" property. + SetActivityStreamsReplies(i ActivityStreamsRepliesProperty) + // SetActivityStreamsShares sets the "shares" property. + SetActivityStreamsShares(i ActivityStreamsSharesProperty) + // SetActivityStreamsSource sets the "source" property. + SetActivityStreamsSource(i ActivityStreamsSourceProperty) + // SetActivityStreamsStartTime sets the "startTime" property. + SetActivityStreamsStartTime(i ActivityStreamsStartTimeProperty) + // SetActivityStreamsSubject sets the "subject" property. + SetActivityStreamsSubject(i ActivityStreamsSubjectProperty) + // SetActivityStreamsSummary sets the "summary" property. + SetActivityStreamsSummary(i ActivityStreamsSummaryProperty) + // SetActivityStreamsTag sets the "tag" property. + SetActivityStreamsTag(i ActivityStreamsTagProperty) + // SetActivityStreamsTo sets the "to" property. + SetActivityStreamsTo(i ActivityStreamsToProperty) + // SetActivityStreamsUpdated sets the "updated" property. + SetActivityStreamsUpdated(i ActivityStreamsUpdatedProperty) + // SetActivityStreamsUrl sets the "url" property. + SetActivityStreamsUrl(i ActivityStreamsUrlProperty) + // SetForgeFedTeam sets the "team" property. + SetForgeFedTeam(i ForgeFedTeamProperty) + // SetForgeFedTicketsTrackedBy sets the "ticketsTrackedBy" property. + SetForgeFedTicketsTrackedBy(i ForgeFedTicketsTrackedByProperty) + // SetForgeFedTracksTicketsFor sets the "tracksTicketsFor" property. + SetForgeFedTracksTicketsFor(i ForgeFedTracksTicketsForProperty) + // SetJSONLDId sets the "id" property. + SetJSONLDId(i JSONLDIdProperty) + // SetJSONLDType sets the "type" property. + SetJSONLDType(i JSONLDTypeProperty) + // VocabularyURI returns the vocabulary's URI as a string. + VocabularyURI() string +} diff --git a/streams/vocab/gen_type_toot_emoji_interface.go b/streams/vocab/gen_type_toot_emoji_interface.go index 7ebaf73..0bd6694 100644 --- a/streams/vocab/gen_type_toot_emoji_interface.go +++ b/streams/vocab/gen_type_toot_emoji_interface.go @@ -115,6 +115,15 @@ type TootEmoji interface { // GetActivityStreamsUrl returns the "url" property if it exists, and nil // otherwise. GetActivityStreamsUrl() ActivityStreamsUrlProperty + // GetForgeFedTeam returns the "team" property if it exists, and nil + // otherwise. + GetForgeFedTeam() ForgeFedTeamProperty + // GetForgeFedTicketsTrackedBy returns the "ticketsTrackedBy" property if + // it exists, and nil otherwise. + GetForgeFedTicketsTrackedBy() ForgeFedTicketsTrackedByProperty + // GetForgeFedTracksTicketsFor returns the "tracksTicketsFor" property if + // it exists, and nil otherwise. + GetForgeFedTracksTicketsFor() ForgeFedTracksTicketsForProperty // GetJSONLDId returns the "id" property if it exists, and nil otherwise. GetJSONLDId() JSONLDIdProperty // GetJSONLDType returns the "type" property if it exists, and nil @@ -204,6 +213,12 @@ type TootEmoji interface { SetActivityStreamsUpdated(i ActivityStreamsUpdatedProperty) // SetActivityStreamsUrl sets the "url" property. SetActivityStreamsUrl(i ActivityStreamsUrlProperty) + // SetForgeFedTeam sets the "team" property. + SetForgeFedTeam(i ForgeFedTeamProperty) + // SetForgeFedTicketsTrackedBy sets the "ticketsTrackedBy" property. + SetForgeFedTicketsTrackedBy(i ForgeFedTicketsTrackedByProperty) + // SetForgeFedTracksTicketsFor sets the "tracksTicketsFor" property. + SetForgeFedTracksTicketsFor(i ForgeFedTracksTicketsForProperty) // SetJSONLDId sets the "id" property. SetJSONLDId(i JSONLDIdProperty) // SetJSONLDType sets the "type" property. diff --git a/streams/vocab/gen_type_toot_identityproof_interface.go b/streams/vocab/gen_type_toot_identityproof_interface.go index 9e87408..32a925e 100644 --- a/streams/vocab/gen_type_toot_identityproof_interface.go +++ b/streams/vocab/gen_type_toot_identityproof_interface.go @@ -99,6 +99,15 @@ type TootIdentityProof interface { // GetActivityStreamsUrl returns the "url" property if it exists, and nil // otherwise. GetActivityStreamsUrl() ActivityStreamsUrlProperty + // GetForgeFedTeam returns the "team" property if it exists, and nil + // otherwise. + GetForgeFedTeam() ForgeFedTeamProperty + // GetForgeFedTicketsTrackedBy returns the "ticketsTrackedBy" property if + // it exists, and nil otherwise. + GetForgeFedTicketsTrackedBy() ForgeFedTicketsTrackedByProperty + // GetForgeFedTracksTicketsFor returns the "tracksTicketsFor" property if + // it exists, and nil otherwise. + GetForgeFedTracksTicketsFor() ForgeFedTracksTicketsForProperty // GetJSONLDId returns the "id" property if it exists, and nil otherwise. GetJSONLDId() JSONLDIdProperty // GetJSONLDType returns the "type" property if it exists, and nil @@ -195,6 +204,12 @@ type TootIdentityProof interface { SetActivityStreamsUpdated(i ActivityStreamsUpdatedProperty) // SetActivityStreamsUrl sets the "url" property. SetActivityStreamsUrl(i ActivityStreamsUrlProperty) + // SetForgeFedTeam sets the "team" property. + SetForgeFedTeam(i ForgeFedTeamProperty) + // SetForgeFedTicketsTrackedBy sets the "ticketsTrackedBy" property. + SetForgeFedTicketsTrackedBy(i ForgeFedTicketsTrackedByProperty) + // SetForgeFedTracksTicketsFor sets the "tracksTicketsFor" property. + SetForgeFedTracksTicketsFor(i ForgeFedTracksTicketsForProperty) // SetJSONLDId sets the "id" property. SetJSONLDId(i JSONLDIdProperty) // SetJSONLDType sets the "type" property.