diff options
| author | 2023-05-09 12:16:10 +0200 | |
|---|---|---|
| committer | 2023-05-09 11:16:10 +0100 | |
| commit | 0e29f1f5bb68a48d9b837d7f4e0a16370734955b (patch) | |
| tree | f08d203ec8ca8aeea728e5251b1dc3956524b4f4 /vendor/github.com/superseriousbusiness/activity/streams/impl/forgefed | |
| parent | [chore/performance] Make sender multiplier configurable (#1750) (diff) | |
| download | gotosocial-0e29f1f5bb68a48d9b837d7f4e0a16370734955b.tar.xz | |
[feature] Enable federation in/out of profile PropertyValue fields (#1722)
Co-authored-by: kim <grufwub@gmail.com>
Co-authored-by: kim <89579420+NyaaaWhatsUpDoc@users.noreply.github.com>
Diffstat (limited to 'vendor/github.com/superseriousbusiness/activity/streams/impl/forgefed')
10 files changed, 494 insertions, 124 deletions
diff --git a/vendor/github.com/superseriousbusiness/activity/streams/impl/forgefed/property_committedby/gen_pkg.go b/vendor/github.com/superseriousbusiness/activity/streams/impl/forgefed/property_committedby/gen_pkg.go index 81098ac2c..191dbbadc 100644 --- a/vendor/github.com/superseriousbusiness/activity/streams/impl/forgefed/property_committedby/gen_pkg.go +++ b/vendor/github.com/superseriousbusiness/activity/streams/impl/forgefed/property_committedby/gen_pkg.go @@ -177,6 +177,10 @@ type privateManager interface { // for the "ActivityStreamsProfile" non-functional property in the // vocabulary "ActivityStreams" DeserializeProfileActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsProfile, error) + // DeserializePropertyValueSchema returns the deserialization method for + // the "SchemaPropertyValue" non-functional property in the vocabulary + // "Schema" + DeserializePropertyValueSchema() func(map[string]interface{}, map[string]string) (vocab.SchemaPropertyValue, error) // 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) diff --git a/vendor/github.com/superseriousbusiness/activity/streams/impl/forgefed/property_committedby/gen_property_forgefed_committedBy.go b/vendor/github.com/superseriousbusiness/activity/streams/impl/forgefed/property_committedby/gen_property_forgefed_committedBy.go index f54cf6254..b97f87bd3 100644 --- a/vendor/github.com/superseriousbusiness/activity/streams/impl/forgefed/property_committedby/gen_property_forgefed_committedBy.go +++ b/vendor/github.com/superseriousbusiness/activity/streams/impl/forgefed/property_committedby/gen_property_forgefed_committedBy.go @@ -56,6 +56,7 @@ type ForgeFedCommittedByProperty struct { activitystreamsPersonMember vocab.ActivityStreamsPerson activitystreamsPlaceMember vocab.ActivityStreamsPlace activitystreamsProfileMember vocab.ActivityStreamsProfile + schemaPropertyValueMember vocab.SchemaPropertyValue forgefedPushMember vocab.ForgeFedPush activitystreamsQuestionMember vocab.ActivityStreamsQuestion activitystreamsReadMember vocab.ActivityStreamsRead @@ -360,6 +361,12 @@ func DeserializeCommittedByProperty(m map[string]interface{}, aliasMap map[strin alias: alias, } return this, nil + } else if v, err := mgr.DeserializePropertyValueSchema()(m, aliasMap); err == nil { + this := &ForgeFedCommittedByProperty{ + alias: alias, + schemaPropertyValueMember: v, + } + return this, nil } else if v, err := mgr.DeserializePushForgeFed()(m, aliasMap); err == nil { this := &ForgeFedCommittedByProperty{ alias: alias, @@ -529,6 +536,7 @@ func (this *ForgeFedCommittedByProperty) Clear() { this.activitystreamsPersonMember = nil this.activitystreamsPlaceMember = nil this.activitystreamsProfileMember = nil + this.schemaPropertyValueMember = nil this.forgefedPushMember = nil this.activitystreamsQuestionMember = nil this.activitystreamsReadMember = nil @@ -959,6 +967,13 @@ func (this ForgeFedCommittedByProperty) GetIRI() *url.URL { return this.iri } +// GetSchemaPropertyValue returns the value of this property. When +// IsSchemaPropertyValue returns false, GetSchemaPropertyValue will return an +// arbitrary value. +func (this ForgeFedCommittedByProperty) GetSchemaPropertyValue() vocab.SchemaPropertyValue { + return this.schemaPropertyValueMember +} + // GetTootEmoji returns the value of this property. When IsTootEmoji returns // false, GetTootEmoji will return an arbitrary value. func (this ForgeFedCommittedByProperty) GetTootEmoji() vocab.TootEmoji { @@ -1101,6 +1116,9 @@ func (this ForgeFedCommittedByProperty) GetType() vocab.Type { if this.IsActivityStreamsProfile() { return this.GetActivityStreamsProfile() } + if this.IsSchemaPropertyValue() { + return this.GetSchemaPropertyValue() + } if this.IsForgeFedPush() { return this.GetForgeFedPush() } @@ -1203,6 +1221,7 @@ func (this ForgeFedCommittedByProperty) HasAny() bool { this.IsActivityStreamsPerson() || this.IsActivityStreamsPlace() || this.IsActivityStreamsProfile() || + this.IsSchemaPropertyValue() || this.IsForgeFedPush() || this.IsActivityStreamsQuestion() || this.IsActivityStreamsRead() || @@ -1641,6 +1660,13 @@ func (this ForgeFedCommittedByProperty) IsIRI() bool { return this.iri != nil } +// IsSchemaPropertyValue returns true if this property has a type of +// "PropertyValue". When true, use the GetSchemaPropertyValue and +// SetSchemaPropertyValue methods to access and set this property. +func (this ForgeFedCommittedByProperty) IsSchemaPropertyValue() bool { + return this.schemaPropertyValueMember != nil +} + // IsTootEmoji returns true if this property has a type of "Emoji". When true, use // the GetTootEmoji and SetTootEmoji methods to access and set this property. func (this ForgeFedCommittedByProperty) IsTootEmoji() bool { @@ -1744,6 +1770,8 @@ func (this ForgeFedCommittedByProperty) JSONLDContext() map[string]string { child = this.GetActivityStreamsPlace().JSONLDContext() } else if this.IsActivityStreamsProfile() { child = this.GetActivityStreamsProfile().JSONLDContext() + } else if this.IsSchemaPropertyValue() { + child = this.GetSchemaPropertyValue().JSONLDContext() } else if this.IsForgeFedPush() { child = this.GetForgeFedPush().JSONLDContext() } else if this.IsActivityStreamsQuestion() { @@ -1922,60 +1950,63 @@ func (this ForgeFedCommittedByProperty) KindIndex() int { if this.IsActivityStreamsProfile() { return 41 } - if this.IsForgeFedPush() { + if this.IsSchemaPropertyValue() { return 42 } - if this.IsActivityStreamsQuestion() { + if this.IsForgeFedPush() { return 43 } - if this.IsActivityStreamsRead() { + if this.IsActivityStreamsQuestion() { return 44 } - if this.IsActivityStreamsReject() { + if this.IsActivityStreamsRead() { return 45 } - if this.IsActivityStreamsRelationship() { + if this.IsActivityStreamsReject() { return 46 } - if this.IsActivityStreamsRemove() { + if this.IsActivityStreamsRelationship() { return 47 } - if this.IsForgeFedRepository() { + if this.IsActivityStreamsRemove() { return 48 } - if this.IsActivityStreamsService() { + if this.IsForgeFedRepository() { return 49 } - if this.IsActivityStreamsTentativeAccept() { + if this.IsActivityStreamsService() { return 50 } - if this.IsActivityStreamsTentativeReject() { + if this.IsActivityStreamsTentativeAccept() { return 51 } - if this.IsForgeFedTicket() { + if this.IsActivityStreamsTentativeReject() { return 52 } - if this.IsForgeFedTicketDependency() { + if this.IsForgeFedTicket() { return 53 } - if this.IsActivityStreamsTombstone() { + if this.IsForgeFedTicketDependency() { return 54 } - if this.IsActivityStreamsTravel() { + if this.IsActivityStreamsTombstone() { return 55 } - if this.IsActivityStreamsUndo() { + if this.IsActivityStreamsTravel() { return 56 } - if this.IsActivityStreamsUpdate() { + if this.IsActivityStreamsUndo() { return 57 } - if this.IsActivityStreamsVideo() { + if this.IsActivityStreamsUpdate() { return 58 } - if this.IsActivityStreamsView() { + if this.IsActivityStreamsVideo() { return 59 } + if this.IsActivityStreamsView() { + return 60 + } if this.IsIRI() { return -2 } @@ -2077,6 +2108,8 @@ func (this ForgeFedCommittedByProperty) LessThan(o vocab.ForgeFedCommittedByProp return this.GetActivityStreamsPlace().LessThan(o.GetActivityStreamsPlace()) } else if this.IsActivityStreamsProfile() { return this.GetActivityStreamsProfile().LessThan(o.GetActivityStreamsProfile()) + } else if this.IsSchemaPropertyValue() { + return this.GetSchemaPropertyValue().LessThan(o.GetSchemaPropertyValue()) } else if this.IsForgeFedPush() { return this.GetForgeFedPush().LessThan(o.GetForgeFedPush()) } else if this.IsActivityStreamsQuestion() { @@ -2217,6 +2250,8 @@ func (this ForgeFedCommittedByProperty) Serialize() (interface{}, error) { return this.GetActivityStreamsPlace().Serialize() } else if this.IsActivityStreamsProfile() { return this.GetActivityStreamsProfile().Serialize() + } else if this.IsSchemaPropertyValue() { + return this.GetSchemaPropertyValue().Serialize() } else if this.IsForgeFedPush() { return this.GetForgeFedPush().Serialize() } else if this.IsActivityStreamsQuestion() { @@ -2671,6 +2706,13 @@ func (this *ForgeFedCommittedByProperty) SetIRI(v *url.URL) { this.iri = v } +// SetSchemaPropertyValue sets the value of this property. Calling +// IsSchemaPropertyValue afterwards returns true. +func (this *ForgeFedCommittedByProperty) SetSchemaPropertyValue(v vocab.SchemaPropertyValue) { + this.Clear() + this.schemaPropertyValueMember = v +} + // SetTootEmoji sets the value of this property. Calling IsTootEmoji afterwards // returns true. func (this *ForgeFedCommittedByProperty) SetTootEmoji(v vocab.TootEmoji) { @@ -2856,6 +2898,10 @@ func (this *ForgeFedCommittedByProperty) SetType(t vocab.Type) error { this.SetActivityStreamsProfile(v) return nil } + if v, ok := t.(vocab.SchemaPropertyValue); ok { + this.SetSchemaPropertyValue(v) + return nil + } if v, ok := t.(vocab.ForgeFedPush); ok { this.SetForgeFedPush(v) return nil diff --git a/vendor/github.com/superseriousbusiness/activity/streams/impl/forgefed/property_description/gen_pkg.go b/vendor/github.com/superseriousbusiness/activity/streams/impl/forgefed/property_description/gen_pkg.go index 4f29ca7bc..d28f036c3 100644 --- a/vendor/github.com/superseriousbusiness/activity/streams/impl/forgefed/property_description/gen_pkg.go +++ b/vendor/github.com/superseriousbusiness/activity/streams/impl/forgefed/property_description/gen_pkg.go @@ -177,6 +177,10 @@ type privateManager interface { // for the "ActivityStreamsProfile" non-functional property in the // vocabulary "ActivityStreams" DeserializeProfileActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsProfile, error) + // DeserializePropertyValueSchema returns the deserialization method for + // the "SchemaPropertyValue" non-functional property in the vocabulary + // "Schema" + DeserializePropertyValueSchema() func(map[string]interface{}, map[string]string) (vocab.SchemaPropertyValue, error) // 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) diff --git a/vendor/github.com/superseriousbusiness/activity/streams/impl/forgefed/property_description/gen_property_forgefed_description.go b/vendor/github.com/superseriousbusiness/activity/streams/impl/forgefed/property_description/gen_property_forgefed_description.go index 5ffb3e3ec..e7fd19705 100644 --- a/vendor/github.com/superseriousbusiness/activity/streams/impl/forgefed/property_description/gen_property_forgefed_description.go +++ b/vendor/github.com/superseriousbusiness/activity/streams/impl/forgefed/property_description/gen_property_forgefed_description.go @@ -56,6 +56,7 @@ type ForgeFedDescriptionProperty struct { activitystreamsPersonMember vocab.ActivityStreamsPerson activitystreamsPlaceMember vocab.ActivityStreamsPlace activitystreamsProfileMember vocab.ActivityStreamsProfile + schemaPropertyValueMember vocab.SchemaPropertyValue forgefedPushMember vocab.ForgeFedPush activitystreamsQuestionMember vocab.ActivityStreamsQuestion activitystreamsReadMember vocab.ActivityStreamsRead @@ -360,6 +361,12 @@ func DeserializeDescriptionProperty(m map[string]interface{}, aliasMap map[strin alias: alias, } return this, nil + } else if v, err := mgr.DeserializePropertyValueSchema()(m, aliasMap); err == nil { + this := &ForgeFedDescriptionProperty{ + alias: alias, + schemaPropertyValueMember: v, + } + return this, nil } else if v, err := mgr.DeserializePushForgeFed()(m, aliasMap); err == nil { this := &ForgeFedDescriptionProperty{ alias: alias, @@ -529,6 +536,7 @@ func (this *ForgeFedDescriptionProperty) Clear() { this.activitystreamsPersonMember = nil this.activitystreamsPlaceMember = nil this.activitystreamsProfileMember = nil + this.schemaPropertyValueMember = nil this.forgefedPushMember = nil this.activitystreamsQuestionMember = nil this.activitystreamsReadMember = nil @@ -959,6 +967,13 @@ func (this ForgeFedDescriptionProperty) GetIRI() *url.URL { return this.iri } +// GetSchemaPropertyValue returns the value of this property. When +// IsSchemaPropertyValue returns false, GetSchemaPropertyValue will return an +// arbitrary value. +func (this ForgeFedDescriptionProperty) GetSchemaPropertyValue() vocab.SchemaPropertyValue { + return this.schemaPropertyValueMember +} + // GetTootEmoji returns the value of this property. When IsTootEmoji returns // false, GetTootEmoji will return an arbitrary value. func (this ForgeFedDescriptionProperty) GetTootEmoji() vocab.TootEmoji { @@ -1101,6 +1116,9 @@ func (this ForgeFedDescriptionProperty) GetType() vocab.Type { if this.IsActivityStreamsProfile() { return this.GetActivityStreamsProfile() } + if this.IsSchemaPropertyValue() { + return this.GetSchemaPropertyValue() + } if this.IsForgeFedPush() { return this.GetForgeFedPush() } @@ -1203,6 +1221,7 @@ func (this ForgeFedDescriptionProperty) HasAny() bool { this.IsActivityStreamsPerson() || this.IsActivityStreamsPlace() || this.IsActivityStreamsProfile() || + this.IsSchemaPropertyValue() || this.IsForgeFedPush() || this.IsActivityStreamsQuestion() || this.IsActivityStreamsRead() || @@ -1641,6 +1660,13 @@ func (this ForgeFedDescriptionProperty) IsIRI() bool { return this.iri != nil } +// IsSchemaPropertyValue returns true if this property has a type of +// "PropertyValue". When true, use the GetSchemaPropertyValue and +// SetSchemaPropertyValue methods to access and set this property. +func (this ForgeFedDescriptionProperty) IsSchemaPropertyValue() bool { + return this.schemaPropertyValueMember != nil +} + // IsTootEmoji returns true if this property has a type of "Emoji". When true, use // the GetTootEmoji and SetTootEmoji methods to access and set this property. func (this ForgeFedDescriptionProperty) IsTootEmoji() bool { @@ -1744,6 +1770,8 @@ func (this ForgeFedDescriptionProperty) JSONLDContext() map[string]string { child = this.GetActivityStreamsPlace().JSONLDContext() } else if this.IsActivityStreamsProfile() { child = this.GetActivityStreamsProfile().JSONLDContext() + } else if this.IsSchemaPropertyValue() { + child = this.GetSchemaPropertyValue().JSONLDContext() } else if this.IsForgeFedPush() { child = this.GetForgeFedPush().JSONLDContext() } else if this.IsActivityStreamsQuestion() { @@ -1922,60 +1950,63 @@ func (this ForgeFedDescriptionProperty) KindIndex() int { if this.IsActivityStreamsProfile() { return 41 } - if this.IsForgeFedPush() { + if this.IsSchemaPropertyValue() { return 42 } - if this.IsActivityStreamsQuestion() { + if this.IsForgeFedPush() { return 43 } - if this.IsActivityStreamsRead() { + if this.IsActivityStreamsQuestion() { return 44 } - if this.IsActivityStreamsReject() { + if this.IsActivityStreamsRead() { return 45 } - if this.IsActivityStreamsRelationship() { + if this.IsActivityStreamsReject() { return 46 } - if this.IsActivityStreamsRemove() { + if this.IsActivityStreamsRelationship() { return 47 } - if this.IsForgeFedRepository() { + if this.IsActivityStreamsRemove() { return 48 } - if this.IsActivityStreamsService() { + if this.IsForgeFedRepository() { return 49 } - if this.IsActivityStreamsTentativeAccept() { + if this.IsActivityStreamsService() { return 50 } - if this.IsActivityStreamsTentativeReject() { + if this.IsActivityStreamsTentativeAccept() { return 51 } - if this.IsForgeFedTicket() { + if this.IsActivityStreamsTentativeReject() { return 52 } - if this.IsForgeFedTicketDependency() { + if this.IsForgeFedTicket() { return 53 } - if this.IsActivityStreamsTombstone() { + if this.IsForgeFedTicketDependency() { return 54 } - if this.IsActivityStreamsTravel() { + if this.IsActivityStreamsTombstone() { return 55 } - if this.IsActivityStreamsUndo() { + if this.IsActivityStreamsTravel() { return 56 } - if this.IsActivityStreamsUpdate() { + if this.IsActivityStreamsUndo() { return 57 } - if this.IsActivityStreamsVideo() { + if this.IsActivityStreamsUpdate() { return 58 } - if this.IsActivityStreamsView() { + if this.IsActivityStreamsVideo() { return 59 } + if this.IsActivityStreamsView() { + return 60 + } if this.IsIRI() { return -2 } @@ -2077,6 +2108,8 @@ func (this ForgeFedDescriptionProperty) LessThan(o vocab.ForgeFedDescriptionProp return this.GetActivityStreamsPlace().LessThan(o.GetActivityStreamsPlace()) } else if this.IsActivityStreamsProfile() { return this.GetActivityStreamsProfile().LessThan(o.GetActivityStreamsProfile()) + } else if this.IsSchemaPropertyValue() { + return this.GetSchemaPropertyValue().LessThan(o.GetSchemaPropertyValue()) } else if this.IsForgeFedPush() { return this.GetForgeFedPush().LessThan(o.GetForgeFedPush()) } else if this.IsActivityStreamsQuestion() { @@ -2217,6 +2250,8 @@ func (this ForgeFedDescriptionProperty) Serialize() (interface{}, error) { return this.GetActivityStreamsPlace().Serialize() } else if this.IsActivityStreamsProfile() { return this.GetActivityStreamsProfile().Serialize() + } else if this.IsSchemaPropertyValue() { + return this.GetSchemaPropertyValue().Serialize() } else if this.IsForgeFedPush() { return this.GetForgeFedPush().Serialize() } else if this.IsActivityStreamsQuestion() { @@ -2671,6 +2706,13 @@ func (this *ForgeFedDescriptionProperty) SetIRI(v *url.URL) { this.iri = v } +// SetSchemaPropertyValue sets the value of this property. Calling +// IsSchemaPropertyValue afterwards returns true. +func (this *ForgeFedDescriptionProperty) SetSchemaPropertyValue(v vocab.SchemaPropertyValue) { + this.Clear() + this.schemaPropertyValueMember = v +} + // SetTootEmoji sets the value of this property. Calling IsTootEmoji afterwards // returns true. func (this *ForgeFedDescriptionProperty) SetTootEmoji(v vocab.TootEmoji) { @@ -2856,6 +2898,10 @@ func (this *ForgeFedDescriptionProperty) SetType(t vocab.Type) error { this.SetActivityStreamsProfile(v) return nil } + if v, ok := t.(vocab.SchemaPropertyValue); ok { + this.SetSchemaPropertyValue(v) + return nil + } if v, ok := t.(vocab.ForgeFedPush); ok { this.SetForgeFedPush(v) return nil diff --git a/vendor/github.com/superseriousbusiness/activity/streams/impl/forgefed/property_earlyitems/gen_pkg.go b/vendor/github.com/superseriousbusiness/activity/streams/impl/forgefed/property_earlyitems/gen_pkg.go index 0c9090a3d..12c21b0d6 100644 --- a/vendor/github.com/superseriousbusiness/activity/streams/impl/forgefed/property_earlyitems/gen_pkg.go +++ b/vendor/github.com/superseriousbusiness/activity/streams/impl/forgefed/property_earlyitems/gen_pkg.go @@ -185,6 +185,10 @@ type privateManager interface { // for the "ActivityStreamsProfile" non-functional property in the // vocabulary "ActivityStreams" DeserializeProfileActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsProfile, error) + // DeserializePropertyValueSchema returns the deserialization method for + // the "SchemaPropertyValue" non-functional property in the vocabulary + // "Schema" + DeserializePropertyValueSchema() func(map[string]interface{}, map[string]string) (vocab.SchemaPropertyValue, error) // 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) diff --git a/vendor/github.com/superseriousbusiness/activity/streams/impl/forgefed/property_earlyitems/gen_property_forgefed_earlyItems.go b/vendor/github.com/superseriousbusiness/activity/streams/impl/forgefed/property_earlyitems/gen_property_forgefed_earlyItems.go index 93c5501d5..67182a988 100644 --- a/vendor/github.com/superseriousbusiness/activity/streams/impl/forgefed/property_earlyitems/gen_property_forgefed_earlyItems.go +++ b/vendor/github.com/superseriousbusiness/activity/streams/impl/forgefed/property_earlyitems/gen_property_forgefed_earlyItems.go @@ -58,6 +58,7 @@ type ForgeFedEarlyItemsPropertyIterator struct { activitystreamsPersonMember vocab.ActivityStreamsPerson activitystreamsPlaceMember vocab.ActivityStreamsPlace activitystreamsProfileMember vocab.ActivityStreamsProfile + schemaPropertyValueMember vocab.SchemaPropertyValue forgefedPushMember vocab.ForgeFedPush activitystreamsQuestionMember vocab.ActivityStreamsQuestion activitystreamsReadMember vocab.ActivityStreamsRead @@ -372,6 +373,12 @@ func deserializeForgeFedEarlyItemsPropertyIterator(i interface{}, aliasMap map[s alias: alias, } return this, nil + } else if v, err := mgr.DeserializePropertyValueSchema()(m, aliasMap); err == nil { + this := &ForgeFedEarlyItemsPropertyIterator{ + alias: alias, + schemaPropertyValueMember: v, + } + return this, nil } else if v, err := mgr.DeserializePushForgeFed()(m, aliasMap); err == nil { this := &ForgeFedEarlyItemsPropertyIterator{ alias: alias, @@ -911,6 +918,13 @@ func (this ForgeFedEarlyItemsPropertyIterator) GetIRI() *url.URL { return this.iri } +// GetSchemaPropertyValue returns the value of this property. When +// IsSchemaPropertyValue returns false, GetSchemaPropertyValue will return an +// arbitrary value. +func (this ForgeFedEarlyItemsPropertyIterator) GetSchemaPropertyValue() vocab.SchemaPropertyValue { + return this.schemaPropertyValueMember +} + // GetTootEmoji returns the value of this property. When IsTootEmoji returns // false, GetTootEmoji will return an arbitrary value. func (this ForgeFedEarlyItemsPropertyIterator) GetTootEmoji() vocab.TootEmoji { @@ -1059,6 +1073,9 @@ func (this ForgeFedEarlyItemsPropertyIterator) GetType() vocab.Type { if this.IsActivityStreamsProfile() { return this.GetActivityStreamsProfile() } + if this.IsSchemaPropertyValue() { + return this.GetSchemaPropertyValue() + } if this.IsForgeFedPush() { return this.GetForgeFedPush() } @@ -1163,6 +1180,7 @@ func (this ForgeFedEarlyItemsPropertyIterator) HasAny() bool { this.IsActivityStreamsPerson() || this.IsActivityStreamsPlace() || this.IsActivityStreamsProfile() || + this.IsSchemaPropertyValue() || this.IsForgeFedPush() || this.IsActivityStreamsQuestion() || this.IsActivityStreamsRead() || @@ -1615,6 +1633,13 @@ func (this ForgeFedEarlyItemsPropertyIterator) IsIRI() bool { return this.iri != nil } +// IsSchemaPropertyValue returns true if this property has a type of +// "PropertyValue". When true, use the GetSchemaPropertyValue and +// SetSchemaPropertyValue methods to access and set this property. +func (this ForgeFedEarlyItemsPropertyIterator) IsSchemaPropertyValue() bool { + return this.schemaPropertyValueMember != nil +} + // IsTootEmoji returns true if this property has a type of "Emoji". When true, use // the GetTootEmoji and SetTootEmoji methods to access and set this property. func (this ForgeFedEarlyItemsPropertyIterator) IsTootEmoji() bool { @@ -1722,6 +1747,8 @@ func (this ForgeFedEarlyItemsPropertyIterator) JSONLDContext() map[string]string child = this.GetActivityStreamsPlace().JSONLDContext() } else if this.IsActivityStreamsProfile() { child = this.GetActivityStreamsProfile().JSONLDContext() + } else if this.IsSchemaPropertyValue() { + child = this.GetSchemaPropertyValue().JSONLDContext() } else if this.IsForgeFedPush() { child = this.GetForgeFedPush().JSONLDContext() } else if this.IsActivityStreamsQuestion() { @@ -1906,60 +1933,63 @@ func (this ForgeFedEarlyItemsPropertyIterator) KindIndex() int { if this.IsActivityStreamsProfile() { return 43 } - if this.IsForgeFedPush() { + if this.IsSchemaPropertyValue() { return 44 } - if this.IsActivityStreamsQuestion() { + if this.IsForgeFedPush() { return 45 } - if this.IsActivityStreamsRead() { + if this.IsActivityStreamsQuestion() { return 46 } - if this.IsActivityStreamsReject() { + if this.IsActivityStreamsRead() { return 47 } - if this.IsActivityStreamsRelationship() { + if this.IsActivityStreamsReject() { return 48 } - if this.IsActivityStreamsRemove() { + if this.IsActivityStreamsRelationship() { return 49 } - if this.IsForgeFedRepository() { + if this.IsActivityStreamsRemove() { return 50 } - if this.IsActivityStreamsService() { + if this.IsForgeFedRepository() { return 51 } - if this.IsActivityStreamsTentativeAccept() { + if this.IsActivityStreamsService() { return 52 } - if this.IsActivityStreamsTentativeReject() { + if this.IsActivityStreamsTentativeAccept() { return 53 } - if this.IsForgeFedTicket() { + if this.IsActivityStreamsTentativeReject() { return 54 } - if this.IsForgeFedTicketDependency() { + if this.IsForgeFedTicket() { return 55 } - if this.IsActivityStreamsTombstone() { + if this.IsForgeFedTicketDependency() { return 56 } - if this.IsActivityStreamsTravel() { + if this.IsActivityStreamsTombstone() { return 57 } - if this.IsActivityStreamsUndo() { + if this.IsActivityStreamsTravel() { return 58 } - if this.IsActivityStreamsUpdate() { + if this.IsActivityStreamsUndo() { return 59 } - if this.IsActivityStreamsVideo() { + if this.IsActivityStreamsUpdate() { return 60 } - if this.IsActivityStreamsView() { + if this.IsActivityStreamsVideo() { return 61 } + if this.IsActivityStreamsView() { + return 62 + } if this.IsIRI() { return -2 } @@ -2065,6 +2095,8 @@ func (this ForgeFedEarlyItemsPropertyIterator) LessThan(o vocab.ForgeFedEarlyIte return this.GetActivityStreamsPlace().LessThan(o.GetActivityStreamsPlace()) } else if this.IsActivityStreamsProfile() { return this.GetActivityStreamsProfile().LessThan(o.GetActivityStreamsProfile()) + } else if this.IsSchemaPropertyValue() { + return this.GetSchemaPropertyValue().LessThan(o.GetSchemaPropertyValue()) } else if this.IsForgeFedPush() { return this.GetForgeFedPush().LessThan(o.GetForgeFedPush()) } else if this.IsActivityStreamsQuestion() { @@ -2560,6 +2592,13 @@ func (this *ForgeFedEarlyItemsPropertyIterator) SetIRI(v *url.URL) { this.iri = v } +// SetSchemaPropertyValue sets the value of this property. Calling +// IsSchemaPropertyValue afterwards returns true. +func (this *ForgeFedEarlyItemsPropertyIterator) SetSchemaPropertyValue(v vocab.SchemaPropertyValue) { + this.clear() + this.schemaPropertyValueMember = v +} + // SetTootEmoji sets the value of this property. Calling IsTootEmoji afterwards // returns true. func (this *ForgeFedEarlyItemsPropertyIterator) SetTootEmoji(v vocab.TootEmoji) { @@ -2753,6 +2792,10 @@ func (this *ForgeFedEarlyItemsPropertyIterator) SetType(t vocab.Type) error { this.SetActivityStreamsProfile(v) return nil } + if v, ok := t.(vocab.SchemaPropertyValue); ok { + this.SetSchemaPropertyValue(v) + return nil + } if v, ok := t.(vocab.ForgeFedPush); ok { this.SetForgeFedPush(v) return nil @@ -2876,6 +2919,7 @@ func (this *ForgeFedEarlyItemsPropertyIterator) clear() { this.activitystreamsPersonMember = nil this.activitystreamsPlaceMember = nil this.activitystreamsProfileMember = nil + this.schemaPropertyValueMember = nil this.forgefedPushMember = nil this.activitystreamsQuestionMember = nil this.activitystreamsReadMember = nil @@ -2991,6 +3035,8 @@ func (this ForgeFedEarlyItemsPropertyIterator) serialize() (interface{}, error) return this.GetActivityStreamsPlace().Serialize() } else if this.IsActivityStreamsProfile() { return this.GetActivityStreamsProfile().Serialize() + } else if this.IsSchemaPropertyValue() { + return this.GetSchemaPropertyValue().Serialize() } else if this.IsForgeFedPush() { return this.GetForgeFedPush().Serialize() } else if this.IsActivityStreamsQuestion() { @@ -3781,6 +3827,18 @@ func (this *ForgeFedEarlyItemsProperty) AppendIRI(v *url.URL) { }) } +// AppendSchemaPropertyValue appends a PropertyValue value to the back of a list +// of the property "earlyItems". Invalidates iterators that are traversing +// using Prev. +func (this *ForgeFedEarlyItemsProperty) AppendSchemaPropertyValue(v vocab.SchemaPropertyValue) { + this.properties = append(this.properties, &ForgeFedEarlyItemsPropertyIterator{ + alias: this.alias, + myIdx: this.Len(), + parent: this, + schemaPropertyValueMember: v, + }) +} + // 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) { @@ -4887,6 +4945,23 @@ func (this *ForgeFedEarlyItemsProperty) InsertIRI(idx int, v *url.URL) { } } +// InsertSchemaPropertyValue inserts a PropertyValue 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) InsertSchemaPropertyValue(idx int, v vocab.SchemaPropertyValue) { + 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, + schemaPropertyValueMember: v, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + // InsertTootEmoji inserts a Emoji value at the specified index for a property // "earlyItems". Existing elements at that index and higher are shifted back // once. Invalidates all iterators. @@ -5159,74 +5234,78 @@ func (this ForgeFedEarlyItemsProperty) Less(i, j int) bool { rhs := this.properties[j].GetActivityStreamsProfile() return lhs.LessThan(rhs) } else if idx1 == 44 { + lhs := this.properties[i].GetSchemaPropertyValue() + rhs := this.properties[j].GetSchemaPropertyValue() + return lhs.LessThan(rhs) + } else if idx1 == 45 { lhs := this.properties[i].GetForgeFedPush() rhs := this.properties[j].GetForgeFedPush() return lhs.LessThan(rhs) - } else if idx1 == 45 { + } else if idx1 == 46 { lhs := this.properties[i].GetActivityStreamsQuestion() rhs := this.properties[j].GetActivityStreamsQuestion() return lhs.LessThan(rhs) - } else if idx1 == 46 { + } else if idx1 == 47 { lhs := this.properties[i].GetActivityStreamsRead() rhs := this.properties[j].GetActivityStreamsRead() return lhs.LessThan(rhs) - } else if idx1 == 47 { + } else if idx1 == 48 { lhs := this.properties[i].GetActivityStreamsReject() rhs := this.properties[j].GetActivityStreamsReject() return lhs.LessThan(rhs) - } else if idx1 == 48 { + } else if idx1 == 49 { lhs := this.properties[i].GetActivityStreamsRelationship() rhs := this.properties[j].GetActivityStreamsRelationship() return lhs.LessThan(rhs) - } else if idx1 == 49 { + } else if idx1 == 50 { lhs := this.properties[i].GetActivityStreamsRemove() rhs := this.properties[j].GetActivityStreamsRemove() return lhs.LessThan(rhs) - } else if idx1 == 50 { + } else if idx1 == 51 { lhs := this.properties[i].GetForgeFedRepository() rhs := this.properties[j].GetForgeFedRepository() return lhs.LessThan(rhs) - } else if idx1 == 51 { + } else if idx1 == 52 { lhs := this.properties[i].GetActivityStreamsService() rhs := this.properties[j].GetActivityStreamsService() return lhs.LessThan(rhs) - } else if idx1 == 52 { + } else if idx1 == 53 { lhs := this.properties[i].GetActivityStreamsTentativeAccept() rhs := this.properties[j].GetActivityStreamsTentativeAccept() return lhs.LessThan(rhs) - } else if idx1 == 53 { + } else if idx1 == 54 { lhs := this.properties[i].GetActivityStreamsTentativeReject() rhs := this.properties[j].GetActivityStreamsTentativeReject() return lhs.LessThan(rhs) - } else if idx1 == 54 { + } else if idx1 == 55 { lhs := this.properties[i].GetForgeFedTicket() rhs := this.properties[j].GetForgeFedTicket() return lhs.LessThan(rhs) - } else if idx1 == 55 { + } else if idx1 == 56 { lhs := this.properties[i].GetForgeFedTicketDependency() rhs := this.properties[j].GetForgeFedTicketDependency() return lhs.LessThan(rhs) - } else if idx1 == 56 { + } else if idx1 == 57 { lhs := this.properties[i].GetActivityStreamsTombstone() rhs := this.properties[j].GetActivityStreamsTombstone() return lhs.LessThan(rhs) - } else if idx1 == 57 { + } else if idx1 == 58 { lhs := this.properties[i].GetActivityStreamsTravel() rhs := this.properties[j].GetActivityStreamsTravel() return lhs.LessThan(rhs) - } else if idx1 == 58 { + } else if idx1 == 59 { lhs := this.properties[i].GetActivityStreamsUndo() rhs := this.properties[j].GetActivityStreamsUndo() return lhs.LessThan(rhs) - } else if idx1 == 59 { + } else if idx1 == 60 { lhs := this.properties[i].GetActivityStreamsUpdate() rhs := this.properties[j].GetActivityStreamsUpdate() return lhs.LessThan(rhs) - } else if idx1 == 60 { + } else if idx1 == 61 { lhs := this.properties[i].GetActivityStreamsVideo() rhs := this.properties[j].GetActivityStreamsVideo() return lhs.LessThan(rhs) - } else if idx1 == 61 { + } else if idx1 == 62 { lhs := this.properties[i].GetActivityStreamsView() rhs := this.properties[j].GetActivityStreamsView() return lhs.LessThan(rhs) @@ -6125,6 +6204,20 @@ func (this *ForgeFedEarlyItemsProperty) PrependIRI(v *url.URL) { } } +// PrependSchemaPropertyValue prepends a PropertyValue value to the front of a +// list of the property "earlyItems". Invalidates all iterators. +func (this *ForgeFedEarlyItemsProperty) PrependSchemaPropertyValue(v vocab.SchemaPropertyValue) { + this.properties = append([]*ForgeFedEarlyItemsPropertyIterator{{ + alias: this.alias, + myIdx: 0, + parent: this, + schemaPropertyValueMember: v, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + // PrependTootEmoji prepends a Emoji value to the front of a list of the property // "earlyItems". Invalidates all iterators. func (this *ForgeFedEarlyItemsProperty) PrependTootEmoji(v vocab.TootEmoji) { @@ -6997,6 +7090,19 @@ func (this *ForgeFedEarlyItemsProperty) SetIRI(idx int, v *url.URL) { } } +// SetSchemaPropertyValue sets a PropertyValue 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) SetSchemaPropertyValue(idx int, v vocab.SchemaPropertyValue) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ForgeFedEarlyItemsPropertyIterator{ + alias: this.alias, + myIdx: idx, + parent: this, + schemaPropertyValueMember: v, + } +} + // 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. diff --git a/vendor/github.com/superseriousbusiness/activity/streams/impl/forgefed/property_ticketstrackedby/gen_pkg.go b/vendor/github.com/superseriousbusiness/activity/streams/impl/forgefed/property_ticketstrackedby/gen_pkg.go index 9f01a2f63..4fb2a5c4e 100644 --- a/vendor/github.com/superseriousbusiness/activity/streams/impl/forgefed/property_ticketstrackedby/gen_pkg.go +++ b/vendor/github.com/superseriousbusiness/activity/streams/impl/forgefed/property_ticketstrackedby/gen_pkg.go @@ -177,6 +177,10 @@ type privateManager interface { // for the "ActivityStreamsProfile" non-functional property in the // vocabulary "ActivityStreams" DeserializeProfileActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsProfile, error) + // DeserializePropertyValueSchema returns the deserialization method for + // the "SchemaPropertyValue" non-functional property in the vocabulary + // "Schema" + DeserializePropertyValueSchema() func(map[string]interface{}, map[string]string) (vocab.SchemaPropertyValue, error) // 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) diff --git a/vendor/github.com/superseriousbusiness/activity/streams/impl/forgefed/property_ticketstrackedby/gen_property_forgefed_ticketsTrackedBy.go b/vendor/github.com/superseriousbusiness/activity/streams/impl/forgefed/property_ticketstrackedby/gen_property_forgefed_ticketsTrackedBy.go index a543a41cc..4b16f716b 100644 --- a/vendor/github.com/superseriousbusiness/activity/streams/impl/forgefed/property_ticketstrackedby/gen_property_forgefed_ticketsTrackedBy.go +++ b/vendor/github.com/superseriousbusiness/activity/streams/impl/forgefed/property_ticketstrackedby/gen_property_forgefed_ticketsTrackedBy.go @@ -56,6 +56,7 @@ type ForgeFedTicketsTrackedByProperty struct { activitystreamsPersonMember vocab.ActivityStreamsPerson activitystreamsPlaceMember vocab.ActivityStreamsPlace activitystreamsProfileMember vocab.ActivityStreamsProfile + schemaPropertyValueMember vocab.SchemaPropertyValue forgefedPushMember vocab.ForgeFedPush activitystreamsQuestionMember vocab.ActivityStreamsQuestion activitystreamsReadMember vocab.ActivityStreamsRead @@ -360,6 +361,12 @@ func DeserializeTicketsTrackedByProperty(m map[string]interface{}, aliasMap map[ alias: alias, } return this, nil + } else if v, err := mgr.DeserializePropertyValueSchema()(m, aliasMap); err == nil { + this := &ForgeFedTicketsTrackedByProperty{ + alias: alias, + schemaPropertyValueMember: v, + } + return this, nil } else if v, err := mgr.DeserializePushForgeFed()(m, aliasMap); err == nil { this := &ForgeFedTicketsTrackedByProperty{ alias: alias, @@ -529,6 +536,7 @@ func (this *ForgeFedTicketsTrackedByProperty) Clear() { this.activitystreamsPersonMember = nil this.activitystreamsPlaceMember = nil this.activitystreamsProfileMember = nil + this.schemaPropertyValueMember = nil this.forgefedPushMember = nil this.activitystreamsQuestionMember = nil this.activitystreamsReadMember = nil @@ -959,6 +967,13 @@ func (this ForgeFedTicketsTrackedByProperty) GetIRI() *url.URL { return this.iri } +// GetSchemaPropertyValue returns the value of this property. When +// IsSchemaPropertyValue returns false, GetSchemaPropertyValue will return an +// arbitrary value. +func (this ForgeFedTicketsTrackedByProperty) GetSchemaPropertyValue() vocab.SchemaPropertyValue { + return this.schemaPropertyValueMember +} + // GetTootEmoji returns the value of this property. When IsTootEmoji returns // false, GetTootEmoji will return an arbitrary value. func (this ForgeFedTicketsTrackedByProperty) GetTootEmoji() vocab.TootEmoji { @@ -1101,6 +1116,9 @@ func (this ForgeFedTicketsTrackedByProperty) GetType() vocab.Type { if this.IsActivityStreamsProfile() { return this.GetActivityStreamsProfile() } + if this.IsSchemaPropertyValue() { + return this.GetSchemaPropertyValue() + } if this.IsForgeFedPush() { return this.GetForgeFedPush() } @@ -1203,6 +1221,7 @@ func (this ForgeFedTicketsTrackedByProperty) HasAny() bool { this.IsActivityStreamsPerson() || this.IsActivityStreamsPlace() || this.IsActivityStreamsProfile() || + this.IsSchemaPropertyValue() || this.IsForgeFedPush() || this.IsActivityStreamsQuestion() || this.IsActivityStreamsRead() || @@ -1641,6 +1660,13 @@ func (this ForgeFedTicketsTrackedByProperty) IsIRI() bool { return this.iri != nil } +// IsSchemaPropertyValue returns true if this property has a type of +// "PropertyValue". When true, use the GetSchemaPropertyValue and +// SetSchemaPropertyValue methods to access and set this property. +func (this ForgeFedTicketsTrackedByProperty) IsSchemaPropertyValue() bool { + return this.schemaPropertyValueMember != nil +} + // IsTootEmoji returns true if this property has a type of "Emoji". When true, use // the GetTootEmoji and SetTootEmoji methods to access and set this property. func (this ForgeFedTicketsTrackedByProperty) IsTootEmoji() bool { @@ -1744,6 +1770,8 @@ func (this ForgeFedTicketsTrackedByProperty) JSONLDContext() map[string]string { child = this.GetActivityStreamsPlace().JSONLDContext() } else if this.IsActivityStreamsProfile() { child = this.GetActivityStreamsProfile().JSONLDContext() + } else if this.IsSchemaPropertyValue() { + child = this.GetSchemaPropertyValue().JSONLDContext() } else if this.IsForgeFedPush() { child = this.GetForgeFedPush().JSONLDContext() } else if this.IsActivityStreamsQuestion() { @@ -1922,60 +1950,63 @@ func (this ForgeFedTicketsTrackedByProperty) KindIndex() int { if this.IsActivityStreamsProfile() { return 41 } - if this.IsForgeFedPush() { + if this.IsSchemaPropertyValue() { return 42 } - if this.IsActivityStreamsQuestion() { + if this.IsForgeFedPush() { return 43 } - if this.IsActivityStreamsRead() { + if this.IsActivityStreamsQuestion() { return 44 } - if this.IsActivityStreamsReject() { + if this.IsActivityStreamsRead() { return 45 } - if this.IsActivityStreamsRelationship() { + if this.IsActivityStreamsReject() { return 46 } - if this.IsActivityStreamsRemove() { + if this.IsActivityStreamsRelationship() { return 47 } - if this.IsForgeFedRepository() { + if this.IsActivityStreamsRemove() { return 48 } - if this.IsActivityStreamsService() { + if this.IsForgeFedRepository() { return 49 } - if this.IsActivityStreamsTentativeAccept() { + if this.IsActivityStreamsService() { return 50 } - if this.IsActivityStreamsTentativeReject() { + if this.IsActivityStreamsTentativeAccept() { return 51 } - if this.IsForgeFedTicket() { + if this.IsActivityStreamsTentativeReject() { return 52 } - if this.IsForgeFedTicketDependency() { + if this.IsForgeFedTicket() { return 53 } - if this.IsActivityStreamsTombstone() { + if this.IsForgeFedTicketDependency() { return 54 } - if this.IsActivityStreamsTravel() { + if this.IsActivityStreamsTombstone() { return 55 } - if this.IsActivityStreamsUndo() { + if this.IsActivityStreamsTravel() { return 56 } - if this.IsActivityStreamsUpdate() { + if this.IsActivityStreamsUndo() { return 57 } - if this.IsActivityStreamsVideo() { + if this.IsActivityStreamsUpdate() { return 58 } - if this.IsActivityStreamsView() { + if this.IsActivityStreamsVideo() { return 59 } + if this.IsActivityStreamsView() { + return 60 + } if this.IsIRI() { return -2 } @@ -2077,6 +2108,8 @@ func (this ForgeFedTicketsTrackedByProperty) LessThan(o vocab.ForgeFedTicketsTra return this.GetActivityStreamsPlace().LessThan(o.GetActivityStreamsPlace()) } else if this.IsActivityStreamsProfile() { return this.GetActivityStreamsProfile().LessThan(o.GetActivityStreamsProfile()) + } else if this.IsSchemaPropertyValue() { + return this.GetSchemaPropertyValue().LessThan(o.GetSchemaPropertyValue()) } else if this.IsForgeFedPush() { return this.GetForgeFedPush().LessThan(o.GetForgeFedPush()) } else if this.IsActivityStreamsQuestion() { @@ -2217,6 +2250,8 @@ func (this ForgeFedTicketsTrackedByProperty) Serialize() (interface{}, error) { return this.GetActivityStreamsPlace().Serialize() } else if this.IsActivityStreamsProfile() { return this.GetActivityStreamsProfile().Serialize() + } else if this.IsSchemaPropertyValue() { + return this.GetSchemaPropertyValue().Serialize() } else if this.IsForgeFedPush() { return this.GetForgeFedPush().Serialize() } else if this.IsActivityStreamsQuestion() { @@ -2671,6 +2706,13 @@ func (this *ForgeFedTicketsTrackedByProperty) SetIRI(v *url.URL) { this.iri = v } +// SetSchemaPropertyValue sets the value of this property. Calling +// IsSchemaPropertyValue afterwards returns true. +func (this *ForgeFedTicketsTrackedByProperty) SetSchemaPropertyValue(v vocab.SchemaPropertyValue) { + this.Clear() + this.schemaPropertyValueMember = v +} + // SetTootEmoji sets the value of this property. Calling IsTootEmoji afterwards // returns true. func (this *ForgeFedTicketsTrackedByProperty) SetTootEmoji(v vocab.TootEmoji) { @@ -2856,6 +2898,10 @@ func (this *ForgeFedTicketsTrackedByProperty) SetType(t vocab.Type) error { this.SetActivityStreamsProfile(v) return nil } + if v, ok := t.(vocab.SchemaPropertyValue); ok { + this.SetSchemaPropertyValue(v) + return nil + } if v, ok := t.(vocab.ForgeFedPush); ok { this.SetForgeFedPush(v) return nil diff --git a/vendor/github.com/superseriousbusiness/activity/streams/impl/forgefed/property_tracksticketsfor/gen_pkg.go b/vendor/github.com/superseriousbusiness/activity/streams/impl/forgefed/property_tracksticketsfor/gen_pkg.go index 0d79a12dd..e17fb84b9 100644 --- a/vendor/github.com/superseriousbusiness/activity/streams/impl/forgefed/property_tracksticketsfor/gen_pkg.go +++ b/vendor/github.com/superseriousbusiness/activity/streams/impl/forgefed/property_tracksticketsfor/gen_pkg.go @@ -177,6 +177,10 @@ type privateManager interface { // for the "ActivityStreamsProfile" non-functional property in the // vocabulary "ActivityStreams" DeserializeProfileActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsProfile, error) + // DeserializePropertyValueSchema returns the deserialization method for + // the "SchemaPropertyValue" non-functional property in the vocabulary + // "Schema" + DeserializePropertyValueSchema() func(map[string]interface{}, map[string]string) (vocab.SchemaPropertyValue, error) // 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) diff --git a/vendor/github.com/superseriousbusiness/activity/streams/impl/forgefed/property_tracksticketsfor/gen_property_forgefed_tracksTicketsFor.go b/vendor/github.com/superseriousbusiness/activity/streams/impl/forgefed/property_tracksticketsfor/gen_property_forgefed_tracksTicketsFor.go index 11481688d..858a6f25e 100644 --- a/vendor/github.com/superseriousbusiness/activity/streams/impl/forgefed/property_tracksticketsfor/gen_property_forgefed_tracksTicketsFor.go +++ b/vendor/github.com/superseriousbusiness/activity/streams/impl/forgefed/property_tracksticketsfor/gen_property_forgefed_tracksTicketsFor.go @@ -56,6 +56,7 @@ type ForgeFedTracksTicketsForPropertyIterator struct { activitystreamsPersonMember vocab.ActivityStreamsPerson activitystreamsPlaceMember vocab.ActivityStreamsPlace activitystreamsProfileMember vocab.ActivityStreamsProfile + schemaPropertyValueMember vocab.SchemaPropertyValue forgefedPushMember vocab.ForgeFedPush activitystreamsQuestionMember vocab.ActivityStreamsQuestion activitystreamsReadMember vocab.ActivityStreamsRead @@ -359,6 +360,12 @@ func deserializeForgeFedTracksTicketsForPropertyIterator(i interface{}, aliasMap alias: alias, } return this, nil + } else if v, err := mgr.DeserializePropertyValueSchema()(m, aliasMap); err == nil { + this := &ForgeFedTracksTicketsForPropertyIterator{ + alias: alias, + schemaPropertyValueMember: v, + } + return this, nil } else if v, err := mgr.DeserializePushForgeFed()(m, aliasMap); err == nil { this := &ForgeFedTracksTicketsForPropertyIterator{ alias: alias, @@ -884,6 +891,13 @@ func (this ForgeFedTracksTicketsForPropertyIterator) GetIRI() *url.URL { return this.iri } +// GetSchemaPropertyValue returns the value of this property. When +// IsSchemaPropertyValue returns false, GetSchemaPropertyValue will return an +// arbitrary value. +func (this ForgeFedTracksTicketsForPropertyIterator) GetSchemaPropertyValue() vocab.SchemaPropertyValue { + return this.schemaPropertyValueMember +} + // GetTootEmoji returns the value of this property. When IsTootEmoji returns // false, GetTootEmoji will return an arbitrary value. func (this ForgeFedTracksTicketsForPropertyIterator) GetTootEmoji() vocab.TootEmoji { @@ -1026,6 +1040,9 @@ func (this ForgeFedTracksTicketsForPropertyIterator) GetType() vocab.Type { if this.IsActivityStreamsProfile() { return this.GetActivityStreamsProfile() } + if this.IsSchemaPropertyValue() { + return this.GetSchemaPropertyValue() + } if this.IsForgeFedPush() { return this.GetForgeFedPush() } @@ -1128,6 +1145,7 @@ func (this ForgeFedTracksTicketsForPropertyIterator) HasAny() bool { this.IsActivityStreamsPerson() || this.IsActivityStreamsPlace() || this.IsActivityStreamsProfile() || + this.IsSchemaPropertyValue() || this.IsForgeFedPush() || this.IsActivityStreamsQuestion() || this.IsActivityStreamsRead() || @@ -1566,6 +1584,13 @@ func (this ForgeFedTracksTicketsForPropertyIterator) IsIRI() bool { return this.iri != nil } +// IsSchemaPropertyValue returns true if this property has a type of +// "PropertyValue". When true, use the GetSchemaPropertyValue and +// SetSchemaPropertyValue methods to access and set this property. +func (this ForgeFedTracksTicketsForPropertyIterator) IsSchemaPropertyValue() bool { + return this.schemaPropertyValueMember != nil +} + // IsTootEmoji returns true if this property has a type of "Emoji". When true, use // the GetTootEmoji and SetTootEmoji methods to access and set this property. func (this ForgeFedTracksTicketsForPropertyIterator) IsTootEmoji() bool { @@ -1669,6 +1694,8 @@ func (this ForgeFedTracksTicketsForPropertyIterator) JSONLDContext() map[string] child = this.GetActivityStreamsPlace().JSONLDContext() } else if this.IsActivityStreamsProfile() { child = this.GetActivityStreamsProfile().JSONLDContext() + } else if this.IsSchemaPropertyValue() { + child = this.GetSchemaPropertyValue().JSONLDContext() } else if this.IsForgeFedPush() { child = this.GetForgeFedPush().JSONLDContext() } else if this.IsActivityStreamsQuestion() { @@ -1847,60 +1874,63 @@ func (this ForgeFedTracksTicketsForPropertyIterator) KindIndex() int { if this.IsActivityStreamsProfile() { return 41 } - if this.IsForgeFedPush() { + if this.IsSchemaPropertyValue() { return 42 } - if this.IsActivityStreamsQuestion() { + if this.IsForgeFedPush() { return 43 } - if this.IsActivityStreamsRead() { + if this.IsActivityStreamsQuestion() { return 44 } - if this.IsActivityStreamsReject() { + if this.IsActivityStreamsRead() { return 45 } - if this.IsActivityStreamsRelationship() { + if this.IsActivityStreamsReject() { return 46 } - if this.IsActivityStreamsRemove() { + if this.IsActivityStreamsRelationship() { return 47 } - if this.IsForgeFedRepository() { + if this.IsActivityStreamsRemove() { return 48 } - if this.IsActivityStreamsService() { + if this.IsForgeFedRepository() { return 49 } - if this.IsActivityStreamsTentativeAccept() { + if this.IsActivityStreamsService() { return 50 } - if this.IsActivityStreamsTentativeReject() { + if this.IsActivityStreamsTentativeAccept() { return 51 } - if this.IsForgeFedTicket() { + if this.IsActivityStreamsTentativeReject() { return 52 } - if this.IsForgeFedTicketDependency() { + if this.IsForgeFedTicket() { return 53 } - if this.IsActivityStreamsTombstone() { + if this.IsForgeFedTicketDependency() { return 54 } - if this.IsActivityStreamsTravel() { + if this.IsActivityStreamsTombstone() { return 55 } - if this.IsActivityStreamsUndo() { + if this.IsActivityStreamsTravel() { return 56 } - if this.IsActivityStreamsUpdate() { + if this.IsActivityStreamsUndo() { return 57 } - if this.IsActivityStreamsVideo() { + if this.IsActivityStreamsUpdate() { return 58 } - if this.IsActivityStreamsView() { + if this.IsActivityStreamsVideo() { return 59 } + if this.IsActivityStreamsView() { + return 60 + } if this.IsIRI() { return -2 } @@ -2002,6 +2032,8 @@ func (this ForgeFedTracksTicketsForPropertyIterator) LessThan(o vocab.ForgeFedTr return this.GetActivityStreamsPlace().LessThan(o.GetActivityStreamsPlace()) } else if this.IsActivityStreamsProfile() { return this.GetActivityStreamsProfile().LessThan(o.GetActivityStreamsProfile()) + } else if this.IsSchemaPropertyValue() { + return this.GetSchemaPropertyValue().LessThan(o.GetSchemaPropertyValue()) } else if this.IsForgeFedPush() { return this.GetForgeFedPush().LessThan(o.GetForgeFedPush()) } else if this.IsActivityStreamsQuestion() { @@ -2483,6 +2515,13 @@ func (this *ForgeFedTracksTicketsForPropertyIterator) SetIRI(v *url.URL) { this.iri = v } +// SetSchemaPropertyValue sets the value of this property. Calling +// IsSchemaPropertyValue afterwards returns true. +func (this *ForgeFedTracksTicketsForPropertyIterator) SetSchemaPropertyValue(v vocab.SchemaPropertyValue) { + this.clear() + this.schemaPropertyValueMember = v +} + // SetTootEmoji sets the value of this property. Calling IsTootEmoji afterwards // returns true. func (this *ForgeFedTracksTicketsForPropertyIterator) SetTootEmoji(v vocab.TootEmoji) { @@ -2668,6 +2707,10 @@ func (this *ForgeFedTracksTicketsForPropertyIterator) SetType(t vocab.Type) erro this.SetActivityStreamsProfile(v) return nil } + if v, ok := t.(vocab.SchemaPropertyValue); ok { + this.SetSchemaPropertyValue(v) + return nil + } if v, ok := t.(vocab.ForgeFedPush); ok { this.SetForgeFedPush(v) return nil @@ -2789,6 +2832,7 @@ func (this *ForgeFedTracksTicketsForPropertyIterator) clear() { this.activitystreamsPersonMember = nil this.activitystreamsPlaceMember = nil this.activitystreamsProfileMember = nil + this.schemaPropertyValueMember = nil this.forgefedPushMember = nil this.activitystreamsQuestionMember = nil this.activitystreamsReadMember = nil @@ -2900,6 +2944,8 @@ func (this ForgeFedTracksTicketsForPropertyIterator) serialize() (interface{}, e return this.GetActivityStreamsPlace().Serialize() } else if this.IsActivityStreamsProfile() { return this.GetActivityStreamsProfile().Serialize() + } else if this.IsSchemaPropertyValue() { + return this.GetSchemaPropertyValue().Serialize() } else if this.IsForgeFedPush() { return this.GetForgeFedPush().Serialize() } else if this.IsActivityStreamsQuestion() { @@ -3705,6 +3751,18 @@ func (this *ForgeFedTracksTicketsForProperty) AppendIRI(v *url.URL) { }) } +// AppendSchemaPropertyValue appends a PropertyValue value to the back of a list +// of the property "tracksTicketsFor". Invalidates iterators that are +// traversing using Prev. +func (this *ForgeFedTracksTicketsForProperty) AppendSchemaPropertyValue(v vocab.SchemaPropertyValue) { + this.properties = append(this.properties, &ForgeFedTracksTicketsForPropertyIterator{ + alias: this.alias, + myIdx: this.Len(), + parent: this, + schemaPropertyValueMember: v, + }) +} + // 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) { @@ -4778,6 +4836,23 @@ func (this *ForgeFedTracksTicketsForProperty) InsertIRI(idx int, v *url.URL) { } } +// InsertSchemaPropertyValue inserts a PropertyValue 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) InsertSchemaPropertyValue(idx int, v vocab.SchemaPropertyValue) { + 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, + schemaPropertyValueMember: v, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + // InsertTootEmoji inserts a Emoji value at the specified index for a property // "tracksTicketsFor". Existing elements at that index and higher are shifted // back once. Invalidates all iterators. @@ -5042,74 +5117,78 @@ func (this ForgeFedTracksTicketsForProperty) Less(i, j int) bool { rhs := this.properties[j].GetActivityStreamsProfile() return lhs.LessThan(rhs) } else if idx1 == 42 { + lhs := this.properties[i].GetSchemaPropertyValue() + rhs := this.properties[j].GetSchemaPropertyValue() + return lhs.LessThan(rhs) + } else if idx1 == 43 { lhs := this.properties[i].GetForgeFedPush() rhs := this.properties[j].GetForgeFedPush() return lhs.LessThan(rhs) - } else if idx1 == 43 { + } else if idx1 == 44 { lhs := this.properties[i].GetActivityStreamsQuestion() rhs := this.properties[j].GetActivityStreamsQuestion() return lhs.LessThan(rhs) - } else if idx1 == 44 { + } else if idx1 == 45 { lhs := this.properties[i].GetActivityStreamsRead() rhs := this.properties[j].GetActivityStreamsRead() return lhs.LessThan(rhs) - } else if idx1 == 45 { + } else if idx1 == 46 { lhs := this.properties[i].GetActivityStreamsReject() rhs := this.properties[j].GetActivityStreamsReject() return lhs.LessThan(rhs) - } else if idx1 == 46 { + } else if idx1 == 47 { lhs := this.properties[i].GetActivityStreamsRelationship() rhs := this.properties[j].GetActivityStreamsRelationship() return lhs.LessThan(rhs) - } else if idx1 == 47 { + } else if idx1 == 48 { lhs := this.properties[i].GetActivityStreamsRemove() rhs := this.properties[j].GetActivityStreamsRemove() return lhs.LessThan(rhs) - } else if idx1 == 48 { + } else if idx1 == 49 { lhs := this.properties[i].GetForgeFedRepository() rhs := this.properties[j].GetForgeFedRepository() return lhs.LessThan(rhs) - } else if idx1 == 49 { + } else if idx1 == 50 { lhs := this.properties[i].GetActivityStreamsService() rhs := this.properties[j].GetActivityStreamsService() return lhs.LessThan(rhs) - } else if idx1 == 50 { + } else if idx1 == 51 { lhs := this.properties[i].GetActivityStreamsTentativeAccept() rhs := this.properties[j].GetActivityStreamsTentativeAccept() return lhs.LessThan(rhs) - } else if idx1 == 51 { + } else if idx1 == 52 { lhs := this.properties[i].GetActivityStreamsTentativeReject() rhs := this.properties[j].GetActivityStreamsTentativeReject() return lhs.LessThan(rhs) - } else if idx1 == 52 { + } else if idx1 == 53 { lhs := this.properties[i].GetForgeFedTicket() rhs := this.properties[j].GetForgeFedTicket() return lhs.LessThan(rhs) - } else if idx1 == 53 { + } else if idx1 == 54 { lhs := this.properties[i].GetForgeFedTicketDependency() rhs := this.properties[j].GetForgeFedTicketDependency() return lhs.LessThan(rhs) - } else if idx1 == 54 { + } else if idx1 == 55 { lhs := this.properties[i].GetActivityStreamsTombstone() rhs := this.properties[j].GetActivityStreamsTombstone() return lhs.LessThan(rhs) - } else if idx1 == 55 { + } else if idx1 == 56 { lhs := this.properties[i].GetActivityStreamsTravel() rhs := this.properties[j].GetActivityStreamsTravel() return lhs.LessThan(rhs) - } else if idx1 == 56 { + } else if idx1 == 57 { lhs := this.properties[i].GetActivityStreamsUndo() rhs := this.properties[j].GetActivityStreamsUndo() return lhs.LessThan(rhs) - } else if idx1 == 57 { + } else if idx1 == 58 { lhs := this.properties[i].GetActivityStreamsUpdate() rhs := this.properties[j].GetActivityStreamsUpdate() return lhs.LessThan(rhs) - } else if idx1 == 58 { + } else if idx1 == 59 { lhs := this.properties[i].GetActivityStreamsVideo() rhs := this.properties[j].GetActivityStreamsVideo() return lhs.LessThan(rhs) - } else if idx1 == 59 { + } else if idx1 == 60 { lhs := this.properties[i].GetActivityStreamsView() rhs := this.properties[j].GetActivityStreamsView() return lhs.LessThan(rhs) @@ -5984,6 +6063,20 @@ func (this *ForgeFedTracksTicketsForProperty) PrependIRI(v *url.URL) { } } +// PrependSchemaPropertyValue prepends a PropertyValue value to the front of a +// list of the property "tracksTicketsFor". Invalidates all iterators. +func (this *ForgeFedTracksTicketsForProperty) PrependSchemaPropertyValue(v vocab.SchemaPropertyValue) { + this.properties = append([]*ForgeFedTracksTicketsForPropertyIterator{{ + alias: this.alias, + myIdx: 0, + parent: this, + schemaPropertyValueMember: v, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + // PrependTootEmoji prepends a Emoji value to the front of a list of the property // "tracksTicketsFor". Invalidates all iterators. func (this *ForgeFedTracksTicketsForProperty) PrependTootEmoji(v vocab.TootEmoji) { @@ -6830,6 +6923,19 @@ func (this *ForgeFedTracksTicketsForProperty) SetIRI(idx int, v *url.URL) { } } +// SetSchemaPropertyValue sets a PropertyValue 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) SetSchemaPropertyValue(idx int, v vocab.SchemaPropertyValue) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ForgeFedTracksTicketsForPropertyIterator{ + alias: this.alias, + myIdx: idx, + parent: this, + schemaPropertyValueMember: v, + } +} + // 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. |
