summaryrefslogtreecommitdiff
path: root/vendor/github.com/superseriousbusiness/activity/streams/impl/forgefed
diff options
context:
space:
mode:
authorLibravatar tobi <31960611+tsmethurst@users.noreply.github.com>2023-07-27 20:54:30 +0200
committerLibravatar GitHub <noreply@github.com>2023-07-27 20:54:30 +0200
commitcf4bd700fb9fd1c6915eefe12437a9e074d84c9b (patch)
treef755a27a405a9e000daa6bd6eac9f153518c02e0 /vendor/github.com/superseriousbusiness/activity/streams/impl/forgefed
parent[chore] fix merge issue (#2029) (diff)
downloadgotosocial-cf4bd700fb9fd1c6915eefe12437a9e074d84c9b.tar.xz
[chore] Update activity dependency (#2031)
Diffstat (limited to 'vendor/github.com/superseriousbusiness/activity/streams/impl/forgefed')
-rw-r--r--vendor/github.com/superseriousbusiness/activity/streams/impl/forgefed/property_assignedto/gen_doc.go17
-rw-r--r--vendor/github.com/superseriousbusiness/activity/streams/impl/forgefed/property_assignedto/gen_pkg.go22
-rw-r--r--vendor/github.com/superseriousbusiness/activity/streams/impl/forgefed/property_assignedto/gen_property_forgefed_assignedTo.go224
-rw-r--r--vendor/github.com/superseriousbusiness/activity/streams/impl/forgefed/property_committed/gen_doc.go17
-rw-r--r--vendor/github.com/superseriousbusiness/activity/streams/impl/forgefed/property_committed/gen_pkg.go15
-rw-r--r--vendor/github.com/superseriousbusiness/activity/streams/impl/forgefed/property_committed/gen_property_forgefed_committed.go204
-rw-r--r--vendor/github.com/superseriousbusiness/activity/streams/impl/forgefed/property_committedby/gen_doc.go17
-rw-r--r--vendor/github.com/superseriousbusiness/activity/streams/impl/forgefed/property_committedby/gen_pkg.go261
-rw-r--r--vendor/github.com/superseriousbusiness/activity/streams/impl/forgefed/property_committedby/gen_property_forgefed_committedBy.go2979
-rw-r--r--vendor/github.com/superseriousbusiness/activity/streams/impl/forgefed/property_dependants/gen_doc.go17
-rw-r--r--vendor/github.com/superseriousbusiness/activity/streams/impl/forgefed/property_dependants/gen_pkg.go27
-rw-r--r--vendor/github.com/superseriousbusiness/activity/streams/impl/forgefed/property_dependants/gen_property_forgefed_dependants.go268
-rw-r--r--vendor/github.com/superseriousbusiness/activity/streams/impl/forgefed/property_dependedby/gen_doc.go17
-rw-r--r--vendor/github.com/superseriousbusiness/activity/streams/impl/forgefed/property_dependedby/gen_pkg.go22
-rw-r--r--vendor/github.com/superseriousbusiness/activity/streams/impl/forgefed/property_dependedby/gen_property_forgefed_dependedBy.go622
-rw-r--r--vendor/github.com/superseriousbusiness/activity/streams/impl/forgefed/property_dependencies/gen_doc.go17
-rw-r--r--vendor/github.com/superseriousbusiness/activity/streams/impl/forgefed/property_dependencies/gen_pkg.go27
-rw-r--r--vendor/github.com/superseriousbusiness/activity/streams/impl/forgefed/property_dependencies/gen_property_forgefed_dependencies.go269
-rw-r--r--vendor/github.com/superseriousbusiness/activity/streams/impl/forgefed/property_dependson/gen_doc.go17
-rw-r--r--vendor/github.com/superseriousbusiness/activity/streams/impl/forgefed/property_dependson/gen_pkg.go22
-rw-r--r--vendor/github.com/superseriousbusiness/activity/streams/impl/forgefed/property_dependson/gen_property_forgefed_dependsOn.go619
-rw-r--r--vendor/github.com/superseriousbusiness/activity/streams/impl/forgefed/property_description/gen_doc.go17
-rw-r--r--vendor/github.com/superseriousbusiness/activity/streams/impl/forgefed/property_description/gen_pkg.go261
-rw-r--r--vendor/github.com/superseriousbusiness/activity/streams/impl/forgefed/property_description/gen_property_forgefed_description.go2979
-rw-r--r--vendor/github.com/superseriousbusiness/activity/streams/impl/forgefed/property_earlyitems/gen_doc.go17
-rw-r--r--vendor/github.com/superseriousbusiness/activity/streams/impl/forgefed/property_earlyitems/gen_pkg.go269
-rw-r--r--vendor/github.com/superseriousbusiness/activity/streams/impl/forgefed/property_earlyitems/gen_property_forgefed_earlyItems.go7152
-rw-r--r--vendor/github.com/superseriousbusiness/activity/streams/impl/forgefed/property_filesadded/gen_doc.go17
-rw-r--r--vendor/github.com/superseriousbusiness/activity/streams/impl/forgefed/property_filesadded/gen_pkg.go15
-rw-r--r--vendor/github.com/superseriousbusiness/activity/streams/impl/forgefed/property_filesadded/gen_property_forgefed_filesAdded.go531
-rw-r--r--vendor/github.com/superseriousbusiness/activity/streams/impl/forgefed/property_filesmodified/gen_doc.go17
-rw-r--r--vendor/github.com/superseriousbusiness/activity/streams/impl/forgefed/property_filesmodified/gen_pkg.go15
-rw-r--r--vendor/github.com/superseriousbusiness/activity/streams/impl/forgefed/property_filesmodified/gen_property_forgefed_filesModified.go535
-rw-r--r--vendor/github.com/superseriousbusiness/activity/streams/impl/forgefed/property_filesremoved/gen_doc.go17
-rw-r--r--vendor/github.com/superseriousbusiness/activity/streams/impl/forgefed/property_filesremoved/gen_pkg.go15
-rw-r--r--vendor/github.com/superseriousbusiness/activity/streams/impl/forgefed/property_filesremoved/gen_property_forgefed_filesRemoved.go535
-rw-r--r--vendor/github.com/superseriousbusiness/activity/streams/impl/forgefed/property_forks/gen_doc.go17
-rw-r--r--vendor/github.com/superseriousbusiness/activity/streams/impl/forgefed/property_forks/gen_pkg.go27
-rw-r--r--vendor/github.com/superseriousbusiness/activity/streams/impl/forgefed/property_forks/gen_property_forgefed_forks.go268
-rw-r--r--vendor/github.com/superseriousbusiness/activity/streams/impl/forgefed/property_hash/gen_doc.go17
-rw-r--r--vendor/github.com/superseriousbusiness/activity/streams/impl/forgefed/property_hash/gen_pkg.go15
-rw-r--r--vendor/github.com/superseriousbusiness/activity/streams/impl/forgefed/property_hash/gen_property_forgefed_hash.go203
-rw-r--r--vendor/github.com/superseriousbusiness/activity/streams/impl/forgefed/property_isresolved/gen_doc.go17
-rw-r--r--vendor/github.com/superseriousbusiness/activity/streams/impl/forgefed/property_isresolved/gen_pkg.go15
-rw-r--r--vendor/github.com/superseriousbusiness/activity/streams/impl/forgefed/property_isresolved/gen_property_forgefed_isResolved.go203
-rw-r--r--vendor/github.com/superseriousbusiness/activity/streams/impl/forgefed/property_ref/gen_doc.go17
-rw-r--r--vendor/github.com/superseriousbusiness/activity/streams/impl/forgefed/property_ref/gen_pkg.go15
-rw-r--r--vendor/github.com/superseriousbusiness/activity/streams/impl/forgefed/property_ref/gen_property_forgefed_ref.go203
-rw-r--r--vendor/github.com/superseriousbusiness/activity/streams/impl/forgefed/property_team/gen_doc.go17
-rw-r--r--vendor/github.com/superseriousbusiness/activity/streams/impl/forgefed/property_team/gen_pkg.go35
-rw-r--r--vendor/github.com/superseriousbusiness/activity/streams/impl/forgefed/property_team/gen_property_forgefed_team.go360
-rw-r--r--vendor/github.com/superseriousbusiness/activity/streams/impl/forgefed/property_ticketstrackedby/gen_doc.go17
-rw-r--r--vendor/github.com/superseriousbusiness/activity/streams/impl/forgefed/property_ticketstrackedby/gen_pkg.go261
-rw-r--r--vendor/github.com/superseriousbusiness/activity/streams/impl/forgefed/property_ticketstrackedby/gen_property_forgefed_ticketsTrackedBy.go2979
-rw-r--r--vendor/github.com/superseriousbusiness/activity/streams/impl/forgefed/property_tracksticketsfor/gen_doc.go17
-rw-r--r--vendor/github.com/superseriousbusiness/activity/streams/impl/forgefed/property_tracksticketsfor/gen_pkg.go261
-rw-r--r--vendor/github.com/superseriousbusiness/activity/streams/impl/forgefed/property_tracksticketsfor/gen_property_forgefed_tracksTicketsFor.go6986
-rw-r--r--vendor/github.com/superseriousbusiness/activity/streams/impl/forgefed/type_branch/gen_doc.go17
-rw-r--r--vendor/github.com/superseriousbusiness/activity/streams/impl/forgefed/type_branch/gen_pkg.go195
-rw-r--r--vendor/github.com/superseriousbusiness/activity/streams/impl/forgefed/type_branch/gen_type_forgefed_branch.go1820
-rw-r--r--vendor/github.com/superseriousbusiness/activity/streams/impl/forgefed/type_commit/gen_doc.go17
-rw-r--r--vendor/github.com/superseriousbusiness/activity/streams/impl/forgefed/type_commit/gen_pkg.go219
-rw-r--r--vendor/github.com/superseriousbusiness/activity/streams/impl/forgefed/type_commit/gen_type_forgefed_commit.go2082
-rw-r--r--vendor/github.com/superseriousbusiness/activity/streams/impl/forgefed/type_push/gen_doc.go17
-rw-r--r--vendor/github.com/superseriousbusiness/activity/streams/impl/forgefed/type_push/gen_pkg.go211
-rw-r--r--vendor/github.com/superseriousbusiness/activity/streams/impl/forgefed/type_push/gen_type_forgefed_push.go2009
-rw-r--r--vendor/github.com/superseriousbusiness/activity/streams/impl/forgefed/type_repository/gen_doc.go17
-rw-r--r--vendor/github.com/superseriousbusiness/activity/streams/impl/forgefed/type_repository/gen_pkg.go195
-rw-r--r--vendor/github.com/superseriousbusiness/activity/streams/impl/forgefed/type_repository/gen_type_forgefed_repository.go1828
-rw-r--r--vendor/github.com/superseriousbusiness/activity/streams/impl/forgefed/type_ticket/gen_doc.go17
-rw-r--r--vendor/github.com/superseriousbusiness/activity/streams/impl/forgefed/type_ticket/gen_pkg.go215
-rw-r--r--vendor/github.com/superseriousbusiness/activity/streams/impl/forgefed/type_ticket/gen_type_forgefed_ticket.go2040
-rw-r--r--vendor/github.com/superseriousbusiness/activity/streams/impl/forgefed/type_ticketdependency/gen_doc.go17
-rw-r--r--vendor/github.com/superseriousbusiness/activity/streams/impl/forgefed/type_ticketdependency/gen_pkg.go200
-rw-r--r--vendor/github.com/superseriousbusiness/activity/streams/impl/forgefed/type_ticketdependency/gen_type_forgefed_ticketdependency.go1871
75 files changed, 0 insertions, 43029 deletions
diff --git a/vendor/github.com/superseriousbusiness/activity/streams/impl/forgefed/property_assignedto/gen_doc.go b/vendor/github.com/superseriousbusiness/activity/streams/impl/forgefed/property_assignedto/gen_doc.go
deleted file mode 100644
index a7d3d3693..000000000
--- a/vendor/github.com/superseriousbusiness/activity/streams/impl/forgefed/property_assignedto/gen_doc.go
+++ /dev/null
@@ -1,17 +0,0 @@
-// 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/vendor/github.com/superseriousbusiness/activity/streams/impl/forgefed/property_assignedto/gen_pkg.go b/vendor/github.com/superseriousbusiness/activity/streams/impl/forgefed/property_assignedto/gen_pkg.go
deleted file mode 100644
index 2ef332afd..000000000
--- a/vendor/github.com/superseriousbusiness/activity/streams/impl/forgefed/property_assignedto/gen_pkg.go
+++ /dev/null
@@ -1,22 +0,0 @@
-// Code generated by astool. DO NOT EDIT.
-
-package propertyassignedto
-
-import vocab "github.com/superseriousbusiness/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/vendor/github.com/superseriousbusiness/activity/streams/impl/forgefed/property_assignedto/gen_property_forgefed_assignedTo.go b/vendor/github.com/superseriousbusiness/activity/streams/impl/forgefed/property_assignedto/gen_property_forgefed_assignedTo.go
deleted file mode 100644
index e92595947..000000000
--- a/vendor/github.com/superseriousbusiness/activity/streams/impl/forgefed/property_assignedto/gen_property_forgefed_assignedTo.go
+++ /dev/null
@@ -1,224 +0,0 @@
-// Code generated by astool. DO NOT EDIT.
-
-package propertyassignedto
-
-import (
- "fmt"
- vocab "github.com/superseriousbusiness/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/vendor/github.com/superseriousbusiness/activity/streams/impl/forgefed/property_committed/gen_doc.go b/vendor/github.com/superseriousbusiness/activity/streams/impl/forgefed/property_committed/gen_doc.go
deleted file mode 100644
index 316ae31b9..000000000
--- a/vendor/github.com/superseriousbusiness/activity/streams/impl/forgefed/property_committed/gen_doc.go
+++ /dev/null
@@ -1,17 +0,0 @@
-// 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/vendor/github.com/superseriousbusiness/activity/streams/impl/forgefed/property_committed/gen_pkg.go b/vendor/github.com/superseriousbusiness/activity/streams/impl/forgefed/property_committed/gen_pkg.go
deleted file mode 100644
index 9aeea0f44..000000000
--- a/vendor/github.com/superseriousbusiness/activity/streams/impl/forgefed/property_committed/gen_pkg.go
+++ /dev/null
@@ -1,15 +0,0 @@
-// 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/vendor/github.com/superseriousbusiness/activity/streams/impl/forgefed/property_committed/gen_property_forgefed_committed.go b/vendor/github.com/superseriousbusiness/activity/streams/impl/forgefed/property_committed/gen_property_forgefed_committed.go
deleted file mode 100644
index c0400f409..000000000
--- a/vendor/github.com/superseriousbusiness/activity/streams/impl/forgefed/property_committed/gen_property_forgefed_committed.go
+++ /dev/null
@@ -1,204 +0,0 @@
-// Code generated by astool. DO NOT EDIT.
-
-package propertycommitted
-
-import (
- "fmt"
- datetime "github.com/superseriousbusiness/activity/streams/values/dateTime"
- vocab "github.com/superseriousbusiness/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/vendor/github.com/superseriousbusiness/activity/streams/impl/forgefed/property_committedby/gen_doc.go b/vendor/github.com/superseriousbusiness/activity/streams/impl/forgefed/property_committedby/gen_doc.go
deleted file mode 100644
index efbaf083a..000000000
--- a/vendor/github.com/superseriousbusiness/activity/streams/impl/forgefed/property_committedby/gen_doc.go
+++ /dev/null
@@ -1,17 +0,0 @@
-// 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/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
deleted file mode 100644
index 191dbbadc..000000000
--- a/vendor/github.com/superseriousbusiness/activity/streams/impl/forgefed/property_committedby/gen_pkg.go
+++ /dev/null
@@ -1,261 +0,0 @@
-// Code generated by astool. DO NOT EDIT.
-
-package propertycommittedby
-
-import vocab "github.com/superseriousbusiness/activity/streams/vocab"
-
-var mgr privateManager
-
-// privateManager abstracts the code-generated manager that provides access to
-// concrete implementations.
-type privateManager interface {
- // DeserializeAcceptActivityStreams returns the deserialization method for
- // the "ActivityStreamsAccept" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeAcceptActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAccept, error)
- // DeserializeActivityActivityStreams returns the deserialization method
- // for the "ActivityStreamsActivity" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeActivityActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsActivity, error)
- // DeserializeAddActivityStreams returns the deserialization method for
- // the "ActivityStreamsAdd" non-functional property in the vocabulary
- // "ActivityStreams"
- DeserializeAddActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAdd, error)
- // 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)
- // 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)
- // DeserializeQuestionActivityStreams returns the deserialization method
- // for the "ActivityStreamsQuestion" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeQuestionActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsQuestion, error)
- // DeserializeReadActivityStreams returns the deserialization method for
- // the "ActivityStreamsRead" non-functional property in the vocabulary
- // "ActivityStreams"
- DeserializeReadActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsRead, error)
- // DeserializeRejectActivityStreams returns the deserialization method for
- // the "ActivityStreamsReject" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeRejectActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsReject, error)
- // DeserializeRelationshipActivityStreams returns the deserialization
- // method for the "ActivityStreamsRelationship" non-functional
- // property in the vocabulary "ActivityStreams"
- DeserializeRelationshipActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsRelationship, error)
- // DeserializeRemoveActivityStreams returns the deserialization method for
- // the "ActivityStreamsRemove" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeRemoveActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsRemove, error)
- // DeserializeRepositoryForgeFed returns the deserialization method for
- // the "ForgeFedRepository" non-functional property in the vocabulary
- // "ForgeFed"
- DeserializeRepositoryForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedRepository, error)
- // DeserializeServiceActivityStreams returns the deserialization method
- // for the "ActivityStreamsService" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeServiceActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsService, error)
- // DeserializeTentativeAcceptActivityStreams returns the deserialization
- // method for the "ActivityStreamsTentativeAccept" non-functional
- // property in the vocabulary "ActivityStreams"
- DeserializeTentativeAcceptActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTentativeAccept, error)
- // DeserializeTentativeRejectActivityStreams returns the deserialization
- // method for the "ActivityStreamsTentativeReject" non-functional
- // property in the vocabulary "ActivityStreams"
- DeserializeTentativeRejectActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTentativeReject, error)
- // DeserializeTicketDependencyForgeFed returns the deserialization method
- // for the "ForgeFedTicketDependency" non-functional property in the
- // vocabulary "ForgeFed"
- DeserializeTicketDependencyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTicketDependency, error)
- // DeserializeTicketForgeFed returns the deserialization method for the
- // "ForgeFedTicket" non-functional property in the vocabulary
- // "ForgeFed"
- DeserializeTicketForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTicket, error)
- // DeserializeTombstoneActivityStreams returns the deserialization method
- // for the "ActivityStreamsTombstone" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeTombstoneActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTombstone, error)
- // DeserializeTravelActivityStreams returns the deserialization method for
- // the "ActivityStreamsTravel" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeTravelActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTravel, error)
- // DeserializeUndoActivityStreams returns the deserialization method for
- // the "ActivityStreamsUndo" non-functional property in the vocabulary
- // "ActivityStreams"
- DeserializeUndoActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsUndo, error)
- // DeserializeUpdateActivityStreams returns the deserialization method for
- // the "ActivityStreamsUpdate" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeUpdateActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsUpdate, error)
- // DeserializeVideoActivityStreams returns the deserialization method for
- // the "ActivityStreamsVideo" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeVideoActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsVideo, error)
- // DeserializeViewActivityStreams returns the deserialization method for
- // the "ActivityStreamsView" non-functional property in the vocabulary
- // "ActivityStreams"
- DeserializeViewActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsView, error)
-}
-
-// SetManager sets the manager package-global variable. For internal use only, do
-// not use as part of Application behavior. Must be called at golang init time.
-func SetManager(m privateManager) {
- mgr = m
-}
diff --git a/vendor/github.com/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
deleted file mode 100644
index b97f87bd3..000000000
--- a/vendor/github.com/superseriousbusiness/activity/streams/impl/forgefed/property_committedby/gen_property_forgefed_committedBy.go
+++ /dev/null
@@ -1,2979 +0,0 @@
-// Code generated by astool. DO NOT EDIT.
-
-package propertycommittedby
-
-import (
- "fmt"
- vocab "github.com/superseriousbusiness/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
- schemaPropertyValueMember vocab.SchemaPropertyValue
- 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.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,
- 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.schemaPropertyValueMember = 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
-}
-
-// 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 {
- 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.IsSchemaPropertyValue() {
- return this.GetSchemaPropertyValue()
- }
- 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.IsSchemaPropertyValue() ||
- 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
-}
-
-// 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 {
- 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.IsSchemaPropertyValue() {
- child = this.GetSchemaPropertyValue().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.IsSchemaPropertyValue() {
- return 42
- }
- if this.IsForgeFedPush() {
- return 43
- }
- if this.IsActivityStreamsQuestion() {
- return 44
- }
- if this.IsActivityStreamsRead() {
- return 45
- }
- if this.IsActivityStreamsReject() {
- return 46
- }
- if this.IsActivityStreamsRelationship() {
- return 47
- }
- if this.IsActivityStreamsRemove() {
- return 48
- }
- if this.IsForgeFedRepository() {
- return 49
- }
- if this.IsActivityStreamsService() {
- return 50
- }
- if this.IsActivityStreamsTentativeAccept() {
- return 51
- }
- if this.IsActivityStreamsTentativeReject() {
- return 52
- }
- if this.IsForgeFedTicket() {
- return 53
- }
- if this.IsForgeFedTicketDependency() {
- return 54
- }
- if this.IsActivityStreamsTombstone() {
- return 55
- }
- if this.IsActivityStreamsTravel() {
- return 56
- }
- if this.IsActivityStreamsUndo() {
- return 57
- }
- if this.IsActivityStreamsUpdate() {
- return 58
- }
- if this.IsActivityStreamsVideo() {
- return 59
- }
- if this.IsActivityStreamsView() {
- return 60
- }
- if this.IsIRI() {
- return -2
- }
- return -1
-}
-
-// LessThan compares two instances of this property with an arbitrary but stable
-// comparison. Applications should not use this because it is only meant to
-// help alternative implementations to go-fed to be able to normalize
-// nonfunctional properties.
-func (this 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.IsSchemaPropertyValue() {
- return this.GetSchemaPropertyValue().LessThan(o.GetSchemaPropertyValue())
- } 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.IsSchemaPropertyValue() {
- return this.GetSchemaPropertyValue().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
-}
-
-// 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) {
- 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.SchemaPropertyValue); ok {
- this.SetSchemaPropertyValue(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/vendor/github.com/superseriousbusiness/activity/streams/impl/forgefed/property_dependants/gen_doc.go b/vendor/github.com/superseriousbusiness/activity/streams/impl/forgefed/property_dependants/gen_doc.go
deleted file mode 100644
index 0a1ee6c03..000000000
--- a/vendor/github.com/superseriousbusiness/activity/streams/impl/forgefed/property_dependants/gen_doc.go
+++ /dev/null
@@ -1,17 +0,0 @@
-// 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/vendor/github.com/superseriousbusiness/activity/streams/impl/forgefed/property_dependants/gen_pkg.go b/vendor/github.com/superseriousbusiness/activity/streams/impl/forgefed/property_dependants/gen_pkg.go
deleted file mode 100644
index 60b8b3888..000000000
--- a/vendor/github.com/superseriousbusiness/activity/streams/impl/forgefed/property_dependants/gen_pkg.go
+++ /dev/null
@@ -1,27 +0,0 @@
-// Code generated by astool. DO NOT EDIT.
-
-package propertydependants
-
-import vocab "github.com/superseriousbusiness/activity/streams/vocab"
-
-var mgr privateManager
-
-// privateManager abstracts the code-generated manager that provides access to
-// concrete implementations.
-type privateManager interface {
- // DeserializeOrderedCollectionActivityStreams returns the deserialization
- // method for the "ActivityStreamsOrderedCollection" non-functional
- // property in the vocabulary "ActivityStreams"
- DeserializeOrderedCollectionActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsOrderedCollection, error)
- // DeserializeOrderedCollectionPageActivityStreams returns the
- // deserialization method for the
- // "ActivityStreamsOrderedCollectionPage" non-functional property in
- // the vocabulary "ActivityStreams"
- DeserializeOrderedCollectionPageActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsOrderedCollectionPage, error)
-}
-
-// SetManager sets the manager package-global variable. For internal use only, do
-// not use as part of Application behavior. Must be called at golang init time.
-func SetManager(m privateManager) {
- mgr = m
-}
diff --git a/vendor/github.com/superseriousbusiness/activity/streams/impl/forgefed/property_dependants/gen_property_forgefed_dependants.go b/vendor/github.com/superseriousbusiness/activity/streams/impl/forgefed/property_dependants/gen_property_forgefed_dependants.go
deleted file mode 100644
index 8b50f3403..000000000
--- a/vendor/github.com/superseriousbusiness/activity/streams/impl/forgefed/property_dependants/gen_property_forgefed_dependants.go
+++ /dev/null
@@ -1,268 +0,0 @@
-// Code generated by astool. DO NOT EDIT.
-
-package propertydependants
-
-import (
- "fmt"
- vocab "github.com/superseriousbusiness/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/vendor/github.com/superseriousbusiness/activity/streams/impl/forgefed/property_dependedby/gen_doc.go b/vendor/github.com/superseriousbusiness/activity/streams/impl/forgefed/property_dependedby/gen_doc.go
deleted file mode 100644
index d6afd7179..000000000
--- a/vendor/github.com/superseriousbusiness/activity/streams/impl/forgefed/property_dependedby/gen_doc.go
+++ /dev/null
@@ -1,17 +0,0 @@
-// 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/vendor/github.com/superseriousbusiness/activity/streams/impl/forgefed/property_dependedby/gen_pkg.go b/vendor/github.com/superseriousbusiness/activity/streams/impl/forgefed/property_dependedby/gen_pkg.go
deleted file mode 100644
index f40e25624..000000000
--- a/vendor/github.com/superseriousbusiness/activity/streams/impl/forgefed/property_dependedby/gen_pkg.go
+++ /dev/null
@@ -1,22 +0,0 @@
-// Code generated by astool. DO NOT EDIT.
-
-package propertydependedby
-
-import vocab "github.com/superseriousbusiness/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/vendor/github.com/superseriousbusiness/activity/streams/impl/forgefed/property_dependedby/gen_property_forgefed_dependedBy.go b/vendor/github.com/superseriousbusiness/activity/streams/impl/forgefed/property_dependedby/gen_property_forgefed_dependedBy.go
deleted file mode 100644
index 645e63e34..000000000
--- a/vendor/github.com/superseriousbusiness/activity/streams/impl/forgefed/property_dependedby/gen_property_forgefed_dependedBy.go
+++ /dev/null
@@ -1,622 +0,0 @@
-// Code generated by astool. DO NOT EDIT.
-
-package propertydependedby
-
-import (
- "fmt"
- vocab "github.com/superseriousbusiness/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/vendor/github.com/superseriousbusiness/activity/streams/impl/forgefed/property_dependencies/gen_doc.go b/vendor/github.com/superseriousbusiness/activity/streams/impl/forgefed/property_dependencies/gen_doc.go
deleted file mode 100644
index 4f4b064a5..000000000
--- a/vendor/github.com/superseriousbusiness/activity/streams/impl/forgefed/property_dependencies/gen_doc.go
+++ /dev/null
@@ -1,17 +0,0 @@
-// 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/vendor/github.com/superseriousbusiness/activity/streams/impl/forgefed/property_dependencies/gen_pkg.go b/vendor/github.com/superseriousbusiness/activity/streams/impl/forgefed/property_dependencies/gen_pkg.go
deleted file mode 100644
index 212647439..000000000
--- a/vendor/github.com/superseriousbusiness/activity/streams/impl/forgefed/property_dependencies/gen_pkg.go
+++ /dev/null
@@ -1,27 +0,0 @@
-// Code generated by astool. DO NOT EDIT.
-
-package propertydependencies
-
-import vocab "github.com/superseriousbusiness/activity/streams/vocab"
-
-var mgr privateManager
-
-// privateManager abstracts the code-generated manager that provides access to
-// concrete implementations.
-type privateManager interface {
- // DeserializeOrderedCollectionActivityStreams returns the deserialization
- // method for the "ActivityStreamsOrderedCollection" non-functional
- // property in the vocabulary "ActivityStreams"
- DeserializeOrderedCollectionActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsOrderedCollection, error)
- // DeserializeOrderedCollectionPageActivityStreams returns the
- // deserialization method for the
- // "ActivityStreamsOrderedCollectionPage" non-functional property in
- // the vocabulary "ActivityStreams"
- DeserializeOrderedCollectionPageActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsOrderedCollectionPage, error)
-}
-
-// SetManager sets the manager package-global variable. For internal use only, do
-// not use as part of Application behavior. Must be called at golang init time.
-func SetManager(m privateManager) {
- mgr = m
-}
diff --git a/vendor/github.com/superseriousbusiness/activity/streams/impl/forgefed/property_dependencies/gen_property_forgefed_dependencies.go b/vendor/github.com/superseriousbusiness/activity/streams/impl/forgefed/property_dependencies/gen_property_forgefed_dependencies.go
deleted file mode 100644
index e77efc92a..000000000
--- a/vendor/github.com/superseriousbusiness/activity/streams/impl/forgefed/property_dependencies/gen_property_forgefed_dependencies.go
+++ /dev/null
@@ -1,269 +0,0 @@
-// Code generated by astool. DO NOT EDIT.
-
-package propertydependencies
-
-import (
- "fmt"
- vocab "github.com/superseriousbusiness/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/vendor/github.com/superseriousbusiness/activity/streams/impl/forgefed/property_dependson/gen_doc.go b/vendor/github.com/superseriousbusiness/activity/streams/impl/forgefed/property_dependson/gen_doc.go
deleted file mode 100644
index 53d2647b0..000000000
--- a/vendor/github.com/superseriousbusiness/activity/streams/impl/forgefed/property_dependson/gen_doc.go
+++ /dev/null
@@ -1,17 +0,0 @@
-// 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/vendor/github.com/superseriousbusiness/activity/streams/impl/forgefed/property_dependson/gen_pkg.go b/vendor/github.com/superseriousbusiness/activity/streams/impl/forgefed/property_dependson/gen_pkg.go
deleted file mode 100644
index 55ed17dac..000000000
--- a/vendor/github.com/superseriousbusiness/activity/streams/impl/forgefed/property_dependson/gen_pkg.go
+++ /dev/null
@@ -1,22 +0,0 @@
-// Code generated by astool. DO NOT EDIT.
-
-package propertydependson
-
-import vocab "github.com/superseriousbusiness/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/vendor/github.com/superseriousbusiness/activity/streams/impl/forgefed/property_dependson/gen_property_forgefed_dependsOn.go b/vendor/github.com/superseriousbusiness/activity/streams/impl/forgefed/property_dependson/gen_property_forgefed_dependsOn.go
deleted file mode 100644
index 1c31fa276..000000000
--- a/vendor/github.com/superseriousbusiness/activity/streams/impl/forgefed/property_dependson/gen_property_forgefed_dependsOn.go
+++ /dev/null
@@ -1,619 +0,0 @@
-// Code generated by astool. DO NOT EDIT.
-
-package propertydependson
-
-import (
- "fmt"
- vocab "github.com/superseriousbusiness/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/vendor/github.com/superseriousbusiness/activity/streams/impl/forgefed/property_description/gen_doc.go b/vendor/github.com/superseriousbusiness/activity/streams/impl/forgefed/property_description/gen_doc.go
deleted file mode 100644
index 664c990f9..000000000
--- a/vendor/github.com/superseriousbusiness/activity/streams/impl/forgefed/property_description/gen_doc.go
+++ /dev/null
@@ -1,17 +0,0 @@
-// 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/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
deleted file mode 100644
index d28f036c3..000000000
--- a/vendor/github.com/superseriousbusiness/activity/streams/impl/forgefed/property_description/gen_pkg.go
+++ /dev/null
@@ -1,261 +0,0 @@
-// Code generated by astool. DO NOT EDIT.
-
-package propertydescription
-
-import vocab "github.com/superseriousbusiness/activity/streams/vocab"
-
-var mgr privateManager
-
-// privateManager abstracts the code-generated manager that provides access to
-// concrete implementations.
-type privateManager interface {
- // DeserializeAcceptActivityStreams returns the deserialization method for
- // the "ActivityStreamsAccept" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeAcceptActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAccept, error)
- // DeserializeActivityActivityStreams returns the deserialization method
- // for the "ActivityStreamsActivity" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeActivityActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsActivity, error)
- // DeserializeAddActivityStreams returns the deserialization method for
- // the "ActivityStreamsAdd" non-functional property in the vocabulary
- // "ActivityStreams"
- DeserializeAddActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAdd, error)
- // 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)
- // 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)
- // DeserializeQuestionActivityStreams returns the deserialization method
- // for the "ActivityStreamsQuestion" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeQuestionActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsQuestion, error)
- // DeserializeReadActivityStreams returns the deserialization method for
- // the "ActivityStreamsRead" non-functional property in the vocabulary
- // "ActivityStreams"
- DeserializeReadActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsRead, error)
- // DeserializeRejectActivityStreams returns the deserialization method for
- // the "ActivityStreamsReject" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeRejectActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsReject, error)
- // DeserializeRelationshipActivityStreams returns the deserialization
- // method for the "ActivityStreamsRelationship" non-functional
- // property in the vocabulary "ActivityStreams"
- DeserializeRelationshipActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsRelationship, error)
- // DeserializeRemoveActivityStreams returns the deserialization method for
- // the "ActivityStreamsRemove" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeRemoveActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsRemove, error)
- // DeserializeRepositoryForgeFed returns the deserialization method for
- // the "ForgeFedRepository" non-functional property in the vocabulary
- // "ForgeFed"
- DeserializeRepositoryForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedRepository, error)
- // DeserializeServiceActivityStreams returns the deserialization method
- // for the "ActivityStreamsService" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeServiceActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsService, error)
- // DeserializeTentativeAcceptActivityStreams returns the deserialization
- // method for the "ActivityStreamsTentativeAccept" non-functional
- // property in the vocabulary "ActivityStreams"
- DeserializeTentativeAcceptActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTentativeAccept, error)
- // DeserializeTentativeRejectActivityStreams returns the deserialization
- // method for the "ActivityStreamsTentativeReject" non-functional
- // property in the vocabulary "ActivityStreams"
- DeserializeTentativeRejectActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTentativeReject, error)
- // DeserializeTicketDependencyForgeFed returns the deserialization method
- // for the "ForgeFedTicketDependency" non-functional property in the
- // vocabulary "ForgeFed"
- DeserializeTicketDependencyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTicketDependency, error)
- // DeserializeTicketForgeFed returns the deserialization method for the
- // "ForgeFedTicket" non-functional property in the vocabulary
- // "ForgeFed"
- DeserializeTicketForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTicket, error)
- // DeserializeTombstoneActivityStreams returns the deserialization method
- // for the "ActivityStreamsTombstone" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeTombstoneActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTombstone, error)
- // DeserializeTravelActivityStreams returns the deserialization method for
- // the "ActivityStreamsTravel" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeTravelActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTravel, error)
- // DeserializeUndoActivityStreams returns the deserialization method for
- // the "ActivityStreamsUndo" non-functional property in the vocabulary
- // "ActivityStreams"
- DeserializeUndoActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsUndo, error)
- // DeserializeUpdateActivityStreams returns the deserialization method for
- // the "ActivityStreamsUpdate" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeUpdateActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsUpdate, error)
- // DeserializeVideoActivityStreams returns the deserialization method for
- // the "ActivityStreamsVideo" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeVideoActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsVideo, error)
- // DeserializeViewActivityStreams returns the deserialization method for
- // the "ActivityStreamsView" non-functional property in the vocabulary
- // "ActivityStreams"
- DeserializeViewActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsView, error)
-}
-
-// SetManager sets the manager package-global variable. For internal use only, do
-// not use as part of Application behavior. Must be called at golang init time.
-func SetManager(m privateManager) {
- mgr = m
-}
diff --git a/vendor/github.com/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
deleted file mode 100644
index e7fd19705..000000000
--- a/vendor/github.com/superseriousbusiness/activity/streams/impl/forgefed/property_description/gen_property_forgefed_description.go
+++ /dev/null
@@ -1,2979 +0,0 @@
-// Code generated by astool. DO NOT EDIT.
-
-package propertydescription
-
-import (
- "fmt"
- vocab "github.com/superseriousbusiness/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
- schemaPropertyValueMember vocab.SchemaPropertyValue
- 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.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,
- 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.schemaPropertyValueMember = 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
-}
-
-// 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 {
- 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.IsSchemaPropertyValue() {
- return this.GetSchemaPropertyValue()
- }
- 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.IsSchemaPropertyValue() ||
- 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
-}
-
-// 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 {
- 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.IsSchemaPropertyValue() {
- child = this.GetSchemaPropertyValue().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.IsSchemaPropertyValue() {
- return 42
- }
- if this.IsForgeFedPush() {
- return 43
- }
- if this.IsActivityStreamsQuestion() {
- return 44
- }
- if this.IsActivityStreamsRead() {
- return 45
- }
- if this.IsActivityStreamsReject() {
- return 46
- }
- if this.IsActivityStreamsRelationship() {
- return 47
- }
- if this.IsActivityStreamsRemove() {
- return 48
- }
- if this.IsForgeFedRepository() {
- return 49
- }
- if this.IsActivityStreamsService() {
- return 50
- }
- if this.IsActivityStreamsTentativeAccept() {
- return 51
- }
- if this.IsActivityStreamsTentativeReject() {
- return 52
- }
- if this.IsForgeFedTicket() {
- return 53
- }
- if this.IsForgeFedTicketDependency() {
- return 54
- }
- if this.IsActivityStreamsTombstone() {
- return 55
- }
- if this.IsActivityStreamsTravel() {
- return 56
- }
- if this.IsActivityStreamsUndo() {
- return 57
- }
- if this.IsActivityStreamsUpdate() {
- return 58
- }
- if this.IsActivityStreamsVideo() {
- return 59
- }
- if this.IsActivityStreamsView() {
- return 60
- }
- if this.IsIRI() {
- return -2
- }
- return -1
-}
-
-// LessThan compares two instances of this property with an arbitrary but stable
-// comparison. Applications should not use this because it is only meant to
-// help alternative implementations to go-fed to be able to normalize
-// nonfunctional properties.
-func (this 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.IsSchemaPropertyValue() {
- return this.GetSchemaPropertyValue().LessThan(o.GetSchemaPropertyValue())
- } 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.IsSchemaPropertyValue() {
- return this.GetSchemaPropertyValue().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
-}
-
-// 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) {
- 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.SchemaPropertyValue); ok {
- this.SetSchemaPropertyValue(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/vendor/github.com/superseriousbusiness/activity/streams/impl/forgefed/property_earlyitems/gen_doc.go b/vendor/github.com/superseriousbusiness/activity/streams/impl/forgefed/property_earlyitems/gen_doc.go
deleted file mode 100644
index 54df4ed1b..000000000
--- a/vendor/github.com/superseriousbusiness/activity/streams/impl/forgefed/property_earlyitems/gen_doc.go
+++ /dev/null
@@ -1,17 +0,0 @@
-// 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/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
deleted file mode 100644
index 12c21b0d6..000000000
--- a/vendor/github.com/superseriousbusiness/activity/streams/impl/forgefed/property_earlyitems/gen_pkg.go
+++ /dev/null
@@ -1,269 +0,0 @@
-// Code generated by astool. DO NOT EDIT.
-
-package propertyearlyitems
-
-import vocab "github.com/superseriousbusiness/activity/streams/vocab"
-
-var mgr privateManager
-
-// privateManager abstracts the code-generated manager that provides access to
-// concrete implementations.
-type privateManager interface {
- // DeserializeAcceptActivityStreams returns the deserialization method for
- // the "ActivityStreamsAccept" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeAcceptActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAccept, error)
- // DeserializeActivityActivityStreams returns the deserialization method
- // for the "ActivityStreamsActivity" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeActivityActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsActivity, error)
- // DeserializeAddActivityStreams returns the deserialization method for
- // the "ActivityStreamsAdd" non-functional property in the vocabulary
- // "ActivityStreams"
- DeserializeAddActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAdd, error)
- // 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)
- // 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)
- // DeserializeQuestionActivityStreams returns the deserialization method
- // for the "ActivityStreamsQuestion" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeQuestionActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsQuestion, error)
- // DeserializeReadActivityStreams returns the deserialization method for
- // the "ActivityStreamsRead" non-functional property in the vocabulary
- // "ActivityStreams"
- DeserializeReadActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsRead, error)
- // DeserializeRejectActivityStreams returns the deserialization method for
- // the "ActivityStreamsReject" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeRejectActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsReject, error)
- // DeserializeRelationshipActivityStreams returns the deserialization
- // method for the "ActivityStreamsRelationship" non-functional
- // property in the vocabulary "ActivityStreams"
- DeserializeRelationshipActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsRelationship, error)
- // DeserializeRemoveActivityStreams returns the deserialization method for
- // the "ActivityStreamsRemove" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeRemoveActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsRemove, error)
- // DeserializeRepositoryForgeFed returns the deserialization method for
- // the "ForgeFedRepository" non-functional property in the vocabulary
- // "ForgeFed"
- DeserializeRepositoryForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedRepository, error)
- // DeserializeServiceActivityStreams returns the deserialization method
- // for the "ActivityStreamsService" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeServiceActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsService, error)
- // DeserializeTentativeAcceptActivityStreams returns the deserialization
- // method for the "ActivityStreamsTentativeAccept" non-functional
- // property in the vocabulary "ActivityStreams"
- DeserializeTentativeAcceptActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTentativeAccept, error)
- // DeserializeTentativeRejectActivityStreams returns the deserialization
- // method for the "ActivityStreamsTentativeReject" non-functional
- // property in the vocabulary "ActivityStreams"
- DeserializeTentativeRejectActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTentativeReject, error)
- // DeserializeTicketDependencyForgeFed returns the deserialization method
- // for the "ForgeFedTicketDependency" non-functional property in the
- // vocabulary "ForgeFed"
- DeserializeTicketDependencyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTicketDependency, error)
- // DeserializeTicketForgeFed returns the deserialization method for the
- // "ForgeFedTicket" non-functional property in the vocabulary
- // "ForgeFed"
- DeserializeTicketForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTicket, error)
- // DeserializeTombstoneActivityStreams returns the deserialization method
- // for the "ActivityStreamsTombstone" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeTombstoneActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTombstone, error)
- // DeserializeTravelActivityStreams returns the deserialization method for
- // the "ActivityStreamsTravel" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeTravelActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTravel, error)
- // DeserializeUndoActivityStreams returns the deserialization method for
- // the "ActivityStreamsUndo" non-functional property in the vocabulary
- // "ActivityStreams"
- DeserializeUndoActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsUndo, error)
- // DeserializeUpdateActivityStreams returns the deserialization method for
- // the "ActivityStreamsUpdate" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeUpdateActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsUpdate, error)
- // DeserializeVideoActivityStreams returns the deserialization method for
- // the "ActivityStreamsVideo" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeVideoActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsVideo, error)
- // DeserializeViewActivityStreams returns the deserialization method for
- // the "ActivityStreamsView" non-functional property in the vocabulary
- // "ActivityStreams"
- DeserializeViewActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsView, error)
-}
-
-// SetManager sets the manager package-global variable. For internal use only, do
-// not use as part of Application behavior. Must be called at golang init time.
-func SetManager(m privateManager) {
- mgr = m
-}
diff --git a/vendor/github.com/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
deleted file mode 100644
index 67182a988..000000000
--- a/vendor/github.com/superseriousbusiness/activity/streams/impl/forgefed/property_earlyitems/gen_property_forgefed_earlyItems.go
+++ /dev/null
@@ -1,7152 +0,0 @@
-// Code generated by astool. DO NOT EDIT.
-
-package propertyearlyitems
-
-import (
- "fmt"
- vocab "github.com/superseriousbusiness/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
- schemaPropertyValueMember vocab.SchemaPropertyValue
- 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.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,
- 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
-}
-
-// 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 {
- 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.IsSchemaPropertyValue() {
- return this.GetSchemaPropertyValue()
- }
- 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.IsSchemaPropertyValue() ||
- 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
-}
-
-// 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 {
- 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.IsSchemaPropertyValue() {
- child = this.GetSchemaPropertyValue().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.IsSchemaPropertyValue() {
- return 44
- }
- if this.IsForgeFedPush() {
- return 45
- }
- if this.IsActivityStreamsQuestion() {
- return 46
- }
- if this.IsActivityStreamsRead() {
- return 47
- }
- if this.IsActivityStreamsReject() {
- return 48
- }
- if this.IsActivityStreamsRelationship() {
- return 49
- }
- if this.IsActivityStreamsRemove() {
- return 50
- }
- if this.IsForgeFedRepository() {
- return 51
- }
- if this.IsActivityStreamsService() {
- return 52
- }
- if this.IsActivityStreamsTentativeAccept() {
- return 53
- }
- if this.IsActivityStreamsTentativeReject() {
- return 54
- }
- if this.IsForgeFedTicket() {
- return 55
- }
- if this.IsForgeFedTicketDependency() {
- return 56
- }
- if this.IsActivityStreamsTombstone() {
- return 57
- }
- if this.IsActivityStreamsTravel() {
- return 58
- }
- if this.IsActivityStreamsUndo() {
- return 59
- }
- if this.IsActivityStreamsUpdate() {
- return 60
- }
- if this.IsActivityStreamsVideo() {
- return 61
- }
- if this.IsActivityStreamsView() {
- return 62
- }
- if this.IsIRI() {
- return -2
- }
- return -1
-}
-
-// LessThan compares two instances of this property with an arbitrary but stable
-// comparison. Applications should 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.IsSchemaPropertyValue() {
- return this.GetSchemaPropertyValue().LessThan(o.GetSchemaPropertyValue())
- } 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
-}
-
-// 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) {
- 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.SchemaPropertyValue); ok {
- this.SetSchemaPropertyValue(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.schemaPropertyValueMember = 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.IsSchemaPropertyValue() {
- return this.GetSchemaPropertyValue().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,
- })
-}
-
-// 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) {
- 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
- }
-}
-
-// 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.
-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].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 == 46 {
- lhs := this.properties[i].GetActivityStreamsQuestion()
- rhs := this.properties[j].GetActivityStreamsQuestion()
- return lhs.LessThan(rhs)
- } else if idx1 == 47 {
- lhs := this.properties[i].GetActivityStreamsRead()
- rhs := this.properties[j].GetActivityStreamsRead()
- return lhs.LessThan(rhs)
- } else if idx1 == 48 {
- lhs := this.properties[i].GetActivityStreamsReject()
- rhs := this.properties[j].GetActivityStreamsReject()
- return lhs.LessThan(rhs)
- } else if idx1 == 49 {
- lhs := this.properties[i].GetActivityStreamsRelationship()
- rhs := this.properties[j].GetActivityStreamsRelationship()
- return lhs.LessThan(rhs)
- } else if idx1 == 50 {
- lhs := this.properties[i].GetActivityStreamsRemove()
- rhs := this.properties[j].GetActivityStreamsRemove()
- return lhs.LessThan(rhs)
- } else if idx1 == 51 {
- lhs := this.properties[i].GetForgeFedRepository()
- rhs := this.properties[j].GetForgeFedRepository()
- return lhs.LessThan(rhs)
- } else if idx1 == 52 {
- lhs := this.properties[i].GetActivityStreamsService()
- rhs := this.properties[j].GetActivityStreamsService()
- return lhs.LessThan(rhs)
- } else if idx1 == 53 {
- lhs := this.properties[i].GetActivityStreamsTentativeAccept()
- rhs := this.properties[j].GetActivityStreamsTentativeAccept()
- return lhs.LessThan(rhs)
- } else if idx1 == 54 {
- lhs := this.properties[i].GetActivityStreamsTentativeReject()
- rhs := this.properties[j].GetActivityStreamsTentativeReject()
- return lhs.LessThan(rhs)
- } else if idx1 == 55 {
- lhs := this.properties[i].GetForgeFedTicket()
- rhs := this.properties[j].GetForgeFedTicket()
- return lhs.LessThan(rhs)
- } else if idx1 == 56 {
- lhs := this.properties[i].GetForgeFedTicketDependency()
- rhs := this.properties[j].GetForgeFedTicketDependency()
- return lhs.LessThan(rhs)
- } else if idx1 == 57 {
- lhs := this.properties[i].GetActivityStreamsTombstone()
- rhs := this.properties[j].GetActivityStreamsTombstone()
- return lhs.LessThan(rhs)
- } else if idx1 == 58 {
- lhs := this.properties[i].GetActivityStreamsTravel()
- rhs := this.properties[j].GetActivityStreamsTravel()
- return lhs.LessThan(rhs)
- } else if idx1 == 59 {
- lhs := this.properties[i].GetActivityStreamsUndo()
- rhs := this.properties[j].GetActivityStreamsUndo()
- return lhs.LessThan(rhs)
- } else if idx1 == 60 {
- lhs := this.properties[i].GetActivityStreamsUpdate()
- rhs := this.properties[j].GetActivityStreamsUpdate()
- return lhs.LessThan(rhs)
- } else if idx1 == 61 {
- lhs := this.properties[i].GetActivityStreamsVideo()
- rhs := this.properties[j].GetActivityStreamsVideo()
- return lhs.LessThan(rhs)
- } else if idx1 == 62 {
- 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
- }
-}
-
-// 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) {
- 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,
- }
-}
-
-// 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.
-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/vendor/github.com/superseriousbusiness/activity/streams/impl/forgefed/property_filesadded/gen_doc.go b/vendor/github.com/superseriousbusiness/activity/streams/impl/forgefed/property_filesadded/gen_doc.go
deleted file mode 100644
index 5edf4dfca..000000000
--- a/vendor/github.com/superseriousbusiness/activity/streams/impl/forgefed/property_filesadded/gen_doc.go
+++ /dev/null
@@ -1,17 +0,0 @@
-// 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/vendor/github.com/superseriousbusiness/activity/streams/impl/forgefed/property_filesadded/gen_pkg.go b/vendor/github.com/superseriousbusiness/activity/streams/impl/forgefed/property_filesadded/gen_pkg.go
deleted file mode 100644
index b8295e752..000000000
--- a/vendor/github.com/superseriousbusiness/activity/streams/impl/forgefed/property_filesadded/gen_pkg.go
+++ /dev/null
@@ -1,15 +0,0 @@
-// 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/vendor/github.com/superseriousbusiness/activity/streams/impl/forgefed/property_filesadded/gen_property_forgefed_filesAdded.go b/vendor/github.com/superseriousbusiness/activity/streams/impl/forgefed/property_filesadded/gen_property_forgefed_filesAdded.go
deleted file mode 100644
index 501090c3b..000000000
--- a/vendor/github.com/superseriousbusiness/activity/streams/impl/forgefed/property_filesadded/gen_property_forgefed_filesAdded.go
+++ /dev/null
@@ -1,531 +0,0 @@
-// Code generated by astool. DO NOT EDIT.
-
-package propertyfilesadded
-
-import (
- "fmt"
- string1 "github.com/superseriousbusiness/activity/streams/values/string"
- vocab "github.com/superseriousbusiness/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/vendor/github.com/superseriousbusiness/activity/streams/impl/forgefed/property_filesmodified/gen_doc.go b/vendor/github.com/superseriousbusiness/activity/streams/impl/forgefed/property_filesmodified/gen_doc.go
deleted file mode 100644
index 1a1e9728b..000000000
--- a/vendor/github.com/superseriousbusiness/activity/streams/impl/forgefed/property_filesmodified/gen_doc.go
+++ /dev/null
@@ -1,17 +0,0 @@
-// 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/vendor/github.com/superseriousbusiness/activity/streams/impl/forgefed/property_filesmodified/gen_pkg.go b/vendor/github.com/superseriousbusiness/activity/streams/impl/forgefed/property_filesmodified/gen_pkg.go
deleted file mode 100644
index e8e2adf4d..000000000
--- a/vendor/github.com/superseriousbusiness/activity/streams/impl/forgefed/property_filesmodified/gen_pkg.go
+++ /dev/null
@@ -1,15 +0,0 @@
-// 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/vendor/github.com/superseriousbusiness/activity/streams/impl/forgefed/property_filesmodified/gen_property_forgefed_filesModified.go b/vendor/github.com/superseriousbusiness/activity/streams/impl/forgefed/property_filesmodified/gen_property_forgefed_filesModified.go
deleted file mode 100644
index e2d98d74a..000000000
--- a/vendor/github.com/superseriousbusiness/activity/streams/impl/forgefed/property_filesmodified/gen_property_forgefed_filesModified.go
+++ /dev/null
@@ -1,535 +0,0 @@
-// Code generated by astool. DO NOT EDIT.
-
-package propertyfilesmodified
-
-import (
- "fmt"
- string1 "github.com/superseriousbusiness/activity/streams/values/string"
- vocab "github.com/superseriousbusiness/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/vendor/github.com/superseriousbusiness/activity/streams/impl/forgefed/property_filesremoved/gen_doc.go b/vendor/github.com/superseriousbusiness/activity/streams/impl/forgefed/property_filesremoved/gen_doc.go
deleted file mode 100644
index b7a0f32fc..000000000
--- a/vendor/github.com/superseriousbusiness/activity/streams/impl/forgefed/property_filesremoved/gen_doc.go
+++ /dev/null
@@ -1,17 +0,0 @@
-// 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/vendor/github.com/superseriousbusiness/activity/streams/impl/forgefed/property_filesremoved/gen_pkg.go b/vendor/github.com/superseriousbusiness/activity/streams/impl/forgefed/property_filesremoved/gen_pkg.go
deleted file mode 100644
index c0b64e635..000000000
--- a/vendor/github.com/superseriousbusiness/activity/streams/impl/forgefed/property_filesremoved/gen_pkg.go
+++ /dev/null
@@ -1,15 +0,0 @@
-// 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/vendor/github.com/superseriousbusiness/activity/streams/impl/forgefed/property_filesremoved/gen_property_forgefed_filesRemoved.go b/vendor/github.com/superseriousbusiness/activity/streams/impl/forgefed/property_filesremoved/gen_property_forgefed_filesRemoved.go
deleted file mode 100644
index 53c16163c..000000000
--- a/vendor/github.com/superseriousbusiness/activity/streams/impl/forgefed/property_filesremoved/gen_property_forgefed_filesRemoved.go
+++ /dev/null
@@ -1,535 +0,0 @@
-// Code generated by astool. DO NOT EDIT.
-
-package propertyfilesremoved
-
-import (
- "fmt"
- string1 "github.com/superseriousbusiness/activity/streams/values/string"
- vocab "github.com/superseriousbusiness/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/vendor/github.com/superseriousbusiness/activity/streams/impl/forgefed/property_forks/gen_doc.go b/vendor/github.com/superseriousbusiness/activity/streams/impl/forgefed/property_forks/gen_doc.go
deleted file mode 100644
index b78bc1dda..000000000
--- a/vendor/github.com/superseriousbusiness/activity/streams/impl/forgefed/property_forks/gen_doc.go
+++ /dev/null
@@ -1,17 +0,0 @@
-// 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/vendor/github.com/superseriousbusiness/activity/streams/impl/forgefed/property_forks/gen_pkg.go b/vendor/github.com/superseriousbusiness/activity/streams/impl/forgefed/property_forks/gen_pkg.go
deleted file mode 100644
index 673614a4d..000000000
--- a/vendor/github.com/superseriousbusiness/activity/streams/impl/forgefed/property_forks/gen_pkg.go
+++ /dev/null
@@ -1,27 +0,0 @@
-// Code generated by astool. DO NOT EDIT.
-
-package propertyforks
-
-import vocab "github.com/superseriousbusiness/activity/streams/vocab"
-
-var mgr privateManager
-
-// privateManager abstracts the code-generated manager that provides access to
-// concrete implementations.
-type privateManager interface {
- // DeserializeOrderedCollectionActivityStreams returns the deserialization
- // method for the "ActivityStreamsOrderedCollection" non-functional
- // property in the vocabulary "ActivityStreams"
- DeserializeOrderedCollectionActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsOrderedCollection, error)
- // DeserializeOrderedCollectionPageActivityStreams returns the
- // deserialization method for the
- // "ActivityStreamsOrderedCollectionPage" non-functional property in
- // the vocabulary "ActivityStreams"
- DeserializeOrderedCollectionPageActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsOrderedCollectionPage, error)
-}
-
-// SetManager sets the manager package-global variable. For internal use only, do
-// not use as part of Application behavior. Must be called at golang init time.
-func SetManager(m privateManager) {
- mgr = m
-}
diff --git a/vendor/github.com/superseriousbusiness/activity/streams/impl/forgefed/property_forks/gen_property_forgefed_forks.go b/vendor/github.com/superseriousbusiness/activity/streams/impl/forgefed/property_forks/gen_property_forgefed_forks.go
deleted file mode 100644
index 3b29b71c6..000000000
--- a/vendor/github.com/superseriousbusiness/activity/streams/impl/forgefed/property_forks/gen_property_forgefed_forks.go
+++ /dev/null
@@ -1,268 +0,0 @@
-// Code generated by astool. DO NOT EDIT.
-
-package propertyforks
-
-import (
- "fmt"
- vocab "github.com/superseriousbusiness/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/vendor/github.com/superseriousbusiness/activity/streams/impl/forgefed/property_hash/gen_doc.go b/vendor/github.com/superseriousbusiness/activity/streams/impl/forgefed/property_hash/gen_doc.go
deleted file mode 100644
index b2b3cf142..000000000
--- a/vendor/github.com/superseriousbusiness/activity/streams/impl/forgefed/property_hash/gen_doc.go
+++ /dev/null
@@ -1,17 +0,0 @@
-// 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/vendor/github.com/superseriousbusiness/activity/streams/impl/forgefed/property_hash/gen_pkg.go b/vendor/github.com/superseriousbusiness/activity/streams/impl/forgefed/property_hash/gen_pkg.go
deleted file mode 100644
index b0d3d5e34..000000000
--- a/vendor/github.com/superseriousbusiness/activity/streams/impl/forgefed/property_hash/gen_pkg.go
+++ /dev/null
@@ -1,15 +0,0 @@
-// 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/vendor/github.com/superseriousbusiness/activity/streams/impl/forgefed/property_hash/gen_property_forgefed_hash.go b/vendor/github.com/superseriousbusiness/activity/streams/impl/forgefed/property_hash/gen_property_forgefed_hash.go
deleted file mode 100644
index 98a81366f..000000000
--- a/vendor/github.com/superseriousbusiness/activity/streams/impl/forgefed/property_hash/gen_property_forgefed_hash.go
+++ /dev/null
@@ -1,203 +0,0 @@
-// Code generated by astool. DO NOT EDIT.
-
-package propertyhash
-
-import (
- "fmt"
- string1 "github.com/superseriousbusiness/activity/streams/values/string"
- vocab "github.com/superseriousbusiness/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/vendor/github.com/superseriousbusiness/activity/streams/impl/forgefed/property_isresolved/gen_doc.go b/vendor/github.com/superseriousbusiness/activity/streams/impl/forgefed/property_isresolved/gen_doc.go
deleted file mode 100644
index bd88e0052..000000000
--- a/vendor/github.com/superseriousbusiness/activity/streams/impl/forgefed/property_isresolved/gen_doc.go
+++ /dev/null
@@ -1,17 +0,0 @@
-// 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/vendor/github.com/superseriousbusiness/activity/streams/impl/forgefed/property_isresolved/gen_pkg.go b/vendor/github.com/superseriousbusiness/activity/streams/impl/forgefed/property_isresolved/gen_pkg.go
deleted file mode 100644
index 33f271d34..000000000
--- a/vendor/github.com/superseriousbusiness/activity/streams/impl/forgefed/property_isresolved/gen_pkg.go
+++ /dev/null
@@ -1,15 +0,0 @@
-// 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/vendor/github.com/superseriousbusiness/activity/streams/impl/forgefed/property_isresolved/gen_property_forgefed_isResolved.go b/vendor/github.com/superseriousbusiness/activity/streams/impl/forgefed/property_isresolved/gen_property_forgefed_isResolved.go
deleted file mode 100644
index 17be1bd2f..000000000
--- a/vendor/github.com/superseriousbusiness/activity/streams/impl/forgefed/property_isresolved/gen_property_forgefed_isResolved.go
+++ /dev/null
@@ -1,203 +0,0 @@
-// Code generated by astool. DO NOT EDIT.
-
-package propertyisresolved
-
-import (
- "fmt"
- boolean "github.com/superseriousbusiness/activity/streams/values/boolean"
- vocab "github.com/superseriousbusiness/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/vendor/github.com/superseriousbusiness/activity/streams/impl/forgefed/property_ref/gen_doc.go b/vendor/github.com/superseriousbusiness/activity/streams/impl/forgefed/property_ref/gen_doc.go
deleted file mode 100644
index db28dfa5e..000000000
--- a/vendor/github.com/superseriousbusiness/activity/streams/impl/forgefed/property_ref/gen_doc.go
+++ /dev/null
@@ -1,17 +0,0 @@
-// 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/vendor/github.com/superseriousbusiness/activity/streams/impl/forgefed/property_ref/gen_pkg.go b/vendor/github.com/superseriousbusiness/activity/streams/impl/forgefed/property_ref/gen_pkg.go
deleted file mode 100644
index 27120c487..000000000
--- a/vendor/github.com/superseriousbusiness/activity/streams/impl/forgefed/property_ref/gen_pkg.go
+++ /dev/null
@@ -1,15 +0,0 @@
-// 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/vendor/github.com/superseriousbusiness/activity/streams/impl/forgefed/property_ref/gen_property_forgefed_ref.go b/vendor/github.com/superseriousbusiness/activity/streams/impl/forgefed/property_ref/gen_property_forgefed_ref.go
deleted file mode 100644
index f242c8c97..000000000
--- a/vendor/github.com/superseriousbusiness/activity/streams/impl/forgefed/property_ref/gen_property_forgefed_ref.go
+++ /dev/null
@@ -1,203 +0,0 @@
-// Code generated by astool. DO NOT EDIT.
-
-package propertyref
-
-import (
- "fmt"
- string1 "github.com/superseriousbusiness/activity/streams/values/string"
- vocab "github.com/superseriousbusiness/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/vendor/github.com/superseriousbusiness/activity/streams/impl/forgefed/property_team/gen_doc.go b/vendor/github.com/superseriousbusiness/activity/streams/impl/forgefed/property_team/gen_doc.go
deleted file mode 100644
index 7ce672b00..000000000
--- a/vendor/github.com/superseriousbusiness/activity/streams/impl/forgefed/property_team/gen_doc.go
+++ /dev/null
@@ -1,17 +0,0 @@
-// 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/vendor/github.com/superseriousbusiness/activity/streams/impl/forgefed/property_team/gen_pkg.go b/vendor/github.com/superseriousbusiness/activity/streams/impl/forgefed/property_team/gen_pkg.go
deleted file mode 100644
index 9f4a133d0..000000000
--- a/vendor/github.com/superseriousbusiness/activity/streams/impl/forgefed/property_team/gen_pkg.go
+++ /dev/null
@@ -1,35 +0,0 @@
-// Code generated by astool. DO NOT EDIT.
-
-package propertyteam
-
-import vocab "github.com/superseriousbusiness/activity/streams/vocab"
-
-var mgr privateManager
-
-// privateManager abstracts the code-generated manager that provides access to
-// concrete implementations.
-type privateManager interface {
- // DeserializeCollectionActivityStreams returns the deserialization method
- // for the "ActivityStreamsCollection" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeCollectionActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsCollection, error)
- // DeserializeCollectionPageActivityStreams returns the deserialization
- // method for the "ActivityStreamsCollectionPage" non-functional
- // property in the vocabulary "ActivityStreams"
- DeserializeCollectionPageActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsCollectionPage, error)
- // DeserializeOrderedCollectionActivityStreams returns the deserialization
- // method for the "ActivityStreamsOrderedCollection" non-functional
- // property in the vocabulary "ActivityStreams"
- DeserializeOrderedCollectionActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsOrderedCollection, error)
- // DeserializeOrderedCollectionPageActivityStreams returns the
- // deserialization method for the
- // "ActivityStreamsOrderedCollectionPage" non-functional property in
- // the vocabulary "ActivityStreams"
- DeserializeOrderedCollectionPageActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsOrderedCollectionPage, error)
-}
-
-// SetManager sets the manager package-global variable. For internal use only, do
-// not use as part of Application behavior. Must be called at golang init time.
-func SetManager(m privateManager) {
- mgr = m
-}
diff --git a/vendor/github.com/superseriousbusiness/activity/streams/impl/forgefed/property_team/gen_property_forgefed_team.go b/vendor/github.com/superseriousbusiness/activity/streams/impl/forgefed/property_team/gen_property_forgefed_team.go
deleted file mode 100644
index f2f6fa657..000000000
--- a/vendor/github.com/superseriousbusiness/activity/streams/impl/forgefed/property_team/gen_property_forgefed_team.go
+++ /dev/null
@@ -1,360 +0,0 @@
-// Code generated by astool. DO NOT EDIT.
-
-package propertyteam
-
-import (
- "fmt"
- vocab "github.com/superseriousbusiness/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/vendor/github.com/superseriousbusiness/activity/streams/impl/forgefed/property_ticketstrackedby/gen_doc.go b/vendor/github.com/superseriousbusiness/activity/streams/impl/forgefed/property_ticketstrackedby/gen_doc.go
deleted file mode 100644
index c05d81ca3..000000000
--- a/vendor/github.com/superseriousbusiness/activity/streams/impl/forgefed/property_ticketstrackedby/gen_doc.go
+++ /dev/null
@@ -1,17 +0,0 @@
-// 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/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
deleted file mode 100644
index 4fb2a5c4e..000000000
--- a/vendor/github.com/superseriousbusiness/activity/streams/impl/forgefed/property_ticketstrackedby/gen_pkg.go
+++ /dev/null
@@ -1,261 +0,0 @@
-// Code generated by astool. DO NOT EDIT.
-
-package propertyticketstrackedby
-
-import vocab "github.com/superseriousbusiness/activity/streams/vocab"
-
-var mgr privateManager
-
-// privateManager abstracts the code-generated manager that provides access to
-// concrete implementations.
-type privateManager interface {
- // DeserializeAcceptActivityStreams returns the deserialization method for
- // the "ActivityStreamsAccept" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeAcceptActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAccept, error)
- // DeserializeActivityActivityStreams returns the deserialization method
- // for the "ActivityStreamsActivity" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeActivityActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsActivity, error)
- // DeserializeAddActivityStreams returns the deserialization method for
- // the "ActivityStreamsAdd" non-functional property in the vocabulary
- // "ActivityStreams"
- DeserializeAddActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAdd, error)
- // 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)
- // 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)
- // DeserializeQuestionActivityStreams returns the deserialization method
- // for the "ActivityStreamsQuestion" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeQuestionActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsQuestion, error)
- // DeserializeReadActivityStreams returns the deserialization method for
- // the "ActivityStreamsRead" non-functional property in the vocabulary
- // "ActivityStreams"
- DeserializeReadActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsRead, error)
- // DeserializeRejectActivityStreams returns the deserialization method for
- // the "ActivityStreamsReject" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeRejectActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsReject, error)
- // DeserializeRelationshipActivityStreams returns the deserialization
- // method for the "ActivityStreamsRelationship" non-functional
- // property in the vocabulary "ActivityStreams"
- DeserializeRelationshipActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsRelationship, error)
- // DeserializeRemoveActivityStreams returns the deserialization method for
- // the "ActivityStreamsRemove" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeRemoveActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsRemove, error)
- // DeserializeRepositoryForgeFed returns the deserialization method for
- // the "ForgeFedRepository" non-functional property in the vocabulary
- // "ForgeFed"
- DeserializeRepositoryForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedRepository, error)
- // DeserializeServiceActivityStreams returns the deserialization method
- // for the "ActivityStreamsService" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeServiceActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsService, error)
- // DeserializeTentativeAcceptActivityStreams returns the deserialization
- // method for the "ActivityStreamsTentativeAccept" non-functional
- // property in the vocabulary "ActivityStreams"
- DeserializeTentativeAcceptActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTentativeAccept, error)
- // DeserializeTentativeRejectActivityStreams returns the deserialization
- // method for the "ActivityStreamsTentativeReject" non-functional
- // property in the vocabulary "ActivityStreams"
- DeserializeTentativeRejectActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTentativeReject, error)
- // DeserializeTicketDependencyForgeFed returns the deserialization method
- // for the "ForgeFedTicketDependency" non-functional property in the
- // vocabulary "ForgeFed"
- DeserializeTicketDependencyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTicketDependency, error)
- // DeserializeTicketForgeFed returns the deserialization method for the
- // "ForgeFedTicket" non-functional property in the vocabulary
- // "ForgeFed"
- DeserializeTicketForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTicket, error)
- // DeserializeTombstoneActivityStreams returns the deserialization method
- // for the "ActivityStreamsTombstone" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeTombstoneActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTombstone, error)
- // DeserializeTravelActivityStreams returns the deserialization method for
- // the "ActivityStreamsTravel" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeTravelActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTravel, error)
- // DeserializeUndoActivityStreams returns the deserialization method for
- // the "ActivityStreamsUndo" non-functional property in the vocabulary
- // "ActivityStreams"
- DeserializeUndoActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsUndo, error)
- // DeserializeUpdateActivityStreams returns the deserialization method for
- // the "ActivityStreamsUpdate" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeUpdateActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsUpdate, error)
- // DeserializeVideoActivityStreams returns the deserialization method for
- // the "ActivityStreamsVideo" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeVideoActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsVideo, error)
- // DeserializeViewActivityStreams returns the deserialization method for
- // the "ActivityStreamsView" non-functional property in the vocabulary
- // "ActivityStreams"
- DeserializeViewActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsView, error)
-}
-
-// SetManager sets the manager package-global variable. For internal use only, do
-// not use as part of Application behavior. Must be called at golang init time.
-func SetManager(m privateManager) {
- mgr = m
-}
diff --git a/vendor/github.com/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
deleted file mode 100644
index 4b16f716b..000000000
--- a/vendor/github.com/superseriousbusiness/activity/streams/impl/forgefed/property_ticketstrackedby/gen_property_forgefed_ticketsTrackedBy.go
+++ /dev/null
@@ -1,2979 +0,0 @@
-// Code generated by astool. DO NOT EDIT.
-
-package propertyticketstrackedby
-
-import (
- "fmt"
- vocab "github.com/superseriousbusiness/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
- schemaPropertyValueMember vocab.SchemaPropertyValue
- 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.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,
- 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.schemaPropertyValueMember = 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
-}
-
-// 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 {
- 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.IsSchemaPropertyValue() {
- return this.GetSchemaPropertyValue()
- }
- 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.IsSchemaPropertyValue() ||
- 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
-}
-
-// 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 {
- 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.IsSchemaPropertyValue() {
- child = this.GetSchemaPropertyValue().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.IsSchemaPropertyValue() {
- return 42
- }
- if this.IsForgeFedPush() {
- return 43
- }
- if this.IsActivityStreamsQuestion() {
- return 44
- }
- if this.IsActivityStreamsRead() {
- return 45
- }
- if this.IsActivityStreamsReject() {
- return 46
- }
- if this.IsActivityStreamsRelationship() {
- return 47
- }
- if this.IsActivityStreamsRemove() {
- return 48
- }
- if this.IsForgeFedRepository() {
- return 49
- }
- if this.IsActivityStreamsService() {
- return 50
- }
- if this.IsActivityStreamsTentativeAccept() {
- return 51
- }
- if this.IsActivityStreamsTentativeReject() {
- return 52
- }
- if this.IsForgeFedTicket() {
- return 53
- }
- if this.IsForgeFedTicketDependency() {
- return 54
- }
- if this.IsActivityStreamsTombstone() {
- return 55
- }
- if this.IsActivityStreamsTravel() {
- return 56
- }
- if this.IsActivityStreamsUndo() {
- return 57
- }
- if this.IsActivityStreamsUpdate() {
- return 58
- }
- if this.IsActivityStreamsVideo() {
- return 59
- }
- if this.IsActivityStreamsView() {
- return 60
- }
- if this.IsIRI() {
- return -2
- }
- return -1
-}
-
-// LessThan compares two instances of this property with an arbitrary but stable
-// comparison. Applications should not use this because it is only meant to
-// help alternative implementations to go-fed to be able to normalize
-// nonfunctional properties.
-func (this 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.IsSchemaPropertyValue() {
- return this.GetSchemaPropertyValue().LessThan(o.GetSchemaPropertyValue())
- } 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.IsSchemaPropertyValue() {
- return this.GetSchemaPropertyValue().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
-}
-
-// 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) {
- 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.SchemaPropertyValue); ok {
- this.SetSchemaPropertyValue(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/vendor/github.com/superseriousbusiness/activity/streams/impl/forgefed/property_tracksticketsfor/gen_doc.go b/vendor/github.com/superseriousbusiness/activity/streams/impl/forgefed/property_tracksticketsfor/gen_doc.go
deleted file mode 100644
index 6b98a7452..000000000
--- a/vendor/github.com/superseriousbusiness/activity/streams/impl/forgefed/property_tracksticketsfor/gen_doc.go
+++ /dev/null
@@ -1,17 +0,0 @@
-// 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/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
deleted file mode 100644
index e17fb84b9..000000000
--- a/vendor/github.com/superseriousbusiness/activity/streams/impl/forgefed/property_tracksticketsfor/gen_pkg.go
+++ /dev/null
@@ -1,261 +0,0 @@
-// Code generated by astool. DO NOT EDIT.
-
-package propertytracksticketsfor
-
-import vocab "github.com/superseriousbusiness/activity/streams/vocab"
-
-var mgr privateManager
-
-// privateManager abstracts the code-generated manager that provides access to
-// concrete implementations.
-type privateManager interface {
- // DeserializeAcceptActivityStreams returns the deserialization method for
- // the "ActivityStreamsAccept" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeAcceptActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAccept, error)
- // DeserializeActivityActivityStreams returns the deserialization method
- // for the "ActivityStreamsActivity" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeActivityActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsActivity, error)
- // DeserializeAddActivityStreams returns the deserialization method for
- // the "ActivityStreamsAdd" non-functional property in the vocabulary
- // "ActivityStreams"
- DeserializeAddActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAdd, error)
- // 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)
- // 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)
- // DeserializeQuestionActivityStreams returns the deserialization method
- // for the "ActivityStreamsQuestion" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeQuestionActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsQuestion, error)
- // DeserializeReadActivityStreams returns the deserialization method for
- // the "ActivityStreamsRead" non-functional property in the vocabulary
- // "ActivityStreams"
- DeserializeReadActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsRead, error)
- // DeserializeRejectActivityStreams returns the deserialization method for
- // the "ActivityStreamsReject" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeRejectActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsReject, error)
- // DeserializeRelationshipActivityStreams returns the deserialization
- // method for the "ActivityStreamsRelationship" non-functional
- // property in the vocabulary "ActivityStreams"
- DeserializeRelationshipActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsRelationship, error)
- // DeserializeRemoveActivityStreams returns the deserialization method for
- // the "ActivityStreamsRemove" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeRemoveActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsRemove, error)
- // DeserializeRepositoryForgeFed returns the deserialization method for
- // the "ForgeFedRepository" non-functional property in the vocabulary
- // "ForgeFed"
- DeserializeRepositoryForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedRepository, error)
- // DeserializeServiceActivityStreams returns the deserialization method
- // for the "ActivityStreamsService" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeServiceActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsService, error)
- // DeserializeTentativeAcceptActivityStreams returns the deserialization
- // method for the "ActivityStreamsTentativeAccept" non-functional
- // property in the vocabulary "ActivityStreams"
- DeserializeTentativeAcceptActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTentativeAccept, error)
- // DeserializeTentativeRejectActivityStreams returns the deserialization
- // method for the "ActivityStreamsTentativeReject" non-functional
- // property in the vocabulary "ActivityStreams"
- DeserializeTentativeRejectActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTentativeReject, error)
- // DeserializeTicketDependencyForgeFed returns the deserialization method
- // for the "ForgeFedTicketDependency" non-functional property in the
- // vocabulary "ForgeFed"
- DeserializeTicketDependencyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTicketDependency, error)
- // DeserializeTicketForgeFed returns the deserialization method for the
- // "ForgeFedTicket" non-functional property in the vocabulary
- // "ForgeFed"
- DeserializeTicketForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTicket, error)
- // DeserializeTombstoneActivityStreams returns the deserialization method
- // for the "ActivityStreamsTombstone" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeTombstoneActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTombstone, error)
- // DeserializeTravelActivityStreams returns the deserialization method for
- // the "ActivityStreamsTravel" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeTravelActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTravel, error)
- // DeserializeUndoActivityStreams returns the deserialization method for
- // the "ActivityStreamsUndo" non-functional property in the vocabulary
- // "ActivityStreams"
- DeserializeUndoActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsUndo, error)
- // DeserializeUpdateActivityStreams returns the deserialization method for
- // the "ActivityStreamsUpdate" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeUpdateActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsUpdate, error)
- // DeserializeVideoActivityStreams returns the deserialization method for
- // the "ActivityStreamsVideo" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeVideoActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsVideo, error)
- // DeserializeViewActivityStreams returns the deserialization method for
- // the "ActivityStreamsView" non-functional property in the vocabulary
- // "ActivityStreams"
- DeserializeViewActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsView, error)
-}
-
-// SetManager sets the manager package-global variable. For internal use only, do
-// not use as part of Application behavior. Must be called at golang init time.
-func SetManager(m privateManager) {
- mgr = m
-}
diff --git a/vendor/github.com/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
deleted file mode 100644
index 858a6f25e..000000000
--- a/vendor/github.com/superseriousbusiness/activity/streams/impl/forgefed/property_tracksticketsfor/gen_property_forgefed_tracksTicketsFor.go
+++ /dev/null
@@ -1,6986 +0,0 @@
-// Code generated by astool. DO NOT EDIT.
-
-package propertytracksticketsfor
-
-import (
- "fmt"
- vocab "github.com/superseriousbusiness/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
- schemaPropertyValueMember vocab.SchemaPropertyValue
- 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.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,
- 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
-}
-
-// 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 {
- 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.IsSchemaPropertyValue() {
- return this.GetSchemaPropertyValue()
- }
- 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.IsSchemaPropertyValue() ||
- 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
-}
-
-// 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 {
- 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.IsSchemaPropertyValue() {
- child = this.GetSchemaPropertyValue().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.IsSchemaPropertyValue() {
- return 42
- }
- if this.IsForgeFedPush() {
- return 43
- }
- if this.IsActivityStreamsQuestion() {
- return 44
- }
- if this.IsActivityStreamsRead() {
- return 45
- }
- if this.IsActivityStreamsReject() {
- return 46
- }
- if this.IsActivityStreamsRelationship() {
- return 47
- }
- if this.IsActivityStreamsRemove() {
- return 48
- }
- if this.IsForgeFedRepository() {
- return 49
- }
- if this.IsActivityStreamsService() {
- return 50
- }
- if this.IsActivityStreamsTentativeAccept() {
- return 51
- }
- if this.IsActivityStreamsTentativeReject() {
- return 52
- }
- if this.IsForgeFedTicket() {
- return 53
- }
- if this.IsForgeFedTicketDependency() {
- return 54
- }
- if this.IsActivityStreamsTombstone() {
- return 55
- }
- if this.IsActivityStreamsTravel() {
- return 56
- }
- if this.IsActivityStreamsUndo() {
- return 57
- }
- if this.IsActivityStreamsUpdate() {
- return 58
- }
- if this.IsActivityStreamsVideo() {
- return 59
- }
- if this.IsActivityStreamsView() {
- return 60
- }
- if this.IsIRI() {
- return -2
- }
- return -1
-}
-
-// LessThan compares two instances of this property with an arbitrary but stable
-// comparison. Applications should not use this because it is only meant to
-// help alternative implementations to go-fed to be able to normalize
-// nonfunctional properties.
-func (this 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.IsSchemaPropertyValue() {
- return this.GetSchemaPropertyValue().LessThan(o.GetSchemaPropertyValue())
- } 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
-}
-
-// 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) {
- 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.SchemaPropertyValue); ok {
- this.SetSchemaPropertyValue(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.schemaPropertyValueMember = 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.IsSchemaPropertyValue() {
- return this.GetSchemaPropertyValue().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,
- })
-}
-
-// 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) {
- 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
- }
-}
-
-// 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.
-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].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 == 44 {
- lhs := this.properties[i].GetActivityStreamsQuestion()
- rhs := this.properties[j].GetActivityStreamsQuestion()
- return lhs.LessThan(rhs)
- } else if idx1 == 45 {
- lhs := this.properties[i].GetActivityStreamsRead()
- rhs := this.properties[j].GetActivityStreamsRead()
- return lhs.LessThan(rhs)
- } else if idx1 == 46 {
- lhs := this.properties[i].GetActivityStreamsReject()
- rhs := this.properties[j].GetActivityStreamsReject()
- return lhs.LessThan(rhs)
- } else if idx1 == 47 {
- lhs := this.properties[i].GetActivityStreamsRelationship()
- rhs := this.properties[j].GetActivityStreamsRelationship()
- return lhs.LessThan(rhs)
- } else if idx1 == 48 {
- lhs := this.properties[i].GetActivityStreamsRemove()
- rhs := this.properties[j].GetActivityStreamsRemove()
- return lhs.LessThan(rhs)
- } else if idx1 == 49 {
- lhs := this.properties[i].GetForgeFedRepository()
- rhs := this.properties[j].GetForgeFedRepository()
- return lhs.LessThan(rhs)
- } else if idx1 == 50 {
- lhs := this.properties[i].GetActivityStreamsService()
- rhs := this.properties[j].GetActivityStreamsService()
- return lhs.LessThan(rhs)
- } else if idx1 == 51 {
- lhs := this.properties[i].GetActivityStreamsTentativeAccept()
- rhs := this.properties[j].GetActivityStreamsTentativeAccept()
- return lhs.LessThan(rhs)
- } else if idx1 == 52 {
- lhs := this.properties[i].GetActivityStreamsTentativeReject()
- rhs := this.properties[j].GetActivityStreamsTentativeReject()
- return lhs.LessThan(rhs)
- } else if idx1 == 53 {
- lhs := this.properties[i].GetForgeFedTicket()
- rhs := this.properties[j].GetForgeFedTicket()
- return lhs.LessThan(rhs)
- } else if idx1 == 54 {
- lhs := this.properties[i].GetForgeFedTicketDependency()
- rhs := this.properties[j].GetForgeFedTicketDependency()
- return lhs.LessThan(rhs)
- } else if idx1 == 55 {
- lhs := this.properties[i].GetActivityStreamsTombstone()
- rhs := this.properties[j].GetActivityStreamsTombstone()
- return lhs.LessThan(rhs)
- } else if idx1 == 56 {
- lhs := this.properties[i].GetActivityStreamsTravel()
- rhs := this.properties[j].GetActivityStreamsTravel()
- return lhs.LessThan(rhs)
- } else if idx1 == 57 {
- lhs := this.properties[i].GetActivityStreamsUndo()
- rhs := this.properties[j].GetActivityStreamsUndo()
- return lhs.LessThan(rhs)
- } else if idx1 == 58 {
- lhs := this.properties[i].GetActivityStreamsUpdate()
- rhs := this.properties[j].GetActivityStreamsUpdate()
- return lhs.LessThan(rhs)
- } else if idx1 == 59 {
- lhs := this.properties[i].GetActivityStreamsVideo()
- rhs := this.properties[j].GetActivityStreamsVideo()
- return lhs.LessThan(rhs)
- } else if idx1 == 60 {
- lhs := this.properties[i].GetActivityStreamsView()
- rhs := this.properties[j].GetActivityStreamsView()
- return lhs.LessThan(rhs)
- } else if idx1 == -2 {
- lhs := this.properties[i].GetIRI()
- rhs := this.properties[j].GetIRI()
- return lhs.String() < rhs.String()
- }
- }
- return false
-}
-
-// LessThan compares two instances of this property with an arbitrary but stable
-// comparison. Applications should not use this because it is only meant to
-// help alternative implementations to go-fed to be able to normalize
-// nonfunctional properties.
-func (this 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
- }
-}
-
-// 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) {
- 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,
- }
-}
-
-// 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.
-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/vendor/github.com/superseriousbusiness/activity/streams/impl/forgefed/type_branch/gen_doc.go b/vendor/github.com/superseriousbusiness/activity/streams/impl/forgefed/type_branch/gen_doc.go
deleted file mode 100644
index c6836a19d..000000000
--- a/vendor/github.com/superseriousbusiness/activity/streams/impl/forgefed/type_branch/gen_doc.go
+++ /dev/null
@@ -1,17 +0,0 @@
-// 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/vendor/github.com/superseriousbusiness/activity/streams/impl/forgefed/type_branch/gen_pkg.go b/vendor/github.com/superseriousbusiness/activity/streams/impl/forgefed/type_branch/gen_pkg.go
deleted file mode 100644
index c29677046..000000000
--- a/vendor/github.com/superseriousbusiness/activity/streams/impl/forgefed/type_branch/gen_pkg.go
+++ /dev/null
@@ -1,195 +0,0 @@
-// Code generated by astool. DO NOT EDIT.
-
-package typebranch
-
-import vocab "github.com/superseriousbusiness/activity/streams/vocab"
-
-var mgr privateManager
-
-var typePropertyConstructor func() vocab.JSONLDTypeProperty
-
-// privateManager abstracts the code-generated manager that provides access to
-// concrete implementations.
-type privateManager interface {
- // DeserializeAltitudePropertyActivityStreams returns the deserialization
- // method for the "ActivityStreamsAltitudeProperty" non-functional
- // property in the vocabulary "ActivityStreams"
- DeserializeAltitudePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAltitudeProperty, error)
- // DeserializeAttachmentPropertyActivityStreams returns the
- // deserialization method for the "ActivityStreamsAttachmentProperty"
- // non-functional property in the vocabulary "ActivityStreams"
- DeserializeAttachmentPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAttachmentProperty, error)
- // DeserializeAttributedToPropertyActivityStreams returns the
- // deserialization method for the
- // "ActivityStreamsAttributedToProperty" non-functional property in
- // the vocabulary "ActivityStreams"
- DeserializeAttributedToPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAttributedToProperty, error)
- // DeserializeAudiencePropertyActivityStreams returns the deserialization
- // method for the "ActivityStreamsAudienceProperty" non-functional
- // property in the vocabulary "ActivityStreams"
- DeserializeAudiencePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAudienceProperty, error)
- // DeserializeBccPropertyActivityStreams returns the deserialization
- // method for the "ActivityStreamsBccProperty" non-functional property
- // in the vocabulary "ActivityStreams"
- DeserializeBccPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsBccProperty, error)
- // DeserializeBtoPropertyActivityStreams returns the deserialization
- // method for the "ActivityStreamsBtoProperty" non-functional property
- // in the vocabulary "ActivityStreams"
- DeserializeBtoPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsBtoProperty, error)
- // DeserializeCcPropertyActivityStreams returns the deserialization method
- // for the "ActivityStreamsCcProperty" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeCcPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsCcProperty, error)
- // DeserializeContentPropertyActivityStreams returns the deserialization
- // method for the "ActivityStreamsContentProperty" non-functional
- // property in the vocabulary "ActivityStreams"
- DeserializeContentPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsContentProperty, error)
- // DeserializeContextPropertyActivityStreams returns the deserialization
- // method for the "ActivityStreamsContextProperty" non-functional
- // property in the vocabulary "ActivityStreams"
- DeserializeContextPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsContextProperty, error)
- // DeserializeDurationPropertyActivityStreams returns the deserialization
- // method for the "ActivityStreamsDurationProperty" non-functional
- // property in the vocabulary "ActivityStreams"
- DeserializeDurationPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsDurationProperty, error)
- // DeserializeEndTimePropertyActivityStreams returns the deserialization
- // method for the "ActivityStreamsEndTimeProperty" non-functional
- // property in the vocabulary "ActivityStreams"
- DeserializeEndTimePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsEndTimeProperty, error)
- // DeserializeGeneratorPropertyActivityStreams returns the deserialization
- // method for the "ActivityStreamsGeneratorProperty" non-functional
- // property in the vocabulary "ActivityStreams"
- DeserializeGeneratorPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsGeneratorProperty, error)
- // DeserializeIconPropertyActivityStreams returns the deserialization
- // method for the "ActivityStreamsIconProperty" non-functional
- // property in the vocabulary "ActivityStreams"
- DeserializeIconPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsIconProperty, error)
- // DeserializeIdPropertyJSONLD returns the deserialization method for the
- // "JSONLDIdProperty" non-functional property in the vocabulary
- // "JSONLD"
- DeserializeIdPropertyJSONLD() func(map[string]interface{}, map[string]string) (vocab.JSONLDIdProperty, error)
- // DeserializeImagePropertyActivityStreams returns the deserialization
- // method for the "ActivityStreamsImageProperty" non-functional
- // property in the vocabulary "ActivityStreams"
- DeserializeImagePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsImageProperty, error)
- // DeserializeInReplyToPropertyActivityStreams returns the deserialization
- // method for the "ActivityStreamsInReplyToProperty" non-functional
- // property in the vocabulary "ActivityStreams"
- DeserializeInReplyToPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsInReplyToProperty, error)
- // DeserializeLikesPropertyActivityStreams returns the deserialization
- // method for the "ActivityStreamsLikesProperty" non-functional
- // property in the vocabulary "ActivityStreams"
- DeserializeLikesPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLikesProperty, error)
- // DeserializeLocationPropertyActivityStreams returns the deserialization
- // method for the "ActivityStreamsLocationProperty" non-functional
- // property in the vocabulary "ActivityStreams"
- DeserializeLocationPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLocationProperty, error)
- // DeserializeMediaTypePropertyActivityStreams returns the deserialization
- // method for the "ActivityStreamsMediaTypeProperty" non-functional
- // property in the vocabulary "ActivityStreams"
- DeserializeMediaTypePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsMediaTypeProperty, error)
- // DeserializeNamePropertyActivityStreams returns the deserialization
- // method for the "ActivityStreamsNameProperty" non-functional
- // property in the vocabulary "ActivityStreams"
- DeserializeNamePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsNameProperty, error)
- // DeserializeObjectPropertyActivityStreams returns the deserialization
- // method for the "ActivityStreamsObjectProperty" non-functional
- // property in the vocabulary "ActivityStreams"
- DeserializeObjectPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsObjectProperty, error)
- // DeserializePreviewPropertyActivityStreams returns the deserialization
- // method for the "ActivityStreamsPreviewProperty" non-functional
- // property in the vocabulary "ActivityStreams"
- DeserializePreviewPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsPreviewProperty, error)
- // DeserializePublishedPropertyActivityStreams returns the deserialization
- // method for the "ActivityStreamsPublishedProperty" non-functional
- // property in the vocabulary "ActivityStreams"
- DeserializePublishedPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsPublishedProperty, error)
- // 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)
- // DeserializeSensitivePropertyActivityStreams returns the deserialization
- // method for the "ActivityStreamsSensitiveProperty" non-functional
- // property in the vocabulary "ActivityStreams"
- DeserializeSensitivePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSensitiveProperty, error)
- // DeserializeSharesPropertyActivityStreams returns the deserialization
- // method for the "ActivityStreamsSharesProperty" non-functional
- // property in the vocabulary "ActivityStreams"
- DeserializeSharesPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSharesProperty, error)
- // DeserializeSourcePropertyActivityStreams returns the deserialization
- // method for the "ActivityStreamsSourceProperty" non-functional
- // property in the vocabulary "ActivityStreams"
- DeserializeSourcePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSourceProperty, error)
- // DeserializeStartTimePropertyActivityStreams returns the deserialization
- // method for the "ActivityStreamsStartTimeProperty" non-functional
- // property in the vocabulary "ActivityStreams"
- DeserializeStartTimePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsStartTimeProperty, error)
- // DeserializeSummaryPropertyActivityStreams returns the deserialization
- // method for the "ActivityStreamsSummaryProperty" non-functional
- // property in the vocabulary "ActivityStreams"
- DeserializeSummaryPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSummaryProperty, error)
- // DeserializeTagPropertyActivityStreams returns the deserialization
- // method for the "ActivityStreamsTagProperty" non-functional property
- // in the vocabulary "ActivityStreams"
- DeserializeTagPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTagProperty, error)
- // DeserializeTeamPropertyForgeFed returns the deserialization method for
- // the "ForgeFedTeamProperty" non-functional property in the
- // vocabulary "ForgeFed"
- DeserializeTeamPropertyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTeamProperty, error)
- // DeserializeTicketsTrackedByPropertyForgeFed returns the deserialization
- // method for the "ForgeFedTicketsTrackedByProperty" non-functional
- // property in the vocabulary "ForgeFed"
- DeserializeTicketsTrackedByPropertyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTicketsTrackedByProperty, error)
- // DeserializeToPropertyActivityStreams returns the deserialization method
- // for the "ActivityStreamsToProperty" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeToPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsToProperty, error)
- // DeserializeTracksTicketsForPropertyForgeFed returns the deserialization
- // method for the "ForgeFedTracksTicketsForProperty" non-functional
- // property in the vocabulary "ForgeFed"
- DeserializeTracksTicketsForPropertyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTracksTicketsForProperty, error)
- // DeserializeTypePropertyJSONLD returns the deserialization method for
- // the "JSONLDTypeProperty" non-functional property in the vocabulary
- // "JSONLD"
- DeserializeTypePropertyJSONLD() func(map[string]interface{}, map[string]string) (vocab.JSONLDTypeProperty, error)
- // DeserializeUpdatedPropertyActivityStreams returns the deserialization
- // method for the "ActivityStreamsUpdatedProperty" non-functional
- // property in the vocabulary "ActivityStreams"
- DeserializeUpdatedPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsUpdatedProperty, error)
- // DeserializeUrlPropertyActivityStreams returns the deserialization
- // method for the "ActivityStreamsUrlProperty" non-functional property
- // in the vocabulary "ActivityStreams"
- DeserializeUrlPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsUrlProperty, error)
-}
-
-// jsonldContexter is a private interface to determine the JSON-LD contexts and
-// aliases needed for functional and non-functional properties. It is a helper
-// interface for this implementation.
-type jsonldContexter interface {
- // JSONLDContext returns the JSONLD URIs required in the context string
- // for this property and the specific values that are set. The value
- // in the map is the alias used to import the property's value or
- // values.
- JSONLDContext() map[string]string
-}
-
-// SetManager sets the manager package-global variable. For internal use only, do
-// not use as part of Application behavior. Must be called at golang init time.
-func SetManager(m privateManager) {
- mgr = m
-}
-
-// SetTypePropertyConstructor sets the "type" property's constructor in the
-// package-global variable. For internal use only, do not use as part of
-// Application behavior. Must be called at golang init time. Permits
-// ActivityStreams types to correctly set their "type" property at
-// construction time, so users don't have to remember to do so each time. It
-// is dependency injected so other go-fed compatible implementations could
-// inject their own type.
-func SetTypePropertyConstructor(f func() vocab.JSONLDTypeProperty) {
- typePropertyConstructor = f
-}
diff --git a/vendor/github.com/superseriousbusiness/activity/streams/impl/forgefed/type_branch/gen_type_forgefed_branch.go b/vendor/github.com/superseriousbusiness/activity/streams/impl/forgefed/type_branch/gen_type_forgefed_branch.go
deleted file mode 100644
index ab815ba64..000000000
--- a/vendor/github.com/superseriousbusiness/activity/streams/impl/forgefed/type_branch/gen_type_forgefed_branch.go
+++ /dev/null
@@ -1,1820 +0,0 @@
-// Code generated by astool. DO NOT EDIT.
-
-package typebranch
-
-import (
- "fmt"
- vocab "github.com/superseriousbusiness/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.org/luke/myrepo",
-// "id": "https://example.org/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
- ActivityStreamsSensitive vocab.ActivityStreamsSensitiveProperty
- 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.DeserializeSensitivePropertyActivityStreams()(m, aliasMap); err != nil {
- return nil, err
- } else if p != nil {
- this.ActivityStreamsSensitive = p
- }
- if p, err := mgr.DeserializeSharesPropertyActivityStreams()(m, aliasMap); err != nil {
- return nil, err
- } else if p != nil {
- this.ActivityStreamsShares = p
- }
- if p, err := mgr.DeserializeSourcePropertyActivityStreams()(m, aliasMap); err != nil {
- return nil, err
- } else if p != nil {
- this.ActivityStreamsSource = p
- }
- if p, err := mgr.DeserializeStartTimePropertyActivityStreams()(m, aliasMap); err != nil {
- return nil, err
- } else if p != nil {
- this.ActivityStreamsStartTime = p
- }
- if p, err := mgr.DeserializeSummaryPropertyActivityStreams()(m, aliasMap); err != nil {
- return nil, err
- } else if p != nil {
- this.ActivityStreamsSummary = p
- }
- if p, err := mgr.DeserializeTagPropertyActivityStreams()(m, aliasMap); err != nil {
- return nil, err
- } else if p != nil {
- this.ActivityStreamsTag = p
- }
- if p, err := mgr.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 == "sensitive" {
- continue
- } else if k == "shares" {
- continue
- } else if k == "source" {
- continue
- } else if k == "startTime" {
- continue
- } else if k == "summary" {
- continue
- } else if k == "summaryMap" {
- continue
- } else if k == "tag" {
- continue
- } else if k == "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
-}
-
-// GetActivityStreamsSensitive returns the "sensitive" property if it exists, and
-// nil otherwise.
-func (this ForgeFedBranch) GetActivityStreamsSensitive() vocab.ActivityStreamsSensitiveProperty {
- return this.ActivityStreamsSensitive
-}
-
-// 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.ActivityStreamsSensitive, m)
- m = this.helperJSONLDContext(this.ActivityStreamsShares, m)
- m = this.helperJSONLDContext(this.ActivityStreamsSource, m)
- m = this.helperJSONLDContext(this.ActivityStreamsStartTime, m)
- m = this.helperJSONLDContext(this.ActivityStreamsSummary, m)
- m = this.helperJSONLDContext(this.ActivityStreamsTag, m)
- m = this.helperJSONLDContext(this.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 "sensitive"
- if lhs, rhs := this.ActivityStreamsSensitive, o.GetActivityStreamsSensitive(); lhs != nil && rhs != nil {
- if lhs.LessThan(rhs) {
- return true
- } else if rhs.LessThan(lhs) {
- return false
- }
- } else if lhs == nil && rhs != nil {
- // Nil is less than anything else
- return true
- } else if rhs != nil && rhs == nil {
- // Anything else is greater than nil
- return false
- } // Else: Both are nil
- // Compare property "shares"
- if lhs, rhs := this.ActivityStreamsShares, o.GetActivityStreamsShares(); lhs != nil && rhs != nil {
- if lhs.LessThan(rhs) {
- return true
- } else if rhs.LessThan(lhs) {
- return false
- }
- } else if lhs == nil && rhs != nil {
- // Nil is less than anything else
- return true
- } else if rhs != nil && rhs == nil {
- // Anything else is greater than nil
- return false
- } // Else: Both are nil
- // Compare property "source"
- if lhs, rhs := this.ActivityStreamsSource, o.GetActivityStreamsSource(); lhs != nil && rhs != nil {
- if lhs.LessThan(rhs) {
- return true
- } else if rhs.LessThan(lhs) {
- return false
- }
- } else if lhs == nil && rhs != nil {
- // Nil is less than anything else
- return true
- } else if rhs != nil && rhs == nil {
- // Anything else is greater than nil
- return false
- } // Else: Both are nil
- // Compare property "startTime"
- if lhs, rhs := this.ActivityStreamsStartTime, o.GetActivityStreamsStartTime(); lhs != nil && rhs != nil {
- if lhs.LessThan(rhs) {
- return true
- } else if rhs.LessThan(lhs) {
- return false
- }
- } else if lhs == nil && rhs != nil {
- // Nil is less than anything else
- return true
- } else if rhs != nil && rhs == nil {
- // Anything else is greater than nil
- return false
- } // Else: Both are nil
- // Compare property "summary"
- if lhs, rhs := this.ActivityStreamsSummary, o.GetActivityStreamsSummary(); lhs != nil && rhs != nil {
- if lhs.LessThan(rhs) {
- return true
- } else if rhs.LessThan(lhs) {
- return false
- }
- } else if lhs == nil && rhs != nil {
- // Nil is less than anything else
- return true
- } else if rhs != nil && rhs == nil {
- // Anything else is greater than nil
- return false
- } // Else: Both are nil
- // Compare property "tag"
- if lhs, rhs := this.ActivityStreamsTag, o.GetActivityStreamsTag(); lhs != nil && rhs != nil {
- if lhs.LessThan(rhs) {
- return true
- } else if rhs.LessThan(lhs) {
- return false
- }
- } else if lhs == nil && rhs != nil {
- // Nil is less than anything else
- return true
- } else if rhs != nil && rhs == nil {
- // Anything else is greater than nil
- return false
- } // Else: Both are nil
- // Compare property "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 "sensitive"
- if this.ActivityStreamsSensitive != nil {
- if i, err := this.ActivityStreamsSensitive.Serialize(); err != nil {
- return nil, err
- } else if i != nil {
- m[this.ActivityStreamsSensitive.Name()] = i
- }
- }
- // Maybe serialize property "shares"
- if this.ActivityStreamsShares != nil {
- if i, err := this.ActivityStreamsShares.Serialize(); err != nil {
- return nil, err
- } else if i != nil {
- m[this.ActivityStreamsShares.Name()] = i
- }
- }
- // Maybe serialize property "source"
- if this.ActivityStreamsSource != nil {
- if i, err := this.ActivityStreamsSource.Serialize(); err != nil {
- return nil, err
- } else if i != nil {
- m[this.ActivityStreamsSource.Name()] = i
- }
- }
- // Maybe serialize property "startTime"
- if this.ActivityStreamsStartTime != nil {
- if i, err := this.ActivityStreamsStartTime.Serialize(); err != nil {
- return nil, err
- } else if i != nil {
- m[this.ActivityStreamsStartTime.Name()] = i
- }
- }
- // Maybe serialize property "summary"
- if this.ActivityStreamsSummary != nil {
- if i, err := this.ActivityStreamsSummary.Serialize(); err != nil {
- return nil, err
- } else if i != nil {
- m[this.ActivityStreamsSummary.Name()] = i
- }
- }
- // Maybe serialize property "tag"
- if this.ActivityStreamsTag != nil {
- if i, err := this.ActivityStreamsTag.Serialize(); err != nil {
- return nil, err
- } else if i != nil {
- m[this.ActivityStreamsTag.Name()] = i
- }
- }
- // Maybe serialize property "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
-}
-
-// SetActivityStreamsSensitive sets the "sensitive" property.
-func (this *ForgeFedBranch) SetActivityStreamsSensitive(i vocab.ActivityStreamsSensitiveProperty) {
- this.ActivityStreamsSensitive = 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/vendor/github.com/superseriousbusiness/activity/streams/impl/forgefed/type_commit/gen_doc.go b/vendor/github.com/superseriousbusiness/activity/streams/impl/forgefed/type_commit/gen_doc.go
deleted file mode 100644
index d9954fc19..000000000
--- a/vendor/github.com/superseriousbusiness/activity/streams/impl/forgefed/type_commit/gen_doc.go
+++ /dev/null
@@ -1,17 +0,0 @@
-// 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/vendor/github.com/superseriousbusiness/activity/streams/impl/forgefed/type_commit/gen_pkg.go b/vendor/github.com/superseriousbusiness/activity/streams/impl/forgefed/type_commit/gen_pkg.go
deleted file mode 100644
index a2d2fe25b..000000000
--- a/vendor/github.com/superseriousbusiness/activity/streams/impl/forgefed/type_commit/gen_pkg.go
+++ /dev/null
@@ -1,219 +0,0 @@
-// Code generated by astool. DO NOT EDIT.
-
-package typecommit
-
-import vocab "github.com/superseriousbusiness/activity/streams/vocab"
-
-var mgr privateManager
-
-var typePropertyConstructor func() vocab.JSONLDTypeProperty
-
-// privateManager abstracts the code-generated manager that provides access to
-// concrete implementations.
-type privateManager interface {
- // DeserializeAltitudePropertyActivityStreams returns the deserialization
- // method for the "ActivityStreamsAltitudeProperty" non-functional
- // property in the vocabulary "ActivityStreams"
- DeserializeAltitudePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAltitudeProperty, error)
- // DeserializeAttachmentPropertyActivityStreams returns the
- // deserialization method for the "ActivityStreamsAttachmentProperty"
- // non-functional property in the vocabulary "ActivityStreams"
- DeserializeAttachmentPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAttachmentProperty, error)
- // DeserializeAttributedToPropertyActivityStreams returns the
- // deserialization method for the
- // "ActivityStreamsAttributedToProperty" non-functional property in
- // the vocabulary "ActivityStreams"
- DeserializeAttributedToPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAttributedToProperty, error)
- // DeserializeAudiencePropertyActivityStreams returns the deserialization
- // method for the "ActivityStreamsAudienceProperty" non-functional
- // property in the vocabulary "ActivityStreams"
- DeserializeAudiencePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAudienceProperty, error)
- // DeserializeBccPropertyActivityStreams returns the deserialization
- // method for the "ActivityStreamsBccProperty" non-functional property
- // in the vocabulary "ActivityStreams"
- DeserializeBccPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsBccProperty, error)
- // DeserializeBtoPropertyActivityStreams returns the deserialization
- // method for the "ActivityStreamsBtoProperty" non-functional property
- // in the vocabulary "ActivityStreams"
- DeserializeBtoPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsBtoProperty, error)
- // DeserializeCcPropertyActivityStreams returns the deserialization method
- // for the "ActivityStreamsCcProperty" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeCcPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsCcProperty, error)
- // 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)
- // DeserializeSensitivePropertyActivityStreams returns the deserialization
- // method for the "ActivityStreamsSensitiveProperty" non-functional
- // property in the vocabulary "ActivityStreams"
- DeserializeSensitivePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSensitiveProperty, error)
- // DeserializeSharesPropertyActivityStreams returns the deserialization
- // method for the "ActivityStreamsSharesProperty" non-functional
- // property in the vocabulary "ActivityStreams"
- DeserializeSharesPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSharesProperty, error)
- // DeserializeSourcePropertyActivityStreams returns the deserialization
- // method for the "ActivityStreamsSourceProperty" non-functional
- // property in the vocabulary "ActivityStreams"
- DeserializeSourcePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSourceProperty, error)
- // DeserializeStartTimePropertyActivityStreams returns the deserialization
- // method for the "ActivityStreamsStartTimeProperty" non-functional
- // property in the vocabulary "ActivityStreams"
- DeserializeStartTimePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsStartTimeProperty, error)
- // DeserializeSummaryPropertyActivityStreams returns the deserialization
- // method for the "ActivityStreamsSummaryProperty" non-functional
- // property in the vocabulary "ActivityStreams"
- DeserializeSummaryPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSummaryProperty, error)
- // DeserializeTagPropertyActivityStreams returns the deserialization
- // method for the "ActivityStreamsTagProperty" non-functional property
- // in the vocabulary "ActivityStreams"
- DeserializeTagPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTagProperty, error)
- // DeserializeTeamPropertyForgeFed returns the deserialization method for
- // the "ForgeFedTeamProperty" non-functional property in the
- // vocabulary "ForgeFed"
- DeserializeTeamPropertyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTeamProperty, error)
- // DeserializeTicketsTrackedByPropertyForgeFed returns the deserialization
- // method for the "ForgeFedTicketsTrackedByProperty" non-functional
- // property in the vocabulary "ForgeFed"
- DeserializeTicketsTrackedByPropertyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTicketsTrackedByProperty, error)
- // DeserializeToPropertyActivityStreams returns the deserialization method
- // for the "ActivityStreamsToProperty" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeToPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsToProperty, error)
- // DeserializeTracksTicketsForPropertyForgeFed returns the deserialization
- // method for the "ForgeFedTracksTicketsForProperty" non-functional
- // property in the vocabulary "ForgeFed"
- DeserializeTracksTicketsForPropertyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTracksTicketsForProperty, error)
- // DeserializeTypePropertyJSONLD returns the deserialization method for
- // the "JSONLDTypeProperty" non-functional property in the vocabulary
- // "JSONLD"
- DeserializeTypePropertyJSONLD() func(map[string]interface{}, map[string]string) (vocab.JSONLDTypeProperty, error)
- // DeserializeUpdatedPropertyActivityStreams returns the deserialization
- // method for the "ActivityStreamsUpdatedProperty" non-functional
- // property in the vocabulary "ActivityStreams"
- DeserializeUpdatedPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsUpdatedProperty, error)
- // DeserializeUrlPropertyActivityStreams returns the deserialization
- // method for the "ActivityStreamsUrlProperty" non-functional property
- // in the vocabulary "ActivityStreams"
- DeserializeUrlPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsUrlProperty, error)
-}
-
-// jsonldContexter is a private interface to determine the JSON-LD contexts and
-// aliases needed for functional and non-functional properties. It is a helper
-// interface for this implementation.
-type jsonldContexter interface {
- // JSONLDContext returns the JSONLD URIs required in the context string
- // for this property and the specific values that are set. The value
- // in the map is the alias used to import the property's value or
- // values.
- JSONLDContext() map[string]string
-}
-
-// SetManager sets the manager package-global variable. For internal use only, do
-// not use as part of Application behavior. Must be called at golang init time.
-func SetManager(m privateManager) {
- mgr = m
-}
-
-// SetTypePropertyConstructor sets the "type" property's constructor in the
-// package-global variable. For internal use only, do not use as part of
-// Application behavior. Must be called at golang init time. Permits
-// ActivityStreams types to correctly set their "type" property at
-// construction time, so users don't have to remember to do so each time. It
-// is dependency injected so other go-fed compatible implementations could
-// inject their own type.
-func SetTypePropertyConstructor(f func() vocab.JSONLDTypeProperty) {
- typePropertyConstructor = f
-}
diff --git a/vendor/github.com/superseriousbusiness/activity/streams/impl/forgefed/type_commit/gen_type_forgefed_commit.go b/vendor/github.com/superseriousbusiness/activity/streams/impl/forgefed/type_commit/gen_type_forgefed_commit.go
deleted file mode 100644
index 593217f69..000000000
--- a/vendor/github.com/superseriousbusiness/activity/streams/impl/forgefed/type_commit/gen_type_forgefed_commit.go
+++ /dev/null
@@ -1,2082 +0,0 @@
-// Code generated by astool. DO NOT EDIT.
-
-package typecommit
-
-import (
- "fmt"
- vocab "github.com/superseriousbusiness/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.org/bob",
-// "committed": "2019-07-26T23:45:01Z",
-// "committedBy": "https://example.org/alice",
-// "context": "https://example.org/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.org/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
- ActivityStreamsSensitive vocab.ActivityStreamsSensitiveProperty
- 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.DeserializeSensitivePropertyActivityStreams()(m, aliasMap); err != nil {
- return nil, err
- } else if p != nil {
- this.ActivityStreamsSensitive = p
- }
- if p, err := mgr.DeserializeSharesPropertyActivityStreams()(m, aliasMap); err != nil {
- return nil, err
- } else if p != nil {
- this.ActivityStreamsShares = p
- }
- if p, err := mgr.DeserializeSourcePropertyActivityStreams()(m, aliasMap); err != nil {
- return nil, err
- } else if p != nil {
- this.ActivityStreamsSource = p
- }
- if p, err := mgr.DeserializeStartTimePropertyActivityStreams()(m, aliasMap); err != nil {
- return nil, err
- } else if p != nil {
- this.ActivityStreamsStartTime = p
- }
- if p, err := mgr.DeserializeSummaryPropertyActivityStreams()(m, aliasMap); err != nil {
- return nil, err
- } else if p != nil {
- this.ActivityStreamsSummary = p
- }
- if p, err := mgr.DeserializeTagPropertyActivityStreams()(m, aliasMap); err != nil {
- return nil, err
- } else if p != nil {
- this.ActivityStreamsTag = p
- }
- if p, err := mgr.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 == "sensitive" {
- continue
- } else if k == "shares" {
- continue
- } else if k == "source" {
- continue
- } else if k == "startTime" {
- continue
- } else if k == "summary" {
- continue
- } else if k == "summaryMap" {
- continue
- } else if k == "tag" {
- continue
- } else if k == "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
-}
-
-// GetActivityStreamsSensitive returns the "sensitive" property if it exists, and
-// nil otherwise.
-func (this ForgeFedCommit) GetActivityStreamsSensitive() vocab.ActivityStreamsSensitiveProperty {
- return this.ActivityStreamsSensitive
-}
-
-// 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.ActivityStreamsSensitive, m)
- m = this.helperJSONLDContext(this.ActivityStreamsShares, m)
- m = this.helperJSONLDContext(this.ActivityStreamsSource, m)
- m = this.helperJSONLDContext(this.ActivityStreamsStartTime, m)
- m = this.helperJSONLDContext(this.ActivityStreamsSummary, m)
- m = this.helperJSONLDContext(this.ActivityStreamsTag, m)
- m = this.helperJSONLDContext(this.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 "sensitive"
- if lhs, rhs := this.ActivityStreamsSensitive, o.GetActivityStreamsSensitive(); lhs != nil && rhs != nil {
- if lhs.LessThan(rhs) {
- return true
- } else if rhs.LessThan(lhs) {
- return false
- }
- } else if lhs == nil && rhs != nil {
- // Nil is less than anything else
- return true
- } else if rhs != nil && rhs == nil {
- // Anything else is greater than nil
- return false
- } // Else: Both are nil
- // Compare property "shares"
- if lhs, rhs := this.ActivityStreamsShares, o.GetActivityStreamsShares(); lhs != nil && rhs != nil {
- if lhs.LessThan(rhs) {
- return true
- } else if rhs.LessThan(lhs) {
- return false
- }
- } else if lhs == nil && rhs != nil {
- // Nil is less than anything else
- return true
- } else if rhs != nil && rhs == nil {
- // Anything else is greater than nil
- return false
- } // Else: Both are nil
- // Compare property "source"
- if lhs, rhs := this.ActivityStreamsSource, o.GetActivityStreamsSource(); lhs != nil && rhs != nil {
- if lhs.LessThan(rhs) {
- return true
- } else if rhs.LessThan(lhs) {
- return false
- }
- } else if lhs == nil && rhs != nil {
- // Nil is less than anything else
- return true
- } else if rhs != nil && rhs == nil {
- // Anything else is greater than nil
- return false
- } // Else: Both are nil
- // Compare property "startTime"
- if lhs, rhs := this.ActivityStreamsStartTime, o.GetActivityStreamsStartTime(); lhs != nil && rhs != nil {
- if lhs.LessThan(rhs) {
- return true
- } else if rhs.LessThan(lhs) {
- return false
- }
- } else if lhs == nil && rhs != nil {
- // Nil is less than anything else
- return true
- } else if rhs != nil && rhs == nil {
- // Anything else is greater than nil
- return false
- } // Else: Both are nil
- // Compare property "summary"
- if lhs, rhs := this.ActivityStreamsSummary, o.GetActivityStreamsSummary(); lhs != nil && rhs != nil {
- if lhs.LessThan(rhs) {
- return true
- } else if rhs.LessThan(lhs) {
- return false
- }
- } else if lhs == nil && rhs != nil {
- // Nil is less than anything else
- return true
- } else if rhs != nil && rhs == nil {
- // Anything else is greater than nil
- return false
- } // Else: Both are nil
- // Compare property "tag"
- if lhs, rhs := this.ActivityStreamsTag, o.GetActivityStreamsTag(); lhs != nil && rhs != nil {
- if lhs.LessThan(rhs) {
- return true
- } else if rhs.LessThan(lhs) {
- return false
- }
- } else if lhs == nil && rhs != nil {
- // Nil is less than anything else
- return true
- } else if rhs != nil && rhs == nil {
- // Anything else is greater than nil
- return false
- } // Else: Both are nil
- // Compare property "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 "sensitive"
- if this.ActivityStreamsSensitive != nil {
- if i, err := this.ActivityStreamsSensitive.Serialize(); err != nil {
- return nil, err
- } else if i != nil {
- m[this.ActivityStreamsSensitive.Name()] = i
- }
- }
- // Maybe serialize property "shares"
- if this.ActivityStreamsShares != nil {
- if i, err := this.ActivityStreamsShares.Serialize(); err != nil {
- return nil, err
- } else if i != nil {
- m[this.ActivityStreamsShares.Name()] = i
- }
- }
- // Maybe serialize property "source"
- if this.ActivityStreamsSource != nil {
- if i, err := this.ActivityStreamsSource.Serialize(); err != nil {
- return nil, err
- } else if i != nil {
- m[this.ActivityStreamsSource.Name()] = i
- }
- }
- // Maybe serialize property "startTime"
- if this.ActivityStreamsStartTime != nil {
- if i, err := this.ActivityStreamsStartTime.Serialize(); err != nil {
- return nil, err
- } else if i != nil {
- m[this.ActivityStreamsStartTime.Name()] = i
- }
- }
- // Maybe serialize property "summary"
- if this.ActivityStreamsSummary != nil {
- if i, err := this.ActivityStreamsSummary.Serialize(); err != nil {
- return nil, err
- } else if i != nil {
- m[this.ActivityStreamsSummary.Name()] = i
- }
- }
- // Maybe serialize property "tag"
- if this.ActivityStreamsTag != nil {
- if i, err := this.ActivityStreamsTag.Serialize(); err != nil {
- return nil, err
- } else if i != nil {
- m[this.ActivityStreamsTag.Name()] = i
- }
- }
- // Maybe serialize property "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
-}
-
-// SetActivityStreamsSensitive sets the "sensitive" property.
-func (this *ForgeFedCommit) SetActivityStreamsSensitive(i vocab.ActivityStreamsSensitiveProperty) {
- this.ActivityStreamsSensitive = 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/vendor/github.com/superseriousbusiness/activity/streams/impl/forgefed/type_push/gen_doc.go b/vendor/github.com/superseriousbusiness/activity/streams/impl/forgefed/type_push/gen_doc.go
deleted file mode 100644
index f9a39c3ef..000000000
--- a/vendor/github.com/superseriousbusiness/activity/streams/impl/forgefed/type_push/gen_doc.go
+++ /dev/null
@@ -1,17 +0,0 @@
-// 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/vendor/github.com/superseriousbusiness/activity/streams/impl/forgefed/type_push/gen_pkg.go b/vendor/github.com/superseriousbusiness/activity/streams/impl/forgefed/type_push/gen_pkg.go
deleted file mode 100644
index 06d308314..000000000
--- a/vendor/github.com/superseriousbusiness/activity/streams/impl/forgefed/type_push/gen_pkg.go
+++ /dev/null
@@ -1,211 +0,0 @@
-// Code generated by astool. DO NOT EDIT.
-
-package typepush
-
-import vocab "github.com/superseriousbusiness/activity/streams/vocab"
-
-var mgr privateManager
-
-var typePropertyConstructor func() vocab.JSONLDTypeProperty
-
-// privateManager abstracts the code-generated manager that provides access to
-// concrete implementations.
-type privateManager interface {
- // DeserializeActorPropertyActivityStreams returns the deserialization
- // method for the "ActivityStreamsActorProperty" non-functional
- // property in the vocabulary "ActivityStreams"
- DeserializeActorPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsActorProperty, error)
- // DeserializeAltitudePropertyActivityStreams returns the deserialization
- // method for the "ActivityStreamsAltitudeProperty" non-functional
- // property in the vocabulary "ActivityStreams"
- DeserializeAltitudePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAltitudeProperty, error)
- // DeserializeAttachmentPropertyActivityStreams returns the
- // deserialization method for the "ActivityStreamsAttachmentProperty"
- // non-functional property in the vocabulary "ActivityStreams"
- DeserializeAttachmentPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAttachmentProperty, error)
- // DeserializeAttributedToPropertyActivityStreams returns the
- // deserialization method for the
- // "ActivityStreamsAttributedToProperty" non-functional property in
- // the vocabulary "ActivityStreams"
- DeserializeAttributedToPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAttributedToProperty, error)
- // DeserializeAudiencePropertyActivityStreams returns the deserialization
- // method for the "ActivityStreamsAudienceProperty" non-functional
- // property in the vocabulary "ActivityStreams"
- DeserializeAudiencePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAudienceProperty, error)
- // DeserializeBccPropertyActivityStreams returns the deserialization
- // method for the "ActivityStreamsBccProperty" non-functional property
- // in the vocabulary "ActivityStreams"
- DeserializeBccPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsBccProperty, error)
- // DeserializeBtoPropertyActivityStreams returns the deserialization
- // method for the "ActivityStreamsBtoProperty" non-functional property
- // in the vocabulary "ActivityStreams"
- DeserializeBtoPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsBtoProperty, error)
- // DeserializeCcPropertyActivityStreams returns the deserialization method
- // for the "ActivityStreamsCcProperty" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeCcPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsCcProperty, error)
- // DeserializeContentPropertyActivityStreams returns the deserialization
- // method for the "ActivityStreamsContentProperty" non-functional
- // property in the vocabulary "ActivityStreams"
- DeserializeContentPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsContentProperty, error)
- // DeserializeContextPropertyActivityStreams returns the deserialization
- // method for the "ActivityStreamsContextProperty" non-functional
- // property in the vocabulary "ActivityStreams"
- DeserializeContextPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsContextProperty, error)
- // DeserializeDurationPropertyActivityStreams returns the deserialization
- // method for the "ActivityStreamsDurationProperty" non-functional
- // property in the vocabulary "ActivityStreams"
- DeserializeDurationPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsDurationProperty, error)
- // DeserializeEndTimePropertyActivityStreams returns the deserialization
- // method for the "ActivityStreamsEndTimeProperty" non-functional
- // property in the vocabulary "ActivityStreams"
- DeserializeEndTimePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsEndTimeProperty, error)
- // DeserializeGeneratorPropertyActivityStreams returns the deserialization
- // method for the "ActivityStreamsGeneratorProperty" non-functional
- // property in the vocabulary "ActivityStreams"
- DeserializeGeneratorPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsGeneratorProperty, error)
- // DeserializeIconPropertyActivityStreams returns the deserialization
- // method for the "ActivityStreamsIconProperty" non-functional
- // property in the vocabulary "ActivityStreams"
- DeserializeIconPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsIconProperty, error)
- // DeserializeIdPropertyJSONLD returns the deserialization method for the
- // "JSONLDIdProperty" non-functional property in the vocabulary
- // "JSONLD"
- DeserializeIdPropertyJSONLD() func(map[string]interface{}, map[string]string) (vocab.JSONLDIdProperty, error)
- // DeserializeImagePropertyActivityStreams returns the deserialization
- // method for the "ActivityStreamsImageProperty" non-functional
- // property in the vocabulary "ActivityStreams"
- DeserializeImagePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsImageProperty, error)
- // DeserializeInReplyToPropertyActivityStreams returns the deserialization
- // method for the "ActivityStreamsInReplyToProperty" non-functional
- // property in the vocabulary "ActivityStreams"
- DeserializeInReplyToPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsInReplyToProperty, error)
- // DeserializeInstrumentPropertyActivityStreams returns the
- // deserialization method for the "ActivityStreamsInstrumentProperty"
- // non-functional property in the vocabulary "ActivityStreams"
- DeserializeInstrumentPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsInstrumentProperty, error)
- // DeserializeLikesPropertyActivityStreams returns the deserialization
- // method for the "ActivityStreamsLikesProperty" non-functional
- // property in the vocabulary "ActivityStreams"
- DeserializeLikesPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLikesProperty, error)
- // DeserializeLocationPropertyActivityStreams returns the deserialization
- // method for the "ActivityStreamsLocationProperty" non-functional
- // property in the vocabulary "ActivityStreams"
- DeserializeLocationPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLocationProperty, error)
- // DeserializeMediaTypePropertyActivityStreams returns the deserialization
- // method for the "ActivityStreamsMediaTypeProperty" non-functional
- // property in the vocabulary "ActivityStreams"
- DeserializeMediaTypePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsMediaTypeProperty, error)
- // DeserializeNamePropertyActivityStreams returns the deserialization
- // method for the "ActivityStreamsNameProperty" non-functional
- // property in the vocabulary "ActivityStreams"
- DeserializeNamePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsNameProperty, error)
- // DeserializeObjectPropertyActivityStreams returns the deserialization
- // method for the "ActivityStreamsObjectProperty" non-functional
- // property in the vocabulary "ActivityStreams"
- DeserializeObjectPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsObjectProperty, error)
- // DeserializeOriginPropertyActivityStreams returns the deserialization
- // method for the "ActivityStreamsOriginProperty" non-functional
- // property in the vocabulary "ActivityStreams"
- DeserializeOriginPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsOriginProperty, error)
- // DeserializePreviewPropertyActivityStreams returns the deserialization
- // method for the "ActivityStreamsPreviewProperty" non-functional
- // property in the vocabulary "ActivityStreams"
- DeserializePreviewPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsPreviewProperty, error)
- // DeserializePublishedPropertyActivityStreams returns the deserialization
- // method for the "ActivityStreamsPublishedProperty" non-functional
- // property in the vocabulary "ActivityStreams"
- DeserializePublishedPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsPublishedProperty, error)
- // DeserializeRepliesPropertyActivityStreams returns the deserialization
- // method for the "ActivityStreamsRepliesProperty" non-functional
- // property in the vocabulary "ActivityStreams"
- DeserializeRepliesPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsRepliesProperty, error)
- // DeserializeResultPropertyActivityStreams returns the deserialization
- // method for the "ActivityStreamsResultProperty" non-functional
- // property in the vocabulary "ActivityStreams"
- DeserializeResultPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsResultProperty, error)
- // DeserializeSensitivePropertyActivityStreams returns the deserialization
- // method for the "ActivityStreamsSensitiveProperty" non-functional
- // property in the vocabulary "ActivityStreams"
- DeserializeSensitivePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSensitiveProperty, error)
- // DeserializeSharesPropertyActivityStreams returns the deserialization
- // method for the "ActivityStreamsSharesProperty" non-functional
- // property in the vocabulary "ActivityStreams"
- DeserializeSharesPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSharesProperty, error)
- // DeserializeSourcePropertyActivityStreams returns the deserialization
- // method for the "ActivityStreamsSourceProperty" non-functional
- // property in the vocabulary "ActivityStreams"
- DeserializeSourcePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSourceProperty, error)
- // DeserializeStartTimePropertyActivityStreams returns the deserialization
- // method for the "ActivityStreamsStartTimeProperty" non-functional
- // property in the vocabulary "ActivityStreams"
- DeserializeStartTimePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsStartTimeProperty, error)
- // DeserializeSummaryPropertyActivityStreams returns the deserialization
- // method for the "ActivityStreamsSummaryProperty" non-functional
- // property in the vocabulary "ActivityStreams"
- DeserializeSummaryPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSummaryProperty, error)
- // DeserializeTagPropertyActivityStreams returns the deserialization
- // method for the "ActivityStreamsTagProperty" non-functional property
- // in the vocabulary "ActivityStreams"
- DeserializeTagPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTagProperty, error)
- // DeserializeTargetPropertyActivityStreams returns the deserialization
- // method for the "ActivityStreamsTargetProperty" non-functional
- // property in the vocabulary "ActivityStreams"
- DeserializeTargetPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTargetProperty, error)
- // DeserializeTeamPropertyForgeFed returns the deserialization method for
- // the "ForgeFedTeamProperty" non-functional property in the
- // vocabulary "ForgeFed"
- DeserializeTeamPropertyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTeamProperty, error)
- // DeserializeTicketsTrackedByPropertyForgeFed returns the deserialization
- // method for the "ForgeFedTicketsTrackedByProperty" non-functional
- // property in the vocabulary "ForgeFed"
- DeserializeTicketsTrackedByPropertyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTicketsTrackedByProperty, error)
- // DeserializeToPropertyActivityStreams returns the deserialization method
- // for the "ActivityStreamsToProperty" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeToPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsToProperty, error)
- // DeserializeTracksTicketsForPropertyForgeFed returns the deserialization
- // method for the "ForgeFedTracksTicketsForProperty" non-functional
- // property in the vocabulary "ForgeFed"
- DeserializeTracksTicketsForPropertyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTracksTicketsForProperty, error)
- // DeserializeTypePropertyJSONLD returns the deserialization method for
- // the "JSONLDTypeProperty" non-functional property in the vocabulary
- // "JSONLD"
- DeserializeTypePropertyJSONLD() func(map[string]interface{}, map[string]string) (vocab.JSONLDTypeProperty, error)
- // DeserializeUpdatedPropertyActivityStreams returns the deserialization
- // method for the "ActivityStreamsUpdatedProperty" non-functional
- // property in the vocabulary "ActivityStreams"
- DeserializeUpdatedPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsUpdatedProperty, error)
- // DeserializeUrlPropertyActivityStreams returns the deserialization
- // method for the "ActivityStreamsUrlProperty" non-functional property
- // in the vocabulary "ActivityStreams"
- DeserializeUrlPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsUrlProperty, error)
-}
-
-// jsonldContexter is a private interface to determine the JSON-LD contexts and
-// aliases needed for functional and non-functional properties. It is a helper
-// interface for this implementation.
-type jsonldContexter interface {
- // JSONLDContext returns the JSONLD URIs required in the context string
- // for this property and the specific values that are set. The value
- // in the map is the alias used to import the property's value or
- // values.
- JSONLDContext() map[string]string
-}
-
-// SetManager sets the manager package-global variable. For internal use only, do
-// not use as part of Application behavior. Must be called at golang init time.
-func SetManager(m privateManager) {
- mgr = m
-}
-
-// SetTypePropertyConstructor sets the "type" property's constructor in the
-// package-global variable. For internal use only, do not use as part of
-// Application behavior. Must be called at golang init time. Permits
-// ActivityStreams types to correctly set their "type" property at
-// construction time, so users don't have to remember to do so each time. It
-// is dependency injected so other go-fed compatible implementations could
-// inject their own type.
-func SetTypePropertyConstructor(f func() vocab.JSONLDTypeProperty) {
- typePropertyConstructor = f
-}
diff --git a/vendor/github.com/superseriousbusiness/activity/streams/impl/forgefed/type_push/gen_type_forgefed_push.go b/vendor/github.com/superseriousbusiness/activity/streams/impl/forgefed/type_push/gen_type_forgefed_push.go
deleted file mode 100644
index 1a9ac0e09..000000000
--- a/vendor/github.com/superseriousbusiness/activity/streams/impl/forgefed/type_push/gen_type_forgefed_push.go
+++ /dev/null
@@ -1,2009 +0,0 @@
-// Code generated by astool. DO NOT EDIT.
-
-package typepush
-
-import (
- "fmt"
- vocab "github.com/superseriousbusiness/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.org/aviva",
-// "context": "https://example.org/aviva/myproject",
-// "id": "https://example.org/aviva/outbox/reBGo",
-// "object": {
-// "items": [
-// {
-// "attributedTo": "https://example.org/aviva",
-// "context": "https://example.org/aviva/myproject",
-// "created": "2019-11-03T13:43:59Z",
-// "hash": "d96596230322716bd6f87a232a648ca9822a1c20",
-// "id": "https://example.org/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.org/aviva/myproject/branches/master",
-// "to": [
-// "https://example.org/aviva/followers",
-// "https://example.org/aviva/myproject",
-// "https://example.org/aviva/myproject/team",
-// "https://example.org/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
- ActivityStreamsSensitive vocab.ActivityStreamsSensitiveProperty
- 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.DeserializeSensitivePropertyActivityStreams()(m, aliasMap); err != nil {
- return nil, err
- } else if p != nil {
- this.ActivityStreamsSensitive = p
- }
- if p, err := mgr.DeserializeSharesPropertyActivityStreams()(m, aliasMap); err != nil {
- return nil, err
- } else if p != nil {
- this.ActivityStreamsShares = p
- }
- if p, err := mgr.DeserializeSourcePropertyActivityStreams()(m, aliasMap); err != nil {
- return nil, err
- } else if p != nil {
- this.ActivityStreamsSource = p
- }
- if p, err := mgr.DeserializeStartTimePropertyActivityStreams()(m, aliasMap); err != nil {
- return nil, err
- } else if p != nil {
- this.ActivityStreamsStartTime = p
- }
- if p, err := mgr.DeserializeSummaryPropertyActivityStreams()(m, aliasMap); err != nil {
- return nil, err
- } else if p != nil {
- this.ActivityStreamsSummary = p
- }
- if p, err := mgr.DeserializeTagPropertyActivityStreams()(m, aliasMap); err != nil {
- return nil, err
- } else if p != nil {
- this.ActivityStreamsTag = p
- }
- if p, err := mgr.DeserializeTargetPropertyActivityStreams()(m, aliasMap); err != nil {
- return nil, err
- } else if p != nil {
- this.ActivityStreamsTarget = p
- }
- if p, err := mgr.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 == "sensitive" {
- continue
- } else if k == "shares" {
- continue
- } else if k == "source" {
- continue
- } else if k == "startTime" {
- continue
- } else if k == "summary" {
- continue
- } else if k == "summaryMap" {
- continue
- } else if k == "tag" {
- continue
- } else if k == "target" {
- continue
- } else if k == "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
-}
-
-// GetActivityStreamsSensitive returns the "sensitive" property if it exists, and
-// nil otherwise.
-func (this ForgeFedPush) GetActivityStreamsSensitive() vocab.ActivityStreamsSensitiveProperty {
- return this.ActivityStreamsSensitive
-}
-
-// 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.ActivityStreamsSensitive, m)
- m = this.helperJSONLDContext(this.ActivityStreamsShares, m)
- m = this.helperJSONLDContext(this.ActivityStreamsSource, m)
- m = this.helperJSONLDContext(this.ActivityStreamsStartTime, m)
- m = this.helperJSONLDContext(this.ActivityStreamsSummary, m)
- m = this.helperJSONLDContext(this.ActivityStreamsTag, m)
- m = this.helperJSONLDContext(this.ActivityStreamsTarget, m)
- m = this.helperJSONLDContext(this.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 "sensitive"
- if lhs, rhs := this.ActivityStreamsSensitive, o.GetActivityStreamsSensitive(); lhs != nil && rhs != nil {
- if lhs.LessThan(rhs) {
- return true
- } else if rhs.LessThan(lhs) {
- return false
- }
- } else if lhs == nil && rhs != nil {
- // Nil is less than anything else
- return true
- } else if rhs != nil && rhs == nil {
- // Anything else is greater than nil
- return false
- } // Else: Both are nil
- // Compare property "shares"
- if lhs, rhs := this.ActivityStreamsShares, o.GetActivityStreamsShares(); lhs != nil && rhs != nil {
- if lhs.LessThan(rhs) {
- return true
- } else if rhs.LessThan(lhs) {
- return false
- }
- } else if lhs == nil && rhs != nil {
- // Nil is less than anything else
- return true
- } else if rhs != nil && rhs == nil {
- // Anything else is greater than nil
- return false
- } // Else: Both are nil
- // Compare property "source"
- if lhs, rhs := this.ActivityStreamsSource, o.GetActivityStreamsSource(); lhs != nil && rhs != nil {
- if lhs.LessThan(rhs) {
- return true
- } else if rhs.LessThan(lhs) {
- return false
- }
- } else if lhs == nil && rhs != nil {
- // Nil is less than anything else
- return true
- } else if rhs != nil && rhs == nil {
- // Anything else is greater than nil
- return false
- } // Else: Both are nil
- // Compare property "startTime"
- if lhs, rhs := this.ActivityStreamsStartTime, o.GetActivityStreamsStartTime(); lhs != nil && rhs != nil {
- if lhs.LessThan(rhs) {
- return true
- } else if rhs.LessThan(lhs) {
- return false
- }
- } else if lhs == nil && rhs != nil {
- // Nil is less than anything else
- return true
- } else if rhs != nil && rhs == nil {
- // Anything else is greater than nil
- return false
- } // Else: Both are nil
- // Compare property "summary"
- if lhs, rhs := this.ActivityStreamsSummary, o.GetActivityStreamsSummary(); lhs != nil && rhs != nil {
- if lhs.LessThan(rhs) {
- return true
- } else if rhs.LessThan(lhs) {
- return false
- }
- } else if lhs == nil && rhs != nil {
- // Nil is less than anything else
- return true
- } else if rhs != nil && rhs == nil {
- // Anything else is greater than nil
- return false
- } // Else: Both are nil
- // Compare property "tag"
- if lhs, rhs := this.ActivityStreamsTag, o.GetActivityStreamsTag(); lhs != nil && rhs != nil {
- if lhs.LessThan(rhs) {
- return true
- } else if rhs.LessThan(lhs) {
- return false
- }
- } else if lhs == nil && rhs != nil {
- // Nil is less than anything else
- return true
- } else if rhs != nil && rhs == nil {
- // Anything else is greater than nil
- return false
- } // Else: Both are nil
- // Compare property "target"
- if lhs, rhs := this.ActivityStreamsTarget, o.GetActivityStreamsTarget(); lhs != nil && rhs != nil {
- if lhs.LessThan(rhs) {
- return true
- } else if rhs.LessThan(lhs) {
- return false
- }
- } else if lhs == nil && rhs != nil {
- // Nil is less than anything else
- return true
- } else if rhs != nil && rhs == nil {
- // Anything else is greater than nil
- return false
- } // Else: Both are nil
- // Compare property "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 "sensitive"
- if this.ActivityStreamsSensitive != nil {
- if i, err := this.ActivityStreamsSensitive.Serialize(); err != nil {
- return nil, err
- } else if i != nil {
- m[this.ActivityStreamsSensitive.Name()] = i
- }
- }
- // Maybe serialize property "shares"
- if this.ActivityStreamsShares != nil {
- if i, err := this.ActivityStreamsShares.Serialize(); err != nil {
- return nil, err
- } else if i != nil {
- m[this.ActivityStreamsShares.Name()] = i
- }
- }
- // Maybe serialize property "source"
- if this.ActivityStreamsSource != nil {
- if i, err := this.ActivityStreamsSource.Serialize(); err != nil {
- return nil, err
- } else if i != nil {
- m[this.ActivityStreamsSource.Name()] = i
- }
- }
- // Maybe serialize property "startTime"
- if this.ActivityStreamsStartTime != nil {
- if i, err := this.ActivityStreamsStartTime.Serialize(); err != nil {
- return nil, err
- } else if i != nil {
- m[this.ActivityStreamsStartTime.Name()] = i
- }
- }
- // Maybe serialize property "summary"
- if this.ActivityStreamsSummary != nil {
- if i, err := this.ActivityStreamsSummary.Serialize(); err != nil {
- return nil, err
- } else if i != nil {
- m[this.ActivityStreamsSummary.Name()] = i
- }
- }
- // Maybe serialize property "tag"
- if this.ActivityStreamsTag != nil {
- if i, err := this.ActivityStreamsTag.Serialize(); err != nil {
- return nil, err
- } else if i != nil {
- m[this.ActivityStreamsTag.Name()] = i
- }
- }
- // Maybe serialize property "target"
- if this.ActivityStreamsTarget != nil {
- if i, err := this.ActivityStreamsTarget.Serialize(); err != nil {
- return nil, err
- } else if i != nil {
- m[this.ActivityStreamsTarget.Name()] = i
- }
- }
- // Maybe serialize property "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
-}
-
-// SetActivityStreamsSensitive sets the "sensitive" property.
-func (this *ForgeFedPush) SetActivityStreamsSensitive(i vocab.ActivityStreamsSensitiveProperty) {
- this.ActivityStreamsSensitive = 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/vendor/github.com/superseriousbusiness/activity/streams/impl/forgefed/type_repository/gen_doc.go b/vendor/github.com/superseriousbusiness/activity/streams/impl/forgefed/type_repository/gen_doc.go
deleted file mode 100644
index 194a0adfb..000000000
--- a/vendor/github.com/superseriousbusiness/activity/streams/impl/forgefed/type_repository/gen_doc.go
+++ /dev/null
@@ -1,17 +0,0 @@
-// 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/vendor/github.com/superseriousbusiness/activity/streams/impl/forgefed/type_repository/gen_pkg.go b/vendor/github.com/superseriousbusiness/activity/streams/impl/forgefed/type_repository/gen_pkg.go
deleted file mode 100644
index 07268e604..000000000
--- a/vendor/github.com/superseriousbusiness/activity/streams/impl/forgefed/type_repository/gen_pkg.go
+++ /dev/null
@@ -1,195 +0,0 @@
-// Code generated by astool. DO NOT EDIT.
-
-package typerepository
-
-import vocab "github.com/superseriousbusiness/activity/streams/vocab"
-
-var mgr privateManager
-
-var typePropertyConstructor func() vocab.JSONLDTypeProperty
-
-// privateManager abstracts the code-generated manager that provides access to
-// concrete implementations.
-type privateManager interface {
- // DeserializeAltitudePropertyActivityStreams returns the deserialization
- // method for the "ActivityStreamsAltitudeProperty" non-functional
- // property in the vocabulary "ActivityStreams"
- DeserializeAltitudePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAltitudeProperty, error)
- // DeserializeAttachmentPropertyActivityStreams returns the
- // deserialization method for the "ActivityStreamsAttachmentProperty"
- // non-functional property in the vocabulary "ActivityStreams"
- DeserializeAttachmentPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAttachmentProperty, error)
- // DeserializeAttributedToPropertyActivityStreams returns the
- // deserialization method for the
- // "ActivityStreamsAttributedToProperty" non-functional property in
- // the vocabulary "ActivityStreams"
- DeserializeAttributedToPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAttributedToProperty, error)
- // DeserializeAudiencePropertyActivityStreams returns the deserialization
- // method for the "ActivityStreamsAudienceProperty" non-functional
- // property in the vocabulary "ActivityStreams"
- DeserializeAudiencePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAudienceProperty, error)
- // DeserializeBccPropertyActivityStreams returns the deserialization
- // method for the "ActivityStreamsBccProperty" non-functional property
- // in the vocabulary "ActivityStreams"
- DeserializeBccPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsBccProperty, error)
- // DeserializeBtoPropertyActivityStreams returns the deserialization
- // method for the "ActivityStreamsBtoProperty" non-functional property
- // in the vocabulary "ActivityStreams"
- DeserializeBtoPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsBtoProperty, error)
- // DeserializeCcPropertyActivityStreams returns the deserialization method
- // for the "ActivityStreamsCcProperty" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeCcPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsCcProperty, error)
- // DeserializeContentPropertyActivityStreams returns the deserialization
- // method for the "ActivityStreamsContentProperty" non-functional
- // property in the vocabulary "ActivityStreams"
- DeserializeContentPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsContentProperty, error)
- // DeserializeContextPropertyActivityStreams returns the deserialization
- // method for the "ActivityStreamsContextProperty" non-functional
- // property in the vocabulary "ActivityStreams"
- DeserializeContextPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsContextProperty, error)
- // DeserializeDurationPropertyActivityStreams returns the deserialization
- // method for the "ActivityStreamsDurationProperty" non-functional
- // property in the vocabulary "ActivityStreams"
- DeserializeDurationPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsDurationProperty, error)
- // DeserializeEndTimePropertyActivityStreams returns the deserialization
- // method for the "ActivityStreamsEndTimeProperty" non-functional
- // property in the vocabulary "ActivityStreams"
- DeserializeEndTimePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsEndTimeProperty, error)
- // 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)
- // DeserializeSensitivePropertyActivityStreams returns the deserialization
- // method for the "ActivityStreamsSensitiveProperty" non-functional
- // property in the vocabulary "ActivityStreams"
- DeserializeSensitivePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSensitiveProperty, error)
- // DeserializeSharesPropertyActivityStreams returns the deserialization
- // method for the "ActivityStreamsSharesProperty" non-functional
- // property in the vocabulary "ActivityStreams"
- DeserializeSharesPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSharesProperty, error)
- // DeserializeSourcePropertyActivityStreams returns the deserialization
- // method for the "ActivityStreamsSourceProperty" non-functional
- // property in the vocabulary "ActivityStreams"
- DeserializeSourcePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSourceProperty, error)
- // DeserializeStartTimePropertyActivityStreams returns the deserialization
- // method for the "ActivityStreamsStartTimeProperty" non-functional
- // property in the vocabulary "ActivityStreams"
- DeserializeStartTimePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsStartTimeProperty, error)
- // DeserializeSummaryPropertyActivityStreams returns the deserialization
- // method for the "ActivityStreamsSummaryProperty" non-functional
- // property in the vocabulary "ActivityStreams"
- DeserializeSummaryPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSummaryProperty, error)
- // DeserializeTagPropertyActivityStreams returns the deserialization
- // method for the "ActivityStreamsTagProperty" non-functional property
- // in the vocabulary "ActivityStreams"
- DeserializeTagPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTagProperty, error)
- // DeserializeTeamPropertyForgeFed returns the deserialization method for
- // the "ForgeFedTeamProperty" non-functional property in the
- // vocabulary "ForgeFed"
- DeserializeTeamPropertyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTeamProperty, error)
- // DeserializeTicketsTrackedByPropertyForgeFed returns the deserialization
- // method for the "ForgeFedTicketsTrackedByProperty" non-functional
- // property in the vocabulary "ForgeFed"
- DeserializeTicketsTrackedByPropertyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTicketsTrackedByProperty, error)
- // DeserializeToPropertyActivityStreams returns the deserialization method
- // for the "ActivityStreamsToProperty" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeToPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsToProperty, error)
- // DeserializeTracksTicketsForPropertyForgeFed returns the deserialization
- // method for the "ForgeFedTracksTicketsForProperty" non-functional
- // property in the vocabulary "ForgeFed"
- DeserializeTracksTicketsForPropertyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTracksTicketsForProperty, error)
- // DeserializeTypePropertyJSONLD returns the deserialization method for
- // the "JSONLDTypeProperty" non-functional property in the vocabulary
- // "JSONLD"
- DeserializeTypePropertyJSONLD() func(map[string]interface{}, map[string]string) (vocab.JSONLDTypeProperty, error)
- // DeserializeUpdatedPropertyActivityStreams returns the deserialization
- // method for the "ActivityStreamsUpdatedProperty" non-functional
- // property in the vocabulary "ActivityStreams"
- DeserializeUpdatedPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsUpdatedProperty, error)
- // DeserializeUrlPropertyActivityStreams returns the deserialization
- // method for the "ActivityStreamsUrlProperty" non-functional property
- // in the vocabulary "ActivityStreams"
- DeserializeUrlPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsUrlProperty, error)
-}
-
-// jsonldContexter is a private interface to determine the JSON-LD contexts and
-// aliases needed for functional and non-functional properties. It is a helper
-// interface for this implementation.
-type jsonldContexter interface {
- // JSONLDContext returns the JSONLD URIs required in the context string
- // for this property and the specific values that are set. The value
- // in the map is the alias used to import the property's value or
- // values.
- JSONLDContext() map[string]string
-}
-
-// SetManager sets the manager package-global variable. For internal use only, do
-// not use as part of Application behavior. Must be called at golang init time.
-func SetManager(m privateManager) {
- mgr = m
-}
-
-// SetTypePropertyConstructor sets the "type" property's constructor in the
-// package-global variable. For internal use only, do not use as part of
-// Application behavior. Must be called at golang init time. Permits
-// ActivityStreams types to correctly set their "type" property at
-// construction time, so users don't have to remember to do so each time. It
-// is dependency injected so other go-fed compatible implementations could
-// inject their own type.
-func SetTypePropertyConstructor(f func() vocab.JSONLDTypeProperty) {
- typePropertyConstructor = f
-}
diff --git a/vendor/github.com/superseriousbusiness/activity/streams/impl/forgefed/type_repository/gen_type_forgefed_repository.go b/vendor/github.com/superseriousbusiness/activity/streams/impl/forgefed/type_repository/gen_type_forgefed_repository.go
deleted file mode 100644
index 40d12bf45..000000000
--- a/vendor/github.com/superseriousbusiness/activity/streams/impl/forgefed/type_repository/gen_type_forgefed_repository.go
+++ /dev/null
@@ -1,1828 +0,0 @@
-// Code generated by astool. DO NOT EDIT.
-
-package typerepository
-
-import (
- "fmt"
- vocab "github.com/superseriousbusiness/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
- ActivityStreamsSensitive vocab.ActivityStreamsSensitiveProperty
- 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.DeserializeSensitivePropertyActivityStreams()(m, aliasMap); err != nil {
- return nil, err
- } else if p != nil {
- this.ActivityStreamsSensitive = p
- }
- if p, err := mgr.DeserializeSharesPropertyActivityStreams()(m, aliasMap); err != nil {
- return nil, err
- } else if p != nil {
- this.ActivityStreamsShares = p
- }
- if p, err := mgr.DeserializeSourcePropertyActivityStreams()(m, aliasMap); err != nil {
- return nil, err
- } else if p != nil {
- this.ActivityStreamsSource = p
- }
- if p, err := mgr.DeserializeStartTimePropertyActivityStreams()(m, aliasMap); err != nil {
- return nil, err
- } else if p != nil {
- this.ActivityStreamsStartTime = p
- }
- if p, err := mgr.DeserializeSummaryPropertyActivityStreams()(m, aliasMap); err != nil {
- return nil, err
- } else if p != nil {
- this.ActivityStreamsSummary = p
- }
- if p, err := mgr.DeserializeTagPropertyActivityStreams()(m, aliasMap); err != nil {
- return nil, err
- } else if p != nil {
- this.ActivityStreamsTag = p
- }
- if p, err := mgr.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 == "sensitive" {
- continue
- } else if k == "shares" {
- continue
- } else if k == "source" {
- continue
- } else if k == "startTime" {
- continue
- } else if k == "summary" {
- continue
- } else if k == "summaryMap" {
- continue
- } else if k == "tag" {
- continue
- } else if k == "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
-}
-
-// GetActivityStreamsSensitive returns the "sensitive" property if it exists, and
-// nil otherwise.
-func (this ForgeFedRepository) GetActivityStreamsSensitive() vocab.ActivityStreamsSensitiveProperty {
- return this.ActivityStreamsSensitive
-}
-
-// 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.ActivityStreamsSensitive, m)
- m = this.helperJSONLDContext(this.ActivityStreamsShares, m)
- m = this.helperJSONLDContext(this.ActivityStreamsSource, m)
- m = this.helperJSONLDContext(this.ActivityStreamsStartTime, m)
- m = this.helperJSONLDContext(this.ActivityStreamsSummary, m)
- m = this.helperJSONLDContext(this.ActivityStreamsTag, m)
- m = this.helperJSONLDContext(this.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 "sensitive"
- if lhs, rhs := this.ActivityStreamsSensitive, o.GetActivityStreamsSensitive(); lhs != nil && rhs != nil {
- if lhs.LessThan(rhs) {
- return true
- } else if rhs.LessThan(lhs) {
- return false
- }
- } else if lhs == nil && rhs != nil {
- // Nil is less than anything else
- return true
- } else if rhs != nil && rhs == nil {
- // Anything else is greater than nil
- return false
- } // Else: Both are nil
- // Compare property "shares"
- if lhs, rhs := this.ActivityStreamsShares, o.GetActivityStreamsShares(); lhs != nil && rhs != nil {
- if lhs.LessThan(rhs) {
- return true
- } else if rhs.LessThan(lhs) {
- return false
- }
- } else if lhs == nil && rhs != nil {
- // Nil is less than anything else
- return true
- } else if rhs != nil && rhs == nil {
- // Anything else is greater than nil
- return false
- } // Else: Both are nil
- // Compare property "source"
- if lhs, rhs := this.ActivityStreamsSource, o.GetActivityStreamsSource(); lhs != nil && rhs != nil {
- if lhs.LessThan(rhs) {
- return true
- } else if rhs.LessThan(lhs) {
- return false
- }
- } else if lhs == nil && rhs != nil {
- // Nil is less than anything else
- return true
- } else if rhs != nil && rhs == nil {
- // Anything else is greater than nil
- return false
- } // Else: Both are nil
- // Compare property "startTime"
- if lhs, rhs := this.ActivityStreamsStartTime, o.GetActivityStreamsStartTime(); lhs != nil && rhs != nil {
- if lhs.LessThan(rhs) {
- return true
- } else if rhs.LessThan(lhs) {
- return false
- }
- } else if lhs == nil && rhs != nil {
- // Nil is less than anything else
- return true
- } else if rhs != nil && rhs == nil {
- // Anything else is greater than nil
- return false
- } // Else: Both are nil
- // Compare property "summary"
- if lhs, rhs := this.ActivityStreamsSummary, o.GetActivityStreamsSummary(); lhs != nil && rhs != nil {
- if lhs.LessThan(rhs) {
- return true
- } else if rhs.LessThan(lhs) {
- return false
- }
- } else if lhs == nil && rhs != nil {
- // Nil is less than anything else
- return true
- } else if rhs != nil && rhs == nil {
- // Anything else is greater than nil
- return false
- } // Else: Both are nil
- // Compare property "tag"
- if lhs, rhs := this.ActivityStreamsTag, o.GetActivityStreamsTag(); lhs != nil && rhs != nil {
- if lhs.LessThan(rhs) {
- return true
- } else if rhs.LessThan(lhs) {
- return false
- }
- } else if lhs == nil && rhs != nil {
- // Nil is less than anything else
- return true
- } else if rhs != nil && rhs == nil {
- // Anything else is greater than nil
- return false
- } // Else: Both are nil
- // Compare property "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 "sensitive"
- if this.ActivityStreamsSensitive != nil {
- if i, err := this.ActivityStreamsSensitive.Serialize(); err != nil {
- return nil, err
- } else if i != nil {
- m[this.ActivityStreamsSensitive.Name()] = i
- }
- }
- // Maybe serialize property "shares"
- if this.ActivityStreamsShares != nil {
- if i, err := this.ActivityStreamsShares.Serialize(); err != nil {
- return nil, err
- } else if i != nil {
- m[this.ActivityStreamsShares.Name()] = i
- }
- }
- // Maybe serialize property "source"
- if this.ActivityStreamsSource != nil {
- if i, err := this.ActivityStreamsSource.Serialize(); err != nil {
- return nil, err
- } else if i != nil {
- m[this.ActivityStreamsSource.Name()] = i
- }
- }
- // Maybe serialize property "startTime"
- if this.ActivityStreamsStartTime != nil {
- if i, err := this.ActivityStreamsStartTime.Serialize(); err != nil {
- return nil, err
- } else if i != nil {
- m[this.ActivityStreamsStartTime.Name()] = i
- }
- }
- // Maybe serialize property "summary"
- if this.ActivityStreamsSummary != nil {
- if i, err := this.ActivityStreamsSummary.Serialize(); err != nil {
- return nil, err
- } else if i != nil {
- m[this.ActivityStreamsSummary.Name()] = i
- }
- }
- // Maybe serialize property "tag"
- if this.ActivityStreamsTag != nil {
- if i, err := this.ActivityStreamsTag.Serialize(); err != nil {
- return nil, err
- } else if i != nil {
- m[this.ActivityStreamsTag.Name()] = i
- }
- }
- // Maybe serialize property "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
-}
-
-// SetActivityStreamsSensitive sets the "sensitive" property.
-func (this *ForgeFedRepository) SetActivityStreamsSensitive(i vocab.ActivityStreamsSensitiveProperty) {
- this.ActivityStreamsSensitive = 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/vendor/github.com/superseriousbusiness/activity/streams/impl/forgefed/type_ticket/gen_doc.go b/vendor/github.com/superseriousbusiness/activity/streams/impl/forgefed/type_ticket/gen_doc.go
deleted file mode 100644
index 3268d6d09..000000000
--- a/vendor/github.com/superseriousbusiness/activity/streams/impl/forgefed/type_ticket/gen_doc.go
+++ /dev/null
@@ -1,17 +0,0 @@
-// 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/vendor/github.com/superseriousbusiness/activity/streams/impl/forgefed/type_ticket/gen_pkg.go b/vendor/github.com/superseriousbusiness/activity/streams/impl/forgefed/type_ticket/gen_pkg.go
deleted file mode 100644
index 43f226b01..000000000
--- a/vendor/github.com/superseriousbusiness/activity/streams/impl/forgefed/type_ticket/gen_pkg.go
+++ /dev/null
@@ -1,215 +0,0 @@
-// Code generated by astool. DO NOT EDIT.
-
-package typeticket
-
-import vocab "github.com/superseriousbusiness/activity/streams/vocab"
-
-var mgr privateManager
-
-var typePropertyConstructor func() vocab.JSONLDTypeProperty
-
-// privateManager abstracts the code-generated manager that provides access to
-// concrete implementations.
-type privateManager interface {
- // DeserializeAltitudePropertyActivityStreams returns the deserialization
- // method for the "ActivityStreamsAltitudeProperty" non-functional
- // property in the vocabulary "ActivityStreams"
- DeserializeAltitudePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAltitudeProperty, error)
- // 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)
- // DeserializeSensitivePropertyActivityStreams returns the deserialization
- // method for the "ActivityStreamsSensitiveProperty" non-functional
- // property in the vocabulary "ActivityStreams"
- DeserializeSensitivePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSensitiveProperty, error)
- // DeserializeSharesPropertyActivityStreams returns the deserialization
- // method for the "ActivityStreamsSharesProperty" non-functional
- // property in the vocabulary "ActivityStreams"
- DeserializeSharesPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSharesProperty, error)
- // DeserializeSourcePropertyActivityStreams returns the deserialization
- // method for the "ActivityStreamsSourceProperty" non-functional
- // property in the vocabulary "ActivityStreams"
- DeserializeSourcePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSourceProperty, error)
- // DeserializeStartTimePropertyActivityStreams returns the deserialization
- // method for the "ActivityStreamsStartTimeProperty" non-functional
- // property in the vocabulary "ActivityStreams"
- DeserializeStartTimePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsStartTimeProperty, error)
- // DeserializeSummaryPropertyActivityStreams returns the deserialization
- // method for the "ActivityStreamsSummaryProperty" non-functional
- // property in the vocabulary "ActivityStreams"
- DeserializeSummaryPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSummaryProperty, error)
- // DeserializeTagPropertyActivityStreams returns the deserialization
- // method for the "ActivityStreamsTagProperty" non-functional property
- // in the vocabulary "ActivityStreams"
- DeserializeTagPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTagProperty, error)
- // DeserializeTeamPropertyForgeFed returns the deserialization method for
- // the "ForgeFedTeamProperty" non-functional property in the
- // vocabulary "ForgeFed"
- DeserializeTeamPropertyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTeamProperty, error)
- // DeserializeTicketsTrackedByPropertyForgeFed returns the deserialization
- // method for the "ForgeFedTicketsTrackedByProperty" non-functional
- // property in the vocabulary "ForgeFed"
- DeserializeTicketsTrackedByPropertyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTicketsTrackedByProperty, error)
- // DeserializeToPropertyActivityStreams returns the deserialization method
- // for the "ActivityStreamsToProperty" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeToPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsToProperty, error)
- // DeserializeTracksTicketsForPropertyForgeFed returns the deserialization
- // method for the "ForgeFedTracksTicketsForProperty" non-functional
- // property in the vocabulary "ForgeFed"
- DeserializeTracksTicketsForPropertyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTracksTicketsForProperty, error)
- // DeserializeTypePropertyJSONLD returns the deserialization method for
- // the "JSONLDTypeProperty" non-functional property in the vocabulary
- // "JSONLD"
- DeserializeTypePropertyJSONLD() func(map[string]interface{}, map[string]string) (vocab.JSONLDTypeProperty, error)
- // DeserializeUpdatedPropertyActivityStreams returns the deserialization
- // method for the "ActivityStreamsUpdatedProperty" non-functional
- // property in the vocabulary "ActivityStreams"
- DeserializeUpdatedPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsUpdatedProperty, error)
- // DeserializeUrlPropertyActivityStreams returns the deserialization
- // method for the "ActivityStreamsUrlProperty" non-functional property
- // in the vocabulary "ActivityStreams"
- DeserializeUrlPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsUrlProperty, error)
-}
-
-// jsonldContexter is a private interface to determine the JSON-LD contexts and
-// aliases needed for functional and non-functional properties. It is a helper
-// interface for this implementation.
-type jsonldContexter interface {
- // JSONLDContext returns the JSONLD URIs required in the context string
- // for this property and the specific values that are set. The value
- // in the map is the alias used to import the property's value or
- // values.
- JSONLDContext() map[string]string
-}
-
-// SetManager sets the manager package-global variable. For internal use only, do
-// not use as part of Application behavior. Must be called at golang init time.
-func SetManager(m privateManager) {
- mgr = m
-}
-
-// SetTypePropertyConstructor sets the "type" property's constructor in the
-// package-global variable. For internal use only, do not use as part of
-// Application behavior. Must be called at golang init time. Permits
-// ActivityStreams types to correctly set their "type" property at
-// construction time, so users don't have to remember to do so each time. It
-// is dependency injected so other go-fed compatible implementations could
-// inject their own type.
-func SetTypePropertyConstructor(f func() vocab.JSONLDTypeProperty) {
- typePropertyConstructor = f
-}
diff --git a/vendor/github.com/superseriousbusiness/activity/streams/impl/forgefed/type_ticket/gen_type_forgefed_ticket.go b/vendor/github.com/superseriousbusiness/activity/streams/impl/forgefed/type_ticket/gen_type_forgefed_ticket.go
deleted file mode 100644
index 4e1d274f5..000000000
--- a/vendor/github.com/superseriousbusiness/activity/streams/impl/forgefed/type_ticket/gen_type_forgefed_ticket.go
+++ /dev/null
@@ -1,2040 +0,0 @@
-// Code generated by astool. DO NOT EDIT.
-
-package typeticket
-
-import (
- "fmt"
- vocab "github.com/superseriousbusiness/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.org/alice",
-// "attributedTo": "https://example.com/bob",
-// "content": "\u003cp\u003ePlease fix.
-// \u003ci\u003eEverything\u003c/i\u003e is broken!\u003c/p\u003e",
-// "context": "https://example.org/alice/myrepo",
-// "id": "https://example.org/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
- ActivityStreamsSensitive vocab.ActivityStreamsSensitiveProperty
- 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.DeserializeSensitivePropertyActivityStreams()(m, aliasMap); err != nil {
- return nil, err
- } else if p != nil {
- this.ActivityStreamsSensitive = p
- }
- if p, err := mgr.DeserializeSharesPropertyActivityStreams()(m, aliasMap); err != nil {
- return nil, err
- } else if p != nil {
- this.ActivityStreamsShares = p
- }
- if p, err := mgr.DeserializeSourcePropertyActivityStreams()(m, aliasMap); err != nil {
- return nil, err
- } else if p != nil {
- this.ActivityStreamsSource = p
- }
- if p, err := mgr.DeserializeStartTimePropertyActivityStreams()(m, aliasMap); err != nil {
- return nil, err
- } else if p != nil {
- this.ActivityStreamsStartTime = p
- }
- if p, err := mgr.DeserializeSummaryPropertyActivityStreams()(m, aliasMap); err != nil {
- return nil, err
- } else if p != nil {
- this.ActivityStreamsSummary = p
- }
- if p, err := mgr.DeserializeTagPropertyActivityStreams()(m, aliasMap); err != nil {
- return nil, err
- } else if p != nil {
- this.ActivityStreamsTag = p
- }
- if p, err := mgr.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 == "sensitive" {
- continue
- } else if k == "shares" {
- continue
- } else if k == "source" {
- continue
- } else if k == "startTime" {
- continue
- } else if k == "summary" {
- continue
- } else if k == "summaryMap" {
- continue
- } else if k == "tag" {
- continue
- } else if k == "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
-}
-
-// GetActivityStreamsSensitive returns the "sensitive" property if it exists, and
-// nil otherwise.
-func (this ForgeFedTicket) GetActivityStreamsSensitive() vocab.ActivityStreamsSensitiveProperty {
- return this.ActivityStreamsSensitive
-}
-
-// 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.ActivityStreamsSensitive, m)
- m = this.helperJSONLDContext(this.ActivityStreamsShares, m)
- m = this.helperJSONLDContext(this.ActivityStreamsSource, m)
- m = this.helperJSONLDContext(this.ActivityStreamsStartTime, m)
- m = this.helperJSONLDContext(this.ActivityStreamsSummary, m)
- m = this.helperJSONLDContext(this.ActivityStreamsTag, m)
- m = this.helperJSONLDContext(this.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 "sensitive"
- if lhs, rhs := this.ActivityStreamsSensitive, o.GetActivityStreamsSensitive(); lhs != nil && rhs != nil {
- if lhs.LessThan(rhs) {
- return true
- } else if rhs.LessThan(lhs) {
- return false
- }
- } else if lhs == nil && rhs != nil {
- // Nil is less than anything else
- return true
- } else if rhs != nil && rhs == nil {
- // Anything else is greater than nil
- return false
- } // Else: Both are nil
- // Compare property "shares"
- if lhs, rhs := this.ActivityStreamsShares, o.GetActivityStreamsShares(); lhs != nil && rhs != nil {
- if lhs.LessThan(rhs) {
- return true
- } else if rhs.LessThan(lhs) {
- return false
- }
- } else if lhs == nil && rhs != nil {
- // Nil is less than anything else
- return true
- } else if rhs != nil && rhs == nil {
- // Anything else is greater than nil
- return false
- } // Else: Both are nil
- // Compare property "source"
- if lhs, rhs := this.ActivityStreamsSource, o.GetActivityStreamsSource(); lhs != nil && rhs != nil {
- if lhs.LessThan(rhs) {
- return true
- } else if rhs.LessThan(lhs) {
- return false
- }
- } else if lhs == nil && rhs != nil {
- // Nil is less than anything else
- return true
- } else if rhs != nil && rhs == nil {
- // Anything else is greater than nil
- return false
- } // Else: Both are nil
- // Compare property "startTime"
- if lhs, rhs := this.ActivityStreamsStartTime, o.GetActivityStreamsStartTime(); lhs != nil && rhs != nil {
- if lhs.LessThan(rhs) {
- return true
- } else if rhs.LessThan(lhs) {
- return false
- }
- } else if lhs == nil && rhs != nil {
- // Nil is less than anything else
- return true
- } else if rhs != nil && rhs == nil {
- // Anything else is greater than nil
- return false
- } // Else: Both are nil
- // Compare property "summary"
- if lhs, rhs := this.ActivityStreamsSummary, o.GetActivityStreamsSummary(); lhs != nil && rhs != nil {
- if lhs.LessThan(rhs) {
- return true
- } else if rhs.LessThan(lhs) {
- return false
- }
- } else if lhs == nil && rhs != nil {
- // Nil is less than anything else
- return true
- } else if rhs != nil && rhs == nil {
- // Anything else is greater than nil
- return false
- } // Else: Both are nil
- // Compare property "tag"
- if lhs, rhs := this.ActivityStreamsTag, o.GetActivityStreamsTag(); lhs != nil && rhs != nil {
- if lhs.LessThan(rhs) {
- return true
- } else if rhs.LessThan(lhs) {
- return false
- }
- } else if lhs == nil && rhs != nil {
- // Nil is less than anything else
- return true
- } else if rhs != nil && rhs == nil {
- // Anything else is greater than nil
- return false
- } // Else: Both are nil
- // Compare property "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 "sensitive"
- if this.ActivityStreamsSensitive != nil {
- if i, err := this.ActivityStreamsSensitive.Serialize(); err != nil {
- return nil, err
- } else if i != nil {
- m[this.ActivityStreamsSensitive.Name()] = i
- }
- }
- // Maybe serialize property "shares"
- if this.ActivityStreamsShares != nil {
- if i, err := this.ActivityStreamsShares.Serialize(); err != nil {
- return nil, err
- } else if i != nil {
- m[this.ActivityStreamsShares.Name()] = i
- }
- }
- // Maybe serialize property "source"
- if this.ActivityStreamsSource != nil {
- if i, err := this.ActivityStreamsSource.Serialize(); err != nil {
- return nil, err
- } else if i != nil {
- m[this.ActivityStreamsSource.Name()] = i
- }
- }
- // Maybe serialize property "startTime"
- if this.ActivityStreamsStartTime != nil {
- if i, err := this.ActivityStreamsStartTime.Serialize(); err != nil {
- return nil, err
- } else if i != nil {
- m[this.ActivityStreamsStartTime.Name()] = i
- }
- }
- // Maybe serialize property "summary"
- if this.ActivityStreamsSummary != nil {
- if i, err := this.ActivityStreamsSummary.Serialize(); err != nil {
- return nil, err
- } else if i != nil {
- m[this.ActivityStreamsSummary.Name()] = i
- }
- }
- // Maybe serialize property "tag"
- if this.ActivityStreamsTag != nil {
- if i, err := this.ActivityStreamsTag.Serialize(); err != nil {
- return nil, err
- } else if i != nil {
- m[this.ActivityStreamsTag.Name()] = i
- }
- }
- // Maybe serialize property "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
-}
-
-// SetActivityStreamsSensitive sets the "sensitive" property.
-func (this *ForgeFedTicket) SetActivityStreamsSensitive(i vocab.ActivityStreamsSensitiveProperty) {
- this.ActivityStreamsSensitive = 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/vendor/github.com/superseriousbusiness/activity/streams/impl/forgefed/type_ticketdependency/gen_doc.go b/vendor/github.com/superseriousbusiness/activity/streams/impl/forgefed/type_ticketdependency/gen_doc.go
deleted file mode 100644
index 90610f71b..000000000
--- a/vendor/github.com/superseriousbusiness/activity/streams/impl/forgefed/type_ticketdependency/gen_doc.go
+++ /dev/null
@@ -1,17 +0,0 @@
-// 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/vendor/github.com/superseriousbusiness/activity/streams/impl/forgefed/type_ticketdependency/gen_pkg.go b/vendor/github.com/superseriousbusiness/activity/streams/impl/forgefed/type_ticketdependency/gen_pkg.go
deleted file mode 100644
index d06bc4bd2..000000000
--- a/vendor/github.com/superseriousbusiness/activity/streams/impl/forgefed/type_ticketdependency/gen_pkg.go
+++ /dev/null
@@ -1,200 +0,0 @@
-// Code generated by astool. DO NOT EDIT.
-
-package typeticketdependency
-
-import vocab "github.com/superseriousbusiness/activity/streams/vocab"
-
-var mgr privateManager
-
-var typePropertyConstructor func() vocab.JSONLDTypeProperty
-
-// privateManager abstracts the code-generated manager that provides access to
-// concrete implementations.
-type privateManager interface {
- // DeserializeAltitudePropertyActivityStreams returns the deserialization
- // method for the "ActivityStreamsAltitudeProperty" non-functional
- // property in the vocabulary "ActivityStreams"
- DeserializeAltitudePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAltitudeProperty, error)
- // DeserializeAttachmentPropertyActivityStreams returns the
- // deserialization method for the "ActivityStreamsAttachmentProperty"
- // non-functional property in the vocabulary "ActivityStreams"
- DeserializeAttachmentPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAttachmentProperty, error)
- // DeserializeAttributedToPropertyActivityStreams returns the
- // deserialization method for the
- // "ActivityStreamsAttributedToProperty" non-functional property in
- // the vocabulary "ActivityStreams"
- DeserializeAttributedToPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAttributedToProperty, error)
- // DeserializeAudiencePropertyActivityStreams returns the deserialization
- // method for the "ActivityStreamsAudienceProperty" non-functional
- // property in the vocabulary "ActivityStreams"
- DeserializeAudiencePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAudienceProperty, error)
- // DeserializeBccPropertyActivityStreams returns the deserialization
- // method for the "ActivityStreamsBccProperty" non-functional property
- // in the vocabulary "ActivityStreams"
- DeserializeBccPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsBccProperty, error)
- // DeserializeBtoPropertyActivityStreams returns the deserialization
- // method for the "ActivityStreamsBtoProperty" non-functional property
- // in the vocabulary "ActivityStreams"
- DeserializeBtoPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsBtoProperty, error)
- // DeserializeCcPropertyActivityStreams returns the deserialization method
- // for the "ActivityStreamsCcProperty" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeCcPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsCcProperty, error)
- // DeserializeContentPropertyActivityStreams returns the deserialization
- // method for the "ActivityStreamsContentProperty" non-functional
- // property in the vocabulary "ActivityStreams"
- DeserializeContentPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsContentProperty, error)
- // DeserializeContextPropertyActivityStreams returns the deserialization
- // method for the "ActivityStreamsContextProperty" non-functional
- // property in the vocabulary "ActivityStreams"
- DeserializeContextPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsContextProperty, error)
- // DeserializeDurationPropertyActivityStreams returns the deserialization
- // method for the "ActivityStreamsDurationProperty" non-functional
- // property in the vocabulary "ActivityStreams"
- DeserializeDurationPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsDurationProperty, error)
- // DeserializeEndTimePropertyActivityStreams returns the deserialization
- // method for the "ActivityStreamsEndTimeProperty" non-functional
- // property in the vocabulary "ActivityStreams"
- DeserializeEndTimePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsEndTimeProperty, error)
- // DeserializeGeneratorPropertyActivityStreams returns the deserialization
- // method for the "ActivityStreamsGeneratorProperty" non-functional
- // property in the vocabulary "ActivityStreams"
- DeserializeGeneratorPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsGeneratorProperty, error)
- // DeserializeIconPropertyActivityStreams returns the deserialization
- // method for the "ActivityStreamsIconProperty" non-functional
- // property in the vocabulary "ActivityStreams"
- DeserializeIconPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsIconProperty, error)
- // DeserializeIdPropertyJSONLD returns the deserialization method for the
- // "JSONLDIdProperty" non-functional property in the vocabulary
- // "JSONLD"
- DeserializeIdPropertyJSONLD() func(map[string]interface{}, map[string]string) (vocab.JSONLDIdProperty, error)
- // DeserializeImagePropertyActivityStreams returns the deserialization
- // method for the "ActivityStreamsImageProperty" non-functional
- // property in the vocabulary "ActivityStreams"
- DeserializeImagePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsImageProperty, error)
- // DeserializeInReplyToPropertyActivityStreams returns the deserialization
- // method for the "ActivityStreamsInReplyToProperty" non-functional
- // property in the vocabulary "ActivityStreams"
- DeserializeInReplyToPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsInReplyToProperty, error)
- // DeserializeLikesPropertyActivityStreams returns the deserialization
- // method for the "ActivityStreamsLikesProperty" non-functional
- // property in the vocabulary "ActivityStreams"
- DeserializeLikesPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLikesProperty, error)
- // DeserializeLocationPropertyActivityStreams returns the deserialization
- // method for the "ActivityStreamsLocationProperty" non-functional
- // property in the vocabulary "ActivityStreams"
- DeserializeLocationPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLocationProperty, error)
- // DeserializeMediaTypePropertyActivityStreams returns the deserialization
- // method for the "ActivityStreamsMediaTypeProperty" non-functional
- // property in the vocabulary "ActivityStreams"
- DeserializeMediaTypePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsMediaTypeProperty, error)
- // DeserializeNamePropertyActivityStreams returns the deserialization
- // method for the "ActivityStreamsNameProperty" non-functional
- // property in the vocabulary "ActivityStreams"
- DeserializeNamePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsNameProperty, error)
- // DeserializeObjectPropertyActivityStreams returns the deserialization
- // method for the "ActivityStreamsObjectProperty" non-functional
- // property in the vocabulary "ActivityStreams"
- DeserializeObjectPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsObjectProperty, error)
- // DeserializePreviewPropertyActivityStreams returns the deserialization
- // method for the "ActivityStreamsPreviewProperty" non-functional
- // property in the vocabulary "ActivityStreams"
- DeserializePreviewPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsPreviewProperty, error)
- // DeserializePublishedPropertyActivityStreams returns the deserialization
- // method for the "ActivityStreamsPublishedProperty" non-functional
- // property in the vocabulary "ActivityStreams"
- DeserializePublishedPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsPublishedProperty, error)
- // DeserializeRelationshipPropertyActivityStreams returns the
- // deserialization method for the
- // "ActivityStreamsRelationshipProperty" non-functional property in
- // the vocabulary "ActivityStreams"
- DeserializeRelationshipPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsRelationshipProperty, error)
- // DeserializeRepliesPropertyActivityStreams returns the deserialization
- // method for the "ActivityStreamsRepliesProperty" non-functional
- // property in the vocabulary "ActivityStreams"
- DeserializeRepliesPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsRepliesProperty, error)
- // DeserializeSensitivePropertyActivityStreams returns the deserialization
- // method for the "ActivityStreamsSensitiveProperty" non-functional
- // property in the vocabulary "ActivityStreams"
- DeserializeSensitivePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSensitiveProperty, error)
- // DeserializeSharesPropertyActivityStreams returns the deserialization
- // method for the "ActivityStreamsSharesProperty" non-functional
- // property in the vocabulary "ActivityStreams"
- DeserializeSharesPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSharesProperty, error)
- // DeserializeSourcePropertyActivityStreams returns the deserialization
- // method for the "ActivityStreamsSourceProperty" non-functional
- // property in the vocabulary "ActivityStreams"
- DeserializeSourcePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSourceProperty, error)
- // DeserializeStartTimePropertyActivityStreams returns the deserialization
- // method for the "ActivityStreamsStartTimeProperty" non-functional
- // property in the vocabulary "ActivityStreams"
- DeserializeStartTimePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsStartTimeProperty, error)
- // DeserializeSubjectPropertyActivityStreams returns the deserialization
- // method for the "ActivityStreamsSubjectProperty" non-functional
- // property in the vocabulary "ActivityStreams"
- DeserializeSubjectPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSubjectProperty, error)
- // DeserializeSummaryPropertyActivityStreams returns the deserialization
- // method for the "ActivityStreamsSummaryProperty" non-functional
- // property in the vocabulary "ActivityStreams"
- DeserializeSummaryPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSummaryProperty, error)
- // DeserializeTagPropertyActivityStreams returns the deserialization
- // method for the "ActivityStreamsTagProperty" non-functional property
- // in the vocabulary "ActivityStreams"
- DeserializeTagPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTagProperty, error)
- // DeserializeTeamPropertyForgeFed returns the deserialization method for
- // the "ForgeFedTeamProperty" non-functional property in the
- // vocabulary "ForgeFed"
- DeserializeTeamPropertyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTeamProperty, error)
- // DeserializeTicketsTrackedByPropertyForgeFed returns the deserialization
- // method for the "ForgeFedTicketsTrackedByProperty" non-functional
- // property in the vocabulary "ForgeFed"
- DeserializeTicketsTrackedByPropertyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTicketsTrackedByProperty, error)
- // DeserializeToPropertyActivityStreams returns the deserialization method
- // for the "ActivityStreamsToProperty" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeToPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsToProperty, error)
- // DeserializeTracksTicketsForPropertyForgeFed returns the deserialization
- // method for the "ForgeFedTracksTicketsForProperty" non-functional
- // property in the vocabulary "ForgeFed"
- DeserializeTracksTicketsForPropertyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTracksTicketsForProperty, error)
- // DeserializeTypePropertyJSONLD returns the deserialization method for
- // the "JSONLDTypeProperty" non-functional property in the vocabulary
- // "JSONLD"
- DeserializeTypePropertyJSONLD() func(map[string]interface{}, map[string]string) (vocab.JSONLDTypeProperty, error)
- // DeserializeUpdatedPropertyActivityStreams returns the deserialization
- // method for the "ActivityStreamsUpdatedProperty" non-functional
- // property in the vocabulary "ActivityStreams"
- DeserializeUpdatedPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsUpdatedProperty, error)
- // DeserializeUrlPropertyActivityStreams returns the deserialization
- // method for the "ActivityStreamsUrlProperty" non-functional property
- // in the vocabulary "ActivityStreams"
- DeserializeUrlPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsUrlProperty, error)
-}
-
-// jsonldContexter is a private interface to determine the JSON-LD contexts and
-// aliases needed for functional and non-functional properties. It is a helper
-// interface for this implementation.
-type jsonldContexter interface {
- // JSONLDContext returns the JSONLD URIs required in the context string
- // for this property and the specific values that are set. The value
- // in the map is the alias used to import the property's value or
- // values.
- JSONLDContext() map[string]string
-}
-
-// SetManager sets the manager package-global variable. For internal use only, do
-// not use as part of Application behavior. Must be called at golang init time.
-func SetManager(m privateManager) {
- mgr = m
-}
-
-// SetTypePropertyConstructor sets the "type" property's constructor in the
-// package-global variable. For internal use only, do not use as part of
-// Application behavior. Must be called at golang init time. Permits
-// ActivityStreams types to correctly set their "type" property at
-// construction time, so users don't have to remember to do so each time. It
-// is dependency injected so other go-fed compatible implementations could
-// inject their own type.
-func SetTypePropertyConstructor(f func() vocab.JSONLDTypeProperty) {
- typePropertyConstructor = f
-}
diff --git a/vendor/github.com/superseriousbusiness/activity/streams/impl/forgefed/type_ticketdependency/gen_type_forgefed_ticketdependency.go b/vendor/github.com/superseriousbusiness/activity/streams/impl/forgefed/type_ticketdependency/gen_type_forgefed_ticketdependency.go
deleted file mode 100644
index ce3003ca4..000000000
--- a/vendor/github.com/superseriousbusiness/activity/streams/impl/forgefed/type_ticketdependency/gen_type_forgefed_ticketdependency.go
+++ /dev/null
@@ -1,1871 +0,0 @@
-// Code generated by astool. DO NOT EDIT.
-
-package typeticketdependency
-
-import (
- "fmt"
- vocab "github.com/superseriousbusiness/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.org/alice",
-// "id": "https://example.org/ticket-deps/2342593",
-// "object": "https://example.com/bob/coolproj/issues/85",
-// "published": "2019-07-11T12:34:56Z",
-// "relationship": "dependsOn",
-// "subject": "https://example.org/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
- ActivityStreamsSensitive vocab.ActivityStreamsSensitiveProperty
- 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.DeserializeSensitivePropertyActivityStreams()(m, aliasMap); err != nil {
- return nil, err
- } else if p != nil {
- this.ActivityStreamsSensitive = p
- }
- if p, err := mgr.DeserializeSharesPropertyActivityStreams()(m, aliasMap); err != nil {
- return nil, err
- } else if p != nil {
- this.ActivityStreamsShares = p
- }
- if p, err := mgr.DeserializeSourcePropertyActivityStreams()(m, aliasMap); err != nil {
- return nil, err
- } else if p != nil {
- this.ActivityStreamsSource = p
- }
- if p, err := mgr.DeserializeStartTimePropertyActivityStreams()(m, aliasMap); err != nil {
- return nil, err
- } else if p != nil {
- this.ActivityStreamsStartTime = p
- }
- if p, err := mgr.DeserializeSubjectPropertyActivityStreams()(m, aliasMap); err != nil {
- return nil, err
- } else if p != nil {
- this.ActivityStreamsSubject = p
- }
- if p, err := mgr.DeserializeSummaryPropertyActivityStreams()(m, aliasMap); err != nil {
- return nil, err
- } else if p != nil {
- this.ActivityStreamsSummary = p
- }
- if p, err := mgr.DeserializeTagPropertyActivityStreams()(m, aliasMap); err != nil {
- return nil, err
- } else if p != nil {
- this.ActivityStreamsTag = p
- }
- if p, err := mgr.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 == "sensitive" {
- continue
- } else if k == "shares" {
- continue
- } else if k == "source" {
- continue
- } else if k == "startTime" {
- continue
- } else if k == "subject" {
- continue
- } else if k == "summary" {
- continue
- } else if k == "summaryMap" {
- continue
- } else if k == "tag" {
- continue
- } else if k == "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
-}
-
-// GetActivityStreamsSensitive returns the "sensitive" property if it exists, and
-// nil otherwise.
-func (this ForgeFedTicketDependency) GetActivityStreamsSensitive() vocab.ActivityStreamsSensitiveProperty {
- return this.ActivityStreamsSensitive
-}
-
-// 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.ActivityStreamsSensitive, m)
- m = this.helperJSONLDContext(this.ActivityStreamsShares, m)
- m = this.helperJSONLDContext(this.ActivityStreamsSource, m)
- m = this.helperJSONLDContext(this.ActivityStreamsStartTime, m)
- m = this.helperJSONLDContext(this.ActivityStreamsSubject, m)
- m = this.helperJSONLDContext(this.ActivityStreamsSummary, m)
- m = this.helperJSONLDContext(this.ActivityStreamsTag, m)
- m = this.helperJSONLDContext(this.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 "sensitive"
- if lhs, rhs := this.ActivityStreamsSensitive, o.GetActivityStreamsSensitive(); lhs != nil && rhs != nil {
- if lhs.LessThan(rhs) {
- return true
- } else if rhs.LessThan(lhs) {
- return false
- }
- } else if lhs == nil && rhs != nil {
- // Nil is less than anything else
- return true
- } else if rhs != nil && rhs == nil {
- // Anything else is greater than nil
- return false
- } // Else: Both are nil
- // Compare property "shares"
- if lhs, rhs := this.ActivityStreamsShares, o.GetActivityStreamsShares(); lhs != nil && rhs != nil {
- if lhs.LessThan(rhs) {
- return true
- } else if rhs.LessThan(lhs) {
- return false
- }
- } else if lhs == nil && rhs != nil {
- // Nil is less than anything else
- return true
- } else if rhs != nil && rhs == nil {
- // Anything else is greater than nil
- return false
- } // Else: Both are nil
- // Compare property "source"
- if lhs, rhs := this.ActivityStreamsSource, o.GetActivityStreamsSource(); lhs != nil && rhs != nil {
- if lhs.LessThan(rhs) {
- return true
- } else if rhs.LessThan(lhs) {
- return false
- }
- } else if lhs == nil && rhs != nil {
- // Nil is less than anything else
- return true
- } else if rhs != nil && rhs == nil {
- // Anything else is greater than nil
- return false
- } // Else: Both are nil
- // Compare property "startTime"
- if lhs, rhs := this.ActivityStreamsStartTime, o.GetActivityStreamsStartTime(); lhs != nil && rhs != nil {
- if lhs.LessThan(rhs) {
- return true
- } else if rhs.LessThan(lhs) {
- return false
- }
- } else if lhs == nil && rhs != nil {
- // Nil is less than anything else
- return true
- } else if rhs != nil && rhs == nil {
- // Anything else is greater than nil
- return false
- } // Else: Both are nil
- // Compare property "subject"
- if lhs, rhs := this.ActivityStreamsSubject, o.GetActivityStreamsSubject(); lhs != nil && rhs != nil {
- if lhs.LessThan(rhs) {
- return true
- } else if rhs.LessThan(lhs) {
- return false
- }
- } else if lhs == nil && rhs != nil {
- // Nil is less than anything else
- return true
- } else if rhs != nil && rhs == nil {
- // Anything else is greater than nil
- return false
- } // Else: Both are nil
- // Compare property "summary"
- if lhs, rhs := this.ActivityStreamsSummary, o.GetActivityStreamsSummary(); lhs != nil && rhs != nil {
- if lhs.LessThan(rhs) {
- return true
- } else if rhs.LessThan(lhs) {
- return false
- }
- } else if lhs == nil && rhs != nil {
- // Nil is less than anything else
- return true
- } else if rhs != nil && rhs == nil {
- // Anything else is greater than nil
- return false
- } // Else: Both are nil
- // Compare property "tag"
- if lhs, rhs := this.ActivityStreamsTag, o.GetActivityStreamsTag(); lhs != nil && rhs != nil {
- if lhs.LessThan(rhs) {
- return true
- } else if rhs.LessThan(lhs) {
- return false
- }
- } else if lhs == nil && rhs != nil {
- // Nil is less than anything else
- return true
- } else if rhs != nil && rhs == nil {
- // Anything else is greater than nil
- return false
- } // Else: Both are nil
- // Compare property "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 "sensitive"
- if this.ActivityStreamsSensitive != nil {
- if i, err := this.ActivityStreamsSensitive.Serialize(); err != nil {
- return nil, err
- } else if i != nil {
- m[this.ActivityStreamsSensitive.Name()] = i
- }
- }
- // Maybe serialize property "shares"
- if this.ActivityStreamsShares != nil {
- if i, err := this.ActivityStreamsShares.Serialize(); err != nil {
- return nil, err
- } else if i != nil {
- m[this.ActivityStreamsShares.Name()] = i
- }
- }
- // Maybe serialize property "source"
- if this.ActivityStreamsSource != nil {
- if i, err := this.ActivityStreamsSource.Serialize(); err != nil {
- return nil, err
- } else if i != nil {
- m[this.ActivityStreamsSource.Name()] = i
- }
- }
- // Maybe serialize property "startTime"
- if this.ActivityStreamsStartTime != nil {
- if i, err := this.ActivityStreamsStartTime.Serialize(); err != nil {
- return nil, err
- } else if i != nil {
- m[this.ActivityStreamsStartTime.Name()] = i
- }
- }
- // Maybe serialize property "subject"
- if this.ActivityStreamsSubject != nil {
- if i, err := this.ActivityStreamsSubject.Serialize(); err != nil {
- return nil, err
- } else if i != nil {
- m[this.ActivityStreamsSubject.Name()] = i
- }
- }
- // Maybe serialize property "summary"
- if this.ActivityStreamsSummary != nil {
- if i, err := this.ActivityStreamsSummary.Serialize(); err != nil {
- return nil, err
- } else if i != nil {
- m[this.ActivityStreamsSummary.Name()] = i
- }
- }
- // Maybe serialize property "tag"
- if this.ActivityStreamsTag != nil {
- if i, err := this.ActivityStreamsTag.Serialize(); err != nil {
- return nil, err
- } else if i != nil {
- m[this.ActivityStreamsTag.Name()] = i
- }
- }
- // Maybe serialize property "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
-}
-
-// SetActivityStreamsSensitive sets the "sensitive" property.
-func (this *ForgeFedTicketDependency) SetActivityStreamsSensitive(i vocab.ActivityStreamsSensitiveProperty) {
- this.ActivityStreamsSensitive = 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
-}